/* ===================================================================
   PAGE1.CSS — Home / index.html
   Learning Knight V2
   =================================================================== */

/* ── RESET & BASE ── */
:root {
    --primary-bg: #FEFAF4;
    --text-dark: #000000;
    --text-body: #222222;
    --color-yellow: #f2aa1f;
    --color-green: #7eb782;
    --hero-bg: #FEFAF4;
    --footer-bg: #1c1c1c;
    --footer-text: #cccccc;
}

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

body {
    font-family: Arial, sans-serif;
    background-color: #FEFAF4;
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ── CONTAINER ── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

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

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

ul {
    list-style: none;
}

section {
    padding: 4rem 0;
    position: relative;
}

/* ── TYPOGRAPHY ── */
h1 {
    font-size: 28px;
    color: var(--text-dark);
    font-weight: 550;
    line-height: 1.3;
}

h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 550;
    line-height: 1.3;
}

p {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.subtitle-colored {
    color: #4a90e2;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.3vw, 1.2rem);
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    margin-top: 10px;
    text-transform: uppercase;
}

/* ── FLEX UTILITIES ── */
.flex-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.flex-row.reverse {
    flex-direction: row-reverse;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-half {
    flex: 1;
    min-width: 0;
}

/* Side content images */
.content-left img,
.content-right img {
    max-height: 380px;
    width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.about-section .about {
    flex: 1;
}

.about img {
    max-height: 400px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* ── HEADER (transparent, over video) ── */
header {
    background-color: transparent;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1500px;
    padding: 0 5%;
    position: relative;
}

.logo-img {
    height: 90px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 13px;
    letter-spacing: 1px;
    color: #ffffff;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    font-weight: normal;
    white-space: nowrap;
}

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

/* ── HAMBURGER (transparent header variant — white bars) ── */
.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;
    z-index: 300;
    flex-shrink: 0;
}

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

.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 for transparent-header pages */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 200;
    padding: 1rem 5%;
    flex-direction: column;
}

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

.mobile-menu li a {
    display: block;
    padding: 0.75rem 0;
    font-size: 15px;
    color: #fff;
    font-family: Arial, sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    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;
}

/* ── SLIDER / VIDEO BANNER ── */
.slider-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background-color: #ffffff;
    padding: 0 !important;
    margin: 0;
}

.banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    right: 60px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 0.7;
}

.scroll-text {
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-arrow {
    color: #ffffff;
    font-size: 18px;
    animation: bounce 1.4s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(6px);
        opacity: 0.5;
    }
}

/* ── ABOUT SECTION ── */
.about-section {
    padding-top: 4rem;
    padding-bottom: 1rem;
}

/* ── PROGRAMMES SECTION ── */
.programmes-section {
    text-align: left;
    background-color: #FEFAF4;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.programmes-section h2 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 550;
    line-height: 1.3;
    color: black;
}

.programmes-section p {
    max-width: 900px;
    margin: 20px 0 0 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 60px;
}

.programme-card {
    background: #FEFAF4;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;

}

.programme-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ── EXPERTISE SECTION ── */
.expertise-section-outer {
    width: 100%;
    padding: 3rem 0;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    gap: 120px;
}

.expertise-text {
    flex: 0 0 55%;
    max-width: 800px;
    padding: 2rem 2rem 2rem calc((100% - 1250px) / 2 + 64px);
    display: flex;
    flex-direction: column;
    margin-top: 50px;
}

@media (max-width: 1280px) {
    .expertise-text {
        padding-left: 5%;
    }
}

.expertise-text p {
    font-size: clamp(0.9rem, 1.5vw, 1.0625rem);
    line-height: 1.75;
    font-weight: 400;
    margin-top: 20px;
    margin-bottom: 0;
}

.expertise-image-wrap {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.expertise-image-wrap img {
    width: 100%;
    height: 100%;
    max-height: 325px;
    object-fit: contain;
    object-position: left;
    display: block;
}

.classrooms-section,
.placement-section {
    padding: 3rem 5%;
}

.placement-section h2 {
    color: black;
    font-size: clamp(1.2rem, 2vw, 1.75rem);
    font-weight: 550;
    line-height: 1.3;
    margin-bottom: 15px;
}

.placement-section p {
    font-size: clamp(0.9rem, 1.5vw, 1.0625rem);
    line-height: 1.75;
    font-weight: 400;
    margin-bottom: 0;
    margin-top: 10px;
}



.classrooms-section h2 {
    color: black;
    font-size: clamp(1.2rem, 2vw, 1.75rem);
    font-weight: 550;
    line-height: 1.3;
}

.classrooms-section p {
    font-size: clamp(0.9rem, 1.5vw, 1.0625rem);
    line-height: 1.75;
    font-weight: 400;
    margin-bottom: 0;
    margin-top: 20px;
}

.contact-cta-section {
    padding-bottom: 2rem;
}

.contact-cta-section h2 {
    font-size: clamp(1.2rem, 2vw, 1.75rem);
    font-weight: 550;
    text-decoration: underline;
    text-underline-offset: 6px;
    margin-bottom: 1.5rem;
}

.contact-cta-section p {
    font-size: clamp(0.9rem, 1.5vw, 1.0625rem);
    margin-bottom: 10px;
}

.contact-cta-section strong {
    color: #4a90e2;
}

.contact-email {
    color: #4a90e2;
}

/* ── FOOTER (duplicated here for pages that only load page1.css) ── */
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;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 60px;
}

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

.footer-col:last-child {
    margin-right: 0;
}

.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;
}

/* ===================================================================
   RESPONSIVE — TABLET (768px – 1024px)
   =================================================================== */
@media (max-width: 1024px) {

    .logo-img {
        height: 70px;
    }

    /* Expertise: reduce the text panel width */
    .expertise-text {
        flex: 0 0 50%;
        max-width: 50%;
        margin-top: 20px;
        padding: 1.5rem 1.5rem 1.5rem 5%;
    }

    /* Programmes: 2-column grid on tablet */
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 40px;
    }

    /* Footer */
    footer {
        padding: 50px 6% 24px;
    }

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

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

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

    .nav-links {
        display: none;
    }

    .logo-img {
        height: 60px;
    }

    /* Video banner — shorter on mobile */
    .slider-section {
        min-height: 100svh;
        max-height: 100svh;
    }

    /* Scroll indicator — center bottom on mobile */
    .scroll-indicator {
        right: 50%;
        transform: translateX(50%);
    }

    /* Stack all flex-rows */
    .flex-row,
    .flex-row.reverse {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* About / classrooms / placement images */
    .content-right img,
    .content-left img {
        max-height: 260px;
    }

    /* Expertise: stack vertically */
    .expertise-section-outer {
        flex-direction: column;
        padding: 2rem 0;
    }

    .expertise-text {
        flex: none;
        max-width: 100%;
        width: 100%;
        padding: 1.5rem 5%;
        margin-top: 0;
    }

    .expertise-image-wrap {
        width: 100%;
        justify-content: center;
    }

    .expertise-image-wrap img {
        max-height: 220px;
        width: 100%;
        object-fit: contain;
    }

    /* Programmes: 1-column grid */
    .cards-grid {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    /* Sections: tighten padding */
    section {
        padding: 2.5rem 0;
    }

    /* Footer */
    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 .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: 50px;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .contact-cta-section {
        padding: 0 0 1.5rem;
    }
}