/* =============================================================
   ABOUT US PAGE — Page-specific CSS
   ============================================================= */


/* ===================================================================
   SECTION 2: ABOUT NOBLE BRAINS ACADEMY
   =================================================================== */

.about-story {
    padding-block: var(--space-section);
    background: var(--color-surface);
}

/* Two-column grid: text 55% | visual 45% */
.about-story__inner {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
}

/* --- Text column ------------------------------------------------- */
.about-story__lead {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.75;
    color: var(--color-text);
    font-weight: 500;
    margin-block: 1.25rem 1rem;
}

.about-story__body {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    line-height: 1.85;
    color: var(--color-muted);
    margin-bottom: 0.9rem;
}

.about-story__body strong {
    color: var(--color-primary);
    font-weight: 700;
}

/* CAC registration badge */
.about-story__reg-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #e8edf8;
    color: var(--color-primary);
    border: 1px solid rgba(11, 36, 117, 0.15);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-block: 1.25rem 1.75rem;
}

.about-story__reg-badge svg {
    color: var(--color-secondary);
    flex-shrink: 0;
}

/* CTA buttons row */
.about-story__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

/* Ghost / outline secondary button */
.about-story__link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

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

/* Visual column — Proprietress Portrait */
.about-story__visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

/* Mature animated glowing border wrapper */
.about-story__img-wrap {
    position: relative;
    border-radius: var(--radius-lg, 18px);
    padding: 4px;
    background: linear-gradient(
        135deg,
        #0b2475 0%,
        #f4b91f 35%,
        #e61f2a 70%,
        #0b2475 100%
    );
    background-size: 300% 300%;
    animation: maturedBorderGlow 8s ease-in-out infinite;
    box-shadow:
        0 14px 40px rgba(11, 36, 117, 0.16),
        0 4px 18px rgba(244, 185, 31, 0.22);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-story__img-wrap:hover {
    transform: translateY(-4px);
    box-shadow:
        0 22px 50px rgba(11, 36, 117, 0.22),
        0 8px 26px rgba(244, 185, 31, 0.38);
}

.about-story__img-inner {
    position: relative;
    border-radius: calc(var(--radius-lg, 18px) - 3px);
    overflow: hidden;
    background: #ffffff;
}

.about-story__img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.about-story__img-wrap:hover .about-story__img {
    transform: scale(1.02);
}

@keyframes maturedBorderGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating stats card below the image */
.about-story__stats {
    background: var(--color-primary);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 8px 28px rgba(11, 36, 117, 0.25);
}

.about-story__stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
    padding-inline: 0.5rem;
}

.about-story__stat-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    color: #fff;
    line-height: 1;
}

.about-story__stat-num span {
    font-size: 0.65em;
    color: var(--color-highlight);
}

.about-story__stat-label {
    font-size: clamp(0.68rem, 1vw, 0.76rem);
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.35;
}

.about-story__stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.18);
    align-self: stretch;
    flex-shrink: 0;
    margin-block: 0.25rem;
}

/* --- Responsive ------------------------------------------------- */
@media (max-width: 1024px) {
    .about-story__inner {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .about-story__inner {
        grid-template-columns: 1fr;
    }

    .about-story__visual {
        order: -1; /* image above text on mobile */
    }

    .about-story__img {
        height: 280px;
    }

    .about-story__stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .about-story__stat {
        flex: 1 1 calc(50% - 1rem);
    }

    .about-story__stat-divider {
        display: none;
    }
}

@media (max-width: 420px) {
    .about-story__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .about-story__link-btn {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-story__img,
    .about-story__link-btn {
        transition: none !important;
    }
}


/* ===================================================================
   SECTION 3: MISSION & VISION
   =================================================================== */

.mv {
    position: relative;
    padding-block: var(--space-section);
    overflow: hidden;
}

/* Navy dotted-grid background */
.mv__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(230, 31, 42, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(244, 185, 31, 0.07) 0%, transparent 35%),
        linear-gradient(160deg, var(--color-primary-dark) 0%, #0e2d8a 50%, var(--color-primary-dark) 100%);
    z-index: 0;
}

/* Subtle dot pattern on top */
.mv__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

.mv__inner {
    position: relative;
    z-index: 1;
}

/* --- Section header -------------------------------------------- */
.mv__header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.mv__eyebrow {
    color: var(--color-highlight) !important;
}

.mv__heading {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #fff;
    margin: 0.5rem 0 0.75rem;
    line-height: 1.15;
}

.mv__accent-bar {
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-secondary);
    border-radius: 2px;
    margin-inline: auto;
}

/* --- Three-column panels layout -------------------------------- */
.mv__panels {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
}

/* --- Individual panel ------------------------------------------ */
.mv-panel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    backdrop-filter: blur(4px);
    height: 100%;
}

/* Panel icon circle */
.mv-panel__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
    color: #fff;
    transition: background 0.3s ease, transform 0.3s ease;
}

.mv-panel:hover .mv-panel__icon {
    background: rgba(244, 185, 31, 0.15);
    transform: rotate(-6deg) scale(1.08);
}

.mv-panel__icon svg {
    width: 36px;
    height: 36px;
}

.mv-panel__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #fff;
    margin: 0 0 0.75rem;
}

/* Gold accent rule under title */
.mv-panel__rule {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-highlight);
    border-radius: 2px;
    margin-bottom: 1.1rem;
}

.mv-panel__text {
    font-size: clamp(0.88rem, 1.3vw, 0.98rem);
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

/* Checklist */
.mv-panel__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mv-panel__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: clamp(0.82rem, 1.2vw, 0.9rem);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.5;
}

.mv-panel__list svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--color-highlight);
}

/* --- Centre image column --------------------------------------- */
.mv__centre-img {
    width: clamp(180px, 20vw, 280px);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-self: stretch;
}

.mv__centre-img img {
    width: 100%;
    flex: 1;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-md);
    border: 3px solid rgba(244, 185, 31, 0.4);
    min-height: 300px;
    display: block;
}

/* Quote badge below image */
.mv__centre-quote {
    background: var(--color-secondary);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    text-align: center;
}

.mv__centre-quote span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(0.72rem, 1.1vw, 0.82rem);
    color: #fff;
    font-style: italic;
    line-height: 1.5;
}

/* --- Responsive ----------------------------------------------- */
@media (max-width: 1024px) {
    .mv__panels {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .mv__centre-img {
        grid-column: 1 / -1;
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        order: -1;
    }

    .mv__centre-img img {
        width: clamp(180px, 30%, 260px);
        min-height: 220px;
        flex: 0 0 auto;
    }

    .mv__centre-quote {
        align-self: flex-end;
        flex: 1;
    }
}

@media (max-width: 640px) {
    .mv__panels {
        grid-template-columns: 1fr;
    }

    .mv__centre-img {
        flex-direction: column;
    }

    .mv__centre-img img {
        width: 100%;
        min-height: 200px;
    }

    .mv-panel__icon {
        width: 60px;
        height: 60px;
    }

    .mv-panel__icon svg {
        width: 30px;
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-story__img-wrap {
        animation: none !important;
        background: var(--color-primary);
    }
    .mv-panel__icon,
    .mv-panel:hover .mv-panel__icon {
        transition: none !important;
        transform: none !important;
    }
}
