﻿
/* ==========================================
   THE GLORIOUS ACADEMY - HOME PAGE
   File: Content/Home.css
   ========================================== */

:root {
    --home-navy: #102b4e;
    --home-dark: #091d36;
    --home-gold: #c59a4a;
    --home-gold-hover: #ad8239;
    --home-cream: #f7f5f0;
    --home-white: #ffffff;
    --home-text: #26364a;
    --home-muted: #687789;
    --home-border: #e6eaf0;
    --home-radius: 16px;
    --home-shadow: 0 14px 35px rgba(16, 43, 78, .09);
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: 82px 0;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--home-gold-hover);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading h2,
.about-content h2,
.why-content h2 {
    margin: 0 0 18px;
    color: var(--home-navy);
    font-size: clamp(29px, 3.3vw, 43px);
    font-weight: 800;
    line-height: 1.2;
}

.section-heading p,
.about-content > p,
.why-content > p {
    color: var(--home-muted);
    font-size: 16px;
    line-height: 1.85;
}

.section-heading p {
    max-width: 650px;
    margin: 0 auto;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background .25s ease, color .25s ease,
                transform .25s ease, border-color .25s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-gold {
    background: var(--home-gold);
    border-color: var(--home-gold);
    color: var(--home-dark);
}

.btn-gold:hover {
    background: var(--home-gold-hover);
    border-color: var(--home-gold-hover);
    color: var(--home-white);
}

.btn-primary {
    background: var(--home-navy);
    border-color: var(--home-navy);
    color: var(--home-white);
}

.btn-primary:hover {
    background: var(--home-dark);
    border-color: var(--home-dark);
    color: var(--home-white);
}

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, .8);
    color: var(--home-white);
}

.btn-outline-light:hover {
    background: var(--home-white);
    color: var(--home-navy);
}

/* HERO */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 590px;
    overflow: hidden;
    background-color: var(--home-dark);
    background-image: url("../Assets/school-building.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    isolation: isolate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(5, 22, 43, .94) 0%,
        rgba(9, 29, 54, .83) 48%,
        rgba(9, 29, 54, .30) 100%
    );
}

.hero-container {
    padding-top: 70px;
    padding-bottom: 70px;
}

.hero-content {
    max-width: 720px;
    color: var(--home-white);
}

.hero-tag {
    display: inline-block;
    margin-bottom: 23px;
    padding: 10px 15px;
    border: 1px solid rgba(197, 154, 74, .7);
    border-radius: 3px;
    background: rgba(197, 154, 74, .12);
    color: #f0d39a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-content h1 {
    max-width: 720px;
    margin: 0 0 22px;
    color: var(--home-white);
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -.8px;
}

.hero-content h1 span {
    display: block;
    margin-top: 8px;
    color: #e5bd70;
}

.hero-content > p {
    max-width: 600px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .87);
    font-size: 17px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .22);
}

.hero-highlight {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 145px;
    padding: 0 23px;
    border-right: 1px solid rgba(255, 255, 255, .22);
}

.hero-highlight:first-child {
    padding-left: 0;
}

.hero-highlight:last-child {
    border-right: 0;
}

.hero-highlight strong {
    color: var(--home-white);
    font-size: 16px;
}

.hero-highlight span {
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
}

/* QUICK FACTS */

.quick-facts {
    position: relative;
    z-index: 2;
    background: var(--home-white);
    border-bottom: 1px solid var(--home-border);
}

.quick-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-fact {
    display: flex;
    align-items: center;
    gap: 17px;
    min-height: 112px;
    padding: 23px 25px;
    border-right: 1px solid var(--home-border);
    transition: background .25s ease;
}

.quick-fact:first-child {
    border-left: 1px solid var(--home-border);
}

.quick-fact:hover {
    background: var(--home-cream);
}

.quick-fact-icon {
    display: flex;
    flex: 0 0 47px;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    background: rgba(197, 154, 74, .15);
    color: var(--home-gold-hover);
    font-size: 15px;
    font-weight: 800;
}

.quick-fact h3 {
    margin: 0 0 6px;
    color: var(--home-navy);
    font-size: 15px;
    font-weight: 800;
}

.quick-fact p {
    margin: 0;
    color: var(--home-muted);
    font-size: 13px;
}

/* ABOUT */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 65px;
}

.about-visual {
    min-width: 0;
}

.about-image-frame {
    position: relative;
    overflow: hidden;
    min-height: 370px;
    border-radius: var(--home-radius);
    background: #e8edf2;
    box-shadow: var(--home-shadow);
}

.about-image-frame img {
    display: block;
    width: 100%;
    height: 410px;
    object-fit: cover;
    object-position: center;
}

.about-image-caption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    color: var(--home-navy);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.caption-line {
    display: inline-block;
    width: 45px;
    height: 3px;
    background: var(--home-gold);
}

.about-content h2 span,
.why-content h2 span {
    display: block;
    color: var(--home-gold-hover);
}

.about-content > p {
    margin: 0 0 16px;
}

.about-points {
    display: grid;
    gap: 14px;
    margin: 25px 0 30px;
}

.about-point {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--home-text);
    font-size: 14px;
    font-weight: 650;
}

.point-check {
    display: inline-flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(197, 154, 74, .18);
    color: var(--home-gold-hover);
    font-weight: 900;
}

/* MOTTO */

.motto-band {
    padding: 47px 0;
    background: var(--home-navy);
    color: var(--home-white);
}

.motto-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.motto-label {
    color: #e5bd70;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.motto-inner h2 {
    margin: 10px 0;
    color: var(--home-white);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
}

.motto-inner p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    line-height: 1.7;
}

/* ACADEMICS */

.academics-section {
    background: var(--home-cream);
}

.academics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.academic-card {
    position: relative;
    overflow: hidden;
    padding: 34px 28px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: var(--home-white);
    box-shadow: 0 5px 20px rgba(16, 43, 78, .035);
    transition: transform .25s ease, box-shadow .25s ease;
}

.academic-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--home-shadow);
}

.academic-number {
    position: absolute;
    top: 20px;
    right: 23px;
    color: #e8ebef;
    font-size: 37px;
    font-weight: 900;
}

.academic-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 25px;
    border-radius: 12px;
    background: rgba(197, 154, 74, .15);
    color: var(--home-gold-hover);
    font-size: 27px;
}

.academic-card h3 {
    margin: 0 0 13px;
    color: var(--home-navy);
    font-size: 21px;
    font-weight: 800;
}

.academic-card p {
    margin: 0 0 22px;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.8;
}

.academic-card a,
.facility-card > span {
    color: var(--home-gold-hover);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.academic-card a:hover,
.facility-card:hover > span {
    color: var(--home-navy);
}

/* WHY CHOOSE US */

.why-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: stretch;
    gap: 55px;
}

.why-content h2 {
    margin-bottom: 18px;
}

.why-content > p {
    margin-bottom: 28px;
}

.why-list {
    display: grid;
    gap: 23px;
    margin-bottom: 30px;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.why-icon {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--home-navy);
    color: var(--home-white);
    font-weight: 900;
}

.why-item h3 {
    margin: 2px 0 7px;
    color: var(--home-navy);
    font-size: 17px;
    font-weight: 800;
}

.why-item p {
    margin: 0;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.75;
}

.why-visual {
    display: flex;
    align-items: stretch;
    min-height: 400px;
    padding: 28px;
    border-radius: var(--home-radius);
    background: linear-gradient(145deg, var(--home-navy), var(--home-dark));
}

.why-visual-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
}

.why-decoration {
    height: 55px;
    color: #e5bd70;
    font-family: Georgia, serif;
    font-size: 85px;
    line-height: 1;
}

.why-visual-inner h3 {
    margin: 24px 0 15px;
    color: var(--home-white);
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 800;
    line-height: 1.3;
}

.why-visual-inner p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
    line-height: 1.85;
}

.why-bottom-line {
    width: 55px;
    height: 4px;
    margin-top: 28px;
    background: var(--home-gold);
}

/* FACILITIES */

.facilities-section {
    background: var(--home-cream);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.facility-card {
    display: block;
    padding: 33px 28px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: var(--home-white);
    box-shadow: 0 5px 20px rgba(16, 43, 78, .035);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.facility-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--home-shadow);
    text-decoration: none;
}

.facility-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 23px;
    border-radius: 12px;
    background: var(--home-navy);
    color: var(--home-white);
    font-size: 26px;
}

.facility-card h3 {
    margin: 0 0 12px;
    color: var(--home-navy);
    font-size: 20px;
    font-weight: 800;
}

.facility-card p {
    margin: 0 0 20px;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* ADMISSION CTA */

.admission-cta {
    position: relative;
    overflow: hidden;
    padding: 65px 0;
    background: var(--home-navy);
}

.admission-cta::before,
.admission-cta::after {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(197, 154, 74, .25);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.admission-cta::before {
    top: -150px;
    left: -70px;
}

.admission-cta::after {
    right: -100px;
    bottom: -170px;
}

.admission-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.admission-cta-content {
    max-width: 650px;
}

.admission-cta .section-eyebrow {
    color: #e5bd70;
}

.admission-cta h2 {
    margin: 0 0 15px;
    color: var(--home-white);
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    line-height: 1.2;
}

.admission-cta p {
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
    line-height: 1.85;
}

.admission-cta-actions {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    gap: 12px;
}

/* CONTACT */

.home-contact-section {
    background: var(--home-white);
}

.home-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 23px;
}

.home-contact-card {
    padding: 32px 23px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    background: var(--home-white);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}

.home-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--home-shadow);
}

.contact-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(197, 154, 74, .16);
    color: var(--home-gold-hover);
    font-size: 25px;
}

.home-contact-card h3 {
    margin: 0 0 14px;
    color: var(--home-navy);
    font-size: 19px;
    font-weight: 800;
}

.home-contact-card p {
    margin: 7px 0;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.home-contact-card a {
    color: var(--home-navy);
    font-weight: 700;
    text-decoration: none;
}

.home-contact-card a:hover {
    color: var(--home-gold-hover);
}

.contact-bottom-action {
    margin-top: 32px;
    text-align: center;
}

/* REVEAL ANIMATION */

.academic-card,
.facility-card,
.home-contact-card,
.quick-fact {
    animation: homeFadeUp .6s ease both;
}

@keyframes homeFadeUp {
    from {
        opacity: .65;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.academic-card.is-visible,
.facility-card.is-visible,
.home-contact-card.is-visible,
.quick-fact.is-visible {
    opacity: 1;
}

/* TABLET */

@media (max-width: 900px) {
    .section {
        padding: 65px 0;
    }

    .hero {
        min-height: 530px;
    }

    .about-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .about-image-frame img {
        height: 360px;
    }

    .academics-grid,
    .facilities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .academic-card:last-child,
    .facility-card:last-child {
        grid-column: 1 / -1;
    }

    .why-visual {
        min-height: 320px;
    }

    .admission-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .admission-cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .quick-fact {
        padding: 20px 14px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .container {
        width: calc(100% - 30px);
    }

    .section {
        padding: 48px 0;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .section-heading h2,
    .about-content h2,
    .why-content h2 {
        font-size: 29px;
    }

    .section-heading p,
    .about-content > p,
    .why-content > p {
        font-size: 14px;
        line-height: 1.8;
    }

    .hero {
        min-height: 560px;
        background-position: 60% center;
    }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(5, 22, 43, .94),
            rgba(9, 29, 54, .78)
        );
    }

    .hero-container {
        padding-top: 55px;
        padding-bottom: 48px;
    }

    .hero-tag {
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    .hero-content h1 {
        font-size: clamp(34px, 9vw, 45px);
        letter-spacing: -.4px;
    }

    .hero-content > p {
        font-size: 14px;
        line-height: 1.8;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-highlights {
        gap: 16px 0;
        margin-top: 30px;
    }

    .hero-highlight {
        min-width: 50%;
        padding: 0 12px;
        border-right: 0;
    }

    .hero-highlight:first-child {
        padding-left: 0;
    }

    .hero-highlight strong {
        font-size: 14px;
    }

    .quick-facts-grid {
        grid-template-columns: 1fr;
    }

    .quick-fact,
    .quick-fact:first-child {
        min-height: 85px;
        padding: 16px 5px;
        border-right: 0;
        border-left: 0;
        border-bottom: 1px solid var(--home-border);
    }

    .about-grid,
    .why-grid {
        gap: 30px;
    }

    .about-image-frame {
        min-height: 230px;
    }

    .about-image-frame img {
        height: 260px;
    }

    .motto-band {
        padding: 38px 0;
    }

    .motto-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .motto-inner h2 {
        font-size: 27px;
    }

    .academics-grid,
    .facilities-grid,
    .home-contact-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .academic-card:last-child,
    .facility-card:last-child {
        grid-column: auto;
    }

    .academic-card,
    .facility-card {
        padding: 27px 23px;
    }

    .why-visual {
        min-height: 300px;
        padding: 15px;
    }

    .why-visual-inner {
        padding: 25px;
    }

    .why-visual-inner h3 {
        font-size: 27px;
    }

    .admission-cta {
        padding: 48px 0;
    }

    .admission-cta-inner {
        gap: 25px;
    }

    .admission-cta-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .admission-cta-actions .btn {
        width: 100%;
    }

    .home-contact-card {
        padding: 27px 20px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .academic-card,
    .facility-card,
    .home-contact-card,
    .quick-fact,
    .btn {
        animation: none;
        transition: none;
    }
}



/* ==========================================
   THE GLORIOUS ACADEMY
   NEW PREMIUM HOME PAGE THEME
   Add at the VERY END of Content/Home.css
   ========================================== */

:root {
    --home-navy: #102b4e;
    --home-dark: #091d36;
    --home-gold: #c59a4a;
    --home-gold-hover: #ad8239;
    --home-cream: #f4efe5;
    --home-white: #ffffff;
    --home-text: #26364a;
    --home-muted: #596b80;
    --home-border: #d9dfE8;
}

/* PAGE BACKGROUND */

body {
    background: #f4efe5;
}

#MainContent {
    background: #f4efe5;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

/* HERO SECTION */

.hero {
    min-height: 620px;
    background-color: #091d36;
    background-position: center;
    background-size: cover;
}

.hero-overlay {
    background: linear-gradient(
        90deg,
        rgba(5, 22, 43, .97) 0%,
        rgba(9, 29, 54, .88) 48%,
        rgba(9, 29, 54, .42) 100%
    );
}

.hero-tag {
    background: rgba(197, 154, 74, .17);
    border-color: #c59a4a;
    color: #f4d99f;
}

.hero-content h1 {
    color: #ffffff;
}

.hero-content h1 span {
    color: #e5bd70;
}

.hero-content > p {
    color: #e2e8f0;
}

.hero-highlight strong {
    color: #f4d99f;
}

/* QUICK FACTS */

.quick-facts {
    background: #e9e1d2;
    border-bottom: 2px solid #c59a4a;
}

.quick-fact {
    background: #e9e1d2;
    border-color: #d5c9b5;
}

.quick-fact:hover {
    background: #ded1bc;
}

.quick-fact-icon {
    background: #102b4e;
    color: #f0c875;
}

.quick-fact h3 {
    color: #102b4e;
}

.quick-fact p {
    color: #526176;
}

/* ABOUT SECTION */

.section.about-section {
    background: #f8f5ee;
}

.about-image-frame {
    border: 5px solid #ffffff;
    box-shadow: 0 15px 38px rgba(16, 43, 78, .16);
}

.about-image-caption {
    color: #102b4e;
}

.about-content h2,
.about-content h2 span {
    color: #102b4e;
}

.about-content h2 span {
    color: #ad8239;
}

.about-point {
    padding: 12px 15px;
    border-radius: 8px;
    background: #ebe5d9;
}

.point-check {
    background: #102b4e;
    color: #f0c875;
}

/* MOTTO BAND */

.motto-band {
    background: linear-gradient(120deg, #091d36, #173e68);
    border-top: 4px solid #c59a4a;
    border-bottom: 4px solid #c59a4a;
}

.motto-label {
    color: #f0c875;
}

.motto-inner h2 {
    color: #ffffff;
}

.motto-inner p {
    color: #e1e8f0;
}

/* ACADEMICS BACKGROUND */

.academics-section {
    background: linear-gradient(180deg, #e9eef5 0%, #f4efe5 100%);
}

.section-heading h2 {
    color: #102b4e;
}

.section-eyebrow {
    color: #93681f;
}

/* ACADEMIC CARDS */

.academic-card {
    background: linear-gradient(145deg, #ffffff, #edf2f8);
    border: 1px solid #c8d3e0;
    border-bottom: 4px solid #c59a4a;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(16, 43, 78, .09);
}

.academic-card:hover {
    background: #ffffff;
    border-bottom-color: #102b4e;
    box-shadow: 0 16px 32px rgba(16, 43, 78, .16);
}

.academic-number {
    color: #dce4ee;
}

.academic-icon {
    background: #102b4e;
    color: #f0c875;
    border-radius: 12px;
}

.academic-card h3 {
    color: #102b4e;
}

.academic-card p {
    color: #596b80;
}

.academic-card a {
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 2px solid #c59a4a;
    color: #93681f;
}

/* WHY CHOOSE US */

.why-section {
    background: #f8f5ee;
}

.why-content h2 {
    color: #102b4e;
}

.why-content h2 span {
    color: #ad8239;
}

.why-item {
    padding: 15px;
    border-radius: 10px;
    background: #ebe5d9;
    border-left: 3px solid #c59a4a;
}

.why-icon {
    background: #102b4e;
    color: #f0c875;
    box-shadow: 0 4px 10px rgba(16, 43, 78, .15);
}

.why-item h3 {
    color: #102b4e;
}

.why-item p {
    color: #596b80;
}

.why-visual {
    background: linear-gradient(145deg, #102b4e, #06172b);
    border: 1px solid #c59a4a;
    box-shadow: 0 15px 35px rgba(16, 43, 78, .17);
}

.why-visual-inner {
    border-color: rgba(229, 189, 112, .55);
}

.why-decoration {
    color: #e5bd70;
}

/* FACILITIES BACKGROUND */

.facilities-section {
    background: linear-gradient(180deg, #f0e8d9, #e4eaf2);
}

/* FACILITY CARDS */

.facility-card {
    background: linear-gradient(145deg, #ffffff, #eaf0f7);
    border: 1px solid #c7d2e0;
    border-bottom: 4px solid #c59a4a;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(16, 43, 78, .09);
}

.facility-card:hover {
    background: #ffffff;
    border-bottom-color: #102b4e;
    box-shadow: 0 15px 30px rgba(16, 43, 78, .16);
}

.facility-icon {
    background: #102b4e;
    color: #f0c875;
    border: 1px solid #c59a4a;
}

.facility-card h3 {
    color: #102b4e;
}

.facility-card p {
    color: #596b80;
}

.facility-card > span {
    color: #93681f;
}

/* ADMISSION CTA */

.admission-cta {
    background: linear-gradient(120deg, #091d36, #173e68);
    border-top: 4px solid #c59a4a;
}

.admission-cta .section-eyebrow {
    color: #f0c875;
}

.admission-cta h2 {
    color: #ffffff;
}

.admission-cta p {
    color: #e1e8f0;
}

.admission-cta .btn-gold {
    background: #c59a4a;
    color: #091d36;
    border-color: #c59a4a;
}

/* CONTACT BACKGROUND */

.home-contact-section {
    background: linear-gradient(180deg, #e7edf5, #f8f5ee);
}

/* CONTACT CARDS */

.home-contact-card {
    background: linear-gradient(145deg, #ffffff, #e9eef5);
    border: 1px solid #c7d2e0;
    border-top: 4px solid #c59a4a;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(16, 43, 78, .08);
}

.home-contact-card:hover {
    background: #ffffff;
    border-top-color: #102b4e;
    box-shadow: 0 15px 30px rgba(16, 43, 78, .15);
}

.contact-card-icon {
    background: #102b4e;
    color: #f0c875;
}

.home-contact-card h3 {
    color: #102b4e;
}

.home-contact-card p {
    color: #596b80;
}

.home-contact-card a {
    color: #102b4e;
}

.home-contact-card a:hover {
    color: #93681f;
}

/* BUTTONS */

.btn-gold {
    background: #c59a4a;
    border-color: #c59a4a;
    color: #091d36;
}

.btn-gold:hover {
    background: #ad8239;
    border-color: #ad8239;
    color: #ffffff;
}

.btn-primary {
    background: #102b4e;
    border-color: #102b4e;
    color: #ffffff;
}

/* RESPONSIVE FIXES */

@media (max-width: 900px) {
    .hero {
        min-height: 530px;
    }

    .academic-card:last-child,
    .facility-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 560px;
    }

    .quick-facts-grid,
    .academics-grid,
    .facilities-grid,
    .home-contact-grid {
        grid-template-columns: 1fr;
    }

    .academic-card:last-child,
    .facility-card:last-child {
        grid-column: auto;
    }

    .academic-card,
    .facility-card,
    .home-contact-card {
        padding: 25px 21px;
    }
}



/* FIX: SCHOOL UPDATES CARDS */

.school-updates-section {
    display: block;
    padding: 75px 0;
    background: #e8edf5 !important;
}

.school-updates-section .section-heading {
    margin: 0 auto 40px;
    text-align: center;
}

.school-updates-section .section-heading h2 {
    color: #102b4e !important;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.25;
    margin: 0 0 16px;
}

.school-updates-section .section-heading p {
    color: #526176 !important;
    line-height: 1.8;
    margin: 0 auto;
}

/* THREE-COLUMN LAYOUT */

.school-updates-section .school-updates-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    align-items: stretch;
}

/* COLOURED CARD BACKGROUNDS */

.school-updates-section .school-update-card {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    min-width: 0;
    min-height: 340px;
    padding: 30px 26px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #dce7f4 100%) !important;
    border: 1px solid #c3d2e3;
    border-bottom: 5px solid #c59a4a;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(16, 43, 78, 0.12);
    text-align: left;
    transition: transform .25s ease, box-shadow .25s ease;
}

.school-updates-section .school-update-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(16, 43, 78, 0.18);
}

/* ICON */

.school-updates-section .school-update-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    margin: 0 0 24px;
    padding: 0;
    background: #102b4e !important;
    color: #f0c875 !important;
    border-radius: 13px;
    font-size: 28px;
    line-height: 1;
}

/* NUMBER */

.school-updates-section .school-update-number {
    position: absolute;
    top: 22px;
    right: 22px;
    color: #bdcbdc !important;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

/* CARD HEADING */

.school-updates-section .school-update-card h3 {
    display: block;
    margin: 0 0 14px;
    padding: 0;
    color: #102b4e !important;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.4;
}

/* CARD DESCRIPTION */

.school-updates-section .school-update-card p {
    display: block;
    margin: 0 0 24px;
    padding: 0;
    color: #465a72 !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.85;
}

/* CARD LINK */

.school-updates-section .school-update-card a {
    display: inline-block;
    margin-top: auto;
    padding: 10px 0 5px;
    color: #8b641f !important;
    background: transparent !important;
    border: 0;
    border-bottom: 2px solid #c59a4a;
    border-radius: 0;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
    text-decoration: none !important;
}

.school-updates-section .school-update-card a:hover {
    color: #102b4e !important;
    border-bottom-color: #102b4e;
}

/* TABLET */

@media (max-width: 900px) {
    .school-updates-section .school-updates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .school-updates-section .school-update-card:last-child {
        grid-column: 1 / -1;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .school-updates-section {
        padding: 48px 0;
    }

    .school-updates-section .school-updates-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .school-updates-section .school-update-card,
    .school-updates-section .school-update-card:last-child {
        grid-column: auto;
        min-height: 0;
        padding: 25px 22px;
    }
}


/* FIX: KEEP ALL 5 CARDS IN ONE HORIZONTAL ROW */

.school-updates-section .school-updates-scroll {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    box-sizing: border-box;
    padding: 15px 5px 25px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.school-updates-section .school-updates-scroll > .school-update-card {
    display: flex !important;
    flex: 0 0 calc((100% - 40px) / 3) !important;
    width: calc((100% - 40px) / 3) !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
    scroll-snap-align: start;
}

@media (max-width: 900px) {
    .school-updates-section .school-updates-scroll > .school-update-card {
        flex-basis: calc((100% - 20px) / 2) !important;
        width: calc((100% - 20px) / 2) !important;
    }
}

@media (max-width: 600px) {
    .school-updates-section .school-updates-scroll > .school-update-card {
        flex-basis: 85% !important;
        width: 85% !important;
    }
}



/* ================================
   OUR TOPPERS SECTION
================================ */

.toppers-section {
    padding: 75px 0;
    background: #f7f5f0;
}

.toppers-section .section-heading,
.infrastructure-section .section-heading {
    text-align: center;
    margin: 0 auto 38px;
}

.toppers-section .section-heading h2,
.infrastructure-section .section-heading h2 {
    color: #102b4e !important;
    font-size: clamp(29px, 3vw, 40px);
    font-weight: 800;
    margin: 12px 0;
}

.toppers-section .section-heading p,
.infrastructure-section .section-heading p {
    color: #5c6879 !important;
    line-height: 1.8;
}

.toppers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.topper-card {
    position: relative;
    text-align: center;
    padding: 28px 20px;
    background: #fff !important;
    border: 1px solid #e0d6c3;
    border-bottom: 4px solid #c59a4a;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(16, 43, 78, .09);
    transition: transform .25s ease, box-shadow .25s ease;
}

.topper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(16, 43, 78, .15);
}

.topper-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 94px;
    height: 94px;
    margin: 0 auto 18px;
    border: 4px solid #e4c783;
    border-radius: 50%;
    background: #102b4e !important;
    color: #f0c875 !important;
    font-size: 39px;
}

.topper-rank {
    display: inline-block;
    margin-bottom: 10px;
    color: #946c28 !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.topper-card h3 {
    color: #102b4e !important;
    font-size: 19px;
    margin: 0 0 7px;
}

.topper-card p {
    color: #667487 !important;
    margin: 0 0 14px;
}

.topper-score {
    display: inline-block;
    padding: 7px 19px;
    color: #102b4e !important;
    background: #f5e8c9 !important;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 900;
}

.toppers-view-more,
.infrastructure-view-more {
    text-align: center;
    margin-top: 35px;
}

.school-view-more {
    display: inline-block;
    padding: 13px 25px;
    color: #fff !important;
    background: #102b4e !important;
    border: 2px solid #102b4e;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease;
}

.school-view-more:hover {
    color: #102b4e !important;
    background: #c59a4a !important;
    border-color: #c59a4a;
}


/* ================================
   INFRASTRUCTURE SECTION
================================ */

.infrastructure-section {
    padding: 75px 0;
    background: #e8edf5;
}

.infrastructure-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.infrastructure-card {
    padding: 30px 25px;
    background: linear-gradient(145deg, #fff, #f2f5fa) !important;
    border: 1px solid #d3dce8;
    border-radius: 15px;
    box-shadow: 0 8px 22px rgba(16, 43, 78, .09);
    transition: transform .25s ease, box-shadow .25s ease;
}

.infrastructure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(16, 43, 78, .15);
}

.infrastructure-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: #f0c875 !important;
    background: #102b4e !important;
    border-radius: 13px;
    font-size: 30px;
}

.infrastructure-card h3 {
    color: #102b4e !important;
    font-size: 21px;
    font-weight: 800;
    margin: 0 0 12px;
}

.infrastructure-card p {
    color: #53647a !important;
    font-size: 14px;
    line-height: 1.85;
    margin: 0;
}


/* TABLET */
@media (max-width: 900px) {
    .toppers-grid,
    .infrastructure-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* MOBILE */
@media (max-width: 600px) {
    .toppers-section,
    .infrastructure-section {
        padding: 48px 0;
    }

    .toppers-grid,
    .infrastructure-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .topper-card {
        padding: 25px 18px;
    }

    .infrastructure-card {
        padding: 25px 22px;
    }
}



/* =========================================
   FINAL CARD COLOR OVERRIDE
   THE GLORIOUS ACADEMY
   ========================================= */

/* Academic cards */
.academics-section .academic-card {
    background: #DDF7FF !important;
    background-color: #DDF7FF !important;
    border: 1px solid #00BCEB !important;
    border-bottom: 5px solid #C59A4A !important;
}

/* Facilities cards */
.facilities-section .facility-card {
    background: #FFE5F1 !important;
    background-color: #FFE5F1 !important;
    border: 1px solid #E94B9B !important;
    border-bottom: 5px solid #C59A4A !important;
}

/* Topper cards - previously white */
.toppers-section .topper-card {
    background: #FFE5F1 !important;
    background-color: #FFE5F1 !important;
    background-image: none !important;
    border: 2px solid #E94B9B !important;
    border-bottom: 5px solid #C59A4A !important;
}

/* Infrastructure cards */
.infrastructure-section .infrastructure-card {
    background: #DDF7FF !important;
    background-color: #DDF7FF !important;
    background-image: none !important;
    border: 2px solid #00BCEB !important;
    border-bottom: 5px solid #C59A4A !important;
}

/* Contact cards */
.home-contact-section .home-contact-card {
    background: #FFF0F7 !important;
    background-color: #FFF0F7 !important;
    border: 1px solid #E94B9B !important;
    border-bottom: 5px solid #C59A4A !important;
}

/* School update cards */
.school-updates-section .school-update-card {
    background: #DDF7FF !important;
    background-color: #DDF7FF !important;
    background-image: none !important;
    border: 2px solid #00BCEB !important;
    border-bottom: 5px solid #C59A4A !important;
}

/* Hover colors */
.academics-section .academic-card:hover,
.infrastructure-section .infrastructure-card:hover,
.school-updates-section .school-update-card:hover {
    background: #FFE5F1 !important;
    background-color: #FFE5F1 !important;
}

.facilities-section .facility-card:hover,
.toppers-section .topper-card:hover,
.home-contact-section .home-contact-card:hover {
    background: #DDF7FF !important;
    background-color: #DDF7FF !important;
}

/* Keep card content readable */
.academic-card h3,
.facility-card h3,
.topper-card h3,
.infrastructure-card h3,
.home-contact-card h3 {
    color: #102B4E !important;
}

.academic-card p,
.facility-card p,
.topper-card p,
.infrastructure-card p,
.home-contact-card p {
    color: #26364A !important;
}




/* THE GLORIOUS ACADEMY - FINAL HOME CARD COLORS */

.home-page .home-school-card,
.home-page .home-academic-card,
.home-page .home-event-card,
.home-page .home-topper-card {
    background: #DDF7FF !important;
    background-image: none !important;
    border: 2px solid #00BCEB !important;
    border-bottom: 5px solid #C59A4A !important;
}

.home-page .home-school-card-body {
    background: #FFE5F1 !important;
}

.home-page .home-facility-card,
.home-page .home-contact-card {
    background: #FFE5F1 !important;
    background-image: none !important;
    border: 2px solid #E94B9B !important;
    border-bottom: 5px solid #C59A4A !important;
}

.home-page .home-event-placeholder {
    background: linear-gradient(135deg, #00BCEB, #E94B9B) !important;
    color: #FFFFFF !important;
}

.home-page .home-academic-icon {
    background: #00BCEB !important;
    color: #FFFFFF !important;
}

.home-page .home-school-card:hover,
.home-page .home-academic-card:hover,
.home-page .home-facility-card:hover,
.home-page .home-event-card:hover,
.home-page .home-topper-card:hover,
.home-page .home-contact-card:hover {
    box-shadow: 0 12px 28px rgba(16, 43, 78, 0.18) !important;
    transform: translateY(-4px);
}


.home-banner {
    width: 100%;
    aspect-ratio: 10 / 3;
    overflow: hidden;
}

.home-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}