/* =========================================================
   MathLogic.pk - Main Stylesheet
   ========================================================= */


/* =========================================================
   1. RESET & GLOBAL STYLES
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f9fc;
    color: #172033;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* =========================================================
   2. HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e5eaf2;
    box-shadow: 0 2px 12px rgba(20, 35, 60, 0.06);
}

.header-container {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #123b70;
}

.brand-tagline {
    margin-top: 3px;
    font-size: 0.68rem;
    color: #65738a;
    letter-spacing: 0.3px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link,
.nav-dropdown-button {
    border: none;
    background: transparent;
    color: #34435a;
    padding: 9px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-dropdown-button:hover,
.nav-link.active {
    color: #1264b4;
    background: #edf6ff;
}

.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    margin-left: 4px;
    font-size: 0.85rem;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #e3e9f2;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(20, 35, 60, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.dropdown-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 9px 11px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #3b4a60;
}

.dropdown-menu a:hover {
    background: #edf6ff;
    color: #1264b4;
}

.youtube-header-button {
    padding: 10px 16px;
    border-radius: 8px;
    background: #d9232e;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.2s ease;
}

.youtube-header-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(217, 35, 46, 0.22);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    padding: 9px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #19395f;
}


/* =========================================================
   3. GENERAL SECTION STYLES
   ========================================================= */

section {
    padding: 82px 0;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 9px;
    color: #1474c4;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.section-heading h2 {
    color: #142d4d;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1.2;
    margin-bottom: 15px;
}

.section-heading p {
    color: #66758a;
    font-size: 1rem;
}


/* =========================================================
   4. BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.button-primary {
    background: #1264b4;
    color: #ffffff;
}

.button-primary:hover {
    background: #0d518f;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(18, 100, 180, 0.2);
}

.button-secondary {
    background: #ffffff;
    color: #1264b4;
    border: 1px solid #cdddec;
}

.button-secondary:hover {
    background: #edf6ff;
    transform: translateY(-2px);
}

.button-youtube {
    background: #d9232e;
    color: #ffffff;
}

.button-youtube:hover {
    background: #b91d27;
    transform: translateY(-2px);
}


/* =========================================================
   5. HERO
   ========================================================= */

.hero-section {
    padding: 78px 0 75px;

    background:
        radial-gradient(
            circle at 86% 25%,
            rgba(55, 145, 220, 0.10),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #f2f9ff 0%,
            #ffffff 55%,
            #f8fbff 100%
        );

    overflow: hidden;
}


/* =========================================================
   HERO LAYOUT
   ========================================================= */

.hero-container {
    display: grid;

    align-items: center;
}

.hero-content {
    min-width: 0;

    max-width: 680px;
}


/* =========================================================
   HERO LABEL
   ========================================================= */

.hero-label {
    display: inline-block;

    margin-bottom: 15px;
    padding: 5px 10px;

    border-radius: 20px;

    background: #e1f2ff;

    color: #1264b4;

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 0.7px;

    text-transform: uppercase;
}


/* =========================================================
   HERO HEADING
   ========================================================= */

.hero-content h1 {
    margin-bottom: 22px;

    color: #102f52;

    font-size: clamp(2.5rem, 5vw, 4.25rem);

    line-height: 1.02;

    letter-spacing: -1.8px;
}

.hero-content h1 span {
    display: block;

    color: #1474c4;
}


/* =========================================================
   HERO DESCRIPTION
   ========================================================= */

.hero-description {
    max-width: 620px;

    margin-bottom: 28px;

    color: #5e7085;

    font-size: 1rem;

    line-height: 1.6;
}


/* =========================================================
   HERO BUTTON
   ========================================================= */

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 32px;
}


/* =========================================================
   LEARNING PATH CARDS
   ========================================================= */

.hero-highlights {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

    width: 100%;
}


/* =========================================================
   COMMON CARD
   ========================================================= */

.hero-highlight {
    position: relative;

    min-width: 0;

    min-height: 108px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 48px 12px 12px;

    box-sizing: border-box;

    overflow: hidden;

    border-radius: 13px;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}


/* =========================================================
   CLASS 11 CARD
   ========================================================= */

.hero-highlight-class11 {
    background: #f0f8ff;

    border: 1px solid #c6e2fa;

    box-shadow:
        0 5px 18px rgba(30, 115, 180, 0.05);
}

.hero-highlight-class11:hover {
    background: #e9f4ff;

    border-color: #83bff0;

    transform: translateY(-3px);

    box-shadow:
        0 12px 26px rgba(30, 115, 180, 0.13);
}


/* =========================================================
   BS MATHEMATICS CARD
   ========================================================= */

.hero-highlight-bs {
    background: #f7f4ff;

    border: 1px solid #ded6ff;

    box-shadow:
        0 5px 18px rgba(80, 65, 180, 0.045);
}

.hero-highlight-bs:hover {
    background: #f0ecff;

    border-color: #aaa0f5;

    transform: translateY(-3px);

    box-shadow:
        0 12px 26px rgba(80, 65, 180, 0.13);
}


/* =========================================================
   PPSC CARD
   ========================================================= */

.hero-highlight-ppsc {
    background: #fff7f7;

    border: 1px solid #f1d5d5;

    box-shadow:
        0 5px 18px rgba(190, 45, 60, 0.04);
}

.hero-highlight-ppsc:hover {
    background: #fff0f0;

    border-color: #edaaaa;

    transform: translateY(-3px);

    box-shadow:
        0 12px 26px rgba(190, 45, 60, 0.12);
}


/* =========================================================
   CLASS 11 BOOK
   ========================================================= */

.hero-highlight-book {
    width: 54px;

    height: 78px;

    flex: 0 0 54px;

    overflow: hidden;

    border-radius: 5px;

    background: #ffffff;

    box-shadow:
        0 4px 10px rgba(20, 55, 90, 0.14);

    transition:
        transform 0.25s ease;
}

.hero-highlight-book img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;
}

.hero-highlight-class11:hover .hero-highlight-book {
    transform: scale(1.04);
}


/* =========================================================
   CARD ICON
   ========================================================= */

.hero-highlight-icon {
    width: 52px;

    height: 52px;

    flex: 0 0 52px;

    display: grid;

    place-items: center;

    border-radius: 12px;

    background: #e2f0ff;

    color: #1264b4;

    font-size: 1.35rem;

    font-weight: 700;

    box-shadow:
        0 4px 10px rgba(30, 80, 120, 0.07);

    transition:
        transform 0.25s ease;
}

.hero-highlight-bs .hero-highlight-icon {
    background: #e2ddff;

    color: #5144d8;
}

.hero-highlight-ppsc .hero-highlight-icon {
    background: #ffe0e0;

    color: #cf2638;
}

.hero-highlight:hover .hero-highlight-icon {
    transform: scale(1.05);
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.hero-highlight-content {
    flex: 1 1 auto;

    min-width: 0;

    overflow: hidden;
}


/* ---------- Card Title ---------- */

.hero-highlight-content strong {
    display: block;

    margin-bottom: 5px;

    color: #173d66;

    font-size: clamp(0.70rem, 1vw, 0.87rem);

    font-weight: 700;

    line-height: 1.2;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* Keep Class 11 together */

.hero-highlight-class11
.hero-highlight-content strong {
    white-space: nowrap;
}


/* ---------- Card Subtitle ---------- */

.hero-highlight-content span {
    display: block;

    color: #6c7e93;

    font-size: clamp(0.58rem, 0.8vw, 0.68rem);

    line-height: 1.35;

    overflow-wrap: break-word;
}


/* =========================================================
   CHEVRON ARROW
   ========================================================= */

.hero-highlight-arrow {
    position: absolute;

    top: 50%;

    right: 13px;

    z-index: 3;

    width: 20px;

    height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    transform: translateY(-50%);

    color: #68717c;

    font-family: Arial, sans-serif;

    font-size: 2rem;

    font-weight: 300;

    line-height: 1;

    background: transparent;

    border: none;

    box-shadow: none;

    pointer-events: none;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}


/* ---------- Arrow Hover ---------- */

.hero-highlight-class11:hover
.hero-highlight-arrow {
    color: #1474c4;

    transform: translate(3px, -50%);
}

.hero-highlight-bs:hover
.hero-highlight-arrow {
    color: #5748dd;

    transform: translate(3px, -50%);
}

.hero-highlight-ppsc:hover
.hero-highlight-arrow {
    color: #d52b42;

    transform: translate(3px, -50%);
}


/* =========================================================
   HERO VISUAL
   ========================================================= */

.hero-visual {
    position: relative;

    min-height: 420px;

    display: flex;

    align-items: center;

    justify-content: center;

    transform: translateY(-65px);
}


/* =========================================================
   MAIN MATHEMATICS CARD
   ========================================================= */

.hero-main-card {
    position: relative;
    z-index: 2;

    box-sizing: border-box;

    padding: clamp(25px, 4vw, 40px)
             clamp(20px, 3vw, 30px);

    background: #ffffff;

    border: 1px solid #dce8f3;

    border-radius: 18px;

    text-align: center;

    box-shadow:
        0 22px 55px rgba(25, 65, 105, 0.12);
}


/* =========================================================
   SIGMA
   ========================================================= */

.hero-card-symbol {
    width: 76px;

    height: 76px;

    margin: 0 auto 18px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #e4f3ff;

    color: #1264b4;

    font-size: 2.45rem;
}


/* =========================================================
   MAIN CARD TEXT
   ========================================================= */

.hero-main-card h2 {
    margin-bottom: 10px;

    color: #153b62;

    font-size: 1.55rem;
}

.hero-main-card p {
    color: #6c7b8e;

    font-size: 0.9rem;

    line-height: 1.55;
}

.hero-main-card p strong {
    color: #1474c4;
}


/* =========================================================
   FLOATING EQUATIONS
   ========================================================= */

.math-card {
    position: absolute;

    z-index: 1;

    padding: 12px 17px;

    background: #ffffff;

    border: 1px solid #dce8f3;

    border-radius: 9px;

    color: #1c609b;

    font-size: 0.85rem;

    font-weight: 700;

    box-shadow:
        0 9px 23px rgba(20, 60, 100, 0.09);
}

.math-card-one {
    top: 42px;

    left: 2%;

    transform: rotate(-7deg);
}

.math-card-two {
    top: 15px;

    right: 5%;

    transform: rotate(7deg);
}

.math-card-three {
    right: 0;

    bottom: 50px;

    transform: rotate(-5deg);
}


/* =========================================================
   DOT GRID
   ========================================================= */

.hero-dot-grid {
    position: absolute;

    right: -18px;

    bottom: 8px;

    width: 105px;

    height: 75px;

    opacity: 0.42;

    background-image:
        radial-gradient(
            #8fc8f4 1.7px,
            transparent 1.7px
        );

    background-size: 18px 18px;

    pointer-events: none;
}


/* =========================================================
   RESPONSIVE — MEDIUM
   ========================================================= */

@media (max-width: 800px) {

    .hero-container {
        grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
        gap: 35px;
    }

    .hero-highlights {
        gap: 9px;
    }

    .hero-highlight {
        min-height: 100px;

        gap: 8px;

        padding: 10px 42px 10px 9px;
    }

    .hero-highlight-book {
        width: 46px;

        height: 66px;

        flex-basis: 46px;
    }

    .hero-highlight-icon {
        width: 43px;

        height: 43px;

        flex-basis: 43px;

        font-size: 1.15rem;
    }

    .hero-highlight-content strong {
        font-size: 0.72rem;
    }

    .hero-highlight-content span {
        font-size: 0.58rem;
    }

    .hero-highlight-arrow {
        right: 10px;

        font-size: 1.8rem;
    }
}


/* =========================================================
   RESPONSIVE — TABLET / SMALL
   ========================================================= */

@media (max-width: 900px) {

    .hero-container {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .hero-content {
        max-width: none;
    }

    .hero-highlights {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .hero-highlight {
        min-height: 96px;
    }

    .hero-highlight-content strong {
        font-size: 0.78rem;
    }

    .hero-highlight-content span {
        font-size: 0.62rem;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .hero-section {
        padding: 60px 0;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;

        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-highlights {
        grid-template-columns: 1fr;

        gap: 12px;

        text-align: left;
    }

    .hero-highlight {
        min-height: 82px;

        padding: 10px 48px 10px 12px;
    }

    .hero-highlight-book {
        width: 50px;

        height: 66px;

        flex-basis: 50px;
    }

    .hero-highlight-icon {
        width: 48px;

        height: 48px;

        flex-basis: 48px;
    }

    .hero-highlight-content strong {
        font-size: 0.9rem;
    }

    .hero-highlight-content span {
        font-size: 0.72rem;
    }

    .hero-highlight-arrow {
        right: 14px;

        font-size: 2rem;
    }

    .hero-visual {
        min-height: 340px;
    }

    .hero-dot-grid {
        right: 0;
    }
}


/* =========================================================
   6. CLASSES
   ========================================================= */

.classes-section {
    background: #ffffff;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.class-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e1e8f0;
    border-radius: 13px;
    box-shadow: 0 8px 25px rgba(25, 45, 70, 0.05);
    transition: 0.25s ease;
}

.class-card:hover {
    transform: translateY(-5px);
    border-color: #bcd8ef;
    box-shadow: 0 16px 32px rgba(25, 65, 100, 0.1);
}

.class-card-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 21px;
    border-radius: 12px;
    background: #e8f5ff;
    color: #1264b4;
    font-size: 1.25rem;
    font-weight: 800;
}

.class-level {
    color: #1474c4;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.class-card h3 {
    margin: 6px 0 10px;
    color: #173b60;
    font-size: 1.3rem;
}

.class-card p {
    margin-bottom: 22px;
    color: #6a7789;
    font-size: 0.9rem;
}

.class-card-content {
    flex: 1;
}

.class-card-link,
.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1264b4;
    font-size: 0.87rem;
    font-weight: 800;
}

.class-card-link span,
.resource-link span {
    transition: transform 0.2s ease;
}

.class-card-link:hover span,
.resource-link:hover span {
    transform: translateX(4px);
}


/* =========================================================
   7. YOUTUBE
   ========================================================= */

.youtube-section {
    background: #f5f8fc;
}

.youtube-content {
    display: grid;
    gap: 32px;
}

.youtube-intro {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e1e8f0;
    border-radius: 13px;
}

.youtube-icon {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #d9232e;
    color: #ffffff;
    font-size: 1.6rem;
}

.youtube-intro-text h3 {
    margin-bottom: 5px;
    color: #173b60;
    font-size: 1.3rem;
}

.youtube-intro-text p {
    margin-bottom: 14px;
    color: #6b788a;
    font-size: 0.9rem;
}

.youtube-videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.video-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e1e8f0;
    border-radius: 12px;
}

.video-placeholder {
    height: 190px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #dceeff, #eef6ff);
}

.play-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    padding-left: 3px;
    border-radius: 50%;
    background: #d9232e;
    color: #ffffff;
    font-size: 1.2rem;
}

.video-card-content {
    padding: 19px;
}

.video-category {
    color: #1474c4;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.video-card h3 {
    margin: 6px 0 7px;
    color: #173b60;
    font-size: 1.05rem;
}

.video-card p {
    color: #718096;
    font-size: 0.84rem;
}


/* =========================================================
   8. RESOURCES
   ========================================================= */

.resources-section {
    background: #ffffff;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.resource-card {
    display: flex;
    gap: 17px;
    padding: 23px;
    background: #ffffff;
    border: 1px solid #e1e8f0;
    border-radius: 12px;
    transition: 0.25s ease;
}

.resource-card:hover {
    transform: translateY(-3px);
    border-color: #bfd9ef;
    box-shadow: 0 12px 25px rgba(25, 65, 100, 0.08);
}

.resource-icon {
    width: 47px;
    height: 47px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #e9f5ff;
    color: #1264b4;
    font-size: 1.25rem;
}

.resource-type {
    color: #1474c4;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.resource-content h3 {
    margin: 3px 0 7px;
    color: #173b60;
    font-size: 1.05rem;
}

.resource-content p {
    margin-bottom: 13px;
    color: #6c7889;
    font-size: 0.82rem;
}


/* =========================================================
   9. ADVERTISEMENTS
   ========================================================= */

.advertisements-section {
    background: #f5f8fc;
}

.ad-container {
    margin: 0 auto 35px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
}

.ad-label {
    display: block;
    margin-bottom: 7px;
    color: #98a3b2;
    font-size: 0.65rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-placeholder {
    min-height: 120px;
    display: grid;
    place-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 7px;
    color: #a0aab7;
    font-size: 0.8rem;
}

.local-ad-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
    margin-bottom: 35px;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #dce7f1;
    border-radius: 14px;
}

.local-ad-label {
    color: #1474c4;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.local-ad-content h3 {
    margin: 8px 0 10px;
    color: #173b60;
    font-size: 1.5rem;
}

.local-ad-content p {
    max-width: 540px;
    margin-bottom: 20px;
    color: #6b788a;
    font-size: 0.9rem;
}

.local-ad-placeholder {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    border: 2px dashed #cbd8e5;
    border-radius: 10px;
    color: #8996a6;
    text-align: center;
}

.local-ad-placeholder span {
    font-weight: 700;
}

.local-ad-placeholder small {
    margin-top: 4px;
    font-size: 0.72rem;
}


/* =========================================================
   10. ABOUT
   ========================================================= */

.about-section {
    background: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 65px;
}

.about-content h2 {
    margin-bottom: 20px;
    color: #142d4d;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1.2;
}

.about-content p {
    margin-bottom: 15px;
    color: #657387;
    font-size: 0.95rem;
}

.about-content .button {
    margin-top: 7px;
}

.about-highlights {
    display: grid;
    gap: 15px;
}

.about-highlight-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f7fbff;
    border: 1px solid #dce9f4;
    border-radius: 11px;
}

.about-highlight-icon {
    width: 47px;
    height: 47px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #e1f2ff;
    color: #1264b4;
    font-size: 1.25rem;
    font-weight: 800;
}

.about-highlight-card h3 {
    margin-bottom: 4px;
    color: #173b60;
    font-size: 1rem;
}

.about-highlight-card p {
    color: #6d7a8c;
    font-size: 0.82rem;
}


/* =========================================================
   11. FOOTER
   ========================================================= */

.site-footer {
    padding: 65px 0 25px;
    background: #102b48;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
    gap: 45px;
}

.footer-logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 10px;
}

.footer-brand h3 {
    margin-bottom: 9px;
    font-size: 1.3rem;
}

.footer-brand p {
    max-width: 370px;
    color: #b9c8d8;
    font-size: 0.84rem;
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 9px;
}

.footer-column a {
    color: #b9c8d8;
    font-size: 0.82rem;
    transition: 0.2s ease;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 45px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    color: #9fb0c3;
    font-size: 0.74rem;
}


/* =========================================================
   12. TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .header-container {
        gap: 15px;
    }

    .main-navigation {
        gap: 0px;
    }

    .nav-link,
    .nav-dropdown-button {
        padding: 8px;
        font-size: 0.84rem;
    }

    .youtube-header-button {
        padding: 9px 12px;
        font-size: 0.8rem;
    }

    .hero-container {
        grid-template-columns: 1fr 0.8fr;
        gap: 35px;
    }

    .hero-content h1 {
        font-size: clamp(2.3rem, 5vw, 3.5rem);
    }

    .classes-grid,
    .youtube-videos,
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   13. MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 780px) {

    .header-container {
        min-height: 68px;
    }

    .brand-name {
        font-size: 1.15rem;
    }

    .brand-tagline {
        font-size: 0.6rem;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .menu-toggle {
        display: block;
    }

    .youtube-header-button {
        display: none;
    }

    .main-navigation {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 4%;
        background: #ffffff;
        border-bottom: 1px solid #e1e8f0;
        box-shadow: 0 10px 25px rgba(20, 35, 60, 0.1);
    }

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

    .nav-link,
    .nav-dropdown-button {
        width: 100%;
        padding: 12px;
        text-align: left;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        display: none;
        margin: 2px 0 5px;
        padding: 5px;
        border: none;
        box-shadow: none;
        transform: none;
    }

    .nav-dropdown:hover .dropdown-menu {
        display: none;
    }

    .nav-dropdown.dropdown-open .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    section {
        padding: 65px 0;
    }

    .hero-section {
        padding: 65px 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        max-width: none;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-highlights {
        text-align: left;
    }

    .hero-visual {
        min-height: 340px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .local-ad-section {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   CLASS 11 PAGE
   ========================================================= */

/* ---------- Page Hero ---------- */



.section-label {
    margin-bottom: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}




/* ---------- Advertisement ---------- */

.ad-section {
    padding: 20px 0;
}

.ad-placeholder {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 8px;
}

.ad-placeholder span {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* ---------- Temperory Removed Section ---------- */

#classes {
    display: none;
}

#resources {
    display: none;
}


/* =====================================================
   NEW YOUTUBE VIDEO LAYOUT
   ===================================================== */

.youtube-video-layout {

    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 25px;
    margin-top: 40px;

}


.youtube-video-card {

    background: #ffffff;
    border: 1px solid #dce6f2;
    border-radius: 14px;
    overflow: hidden;

}



.youtube-frame {

    width: 100%;
    aspect-ratio: 16 / 9;
    background: #dcecff;

}



.short-frame {

    aspect-ratio: 9 / 16;

}



.video-placeholder {

    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

}



.play-icon {

    width: 55px;
    height: 55px;

    background: #e51d2a;
    color: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;

}



.youtube-card-content {

    padding: 20px;

}



.youtube-card-content h3 {

    color: #12355b;
    margin: 10px 0;

}



.youtube-card-content p {

    color: #64748b;

}



/* Mobile */

@media(max-width:768px){

    .youtube-video-layout{

        grid-template-columns:1fr;

    }


    .short-frame{

        aspect-ratio:16 / 9;

    }

}


/* Latest Video */

.latest-video .youtube-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
}


.latest-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}



          /* Latest Short */

.latest-short {
    max-width: 350px;
}


.latest-short .youtube-frame {
    width: 100%;
    aspect-ratio: 9 / 16;
}


.latest-short iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* =========================================================
   HERO — BALANCED DESKTOP LAYOUT
   ========================================================= */

.hero-container {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 35px;
}


/* Give the right visual a smaller working area */

.hero-visual {
    width: 100%;
    min-width: 0;
}


/* Mathematics card must shrink with its column */

.hero-main-card {
    width: min(330px, 75%);
    max-width: 330px;
}


/* Keep learning cards readable */

.hero-highlight-content {
    min-width: 0;
    flex: 1 1 0;
}


/* =========================================================
   MEDIUM SCREENS
   ========================================================= */

@media (max-width: 1100px) {

    .hero-container {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
        gap: 25px;
    }

    .hero-main-card {
        width: min(290px, 75%);
        max-width: 290px;
    }

    .hero-highlight-content strong {
        font-size: 0.72rem;
    }

    .hero-highlight-content span {
        font-size: 0.58rem;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-main-card {
        width: min(330px, 80%);
        max-width: 330px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .hero-highlight-content strong {
        font-size: 0.9rem;
    }

    .hero-highlight-content span {
        font-size: 0.72rem;
    }
}


/* =========================
   PPSC NOTES CARD
========================== */

.ppsc-notes-card {
    display: flex;
    align-items: center;
    gap: 28px;

    margin: 0 0 36px;
    padding: 28px 32px;

    background: #ffffff;
    border: 1px solid #dbe5f0;
    border-radius: 18px;

    box-shadow: 0 8px 24px rgba(20, 60, 100, 0.06);
}


.ppsc-notes-icon {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #e8f3ff;
    border-radius: 16px;

    font-size: 2.4rem;
}


.ppsc-notes-content {
    flex: 1;
    min-width: 0;
}


.ppsc-notes-content .section-label {
    display: block;

    margin-bottom: 6px;

    color: #1672c8;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
}


.ppsc-notes-content h2 {
    margin: 0 0 8px;

    color: #102f56;
    font-size: 1.8rem;
}


.ppsc-notes-content p {
    margin: 0 0 18px;

    color: #58708c;
    font-size: 1rem;
    line-height: 1.6;
}


.ppsc-notes-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 12px 20px;

    background: #176fc1;
    color: #ffffff;

    border: 1px solid #176fc1;
    border-radius: 10px;

    font-weight: 700;
    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.ppsc-notes-button span {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.2s ease;
}


.ppsc-notes-button:hover {
    background: #125da3;
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow: 0 6px 16px rgba(23, 111, 193, 0.2);
}


.ppsc-notes-button:hover span {
    transform: translateX(4px);
}


/* =========================
   MOBILE
========================== */

@media (max-width: 700px) {

    .ppsc-notes-card {
        align-items: flex-start;
        gap: 18px;

        padding: 22px;
    }

    .ppsc-notes-icon {
        width: 58px;
        height: 58px;

        font-size: 2rem;
    }

    .ppsc-notes-content h2 {
        font-size: 1.45rem;
    }

}