/* =========================================================================
   APOLLO INTERNATIONAL SCHOOL — Homepage design system
   Concept: "The School Seal" — a navy & brass academic identity built
   around a circular founder's seal motif, ruled brass dividers and
   plaque-framed photography, replacing the previous icon-soup layout.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
    --navy: #03085b;
    --navy-deep: #020433;
    --navy-soft: #232864;
    --parchment: #f7f2e4;
    --parchment-dark: #efe4c6;
    --brass: #b6863f;
    --brass-light: #e3c791;
    --ink: #1c1f33;
    --ink-soft: #5b5f78;
    --white: #ffffff;
    --sage: #5c7a5c;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

html{
    overflow-x: hidden;
}

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */
body {
    overflow-x: hidden;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brass);
    font-weight: 600;
}

.section-heading {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--navy);
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.15;
    margin: 10px 0 0;
}

.section-heading.on-dark {
    color: var(--white);
}

.section-heading.on-parchment {
    color: var(--navy);
}

.section-lede {
    font-family: var(--font-body);
    color: var(--ink-soft);
    font-size: 16px;
    max-width: 640px;
    margin: 14px auto 0;
    line-height: 1.7;
}

.brass-rule {
    width: 64px;
    height: 3px;
    background: var(--brass);
    margin: 18px auto 0;
    border-radius: 2px;
}

.brass-rule.left {
    margin: 18px 0 0;
}

.section-head {
    text-align: center;
    padding: 6px 0 40px;
}

/* -------------------------------------------------------------------------
   Seal motif (signature element)
   ------------------------------------------------------------------------- */
.seal {
    width: 108px;
    height: 108px;
    flex-shrink: 0;
}

.seal-inline {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

/* -------------------------------------------------------------------------
   Admission ribbon (replaces marquee container)
   ------------------------------------------------------------------------- */
.admission-ribbon {
    background: var(--navy-deep);
    border-bottom: 3px solid var(--brass);
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.admission-tag {
    background: var(--brass);
    color: var(--navy-deep);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.admission-scroll {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.admission-scroll .marquee-content {
    color: var(--parchment);
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 0.02em;
    padding: 10px 20px;
    white-space: nowrap;
}

.admission-scroll strong {
    color: var(--brass-light);
}

/* -------------------------------------------------------------------------
   Hero / welcome section
   ------------------------------------------------------------------------- */
.hero-section {
    background: var(--white);
    padding: 64px 0 20px;
}

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

.hero-copy .eyebrow {
    display: block;
    margin-bottom: 14px;
}

.hero-copy h1 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--navy);
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.08;
    margin: 0 0 22px;
}

.hero-copy p {
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--ink-soft);
    text-align: left;
}

.hero-facts {
    display: flex;
    gap: 0;
    margin-top: 30px;
    border-top: 1px solid var(--parchment-dark);
}

.hero-fact {
    flex: 1;
    padding: 16px 18px 0;
    border-right: 1px solid var(--parchment-dark);
}

.hero-fact:last-child {
    border-right: none;
}

.hero-fact .num {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--brass);
    font-weight: 600;
    display: block;
}

.hero-fact .label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.hero-frame {
    position: relative;
    padding: 14px;
    border: 1px solid var(--brass-light);
}

.hero-frame::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid var(--navy);
    pointer-events: none;
}

.hero-frame img {
    width: 100%;
    height: 350px;
    display: block;
    object-fit: cover;
}

/* -------------------------------------------------------------------------
   Pillars section ("A Home Away From Home") — over custom-section bg image
   ------------------------------------------------------------------------- */
.custom-section {
    position: relative;
    background-image: url('img/index/Bldng.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 30px;
    padding: 84px 0;
}

.custom-section .overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(180deg, rgba(2, 4, 51, 0.86) 0%, rgba(2, 4, 51, 0.72) 100%); */
    background: linear-gradient(180deg, rgba(3, 8, 91, 1) 0%, rgba(2, 4, 51, 0.72) 100%);
    z-index: 1;
}

.custom-section .inner {
    position: relative;
    z-index: 2;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 44px;
}

.pillar-card {
    background: rgba(247, 242, 228, 0.97);
    padding: 34px 26px 30px;
    text-align: left;
    border-top: 3px solid var(--brass);
}

.pillar-badge {
    width: 56px;
    height: 56px;
    border: 1.5px solid var(--brass);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transform: rotate(45deg);
}

.pillar-badge img {
    width: 26px;
    height: 26px;
    transform: rotate(-45deg);
}

.pillar-card h5 {
    font-family: var(--font-display);
    color: var(--navy);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.pillar-card p {
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.7;
}

.pillar-card .btn-learn {
    display: inline-block;
    margin-top: 16px;
    background: none;
    color: var(--navy);
    border: none;
    border-bottom: 1.5px solid var(--brass);
    border-radius: 0;
    padding: 0 0 3px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.pillar-card .btn-learn:hover {
    color: var(--brass);
}

/* -------------------------------------------------------------------------
   Campus tour gallery grid
   ------------------------------------------------------------------------- */
.tour-section {
    padding: 70px 0 20px;
    background: var(--white);
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.tour-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--parchment-dark);
    aspect-ratio: 4 / 3;
}

.tour-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.tour-tile:hover img {
    transform: scale(1.06);
}

.tour-tile .tile-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(2, 4, 51, 0.88), rgba(2, 4, 51, 0));
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 34px 14px 12px;
}

.tour-tile.video-tile {
    padding: 0;
    background: var(--navy-deep);
}

.tour-tile.video-tile iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* -------------------------------------------------------------------------
   Facilities plate strip (replaces colorful info boxes)
   ------------------------------------------------------------------------- */
.facilities-section {
    background: var(--parchment);
    padding: 74px 0;
    margin-top: 60px;
    border-top: 1px solid var(--parchment-dark);
    border-bottom: 1px solid var(--parchment-dark);
}

.plate-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    margin-top: 40px;
    border-top: 1px solid var(--brass-light);
    border-left: 1px solid var(--brass-light);
}

.plate-card {
    background: var(--white);
    border-right: 1px solid var(--brass-light);
    border-bottom: 1px solid var(--brass-light);
    padding: 30px 16px;
    text-align: center;
    transition: background 0.25s ease;
}

.plate-card:hover {
    background: var(--parchment-dark);
}

.plate-card i {
    font-size: 26px;
    color: var(--navy);
}

.plate-card h4 {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--navy);
    margin: 16px 0 4px;
    line-height: 1.5;
}

.plate-card p {
    font-family: var(--font-display);
    color: var(--brass);
    font-weight: 600;
    font-size: 15px;
    margin: 0;
}

/* -------------------------------------------------------------------------
   Social section
   ------------------------------------------------------------------------- */
.social-section {
    padding: 74px 0;
    background: var(--white);
}

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

.social-frame {
    border: 1px solid var(--parchment-dark);
    border-top: 3px solid var(--navy);
    padding: 6px;
}

.social-frame iframe {
    width: 100%;
    height: 380px;
    display: block;
    border: 0;
}

/* -------------------------------------------------------------------------
   Leadership messages
   ------------------------------------------------------------------------- */
.leadership-section {
    padding: 74px 0;
    background: var(--parchment);
}

.leader-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 44px;
    align-items: stretch;
}

.leader-card {
    background: var(--white);
    border: 1px solid var(--parchment-dark);
    padding: 30px 26px 28px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.leader-photo {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brass-light);
    padding: 3px;
    margin: 0 auto 18px;
    display: block;
}

.leader-card h4.name {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--navy);
    font-size: 19px;
    margin: 0;
}

.leader-card h4.role {
    font-family: var(--font-mono);
    color: var(--brass);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 6px 0 18px;
}

.leader-card p.quote {
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.75;
    flex: 1;
}

.leader-card a.read-more {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
    border-bottom: 1.5px solid var(--brass);
    padding-bottom: 2px;
    align-self: center;
    margin-top: 16px;
}

/* -------------------------------------------------------------------------
   News carousel (php-driven — structure untouched, styling only)
   ------------------------------------------------------------------------- */
.news-section {
    padding: 74px 0;
    background: var(--white);
}

.news-section .card {
    background: var(--parchment);
    border: 1px solid var(--parchment-dark);
    border-top: 3px solid var(--brass);
    border-radius: 0;
    padding: 0 0 22px;
    margin-bottom: 10px;
}

.news-section .card img {
    border-bottom: 1px solid var(--parchment-dark);
}

.news-section .card-body h4 {
    font-family: var(--font-display);
    color: var(--navy);
    font-weight: 600;
}

.news-section .card-body a {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brass);
    border-bottom: 1px solid var(--brass);
    padding-bottom: 2px;
}

/* -------------------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------------------- */
.testimonial-section-wrap {
    background: var(--navy-deep);
    padding: 0;
}

.testimonial-section-wrap .testimonial p {
    color: var(--parchment);
    font-family: var(--font-display);
    font-size: clamp(19px, 2.4vw, 25px);
    font-weight: 500;
    line-height: 1.6;
    max-width: 760px;
    margin: 0 auto;
}

.testimonial-section-wrap .testimonial p i.fa-quote-left {
    color: var(--brass);
    font-size: 20px;
}

.testimonial-section-wrap .testimonial h6 {
    color: var(--brass-light) !important;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600 !important;
}

/* -------------------------------------------------------------------------
   Section banner headers (shared navy plaque header used across sections)
   ------------------------------------------------------------------------- */
.plaque-header {
    background: var(--navy);
    text-align: center;
    padding: 46px 20px 40px;
    position: relative;
}

.plaque-header .eyebrow {
    color: var(--brass-light);
}

.plaque-header h4 {
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    color: var(--white) !important;
    font-size: clamp(26px, 3.4vw, 36px) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 8px 0 0 !important;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pillar-grid,
    .tour-grid,
    .social-grid,
    .leader-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plate-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {

    .pillar-grid,
    .tour-grid,
    .social-grid,
    .leader-grid,
    .plate-grid {
        grid-template-columns: 1fr;
    }

    .hero-facts {
        flex-wrap: wrap;
    }

    .hero-fact {
        flex: 1 1 50%;
        border-right: none;
        border-bottom: 1px solid var(--parchment-dark);
        padding-bottom: 12px;
        margin-bottom: 8px;
    }

    .admission-ribbon {
        flex-direction: column;
    }

    .social-frame iframe {
        height: 320px;
    }
}