
/* =================================
   KABALE SECONDARY SCHOOL WEBSITE
   COLOURS: MAROON, NAVY BLUE, CREAM
================================= */

:root {
    --maroon: #781d35;
    --dark-maroon: #4d1022;
    --navy: #142b49;
    --cream: #f8f3e9;
    --white: #ffffff;
    --text: #333333;
    --light: #f5f6f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
}

/* TOP CONTACT BAR */

.top-bar {
    background: var(--navy);
    color: rgb(106, 107, 165);
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 10px 5%;
    gap: 10px;
    font-size: 13px;
}

/* HEADER */

.main-header {
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    gap: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.09);
    position: relative;
    z-index: 10;
}

.school-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.school-brand img {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.school-brand h1 {
    color: var(--maroon);
    font-size: 23px;
    line-height: 1.3;
}

.school-brand p {
    color: var(--navy);
    font-weight: bold;
    letter-spacing: 2px;
}

.school-brand span {
    font-size: 11px;
    color: #666;
}

.navigation {
    display: flex;
    gap: 20px;
    align-items: center;
}

.navigation a {
    color: var(--navy);
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
}

.navigation a:hover,
.navigation a.active {
    color: var(--maroon);
}

.navigation a.active {
    border-bottom: 3px solid var(--maroon);
    padding-bottom: 7px;
}

.menu-toggle {
    display: none;
    background: var(--maroon);
    color: white;
    border: none;
    padding: 10px 14px;
    font-size: 22px;
    cursor: pointer;
}

/* HERO SECTION */

.hero {
    height: 570px;
    position: relative;
    overflow: hidden;
    background: var(--navy);
}

.hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(20, 43, 73, 0.94),
        rgba(20, 43, 73, 0.65),
        rgba(20, 43, 73, 0.12)
    );
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 9%;
}

.hero-small {
    color: #f0d9ad;
    font-weight: bold;
    letter-spacing: 4px;
}

.hero-overlay h2 {
    font-size: 48px;
    max-width: 750px;
    line-height: 1.2;
    margin: 15px 0;
}

.hero-overlay h3 {
    color: #f0d9ad;
    letter-spacing: 4px;
    font-size: 24px;
}

.hero-overlay > p:not(.hero-small) {
    max-width: 600px;
    margin: 20px 0;
    font-size: 17px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* BUTTONS */

.btn {
    display: inline-block;
    padding: 13px 25px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary {
    background: var(--maroon);
    color: white;
}

.btn-primary:hover {
    background: var(--dark-maroon);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--navy);
}

.btn-light {
    background: var(--cream);
    color: var(--navy);
}

.btn-light:hover {
    background: white;
    transform: translateY(-3px);
}

/* WELCOME SECTION */

.welcome-section {
    padding: 85px 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 55px;
}

.section-label {
    color: var(--maroon);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.welcome-text h2 {
    color: var(--navy);
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.welcome-text p {
    margin-bottom: 18px;
}

.welcome-text .btn {
    margin-top: 10px;
}

.welcome-image {
    height: 390px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 15px 15px 0 var(--cream);
}

.welcome-image img {
    height: 100%;
}

/* HIGHLIGHTS */

.highlights {
    background: var(--cream);
    padding: 40px 7%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.highlight-card {
    background: white;
    text-align: center;
    padding: 25px 15px;
    border-bottom: 4px solid var(--maroon);
    border-radius: 7px;
    transition: 0.3s;
}

.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.highlight-card h3 {
    color: var(--navy);
    font-size: 17px;
    margin-bottom: 8px;
}

/* GENERAL CONTENT SECTIONS */

.content-section {
    padding: 80px 7%;
}

.section-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 40px;
}

.section-heading h2 {
    font-size: 34px;
    color: var(--navy);
    margin-bottom: 10px;
}

/* PHOTO GRIDS */

.photo-grid {
    display: grid;
    gap: 25px;
}

.leadership-grid {
    grid-template-columns: repeat(3, 1fr);
}

.facility-grid {
    grid-template-columns: repeat(3, 1fr);
}

.activity-grid {
    grid-template-columns: repeat(4, 1fr);
}

.photo-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.09);
    transition: 0.3s;
}

.photo-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.photo-card img {
    height: 240px;
    transition: transform 0.5s;
}

.photo-card:hover img {
    transform: scale(1.05);
}

.leadership-grid .photo-card img {
    height: 310px;
    object-position: center top;
}

.photo-caption {
    padding: 18px;
    position: relative;
    background: white;
}

.photo-caption h3 {
    color: var(--maroon);
    font-size: 18px;
}

.photo-caption p {
    color: #666;
    font-size: 13px;
}

/* FACILITIES */

.facilities-section {
    background: var(--light);
}

/* CENTER BUTTON */

.center-button {
    text-align: center;
    margin-top: 40px;
}

/* ADMISSIONS BANNER */

.admissions-banner {
    background: linear-gradient(
        120deg,
        var(--maroon),
        var(--navy)
    );
    color: white;
    text-align: center;
    padding: 75px 20px;
}

.admissions-banner h2 {
    font-size: 35px;
    margin-bottom: 15px;
}

.admissions-banner p {
    max-width: 650px;
    margin: 0 auto 25px;
}

/* FOOTER */

.main-footer {
    background: #101f34;
    color: white;
    padding: 55px 7% 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 35px;
}

.main-footer h2 {
    font-size: 21px;
}

.main-footer h3 {
    color: #f0d9ad;
    margin-bottom: 15px;
}

.main-footer p {
    margin-bottom: 8px;
}

.main-footer a {
    color: white;
    display: block;
    margin-bottom: 10px;
}

.main-footer a:hover {
    color: #f0d9ad;
}

.copyright {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 1050px) {
    .main-header {
        flex-wrap: wrap;
    }

    .navigation {
        gap: 13px;
    }

    .navigation a {
        font-size: 11px;
    }

    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .top-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .main-header {
        padding: 12px 5%;
    }

    .school-brand img {
        width: 55px;
        height: 55px;
    }

    .school-brand h1 {
        font-size: 16px;
    }

    .school-brand p {
        font-size: 12px;
    }

    .school-brand span {
        font-size: 9px;
    }

    .menu-toggle {
        display: block;
    }

    .navigation {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        background: white;
    }

    .navigation.show {
        display: flex;
    }

    .navigation a {
        padding: 13px;
        border-bottom: 1px solid #eee;
    }

    .hero {
        height: 500px;
    }

    .hero-overlay {
        padding: 30px 7%;
    }

    .hero-overlay h2 {
        font-size: 32px;
    }

    .hero-overlay h3 {
        font-size: 17px;
    }

    .welcome-section {
        grid-template-columns: 1fr;
        padding: 55px 7%;
    }

    .welcome-text h2 {
        font-size: 29px;
    }

    .welcome-image {
        height: 300px;
    }

    .highlights {
        grid-template-columns: repeat(2, 1fr);
        padding: 30px 5%;
    }

    .content-section {
        padding: 55px 5%;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .leadership-grid,
    .facility-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-footer {
        grid-template-columns: 1fr;
    }

    .copyright {
        grid-column: 1;
    }
}

@media (max-width: 480px) {

    .hero-overlay h2 {
        font-size: 27px;
    }

    .hero-overlay > p:not(.hero-small) {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .leadership-grid,
    .facility-grid,
    .activity-grid {
        grid-template-columns: 1fr;
    }

    .photo-card img {
        height: 260px;
    }

    .highlights {
        grid-template-columns: 1fr;
    }

    .admissions-banner h2 {
        font-size: 27px;
    }
}

/* HOMEPAGE PHOTO SLIDER */

.hero {
    height: 570px;
    position: relative;
    overflow: hidden;
    background: var(--navy);
}

.hero-slides,
.hero-slide {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(120, 29, 53, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 20px;
}

.slider-arrow:hover {
    background: var(--navy);
}

.previous {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
}

.dot.active {
    background: white;
}

@media (max-width: 768px) {
    .hero {
        height: 500px;
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
    }

    .previous {
        left: 8px;
    }

    .next {
        right: 8px;
    }
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ABOUT US PAGE */

.page-hero {
    min-height: 300px;
    background: linear-gradient(rgba(10, 25, 55, 0.82), rgba(120, 29, 53, 0.78)),
                url("../images/school%20silder/school-main.jfif") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.page-hero h2 {
    font-size: 38px;
    margin: 15px 0;
}

.page-hero h3 {
    color: #f5dba1;
    letter-spacing: 3px;
}

.page-hero p {
    letter-spacing: 3px;
    font-weight: bold;
}

@media (max-width: 600px) {
    .page-hero h2 {
        font-size: 25px;
    }
}

/* =====================================
   KABASCO ACADEMICS PAGE REDESIGN
===================================== */

.academic-hero {
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 65px 9%;
    color: white;
    background:
        linear-gradient(90deg, rgba(12, 25, 54, .94), rgba(120, 29, 53, .65)),
        url("../images/school%20silder/school-main.jfif") center/cover no-repeat;
}

.academic-hero-content {
    max-width: 680px;
}

.academic-hero-content > span,
.academic-section-heading > span,
.approach-heading > span,
.academic-cta > span {
    color: #e8c98b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
}

.academic-hero h2 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
    margin: 20px 0;
}

.academic-hero p {
    font-size: 17px;
    line-height: 1.8;
    max-width: 570px;
    margin-bottom: 28px;
}

/* INTRODUCTION */

.academic-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
    padding: 85px 9%;
    background: #fff;
}

.academic-label {
    color: #861f3e;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
}

.academic-intro h2 {
    color: #142644;
    font-size: 34px;
    line-height: 1.3;
    margin-top: 15px;
}

.academic-intro p {
    color: #555;
    line-height: 1.9;
    margin-bottom: 15px;
}

/* SECTION HEADINGS */

.academic-section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.academic-section-heading > span {
    color: #861f3e;
}

.academic-section-heading h2 {
    color: #142644;
    font-size: 32px;
    margin: 12px 0;
}

.academic-section-heading p {
    color: #666;
}

/* O LEVEL AND A LEVEL */

.academic-levels {
    padding: 75px 8%;
    background: #f5f3ef;
}

.academic-level-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1150px;
    margin: auto;
}

.level-card {
    background: white;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.09);
    transition: transform .3s, box-shadow .3s;
}

.level-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,.14);
}

.level-card img {
    width: 100%;
    height: 290px;
    object-fit: cover;
}

.level-content {
    padding: 28px;
}

.level-content span {
    color: #861f3e;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
}

.level-content h3 {
    color: #142644;
    font-size: 25px;
    margin: 12px 0;
}

.level-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 18px;
}

.level-content a {
    color: #861f3e;
    font-weight: bold;
    text-decoration: none;
}

/* PHOTO MOSAIC */

.academic-experience {
    padding: 85px 8%;
    background: white;
}

.academic-mosaic {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 230px 230px;
    gap: 16px;
    max-width: 1200px;
    margin: auto;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #142644;
}

.mosaic-large {
    grid-row: span 2;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}

.mosaic-item:hover img {
    transform: scale(1.08);
}

.mosaic-caption {
    position: absolute;
    inset: auto 0 0;
    padding: 35px 18px 18px;
    color: white;
    background: linear-gradient(transparent, rgba(5,15,35,.9));
}

.mosaic-caption h3 {
    font-size: 15px;
}

.mosaic-caption p {
    font-size: 12px;
    margin-top: 5px;
}

/* TEACHING APPROACH */

.academic-approach {
    padding: 85px 8%;
    background: #142644;
    color: white;
}

.approach-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 45px;
}

.approach-heading h2 {
    font-size: 33px;
    margin: 15px 0;
}

.approach-heading p {
    color: #d4d9e2;
    line-height: 1.8;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.approach-card {
    padding: 28px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    transition: background .3s, transform .3s;
}

.approach-card:hover {
    background: rgba(120,29,53,.75);
    transform: translateY(-5px);
}

.approach-number {
    color: #e8c98b;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 15px;
}

.approach-card h3 {
    margin-bottom: 12px;
}

.approach-card p {
    color: #d4d9e2;
    line-height: 1.7;
    font-size: 14px;
}

/* PHOTO STRIP */

.academic-photo-section {
    padding: 80px 7%;
    background: #f5f3ef;
}

.academic-photo-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: auto;
}

.academic-photo-strip img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform .3s;
}

.academic-photo-strip img:hover {
    transform: scale(1.025);
}

.academic-gallery-link {
    text-align: center;
    margin-top: 35px;
}

/* CALL TO ACTION */

.academic-cta {
    padding: 75px 20px;
    text-align: center;
    color: white;
    background: linear-gradient(120deg, #142644, #781d35);
}

.academic-cta h2 {
    font-size: 35px;
    margin: 17px 0;
}

.academic-cta p {
    margin-bottom: 28px;
    color: #eee;
}

/* RESPONSIVE DESIGN */

@media (max-width: 850px) {
    .academic-intro {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 55px 6%;
    }

    .academic-level-grid {
        grid-template-columns: 1fr;
    }

    .academic-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 210px);
    }

    .mosaic-large {
        grid-row: span 2;
    }

    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .academic-hero {
        min-height: 420px;
        padding: 45px 7%;
    }

    .academic-hero h2 {
        font-size: 34px;
    }

    .academic-intro h2,
    .academic-section-heading h2 {
        font-size: 27px;
    }

    .academic-mosaic {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(4, 175px);
    }

    .mosaic-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .academic-photo-strip {
        grid-template-columns: 1fr 1fr;
    }

    .academic-photo-strip img {
        height: 160px;
    }

    .academic-cta h2 {
        font-size: 27px;
    }
}

/* =========================================
   KABASCO ADMISSIONS PAGE DESIGN
========================================= */

.admission-hero {
    min-height: 440px;
    background:
        linear-gradient(90deg, rgba(15, 25, 55, 0.94), rgba(120, 29, 53, 0.55)),
        url("../images/school%20silder/school-main.jfif") center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 60px 9%;
    color: white;
}

.admission-hero-content {
    max-width: 650px;
}

.admission-hero-content span,
.admission-small-title,
.admission-heading > span,
.process-heading > span {
    color: #d8b66b;
    font-weight: bold;
    letter-spacing: 3px;
    font-size: 13px;
}

.admission-hero-content h2 {
    font-size: clamp(35px, 5vw, 58px);
    line-height: 1.12;
    margin: 20px 0;
}

.admission-hero-content p {
    font-size: 17px;
    line-height: 1.8;
    max-width: 570px;
    margin-bottom: 30px;
}

.admission-button,
.admission-dark-button {
    display: inline-block;
    background: #d8b66b;
    color: #172342;
    text-decoration: none;
    padding: 15px 27px;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
}

.admission-button:hover,
.admission-dark-button:hover {
    background: white;
    transform: translateY(-3px);
}

/* INTRODUCTION */

.admission-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
    padding: 90px 8%;
    background: #fff;
}

.admission-intro-text h2 {
    font-size: 36px;
    color: #172342;
    margin: 15px 0 20px;
}

.admission-intro-text p {
    line-height: 1.9;
    color: #555;
    margin-bottom: 17px;
}

.admission-dark-button {
    background: #781d35;
    color: white;
    margin-top: 10px;
}

.admission-intro-image {
    position: relative;
    min-height: 350px;
}

.admission-intro-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
}

.admission-image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(23, 35, 66, 0.92);
    color: white;
    padding: 20px;
    border-left: 5px solid #d8b66b;
}

.admission-image-caption h3 {
    margin-bottom: 7px;
}

/* ENTRY LEVELS */

.admission-entry {
    padding: 85px 8%;
    background: #f6f3ed;
}

.admission-heading,
.process-heading {
    text-align: center;
    margin-bottom: 45px;
}

.admission-heading h2,
.process-heading h2 {
    color: #172342;
    font-size: 36px;
    margin: 15px 0;
}

.admission-heading p,
.process-heading p {
    color: #666;
    line-height: 1.7;
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.entry-card {
    background: white;
    overflow: hidden;
    border-radius: 9px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.entry-card:hover {
    transform: translateY(-7px);
}

.entry-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
}

.entry-content {
    padding: 30px;
    position: relative;
}

.entry-number {
    color: #781d35;
    font-size: 35px;
    font-weight: bold;
}

.entry-content h3 {
    color: #172342;
    font-size: 25px;
    margin: 12px 0;
}

.entry-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.entry-content a {
    color: #781d35;
    text-decoration: none;
    font-weight: bold;
}

.entry-content a:hover {
    color: #172342;
}

/* LEARNING ENVIRONMENT */

.admission-learning {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 90px 8%;
    background: white;
}

.learning-photo img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 8px;
}

.learning-text h2 {
    font-size: 35px;
    color: #172342;
    margin: 15px 0 20px;
}

.learning-text > p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.learning-feature {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    align-items: flex-start;
}

.learning-feature > span {
    min-width: 48px;
    height: 48px;
    background: #781d35;
    color: white;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: bold;
}

.learning-feature h3 {
    color: #172342;
    margin-bottom: 7px;
}

.learning-feature p {
    color: #666;
    line-height: 1.7;
}

/* FACILITY SHOWCASE */

.admission-facilities {
    padding: 85px 8%;
    background: #f6f3ed;
}

.facility-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.facility-feature {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

.facility-feature img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s;
}

.facility-feature:hover img {
    transform: scale(1.05);
}

.facility-feature div {
    padding: 23px;
}

.facility-feature h3 {
    color: #172342;
    margin-bottom: 10px;
}

.facility-feature p {
    color: #666;
    line-height: 1.7;
}

/* ADMISSION PROCESS */

.admission-process {
    text-align: center;
    padding: 90px 8%;
    background: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 45px;
}

.process-step {
    padding: 35px 25px;
    background: #f6f3ed;
    border-bottom: 4px solid #781d35;
    border-radius: 6px;
}

.process-step > span {
    display: block;
    font-size: 38px;
    font-weight: bold;
    color: #781d35;
    margin-bottom: 15px;
}

.process-step h3 {
    color: #172342;
    margin-bottom: 12px;
}

.process-step p {
    color: #666;
    line-height: 1.7;
}

/* FINAL CALL TO ACTION */

.admission-final-cta {
    text-align: center;
    padding: 75px 20px;
    background: linear-gradient(120deg, #172342, #781d35);
    color: white;
}

.admission-final-cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.admission-final-cta p {
    margin-bottom: 25px;
    line-height: 1.7;
}

.admission-final-cta a {
    display: inline-block;
    background: #d8b66b;
    color: #172342;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: bold;
}

/* RESPONSIVE DESIGN */

@media (max-width: 850px) {
    .admission-intro,
    .admission-learning {
        grid-template-columns: 1fr;
    }

    .facility-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .learning-photo img {
        height: 380px;
    }
}

@media (max-width: 600px) {
    .admission-hero {
        min-height: 400px;
        padding: 45px 7%;
    }

    .admission-hero-content h2 {
        font-size: 36px;
    }

    .admission-intro,
    .admission-entry,
    .admission-learning,
    .admission-facilities,
    .admission-process {
        padding: 55px 6%;
    }

    .entry-grid,
    .facility-showcase,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .admission-heading h2,
    .process-heading h2,
    .admission-intro-text h2,
    .learning-text h2 {
        font-size: 28px;
    }

    .admission-intro-image img {
        height: 280px;
    }

    .learning-photo img {
        height: 280px;
    }

    .admission-final-cta h2 {
        font-size: 26px;
    }
}

/* ==========================================
   KABASCO CREATIVE PHOTO GALLERY
   Different shapes and image sizes
========================================== */

.gallery-hero {
    min-height: 400px;
    background:
        linear-gradient(rgba(15, 25, 55, 0.85), rgba(120, 29, 53, 0.75)),
        url("../images/school%20silder/school-main.jfif") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    color: white;
}

.gallery-hero span,
.gallery-intro span,
.gallery-heading-label {
    color: #d8b66b;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
}

.gallery-hero h2 {
    font-size: clamp(38px, 5vw, 58px);
    margin: 18px 0;
}

.gallery-hero p {
    max-width: 650px;
    line-height: 1.8;
    font-size: 17px;
    margin: auto;
}

/* INTRODUCTION */

.gallery-intro {
    text-align: center;
    padding: 70px 20px 40px;
    background: white;
}

.gallery-intro span {
    color: #781d35;
}

.gallery-intro h2 {
    color: #172342;
    font-size: 35px;
    margin: 15px 0;
}

.gallery-intro p {
    color: #666;
    line-height: 1.8;
    max-width: 700px;
    margin: auto;
}

/* GALLERY SECTION */

.gallery-section {
    padding: 60px 6%;
    background: #f6f3ed;
}

.gallery-toolbar {
    margin-bottom: 30px;
}

.gallery-toolbar h2 {
    color: #172342;
    font-size: 29px;
    margin-bottom: 8px;
}

.gallery-toolbar p {
    color: #666;
    line-height: 1.7;
}

/* FILTER BUTTONS */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.gallery-filter {
    border: 1px solid #781d35;
    background: white;
    color: #781d35;
    padding: 11px 19px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-filter:hover,
.gallery-filter.active {
    background: #781d35;
    color: white;
}

/* CREATIVE MASONRY COLLAGE */

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    grid-auto-flow: dense;
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #172342;
    cursor: pointer;
    min-height: 0;
}

/* DIFFERENT IMAGE SHAPES */

.gallery-item:nth-child(6n + 1) {
    grid-row: span 2;
    border-radius: 50px 10px 50px 10px;
}

.gallery-item:nth-child(6n + 2) {
    grid-column: span 2;
    border-radius: 10px 45px 10px 45px;
}

.gallery-item:nth-child(6n + 3) {
    border-radius: 50%;
}

.gallery-item:nth-child(6n + 4) {
    grid-row: span 2;
    border-radius: 10px 45px 45px 10px;
}

.gallery-item:nth-child(6n + 5) {
    grid-column: span 2;
    border-radius: 45px 10px 45px 10px;
}

.gallery-item:nth-child(6n + 6) {
    border-radius: 12px 50px 12px 50px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* PHOTOGRAPH CAPTIONS */

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    color: white;
    background: linear-gradient(
        transparent 20%,
        rgba(10, 20, 45, 0.9)
    );
    opacity: 0;
    transition: 0.4s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 13px;
}

/* FILTER HIDDEN ITEMS */

.gallery-item.hide {
    display: none;
}

.gallery-note {
    text-align: center;
    color: #666;
    margin-top: 35px;
    font-style: italic;
}

/* PHOTO ENLARGEMENT */

.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.96);
    align-items: center;
    justify-content: center;
    padding: 60px 65px;
}

.gallery-lightbox.show {
    display: flex;
}

.lightbox-content {
    text-align: center;
    max-width: 1100px;
    width: 100%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-content p {
    color: white;
    margin-top: 15px;
    font-size: 17px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: none;
    color: white;
    background: #781d35;
    cursor: pointer;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 25px;
}

.lightbox-close {
    top: 20px;
    right: 25px;
    font-size: 32px;
}

.lightbox-prev {
    left: 15px;
    top: 50%;
}

.lightbox-next {
    right: 15px;
    top: 50%;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: #d8b66b;
    color: #172342;
}

/* BOTTOM SECTION */

.gallery-bottom {
    text-align: center;
    padding: 70px 20px;
    background: linear-gradient(120deg, #172342, #781d35);
    color: white;
}

.gallery-bottom h2 {
    font-size: 34px;
    margin-bottom: 12px;
}

.gallery-bottom p {
    margin-bottom: 25px;
    line-height: 1.7;
}

.gallery-bottom a {
    display: inline-block;
    padding: 14px 28px;
    background: #d8b66b;
    color: #172342;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 850px) {
    .gallery-masonry {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 160px;
    }
}

@media (max-width: 600px) {
    .gallery-hero {
        min-height: 320px;
    }

    .gallery-intro h2 {
        font-size: 27px;
    }

    .gallery-section {
        padding: 40px 5%;
    }

    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 145px;
        gap: 10px;
    }

    .gallery-item:nth-child(6n + 2),
    .gallery-item:nth-child(6n + 5) {
        grid-column: span 2;
    }

    .gallery-overlay {
        opacity: 1;
        padding: 10px;
    }

    .gallery-overlay h3 {
        font-size: 13px;
    }

    .gallery-overlay p {
        font-size: 11px;
    }

    .gallery-lightbox {
        padding: 55px 40px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }
}

/* ==========================================
   KABASCO CREATIVE PHOTO GALLERY
========================================== */

.gallery-hero {
    min-height: 400px;
    background:
        linear-gradient(rgba(15,25,55,.85), rgba(120,29,53,.75)),
        url("../images/school%20silder/school-main.jfif") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    color: white;
}

.gallery-hero span,
.gallery-intro span,
.gallery-heading-label {
    color: #d8b66b;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
}

.gallery-hero h2 {
    font-size: clamp(38px, 5vw, 58px);
    margin: 18px 0;
}

.gallery-hero p {
    max-width: 650px;
    line-height: 1.8;
    font-size: 17px;
    margin: auto;
}

/* INTRODUCTION */

.gallery-intro {
    text-align: center;
    padding: 70px 20px 40px;
    background: white;
}

.gallery-intro span {
    color: #781d35;
}

.gallery-intro h2 {
    color: #172342;
    font-size: 35px;
    margin: 15px 0;
}

.gallery-intro p {
    color: #666;
    line-height: 1.8;
    max-width: 700px;
    margin: auto;
}

/* GALLERY SECTION */

.gallery-section {
    padding: 60px 6%;
    background: #f6f3ed;
}

.gallery-toolbar {
    margin-bottom: 30px;
}

.gallery-toolbar h2 {
    color: #172342;
    font-size: 29px;
    margin-bottom: 8px;
}

.gallery-toolbar p {
    color: #666;
    line-height: 1.7;
}

/* FILTER BUTTONS */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.gallery-filter {
    border: 1px solid #781d35;
    background: white;
    color: #781d35;
    padding: 11px 19px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
}

.gallery-filter:hover,
.gallery-filter.active {
    background: #781d35;
    color: white;
}

/* CREATIVE PHOTO LAYOUT */

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    grid-auto-flow: dense;
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #172342;
    cursor: pointer;
    min-height: 0;
}

.gallery-item:nth-child(6n + 1) {
    grid-row: span 2;
    border-radius: 50px 10px 50px 10px;
}

.gallery-item:nth-child(6n + 2) {
    grid-column: span 2;
    border-radius: 10px 45px 10px 45px;
}

.gallery-item:nth-child(6n + 3) {
    border-radius: 50%;
}

.gallery-item:nth-child(6n + 4) {
    grid-row: span 2;
    border-radius: 10px 45px 45px 10px;
}

.gallery-item:nth-child(6n + 5) {
    grid-column: span 2;
    border-radius: 45px 10px 45px 10px;
}

.gallery-item:nth-child(6n + 6) {
    border-radius: 12px 50px 12px 50px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    color: white;
    background: linear-gradient(
        transparent 20%,
        rgba(10,20,45,.9)
    );
    opacity: 0;
    transition: .4s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 13px;
}

.gallery-item.hide {
    display: none;
}

.gallery-note {
    text-align: center;
    color: #666;
    margin-top: 35px;
    font-style: italic;
}

/* PHOTO VIEWER */

.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.96);
    align-items: center;
    justify-content: center;
    padding: 60px 65px;
}

.gallery-lightbox.show {
    display: flex;
}

.lightbox-content {
    text-align: center;
    max-width: 1100px;
    width: 100%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-content p {
    color: white;
    margin-top: 15px;
    font-size: 17px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: none;
    color: white;
    background: #781d35;
    cursor: pointer;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 25px;
}

.lightbox-close {
    top: 20px;
    right: 25px;
    font-size: 32px;
}

.lightbox-prev {
    left: 15px;
    top: 50%;
}

.lightbox-next {
    right: 15px;
    top: 50%;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: #d8b66b;
    color: #172342;
}

.gallery-bottom {
    text-align: center;
    padding: 70px 20px;
    background: linear-gradient(120deg, #172342, #781d35);
    color: white;
}

.gallery-bottom h2 {
    font-size: 34px;
    margin-bottom: 12px;
}

.gallery-bottom p {
    margin-bottom: 25px;
    line-height: 1.7;
}

.gallery-bottom a {
    display: inline-block;
    padding: 14px 28px;
    background: #d8b66b;
    color: #172342;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

/* TABLETS */

@media (max-width: 850px) {
    .gallery-masonry {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 160px;
    }
}

/* MOBILE PHONES */

@media (max-width: 600px) {
    .gallery-hero {
        min-height: 320px;
    }

    .gallery-intro h2 {
        font-size: 27px;
    }

    .gallery-section {
        padding: 40px 5%;
    }

    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 145px;
        gap: 10px;
    }

    .gallery-item:nth-child(6n + 2),
    .gallery-item:nth-child(6n + 5) {
        grid-column: span 2;
    }

    .gallery-overlay {
        opacity: 1;
        padding: 10px;
    }

    .gallery-overlay h3 {
        font-size: 13px;
    }

    .gallery-overlay p {
        font-size: 11px;
    }

    .gallery-lightbox {
        padding: 55px 40px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }
}

/* ==========================================
   KABASCO CREATIVE PHOTO GALLERY
========================================== */

.gallery-hero {
    min-height: 400px;
    background:
        linear-gradient(rgba(15,25,55,.85), rgba(120,29,53,.75)),
        url("../images/school%20silder/school-main.jfif") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    color: white;
}

.gallery-hero span,
.gallery-intro span,
.gallery-heading-label {
    color: #d8b66b;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
}

.gallery-hero h2 {
    font-size: clamp(38px, 5vw, 58px);
    margin: 18px 0;
}

.gallery-hero p {
    max-width: 650px;
    line-height: 1.8;
    font-size: 17px;
    margin: auto;
}

/* INTRODUCTION */

.gallery-intro {
    text-align: center;
    padding: 70px 20px 40px;
    background: white;
}

.gallery-intro span {
    color: #781d35;
}

.gallery-intro h2 {
    color: #172342;
    font-size: 35px;
    margin: 15px 0;
}

.gallery-intro p {
    color: #666;
    line-height: 1.8;
    max-width: 700px;
    margin: auto;
}

/* GALLERY SECTION */

.gallery-section {
    padding: 60px 6%;
    background: #f6f3ed;
}

.gallery-toolbar {
    margin-bottom: 30px;
}

.gallery-toolbar h2 {
    color: #172342;
    font-size: 29px;
    margin-bottom: 8px;
}

.gallery-toolbar p {
    color: #666;
    line-height: 1.7;
}

/* FILTER BUTTONS */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.gallery-filter {
    border: 1px solid #781d35;
    background: white;
    color: #781d35;
    padding: 11px 19px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
}

.gallery-filter:hover,
.gallery-filter.active {
    background: #781d35;
    color: white;
}

/* CREATIVE PHOTO LAYOUT */

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    grid-auto-flow: dense;
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #172342;
    cursor: pointer;
    min-height: 0;
}

.gallery-item:nth-child(6n + 1) {
    grid-row: span 2;
    border-radius: 50px 10px 50px 10px;
}

.gallery-item:nth-child(6n + 2) {
    grid-column: span 2;
    border-radius: 10px 45px 10px 45px;
}

.gallery-item:nth-child(6n + 3) {
    border-radius: 50%;
}

.gallery-item:nth-child(6n + 4) {
    grid-row: span 2;
    border-radius: 10px 45px 45px 10px;
}

.gallery-item:nth-child(6n + 5) {
    grid-column: span 2;
    border-radius: 45px 10px 45px 10px;
}

.gallery-item:nth-child(6n + 6) {
    border-radius: 12px 50px 12px 50px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    color: white;
    background: linear-gradient(
        transparent 20%,
        rgba(10,20,45,.9)
    );
    opacity: 0;
    transition: .4s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 13px;
}

.gallery-item.hide {
    display: none;
}

.gallery-note {
    text-align: center;
    color: #666;
    margin-top: 35px;
    font-style: italic;
}

/* PHOTO VIEWER */

.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.96);
    align-items: center;
    justify-content: center;
    padding: 60px 65px;
}

.gallery-lightbox.show {
    display: flex;
}

.lightbox-content {
    text-align: center;
    max-width: 1100px;
    width: 100%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-content p {
    color: white;
    margin-top: 15px;
    font-size: 17px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: none;
    color: white;
    background: #781d35;
    cursor: pointer;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 25px;
}

.lightbox-close {
    top: 20px;
    right: 25px;
    font-size: 32px;
}

.lightbox-prev {
    left: 15px;
    top: 50%;
}

.lightbox-next {
    right: 15px;
    top: 50%;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: #d8b66b;
    color: #172342;
}

.gallery-bottom {
    text-align: center;
    padding: 70px 20px;
    background: linear-gradient(120deg, #172342, #781d35);
    color: white;
}

.gallery-bottom h2 {
    font-size: 34px;
    margin-bottom: 12px;
}

.gallery-bottom p {
    margin-bottom: 25px;
    line-height: 1.7;
}

.gallery-bottom a {
    display: inline-block;
    padding: 14px 28px;
    background: #d8b66b;
    color: #172342;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
}

/* TABLETS */

@media (max-width: 850px) {
    .gallery-masonry {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 160px;
    }
}

/* MOBILE PHONES */

@media (max-width: 600px) {
    .gallery-hero {
        min-height: 320px;
    }

    .gallery-intro h2 {
        font-size: 27px;
    }

    .gallery-section {
        padding: 40px 5%;
    }

    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 145px;
        gap: 10px;
    }

    .gallery-item:nth-child(6n + 2),
    .gallery-item:nth-child(6n + 5) {
        grid-column: span 2;
    }

    .gallery-overlay {
        opacity: 1;
        padding: 10px;
    }

    .gallery-overlay h3 {
        font-size: 13px;
    }

    .gallery-overlay p {
        font-size: 11px;
    }

    .gallery-lightbox {
        padding: 55px 40px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }
}

/* ==========================================
   KABASCO CONTACT US PAGE
========================================== */

.contact-hero {
    min-height: 350px;
    background:
        linear-gradient(rgba(15,25,55,.85), rgba(120,29,53,.8)),
        url("../images/school%20silder/school-main.jfif") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    color: white;
}

.contact-hero span {
    color: #d8b66b;
    font-weight: bold;
    letter-spacing: 3px;
}

.contact-hero h2 {
    font-size: clamp(32px, 5vw, 52px);
    margin: 18px 0;
}

.contact-hero p {
    max-width: 650px;
    margin: auto;
    line-height: 1.8;
    font-size: 17px;
}

/* INTRODUCTION */

.contact-intro {
    text-align: center;
    padding: 65px 20px 45px;
    background: white;
}

.contact-intro span {
    color: #781d35;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
}

.contact-intro h2 {
    color: #172342;
    font-size: 34px;
    margin: 15px 0;
}

.contact-intro p {
    color: #666;
    max-width: 750px;
    margin: auto;
    line-height: 1.8;
}

/* CONTACT SECTION */

.contact-section {
    background: #f6f3ed;
    padding: 65px 6%;
}

.contact-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 45px;
    align-items: start;
}

.contact-details h2,
.contact-form-area h2 {
    color: #172342;
    font-size: 28px;
    margin-bottom: 25px;
}

.contact-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: white;
    padding: 22px;
    margin-bottom: 16px;
    border-radius: 10px;
    border-left: 4px solid #781d35;
    box-shadow: 0 5px 18px rgba(0,0,0,.05);
    transition: .3s;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: #f4e8e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.contact-card h3 {
    color: #781d35;
    margin-bottom: 8px;
    font-size: 18px;
}

.contact-card p {
    color: #555;
    line-height: 1.8;
}

.contact-card a {
    color: #555;
    text-decoration: none;
}

.contact-card a:hover {
    color: #781d35;
    text-decoration: underline;
}

/* CONTACT FORM */

.contact-form-area {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.07);
}

.contact-form-area > p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

#contactForm label {
    display: block;
    color: #172342;
    font-weight: bold;
    margin: 17px 0 8px;
}

#contactForm input,
#contactForm select,
#contactForm textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    background: #fff;
    box-sizing: border-box;
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
    border-color: #781d35;
    box-shadow: 0 0 0 3px rgba(120,29,53,.1);
}

#contactForm textarea {
    resize: vertical;
}

#contactForm button {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: #781d35;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
}

#contactForm button:hover {
    background: #172342;
}

.form-note {
    font-size: 13px;
    color: #777;
    margin-top: 15px;
}

/* BOTTOM SECTION */

.contact-bottom {
    text-align: center;
    padding: 65px 20px;
    background: linear-gradient(120deg, #172342, #781d35);
    color: white;
}

.contact-bottom h2 {
    font-size: 35px;
    margin-bottom: 15px;
}

.contact-bottom p {
    max-width: 700px;
    margin: auto auto 25px;
    line-height: 1.8;
}

.contact-bottom a {
    display: inline-block;
    padding: 14px 28px;
    background: #d8b66b;
    color: #172342;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

/* RESPONSIVE DESIGN */

@media (max-width: 850px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .contact-hero {
        min-height: 300px;
    }

    .contact-intro h2 {
        font-size: 27px;
    }

    .contact-section {
        padding: 40px 5%;
    }

    .contact-form-area {
        padding: 22px;
    }

    .contact-details h2,
    .contact-form-area h2 {
        font-size: 24px;
    }
}

/* CONTROL SCHOOL LOGO SIZE ON ALL PAGES */

.logo-area img {
    width: 75px;
    height: 75px;
    max-width: 75px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 600px) {
    .logo-area img {
        width: 55px;
        height: 55px;
    }
}
/* ADMISSIONS PAGE LOGO SIZE */

.main-header .logo-area img.school-logo {
    width: 75px !important;
    height: 75px !important;
    max-width: 75px !important;
    max-height: 75px !important;
    object-fit: contain !important;
    flex-shrink: 0;
    display: block;
}

.main-header .logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 600px) {
    .main-header .logo-area img.school-logo {
        width: 55px !important;
        height: 55px !important;
    }
}

/* ==========================================
   KABASCO ANIMATED NAVIGATION
========================================== */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.main-nav a {
    position: relative;
    display: inline-block;
    padding: 12px 16px;
    color: #172342;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.35s ease;
    overflow: hidden;
}

/* ANIMATED UNDERLINE */

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 0;
    height: 3px;
    background: #d8b66b;
    border-radius: 5px;
    transition: all 0.35s ease;
    transform: translateX(-50%);
}

/* HOVER EFFECT */

.main-nav a:hover {
    color: white;
    background: #781d35;
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(120,29,53,.25);
}

.main-nav a:hover::after {
    width: 65%;
}

/* ACTIVE PAGE LINK */

.main-nav a.active {
    background: #781d35;
    color: white;
    box-shadow: 0 4px 12px rgba(120,29,53,.2);
}

.main-nav a.active::after {
    width: 65%;
}

/* SMOOTH ANIMATION */

.main-nav a:active {
    transform: scale(.95);
}

/* MOBILE NAVIGATION */

@media (max-width: 600px) {
    .main-nav {
        gap: 5px;
    }

    .main-nav a {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ==========================================
   KABASCO ANIMATED NAVIGATION - ALL PAGES
========================================== */

.navigation,
.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.navigation a,
.main-nav a {
    position: relative;
    display: inline-block;
    padding: 12px 16px;
    color: #172342;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.35s ease;
}

/* GOLD ANIMATED UNDERLINE */

.navigation a::after,
.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 0;
    height: 3px;
    background: #d8b66b;
    border-radius: 5px;
    transform: translateX(-50%);
    transition: width 0.35s ease;
}

/* HOVER EFFECT */

.navigation a:hover,
.main-nav a:hover {
    color: white;
    background: #781d35;
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(120,29,53,.25);
}

.navigation a:hover::after,
.main-nav a:hover::after {
    width: 65%;
}

/* ACTIVE PAGE */

.navigation a.active,
.main-nav a.active {
    color: white;
    background: #781d35;
    box-shadow: 0 4px 12px rgba(120,29,53,.2);
}

.navigation a.active::after,
.main-nav a.active::after {
    width: 65%;
}

/* CLICK ANIMATION */

.navigation a:active,
.main-nav a:active {
    transform: scale(.95);
}

/* MOBILE */

@media (max-width: 600px) {
    .navigation,
    .main-nav {
        gap: 5px;
    }

    .navigation a,
    .main-nav a {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ==========================================
   UNIVERSAL KABASCO NAVIGATION ANIMATION
========================================== */

#mainNavigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

#mainNavigation a {
    position: relative;
    display: inline-block;
    padding: 12px 16px;
    color: #172342;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.35s ease;
}

/* GOLD UNDERLINE */

#mainNavigation a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 0;
    height: 3px;
    background: #d8b66b;
    border-radius: 5px;
    transform: translateX(-50%);
    transition: width 0.35s ease;
}

/* HOVER EFFECT */

#mainNavigation a:hover {
    background: #781d35;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(120,29,53,.25);
}

#mainNavigation a:hover::after {
    width: 65%;
}

/* ACTIVE PAGE */

#mainNavigation a.active {
    background: #781d35;
    color: white;
}

#mainNavigation a.active::after {
    width: 65%;
}

/* CLICK EFFECT */

#mainNavigation a:active {
    transform: scale(.95);
}

/* MOBILE NAVIGATION */

@media (max-width: 600px) {
    #mainNavigation {
        gap: 5px;
    }

    #mainNavigation a {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ==========================================
   KABASCO CLASSY GOLDEN WEBSITE THEME
========================================== */

/* MAIN WEBSITE BACKGROUND */

body {
    background: linear-gradient(
        135deg,
        #f8edcf 0%,
        #ead49a 45%,
        #f8edcf 100%
    ) !important;
    color: #172342;
}

/* MAIN CONTENT BACKGROUNDS */

main,
section {
    background-color: transparent;
}

/* GENERAL CONTENT SECTIONS */

.about-section,
.academics-section,
.admissions-section,
.contact-section,
.gallery-section {
    background: linear-gradient(
        135deg,
        #fffaf0,
        #f2e3bd
    );
}

/* GOLDEN HEADERS */

.main-header {
    background: linear-gradient(
        120deg,
        #fff8e6,
        #e8d19a
    );
    border-bottom: 4px solid #b58a35;
}

/* GOLDEN TOP BAR */

.top-bar {
    background: linear-gradient(
        90deg,
        #172342,
        #604719,
        #172342
    );
    color: #fff4d6;
}

/* GOLDEN FOOTER */

.main-footer {
    background: linear-gradient(
        120deg,
        #172342,
        #4b3716,
        #781d35
    );
    color: #fff4d6;
    border-top: 4px solid #d8b66b;
}

/* GOLDEN BUTTONS */

button,
.contact-bottom a,
.gallery-bottom a {
    transition: all .35s ease;
}

button:hover,
.contact-bottom a:hover,
.gallery-bottom a:hover {
    background: #d8b66b;
    color: #172342;
}

/* GOLDEN CARDS */

.contact-card,
.contact-form-area {
    border: 1px solid #dfc27e;
    box-shadow: 0 8px 25px rgba(95, 68, 20, .10);
}

/* GOLDEN NAVIGATION BORDER */

.navigation,
.main-nav,
#mainNavigation {
    border-bottom: 2px solid #d8b66b;
}

/* SMOOTH PAGE APPEARANCE */

html {
    scroll-behavior: smooth;
}


/* ANIMATED OFFICIAL DOCUMENTS SECTION */

.documents-link {
    max-width: 750px;
    margin: 35px auto;
    padding: 28px;
    text-align: center;
    background: #f4f1e9;
    border-top: 5px solid #d6ad55;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.15);
}

.documents-link h3 {
    color: #641c32;
    margin-bottom: 10px;
}

.documents-link p {
    color: #333;
    line-height: 1.6;
}

.documents-button {
    display: inline-block;
    margin-top: 18px;
    padding: 16px 30px;
    background: #641c32;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #d6ad55;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(100, 28, 50, 0.3);

    /* Animation */
    animation: documentPulse 2s infinite;
    transition: all 0.3s ease;
}

/* Gentle floating and glowing animation */
@keyframes documentPulse {
    0% {
        transform: translateY(0);
        box-shadow: 0 5px 12px rgba(100, 28, 50, 0.3);
    }

    50% {
        transform: translateY(-5px);
        box-shadow: 0 8px 22px rgba(214, 173, 85, 0.8);
    }

    100% {
        transform: translateY(0);
        box-shadow: 0 5px 12px rgba(100, 28, 50, 0.3);
    }
}

/* Hover effect */
.documents-button:hover {
    background: #102b50;
    color: #f3d58a;
    transform: scale(1.07);
    animation-play-state: paused;
    box-shadow: 0 8px 25px rgba(16, 43, 80, 0.5);
}

/* Keyboard accessibility */
.documents-button:focus-visible {
    outline: 3px solid #d6ad55;
    outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
    .documents-button {
        animation: none;
    }
}
