/* ===================================================================
   GLOBAL.CSS — Shared reset, nav, footer, hamburger
   Learning Knight V2
   =================================================================== */

/* ── RESET ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* ── PAGE WRAPPER ── */
body {
    background-color: #FEFAF4;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

.page-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    background-color: #FEFAF4;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── NAV CONTAINER — wraps <nav> + .mobile-menu so the dropdown anchors correctly ── */
.nav-container {
    position: relative;
    z-index: 200;
}

/* ── NAVBAR (used on pages that have a visible nav bar, not the transparent one) ── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    min-height: 70px;
    background: #FEFAF4;
    position: relative;
    z-index: 200;
}

.logo-img {
    height: 70px;
    display: block;
    flex-shrink: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-family: Arial, sans-serif;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-links li a:hover {
    color: #4a90e2;
}

/* ── HAMBURGER BUTTON ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
    z-index: 300;
    flex-shrink: 0;
}

.nav-toggle:hover {
    background: rgba(0, 0, 0, 0.07);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #222;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
}

/* Animate to X when open */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE MENU PANEL ── */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FEFAF4;
    border-top: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 200;
    padding: 1rem 5%;
    flex-direction: column;
    gap: 0;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu li a {
    display: block;
    padding: 0.75rem 0;
    font-size: 15px;
    color: #222;
    font-family: Arial, sans-serif;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-menu li:last-child a {
    border-bottom: none;
}

.mobile-menu li a:hover {
    color: #4a90e2;
    padding-left: 6px;
}

/* ── FOOTER ── */
footer {
    background-color: #222222;
    color: #fff;
    padding: 70px 8% 30px;
}

.footer-logo-img {
    display: block;
    margin: 0 auto 60px;
    height: 90px;
    max-width: 220px;
    object-fit: contain;
}

.footer-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 60px;
}

.footer-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* First footer-block in each col (course heading row) stays top-aligned */
.footer-col .footer-block:first-child {
    min-height: 80px;
}

.footer-heading {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: #ddd;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    display: block;
}

.footer-heading a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-heading a:hover {
    color: #4a90e2;
}

.footer-block p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 5px;
    line-height: 1.5;
}

.footer-block p a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-block p a:hover {
    color: #4a90e2;
}

.footer-company-link {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
    line-height: 1.5;
}

.footer-company-link:hover {
    color: #4a90e2;
}

.mt-40 {
    margin-top: 50px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid #444;
    padding-top: 25px;
    font-size: 12px;
    color: #888;
}

.footer-bottom p {
    font-size: 12px;
    margin: 0;
}

.footer-links a {
    color: #888;
    text-decoration: none;
}

.footer-links a:hover {
    color: #4a90e2;
}

/* ── CTA CONTACT SECTIONS GLOBALS ── */
.contact-cta-section strong,
.section-contact strong,
.lets-talk-section strong,
.cta-section strong,
.letstalk-section strong,
.contact-section strong,
.contact-cta-section a,
.section-contact a,
.lets-talk-section a,
.cta-section a,
.letstalk-section a,
.contact-section a {
    font-weight: 550;
}

/* ── RESPONSIVE: TABLET (≤1024px) ── */
@media (max-width: 1024px) {
    .logo-img {
        height: 60px;
    }

    footer {
        padding: 50px 6% 24px;
    }

    .footer-logo-img {
        height: 70px;
        margin-bottom: 40px;
    }

    .footer-grid {
        gap: 1.5rem;
    }
}

/* ── RESPONSIVE: MOBILE (≤768px) ── */
@media (max-width: 768px) {

    /* Show hamburger, hide desktop nav */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .logo-img {
        height: 55px;
    }

    /* Footer stacks to single column */
    footer {
        padding: 40px 5% 20px;
    }

    .footer-logo-img {
        height: 60px;
        margin-bottom: 30px;
    }

    .footer-grid {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 36px;
    }

    .footer-col {
        width: 100%;
    }

    .footer-col .footer-block:first-child {
        min-height: auto;
    }

    .mt-40 {
        margin-top: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        font-size: 11px;
    }
}

/* ── RESPONSIVE: SMALL MOBILE (≤480px) ── */
@media (max-width: 480px) {
    .logo-img {
        height: 48px;
    }

    footer {
        padding: 32px 4% 16px;
    }
}