:root {
    --red: #FE3050;
    --red-dark: #D71B3B;
    --red-deep: #8C1029;
    --red-tint: #FFE3E7;
    --navy: #01304E;
    --navy-2: #012238;
    --navy-light: #2F5A78;
    --navy-tint: #E4EDF2;
    --ink: #0B2230;
    --paper: #FBF8F2;
    --paper-2: #F4F6F8;
    --card: #FFFFFF;
    --line: #E4DFD3;
    --radius-lg: 26px;
    --radius-xl: 38px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", Sans-serif;
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
.display {
    font-family: "Oswald", Sans-serif;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

.eyebrow {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--red);
}

.eyebrow.light {
    color: #FFC4CD;
}

/* RIBBON / PENNANT SIGNATURE SHAPE */
.ribbon {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: var(--navy);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    padding: 9px 22px 9px 18px;
    clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%);
}

.ribbon .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
}

/* NAVBAR */
.navbar {
    transition: .3s ease;
    padding-top: 14px;
    padding-bottom: 14px;
    z-index: 1050;
}

.glentree-logo {
    max-height: 46px;
    width: auto;
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--navy);
    margin: 0 10px;
    position: relative;
}

.navbar .nav-link:hover {
    color: var(--red);
}

.btn-ghost {
    border: 1.5px solid var(--navy);
    color: var(--navy);
    border-radius: 50px;
    padding: 9px 22px;
    font-weight: 600;
    transition: .2s;
}

.btn-ghost:hover {
    background: var(--navy);
    color: #fff;
}

.btn-cta {
    background: linear-gradient(95deg, var(--red) 0%, var(--red-dark) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 1rem;
    transition: .2s;
    box-shadow: 0 10px 22px rgba(254, 48, 80, .28);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(254, 48, 80, .36);
    color: #fff;
}

.btn-navy {
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    transition: .2s;
}

.btn-navy:hover {
    background: var(--navy-2);
    color: #fff;
}

/* MARQUEE RIBBON STRIP */
.marquee-bar {
    background: var(--navy);
    overflow: hidden;
    white-space: nowrap;
    padding: 9px 0;
    margin-top: 76px;
    border-bottom: 3px solid var(--red);
}

.marquee-track {
    display: inline-flex;
    animation: scroll-left 24s linear infinite;
}

.marquee-track span {
    color: #fff;
    font-weight: 600;
    letter-spacing: .12em;
    font-size: .8rem;
    text-transform: uppercase;
    padding: 0 2.2rem;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}

.marquee-track span i {
    color: var(--red);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}

/* HERO */
.hero-section {
    position: relative;
    background:
        radial-gradient(circle at 88% 12%, rgba(254, 48, 80, .10), transparent 42%),
        linear-gradient(160deg, #FBF8F2 0%, #F4F1E8 55%, #EFEAE0 100%);
    padding: 56px 0 76px;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, rgba(1, 48, 78, .03) 0 2px, transparent 2px 26px);
    pointer-events: none;
}

.hero-title {
    font-size: 2.95rem;
    line-height: 1.08;
    color: var(--navy);
    margin: 1.1rem 0 1rem;
}

.hero-title em {
    font-style: normal;
    color: var(--red);
    border-bottom: 4px solid var(--red-tint);
}

.hero-sub {
    font-size: 1.08rem;
    color: #3a4b54;
    max-width: 520px;
}

.hero-stats {
    display: flex;
    gap: 2.1rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

.hero-stats .num {
    font-family: 'Fraunces', serif;
    font-size: 1.7rem;
    color: var(--navy);
    font-weight: 600;
}

.hero-stats .lbl {
    font-size: .76rem;
    color: #5b6a72;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.hero-collage {
    position: relative;
    max-width: 480px;
}

.hero-photo-main {
    border-radius: var(--radius-xl);
    width: 100%;
    height: 300px;
    object-fit: cover;
    box-shadow: 0 30px 56px -16px rgba(1, 34, 56, .32);
}

.hero-photo-accent {
    position: absolute;
    right: -18px;
    bottom: -30px;
    width: 150px;
    height: 110px;
    object-fit: cover;
    border-radius: 18px;
    border: 5px solid var(--paper);
    box-shadow: 0 18px 30px rgba(1, 34, 56, .28);
}

.hero-badge-card {
    position: absolute;
    left: -20px;
    top: -22px;
    background: #fff;
    border-radius: 18px;
    padding: 12px 18px;
    box-shadow: 0 16px 30px rgba(1, 34, 56, .18);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 215px;
}

.hero-badge-card .ico {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--red-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* FORM CARD */
.form-box {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 2.1rem;
    box-shadow: 0 30px 60px -16px rgba(1, 34, 56, .22);
    border: 1px solid var(--line);
}

.form-box h4 {
    color: var(--navy);
}

.form-control,
.form-select {
    border-radius: 14px;
    padding: 11px 16px;
    border: 1.5px solid var(--line);
    font-size: .95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 .18rem rgba(254, 48, 80, .14);
}

.captcha-container {
    background: var(--paper-2);
    border-radius: 14px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.captcha-code {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 6px;
    background: var(--navy);
    color: #f0f0f0;
    padding: 6px 16px;
    border-radius: 40px;
    user-select: none;
}

.refresh-captcha {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 40px;
    padding: 6px 16px;
    font-weight: 600;
    transition: .2s;
    font-size: .85rem;
}

.refresh-captcha:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

/* AWARDS */
.awards-section {
    background: var(--navy-2);
}

.award-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: rgba(254, 48, 80, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    color: var(--red);
    flex-shrink: 0;
}

/* SECTION TITLES */
.section-title {
    font-size: 2.35rem;
    line-height: 1.18;
    color: var(--navy);
}

.section-tag {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: .8rem;
}

/* WHY GLENTREE */
.why-glentree-card {
    background: linear-gradient(100deg, var(--red), var(--red-dark));
    color: #fff;
    font-weight: 600;
    padding: 1.05rem 1.6rem;
    border-radius: 20px;
    display: inline-block;
}

/* MISSION */
.our-mission-section {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}

.our_mission_card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .13);
    transition: .3s;
    border-radius: 22px;
    backdrop-filter: blur(2px);
}

.our_mission_card:hover {
    background: rgba(255, 255, 255, .12);
    transform: translateY(-4px);
}

.our_mission_text {
    color: #FF8A99;
}

.our_mission_card p.small {
    color: #cfdbe3;
}

/* CURRICULUM */
.curric-card {
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    height: 100%;
    box-shadow: 0 14px 28px rgba(1, 34, 56, .07);
    transition: .25s;
}

.curric-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 36px rgba(1, 34, 56, .13);
}

.curric-img {
    height: 170px;
    width: 100%;
    object-fit: cover;
}

/* ABOUT GALLERY */
.about-glentree-card {
    background: #fff;
    padding: 1.3rem 1.4rem;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .05);
}

.about-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    border-radius: 22px 22px 0 0;
}

/* CAMPUS LIFE */
.campus-life-section {
    background: linear-gradient(160deg, var(--navy), var(--navy-2));
}

/* BRANCHES */
.branch-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(1, 34, 56, .08);
    transition: .25s;
    background: #fff;
}

.branch-card:hover {
    transform: translateY(-5px);
}

.branch-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.branch-pill {
    background: var(--navy);
    color: #fff;
    text-align: center;
    font-weight: 600;
    padding: 12px;
    border-radius: 14px;
    margin-bottom: .9rem;
}

/* ADMISSION CTA */
.admission-box {
    background: linear-gradient(120deg, var(--navy), var(--navy-2));
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.admission-box::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(254, 48, 80, .18);
}

/* TESTIMONIALS */
.testi-card {
    border-radius: 22px;
    border: 1px solid var(--line);
    transition: .2s;
}

.testi-card:hover {
    box-shadow: 0 16px 30px rgba(1, 34, 56, .08);
}

.quote-mark {
    font-family: 'Fraunces', serif;
    font-size: 2.4rem;
    color: var(--red);
    line-height: 0;
}

/* FAQ */
.accordion-button {
    font-weight: 600;
    color: var(--navy);
}

.accordion-button:not(.collapsed) {
    background: var(--navy-tint);
    color: var(--navy);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button::after {
    filter: none;
}

/* FOOTER */
footer {
    background: var(--navy-2);
}

footer a {
    color: #BFD2DD;
    cursor: pointer;
}

footer a:hover {
    color: var(--red);
}

footer h5 {
    color: #fff;
    font-size: .9rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.scroll-top-fab {
    position: fixed;
    right: 18px;
    bottom: 90px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
    z-index: 998;
    opacity: 0;
    transition: .3s;
    pointer-events: none;
    border: none;
}

.scroll-top-fab.show {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width:768px) {
    .hero-title {
        font-size: 2.05rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .marquee-bar {
        margin-top: 68px;
    }

    .hero-badge-card,
    .hero-photo-accent {
        display: none;
    }
}

@media (min-width:992px) {
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        justify-content: end;
    }
}

@media (max-width:991.98px) {
    .navbar-collapse {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid var(--line);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    .navbar-nav {
        width: 100%;
    }

    .navbar-nav .nav-link {
        padding: 10px 2px;
        border-bottom: 1px solid var(--line);
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .navbar .btn-ghost,
    .navbar .btn-cta {
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
    }
}