/* --- General Setup & Variables --- */
:root {
    --bg-dark: #121212;
    --bg-light: #1e1e1e;
    --primary: #0d6efd; /* A vibrant blue for accents */
    --primary-hover: #0b5ed7;
    --text-light: #f8f9fa;
    --text-muted: #adb5bd;
    --border-color: #343a40;
    --success-color: #198754;
    --error-color: #dc3545;
}

body {
    /* --- Keep your existing styles here --- */
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    line-height: 1.7;

    /* --- Add these three lines --- */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.container.narrow {
    max-width: 700px;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
main {
    flex-grow: 1;
}
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo img {
    height: 40px;
    margin-right: 12px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--text-light);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--bg-dark);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* --- Page Sections & Cards --- */
.page-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 { font-size: 2.5rem; margin-bottom: 10px; }
.page-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: auto; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card h3 { margin-top: 0; color: var(--primary); }

.team-card { text-align: center; }
.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--border-color);
}
.team-title { font-weight: 600; color: var(--text-muted); }

/* --- Forms --- */
/* Update the rule to look like this */
.form-section {
    background-color: transparent; /* This makes it blend in */
    padding-bottom: 20px;
}

form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: 8px; font-weight: 600; }
/* Update the rule to look like this */
input[type="text"],
input[type="email"],
textarea {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    resize: vertical; /* Prevents horizontal resizing, which can break the layout */
}
input:focus { outline: 2px solid var(--primary); }
form button { width: 100%; cursor: pointer; }

.feedback {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    border-radius: 8px;
}
.success { background-color: rgba(25, 135, 84, 0.2); color: var(--success-color); }
.error { background-color: rgba(220, 53, 69, 0.2); color: var(--error-color); }

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .main-nav { flex-direction: column; gap: 15px; }
    .main-nav ul { justify-content: center; width: 100%;}
}
/* --- Curriculum Page Styles --- */
.curriculum-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.curriculum-unit {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary);
    padding: 25px 30px;
    border-radius: 0 8px 8px 0;
}

.curriculum-unit h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-light);
}

.curriculum-unit p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.key-concepts h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary);
}

.key-concepts ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.key-concepts li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.key-concepts li b {
    color: var(--text-light);
    font-weight: 600;
}

code {
    background-color: var(--bg-dark);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}
