/* Color Palette Variables */
:root {
    --primary-green: #1A5C38;
    --accent-gold: #D4A017;
    --bg-cream: #FAF6EF;
    --text-brown: #5C3317;
    --white: #ffffff;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-brown);
    margin: 0;
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
header {
    background-color: var(--white);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
    will-change: transform;
}

/* hide header when scrolling down, show when scrolling up */
header.nav-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a,
.navbar li {
    color: var(--text-brown);
    text-decoration: none;
    font-weight: bold;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.logo img {
    max-width: 60px;
    display: block;
    margin: 0 auto;
}

.company-name {
    color: var(--text-brown);
    font-size: 1rem;
    text-align: center;
}

/* ─── BUTTONS (single source of truth) ───────────────────── */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-buttons button {
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease;
}

/* "Book a Consultation" – green fill, gold border */
.btn-outline {
    background-color: var(--primary-green);
    color: var(--white);
    border: 2px solid var(--accent-gold);
}

.btn-outline:hover {
    transform: scale(1.05);
}

/* "Register" – white fill, green text, green border */
.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-primary a,
.btn-outline a {
    color: inherit;
    text-decoration: none;
}

/* ─── HERO ────────────────────────────────────────────────── */
.hero-section {
    background-color: var(--bg-cream);
    padding: 60px 80px;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    height: 550px;
    margin: auto;

    background-image: url("Igbo.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 20px;
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* dark overlay */
.hero-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* hero CTA button – gold fill, green text */
.hero-content .btn-primary {
    padding: 15px 30px;
    font-size: 16px;
    background-color: var(--accent-gold);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    border-radius: 25px;
}

/* ─── INFO SECTION ────────────────────────────────────────── */
.info-section {
    background: var(--bg-cream);
    padding: 60px 80px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

/* ─── INSTRUCTOR CARD ─────────────────────────────────────── */
.instructor-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
}

/* Image on top, text below */
.instructor-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-top: 20px;
}

.instructor-content img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.instructor-content p {
    font-size: 14px;
    line-height: 1.6;
}


/* ─── LEARN CARD ──────────────────────────────────────────── */
.learn-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
}

.learn-title {
    background: #1F4B3F;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.learn-boxes {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 30px;
}

.box {
    background: #F8F5EE;
    padding: 20px;
    border-radius: 10px;
    width: 30%;
    text-align: center;
}

/* ─── STUDENTS ────────────────────────────────────────────── */
.student-title {
    margin-top: 40px;
    text-align: center;
}

.students {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.student {
    text-align: center;
}

.student img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #E4B84C;
}

.student p {
    margin-top: 10px;
    font-style: italic;
}

.student span {
    font-size: 14px;
    color: gray;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
footer {
    background-color: var(--text-brown);
    color: var(--white);
    padding: 60px 80px 20px;
    margin-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-brand img {
    width: 60px;
    margin-bottom: 10px;
}

.footer-brand .company-name {
    color: var(--accent-gold);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: var(--accent-gold);
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links ul a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-links ul a:hover {
    opacity: 1;
}

.footer-contact p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-icons a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.social-icons a:hover {
    opacity: 1;
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 13px;
    opacity: 0.6;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Hero */
    .hero-section {
        padding: 20px;
    }

    .hero-container {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    /* Info grid */
    .info-section {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .learn-card {
        order: 1;
    }

    .instructor-card {
        order: 2;
    }

    .instructor-card,
    .learn-card {
        padding: 20px;
    }

    /* Learn boxes */
    .learn-boxes {
        flex-direction: column;
    }

    .box {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Students */
    .students {
        flex-direction: column;
        align-items: center;
    }

    .student {
        width: 100%;
    }

    /* Navbar */
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .navbar ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    .nav-buttons {
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.5rem;
    }

    footer {
        padding: 40px 20px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    header {
        padding: 0.75rem 1.5rem;
    }
}