/* =========================================
   SAINIK SCHOOL BHIWANI
   Main Stylesheet
========================================= */

:root {

    --green-950: #0b1710;
    --green-900: #102218;
    --green-800: #172f22;
    --green-700: #21432f;

    --gold: #c6a15b;
    --gold-light: #dfc27f;

    --cream: #f5f1e7;
    --white: #ffffff;
    --black: #101411;

    --gray-100: #f7f7f5;
    --gray-200: #e9e9e4;
    --gray-500: #777b76;
    --gray-700: #424742;

    --container: 1180px;

    --shadow:
        0 20px 60px rgba(0, 0, 0, .08);

    --radius: 4px;

}


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(92%, var(--container));
    margin: auto;
}


/* =========================================
   TYPOGRAPHY
========================================= */

h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
    line-height: 1.12;
}

h1 span,
h2 span {
    color: var(--gold);
}

p {
    color: var(--gray-700);
}

.section {
    padding: 110px 0;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--green-700);

    font-size: .75rem;
    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 18px;
}

.section-label::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--gold);
}

.section-label.light {
    color: var(--gold-light);
}

.section-heading {
    max-width: 700px;
    margin-bottom: 55px;
}

.section-heading.center {
    text-align: center;
    margin-inline: auto;
}

.section-heading.center .section-label {
    justify-content: center;
}

.section-heading h2,
.about-content h2,
.academic-content h2,
.residential-content h2,
.new-school-content h2,
.parents-content h2,
.faq-intro h2,
.contact-content h2,
.fees-content h2 {

    font-size: clamp(2.4rem, 4vw, 4rem);
    margin-bottom: 25px;
}

.section-heading p {
    font-size: 1.05rem;
}


/* =========================================
   TOPBAR
========================================= */

.topbar {
    background: var(--green-950);
    color: rgba(255, 255, 255, .8);
    font-size: .78rem;
}

.topbar-inner {
    min-height: 38px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left,
.topbar-right {
    display: flex;
    gap: 25px;
}

.topbar i {
    color: var(--gold);
    margin-right: 5px;
}

.topbar a:hover {
    color: var(--gold-light);
}


/* =========================================
   NAVBAR
========================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, .97);

    border-bottom: 1px solid var(--gray-200);

    transition: .3s;
}

.header.scrolled {
    box-shadow: 0 10px 35px rgba(0, 0, 0, .08);
}

.nav-container {
    height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Logo */

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
}

.logo-mark {
    width: 42px;
    height: 48px;

    display: grid;
    place-items: center;

    color: var(--gold);
    background: var(--green-800);

    clip-path: polygon(50% 0,
            90% 15%,
            90% 65%,
            50% 100%,
            10% 65%,
            10% 15%);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text strong {
    color: var(--green-900);
    font-size: 1rem;
    letter-spacing: 2px;
}

.logo-text small {
    color: var(--gray-500);
    font-size: .55rem;
    letter-spacing: 1.5px;
    margin-top: 5px;
}


/* Navbar */

.navbar {
    display: flex;
    align-items: center;
    gap: 26px;
}

.navbar>a {
    color: var(--gray-700);
    font-size: .83rem;
    font-weight: 600;

    transition: .25s;
}

.navbar>a:hover {
    color: var(--green-700);
}

.nav-cta {
    padding: 12px 18px;

    color: var(--white) !important;
    background: var(--green-800);

    border-radius: 2px;
}

.nav-cta i {
    margin-left: 6px;
    color: var(--gold-light);
}

.menu-toggle {
    display: none;

    border: 0;
    background: none;

    font-size: 1.4rem;
    color: var(--green-900);
}


/* =========================================
   HERO
========================================= */

.hero {

    min-height: calc(100vh - 120px);

    position: relative;

    display: flex;
    align-items: center;

    background:
        url("https://images.unsplash.com/photo-1588072432836-e10032774350?auto=format&fit=crop&w=2200&q=90") center / cover no-repeat;

    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(90deg,
            rgba(7, 19, 12, .94) 0%,
            rgba(10, 30, 19, .80) 48%,
            rgba(10, 25, 16, .25) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-copy {
    max-width: 720px;
    padding: 100px 0;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--gold-light);

    font-size: .75rem;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 25px;
}

.eyebrow span {
    width: 35px;
    height: 2px;
    background: var(--gold);
}

.hero h1 {
    font-size: clamp(3.4rem, 7vw, 6.8rem);
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.hero-description {
    max-width: 620px;

    color: rgba(255, 255, 255, .78);

    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    gap: 14px;

    margin-top: 35px;
}

.btn {
    min-height: 52px;

    padding: 14px 23px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: 1px solid transparent;

    font-size: .82rem;
    font-weight: 700;

    transition: .3s;
}

.btn-primary {
    background: var(--gold);
    color: var(--green-950);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: rgba(255, 255, 255, .45);
    color: white;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.btn-light {
    background: white;
    color: var(--green-900);
}

.btn-light:hover {
    background: var(--gold-light);
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 25px;

    max-width: 650px;

    color: rgba(255, 255, 255, .6);

    font-size: .72rem;
}

.hero-note i {
    color: var(--gold);
}

.hero-scroll {
    position: absolute;
    right: 35px;
    bottom: 35px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    color: rgba(255, 255, 255, .7);

    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-scroll i {
    color: var(--gold);
}


/* =========================================
   STATS
========================================= */

.stats-section {
    background: var(--cream);
    border-bottom: 1px solid #ded9cc;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    padding: 35px 20px;

    text-align: center;

    border-right: 1px solid #ddd8ca;
}

.stat-item:last-child {
    border-right: 0;
}

.stat-item strong {
    display: block;

    color: var(--green-800);

    font-family: "Playfair Display", serif;

    font-size: 1.8rem;
}

.stat-item span {
    color: var(--gray-500);

    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* =========================================
   ABOUT
========================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center;
}

.about-images {
    min-height: 600px;
    position: relative;
}

.image-main {
    width: 80%;
    height: 520px;
    overflow: hidden;
}

.image-main img,
.image-small img {
    height: 100%;
    object-fit: cover;
}

.image-small {
    position: absolute;

    right: 0;
    bottom: 0;

    width: 42%;
    height: 260px;

    border: 10px solid white;

    overflow: hidden;

    box-shadow: var(--shadow);
}

.experience-badge {
    position: absolute;

    left: -20px;
    bottom: 60px;

    width: 150px;
    height: 150px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    background: var(--gold);
    color: var(--green-950);

    border-radius: 50%;

    transform: rotate(-8deg);
}

.experience-badge strong {
    font-size: .8rem;
    letter-spacing: 1px;
}

.experience-badge span {
    font-size: .65rem;
    letter-spacing: 1px;
}

.about-content .lead {
    font-size: 1.08rem;
    color: var(--gray-700);
    margin-bottom: 18px;
}

.about-content>p {
    margin-bottom: 25px;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.feature {
    display: flex;
    gap: 10px;
    align-items: center;

    font-size: .86rem;
    font-weight: 600;
}

.feature i {
    width: 22px;
    height: 22px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: var(--gold);
    background: var(--green-900);

    font-size: .6rem;
}


/* =========================================
   DARK SECTION
========================================= */

.dark-section {
    background: var(--green-900);
    color: white;
}

.dark-section p {
    color: rgba(255, 255, 255, .65);
}

.dark-section .section-heading h2 {
    color: white;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.approach-card {
    position: relative;

    padding: 38px 28px;

    border: 1px solid rgba(255, 255, 255, .1);

    transition: .3s;
}

.approach-card:hover {
    background: rgba(255, 255, 255, .04);
    transform: translateY(-5px);
}

.approach-card>i {
    color: var(--gold);
    font-size: 2rem;
    margin: 30px 0 20px;
}

.approach-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.approach-card p {
    font-size: .88rem;
    margin-bottom: 25px;
}

.approach-card a {
    color: var(--gold-light);

    font-size: .75rem;
    font-weight: 700;
}

.approach-card a i {
    margin-left: 5px;
}

.card-number {
    color: rgba(255, 255, 255, .18);

    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 2px;
}


/* =========================================
   ACADEMICS
========================================= */

.academic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.academic-points {
    margin-top: 35px;
}

.academic-points>div {
    display: flex;
    gap: 18px;

    padding: 20px 0;

    border-top: 1px solid var(--gray-200);
}

.academic-points>div:last-child {
    border-bottom: 1px solid var(--gray-200);
}

.academic-points i {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    color: var(--gold);
    background: var(--green-900);
}

.academic-points h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.academic-points p {
    font-size: .84rem;
}

.academic-image {
    position: relative;
}

.academic-image img {
    height: 600px;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    left: 25px;
    bottom: 25px;

    display: flex;
    align-items: center;
    gap: 15px;

    color: white;
    font-size: .8rem;
    font-weight: 700;
}

.image-caption span {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    background: var(--gold);
    color: var(--green-900);
}


/* =========================================
   CAMPUS LIFE
========================================= */

.life-section {
    background: var(--cream);
}

.life-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 14px;
}

.life-card {
    position: relative;
    overflow: hidden;
}

.life-card.large {
    grid-row: span 2;
}

.life-card img {
    height: 100%;
    object-fit: cover;

    transition: .6s;
}

.life-card:hover img {
    transform: scale(1.05);
}

.life-overlay {
    position: absolute;
    inset: auto 0 0 0;

    padding: 25px;

    background:
        linear-gradient(transparent,
            rgba(0, 0, 0, .85));

    color: white;
}

.life-overlay span {
    color: var(--gold-light);

    font-size: .7rem;
    font-weight: 800;
}

.life-overlay h3 {
    font-size: 1.5rem;
    margin: 5px 0;
}

.life-overlay p {
    color: rgba(255, 255, 255, .7);
    font-size: .75rem;
}


/* =========================================
   RESIDENTIAL
========================================= */

.residential-section {
    padding: 0;

    background: var(--green-800);
    color: white;
}

.residential-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 650px;
}

.residential-image {
    overflow: hidden;
}

.residential-image img {
    height: 100%;
    object-fit: cover;
}

.residential-content {
    padding: 90px;
    align-self: center;
}

.residential-content h2 {
    font-size: clamp(2.3rem, 4vw, 4rem);
    margin-bottom: 25px;
}

.residential-content p {
    color: rgba(255, 255, 255, .7);
}

.residential-list {
    display: grid;
    gap: 15px;
    margin: 30px 0;
}

.residential-list>div {
    display: flex;
    align-items: center;
    gap: 14px;

    padding-bottom: 14px;

    border-bottom: 1px solid rgba(255, 255, 255, .12);

    font-size: .85rem;
}

.residential-list i {
    color: var(--gold);
}


/* =========================================
   ADMISSION
========================================= */

.admission-section {
    background: var(--gray-100);
}

.timeline {
    max-width: 850px;
    margin: auto;

    position: relative;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 29px;
    top: 20px;
    bottom: 20px;

    width: 1px;

    background: #d5d5d0;
}

.timeline-item {
    position: relative;

    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 25px;

    padding: 25px 0;
}

.timeline-number {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    position: relative;
    z-index: 2;

    background: var(--green-900);
    color: var(--gold);

    border-radius: 50%;

    font-weight: 800;
    font-size: .75rem;
}

.timeline-item h3 {
    font-size: 1.35rem;
    margin-bottom: 7px;
}

.timeline-item p {
    font-size: .86rem;
}

.admission-alert {
    max-width: 850px;
    margin: 50px auto 0;

    display: flex;
    gap: 20px;

    padding: 25px;

    background: #fff9e8;

    border-left: 4px solid var(--gold);
}

.admission-alert>i {
    color: var(--gold);
    font-size: 1.5rem;
}

.admission-alert strong {
    display: block;
    margin-bottom: 5px;
}

.admission-alert p {
    font-size: .78rem;
}


/* =========================================
   FEES
========================================= */

.fees-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.fees-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.fee-card {
    padding: 30px;

    background: var(--gray-100);

    border: 1px solid var(--gray-200);

    transition: .3s;
}

.fee-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.fee-card i {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.fee-card h3 {
    font-size: 1.2rem;
    margin-bottom: 7px;
}

.fee-card p {
    font-size: .8rem;
}

.text-link {
    display: inline-flex;
    gap: 10px;

    color: var(--green-800);

    font-size: .82rem;
    font-weight: 800;

    margin-top: 20px;
}


/* =========================================
   NEW SCHOOL
========================================= */

.new-school-section {
    padding: 110px 0;

    background:
        linear-gradient(100deg,
            rgba(10, 28, 18, .98),
            rgba(23, 55, 37, .93)),
        url("https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&w=1800&q=85") center / cover;

    color: white;
}

.new-school-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.new-school-content h2 {
    font-size: clamp(2.3rem, 4vw, 4rem);
    margin-bottom: 25px;
}

.new-school-content p {
    color: rgba(255, 255, 255, .7);
    margin-bottom: 15px;
}

.new-school-content .btn {
    margin-top: 20px;
}

.new-school-points {
    display: grid;
    gap: 20px;
}

.new-school-points>div {
    display: grid;
    grid-template-columns: 55px 1fr;
    column-gap: 20px;

    padding: 25px 0;

    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.new-school-points span {
    grid-row: span 2;

    color: var(--gold);

    font-size: .8rem;
    font-weight: 800;
}

.new-school-points strong {
    font-family: "Playfair Display", serif;
    font-size: 1.35rem;
}

.new-school-points p {
    color: rgba(255, 255, 255, .6);
    font-size: .8rem;
}


/* =========================================
   HARYANA LOCATIONS
========================================= */

.haryana-section {
    background: var(--cream);
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.location-card {
    padding: 38px;

    background: white;

    border: 1px solid #e1ddd2;

    transition: .3s;
}

.location-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.location-icon {
    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    margin-bottom: 25px;

    color: var(--gold);
    background: var(--green-900);
}

.location-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.location-card p {
    font-size: .82rem;
    margin-bottom: 20px;
}

.location-card a {
    color: var(--green-800);

    font-size: .75rem;
    font-weight: 800;
}


/* =========================================
   PARENTS
========================================= */

.parents-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.parents-image img {
    height: 550px;
    object-fit: cover;
}

.parents-content p {
    margin-bottom: 30px;
}

.check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.check-grid div {
    font-size: .85rem;
    font-weight: 600;
}

.check-grid i {
    color: var(--gold);
    margin-right: 7px;
}


/* =========================================
   FAQ
========================================= */

.faq-section {
    background: var(--gray-100);
}

.faq-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 90px;
}

.faq-intro p {
    margin-bottom: 30px;
}

.faq-list {
    border-top: 1px solid var(--gray-200);
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 23px 0;

    border: 0;
    background: none;

    color: var(--black);

    text-align: left;

    font-size: .9rem;
    font-weight: 700;
}

.faq-question i {
    color: var(--gold);
    transition: .3s;
}

.faq-answer {
    display: none;
    padding: 0 35px 25px 0;
}

.faq-answer p {
    font-size: .82rem;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}


/* =========================================
   CTA
========================================= */

.cta-section {
    padding: 80px 0;

    background: var(--green-800);
    color: white;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-content h2 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.cta-content p {
    color: rgba(255, 255, 255, .65);
    margin-top: 12px;
}


/* =========================================
   CONTACT
========================================= */

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 90px;
}

.contact-content>p {
    margin-bottom: 35px;
}

.contact-details {
    display: grid;
    gap: 22px;
}

.contact-details>div {
    display: flex;
    gap: 15px;
}

.contact-details>div>i {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    color: var(--gold);
    background: var(--green-900);
}

.contact-details section {
    display: flex;
    flex-direction: column;
}

.contact-details strong {
    font-size: .8rem;
}

.contact-details span {
    color: var(--gray-500);
    font-size: .78rem;
}

.contact-form {
    padding: 40px;

    background: var(--gray-100);

    border: 1px solid var(--gray-200);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    color: var(--gray-700);

    font-size: .72rem;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #d8d8d3;

    background: white;

    outline: none;

    color: var(--black);

    font-size: .82rem;

    transition: .25s;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-700);
}

.form-submit {
    border: 0;
    width: 100%;
}

.form-note {
    margin-top: 12px;

    color: var(--gray-500);

    text-align: center;

    font-size: .65rem;
}

.form-message {
    display: none;

    margin-top: 15px;
    padding: 12px;

    background: #eaf5eb;

    color: #285c31;

    font-size: .75rem;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    background: var(--green-950);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr .7fr .9fr 1fr;
    gap: 60px;

    padding: 80px 0;
}

.footer-brand p {
    max-width: 330px;

    margin: 22px 0;

    color: rgba(255, 255, 255, .5);

    font-size: .78rem;
}

.footer-brand .logo-text strong {
    color: white;
}

.footer-brand .logo-text small {
    color: rgba(255, 255, 255, .5);
}

.socials {
    display: flex;
    gap: 9px;
}

.socials a {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, .15);

    color: rgba(255, 255, 255, .7);

    font-size: .75rem;
}

.socials a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h3 {
    color: var(--gold);

    font-family: "DM Sans", sans-serif;

    font-size: .75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    margin-bottom: 8px;
}

.footer-column a {
    color: rgba(255, 255, 255, .55);

    font-size: .75rem;

    transition: .2s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-bottom-inner {
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom p,
.footer-bottom a {
    color: rgba(255, 255, 255, .4);
    font-size: .68rem;
}

.footer-bottom-inner>div {
    display: flex;
    gap: 20px;
}


/* =========================================
   BACK TO TOP
========================================= */

.back-top {
    position: fixed;

    right: 20px;
    bottom: 20px;

    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border: 0;

    background: var(--gold);
    color: var(--green-950);

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px);

    transition: .3s;

    z-index: 999;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* =========================================
   REVEAL ANIMATION
========================================= */

.reveal {
    opacity: 0;
    transform: translateY(25px);

    transition:
        opacity .7s ease,
        transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1050px) {

    .navbar {
        gap: 16px;
    }

    .navbar>a {
        font-size: .76rem;
    }

    .about-grid,
    .academic-grid,
    .parents-grid,
    .fees-grid,
    .faq-grid,
    .contact-grid,
    .new-school-grid {
        gap: 50px;
    }

    .approach-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

}


@media (max-width: 800px) {

    .section {
        padding: 80px 0;
    }

    .topbar-left span:nth-child(2) {
        display: none;
    }

    .topbar-right {
        display: none;
    }

    .nav-container {
        height: 72px;
    }

    .menu-toggle {
        display: block;
    }

    .navbar {
        position: absolute;

        top: 72px;
        left: 0;
        right: 0;

        padding: 20px;

        display: none;
        flex-direction: column;
        align-items: stretch;

        background: white;

        border-top: 1px solid var(--gray-200);

        box-shadow: 0 20px 30px rgba(0, 0, 0, .08);
    }

    .navbar.open {
        display: flex;
    }

    .navbar>a {
        padding: 10px 0;
        font-size: .85rem;
    }

    .nav-cta {
        text-align: center;
    }

    .hero {
        min-height: 720px;
    }

    .hero-copy {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .hero-scroll {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item:nth-child(2) {
        border-right: 0;
    }

    .stat-item:nth-child(-n+2) {
        border-bottom: 1px solid #ddd8ca;
    }

    .about-grid,
    .academic-grid,
    .parents-grid,
    .fees-grid,
    .faq-grid,
    .contact-grid,
    .new-school-grid,
    .residential-grid {
        grid-template-columns: 1fr;
    }

    .about-images {
        min-height: 500px;
    }

    .image-main {
        width: 85%;
        height: 430px;
    }

    .residential-image {
        min-height: 450px;
    }

    .residential-content {
        padding: 70px 0;
    }

    .life-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 300px 300px 300px;
    }

    .life-card.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-content {
        flex-direction: column;
        align-items: flex-start;
    }

}


@media (max-width: 520px) {

    .container {
        width: min(90%, var(--container));
    }

    .section {
        padding: 65px 0;
    }

    .hero {
        min-height: 680px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item,
    .stat-item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid #ddd8ca;
    }

    .stat-item:last-child {
        border-bottom: 0;
    }

    .about-images {
        min-height: 420px;
    }

    .image-main {
        width: 90%;
        height: 370px;
    }

    .image-small {
        width: 50%;
        height: 180px;
    }

    .experience-badge {
        width: 110px;
        height: 110px;
        left: -10px;
        bottom: 40px;
    }

    .experience-badge strong {
        font-size: .65rem;
    }

    .feature-list,
    .check-grid,
    .fees-cards,
    .form-row {
        grid-template-columns: 1fr;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .life-grid {
        display: flex;
        flex-direction: column;
    }

    .life-card,
    .life-card.large {
        height: 300px;
    }

    .academic-image img,
    .parents-image img {
        height: 400px;
    }

    .timeline-item {
        grid-template-columns: 48px 1fr;
        gap: 15px;
    }

    .timeline-number {
        width: 48px;
        height: 48px;
    }

    .timeline::before {
        left: 24px;
    }

    .contact-form {
        padding: 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        justify-content: center;
        padding: 20px 0;
    }

}