:root {
    --blue: #00285e;
    --gold: #c1b272;
    --orange: #e67e22;
    --white: #ffffff;
}

/* --- GLOBAL TYPOGRAPHY --- */
body { 
    margin: 0; 
    padding: 0; 
    font-family: 'Inter', sans-serif; 
    background: #fff; 
    color: #333;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.3; }
p { font-size: 1.1rem; margin-bottom: 1.5rem; }

/* --- 1. FIXED BANNER SECTION --- */
.banner-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    transform: scale(1);
    transition: transform 6s ease;
}

.swiper-slide-active .banner-image { transform: scale(1.1); }

.swiper-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0) 30%,
            rgba(0, 0, 0, 0) 70%,
            rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
}

.banner-logo { z-index: 1000; position: absolute; top: 20px; left: 20px; }
.logo-img { max-height: 80px; width: auto; object-fit: contain; }

.banner-overlay {
    z-index: 1000;
    display: flex;
    align-items: center;
}

.overlay-logo img.logo-img-bottom {
    max-height: 150px;
    padding: 12px 16px;
    width: auto;
}

.overlay-text h2 {
    font-weight: 700;
    margin: 0;
    color: #fff !important;
}

.overlay-text p {
    margin: 6px 0 0;
    font-size: 1rem;
    display: inline-block;
    border: 1px solid white;
    padding: 2px 8px;
    color: #fff;
}

.desktop-form-container {
    z-index: 1001;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-right: 4rem;
}

/* --- 2. BLUE REVEAL CONTAINER (Integrated from user code) --- */
.reveal-wrapper {
    position: relative;
    z-index: 2;
    margin-top: 100vh; /* Shows the hero first */
    height: 300vh; /* Defines how long the scroll animation lasts */
}

.sticky-blue-section {
    position: sticky;
    top: 0;
    height: 100vh;
    background-color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 -15px 40px rgba(0,0,0,0.6);
}

/* LARGE REVEALING LOGO (CREST) */
.background-crest {
    position: absolute;
    width: 75vh;
    height: 75vh;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.08;
    pointer-events: none;
    transform: translateY(100px);
    transition: transform 0.1s linear;
}

.background-crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* REVEAL TEXT CONTAINER */
.content-container {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 1000px;
    padding: 40px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.content-container.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.content-container h2 {
    margin-bottom: 25px;
    color: #fff;
}

.content-container p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.content-container strong {
    font-weight: 600;
    color: var(--white);
}

@media (max-width: 768px) {
    .background-crest { width: 50vw; height: 50vw; }
    .content-container { padding: 20px; }
    .reveal-wrapper { height: 400vh; margin-top:0;}
}

/* --- 3. INTERACTIVE JOURNEY (DESKTOP) --- */
.dis-journey-section {
    position: relative;
    z-index: 11;
    background: #fff;
    padding: 100px 0;
}

.dis-journey-intro { text-align: center; max-width: 800px; margin: 0 auto 80px; }
.dis-journey-intro h2 { color: var(--blue); text-transform: uppercase; font-weight: 700; margin-bottom: 20px;   }
.dis-journey-span{    font: italic 500 5.125rem / .7 "EB Garamond", serif;
    color: #2d79c5;
    text-transform: lowercase; vertical-align: middle; }
.dis-journey-intro p { color: #444; }

.dis-interactive-container { display: flex; align-items: flex-start; max-width: 1400px; margin: 0 auto; padding: 0 50px; gap: 80px; }

.dis-sidebar { flex: 0 0 320px; position: sticky; top: 120px; height: fit-content; }
.dis-nav-wrap { position: relative; padding-left: 45px; list-style: none; }
.dis-nav-wrap::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1.5px; background: #e0e0e0; }

.dis-nav-progress {
   position: absolute;
   top: 28px;
   left: 6px;
    background: #de7c0d;
}

.dis-nav-item { margin-bottom: 50px; cursor: pointer; font-size: 13px; font-weight: 700; text-transform: uppercase; color: #999; position: relative; transition: 0.3s; }
.dis-nav-item::before { content: ''; position: absolute; left: -51.5px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; background: #fff; border: 2px solid #e0e0e0; border-radius: 50%; z-index: 2; transition: 0.3s; }
.dis-nav-item.active { color: var(--blue); }
.dis-nav-item.active::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 5px rgba(230,126,34,0.2); }

.dis-sidebar-cta { 
    display: inline-block; margin-top: 10px; padding: 18px 25px; border: 1px solid var(--blue); 
    color: var(--blue); text-decoration: none; font-size: 11px; font-weight: 800; border-radius: 4px; 
    text-align: center; line-height: 1.4; transition: 0.3s;
}
.dis-sidebar-cta:hover { background: var(--blue); color: #fff; }

.dis-content-scroll { flex: 1; }
.dis-scroll-card { position: relative; margin-bottom: 120px; border-radius: 15px; overflow: hidden; aspect-ratio: 16/10; box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.dis-scroll-card img { width: 100%; height: 100%; object-fit: cover; }

.dis-card-info { 
    position: absolute; bottom: 20px; max-width: 52%; max-height: calc(100% - 40px); 
    padding: 40px; background: rgba(0, 40, 94, .84); color: #fff; overflow: auto; border-radius: 4px;
}
.dis-scroll-card:nth-child(odd) .dis-card-info { right: 20px; left: auto; }
.dis-scroll-card:nth-child(even) .dis-card-info { left: 20px; right: auto; }

.dis-card-info h3 { margin-bottom: 15px; color: #fff; }
.dis-card-info p { opacity: 1; font-weight: 300; margin-bottom: 0; color: #fff; }

/* --- 4. MOBILE JOURNEY --- */
.mobile-journey-wrapper { display: none; padding: 40px 15px; background: #fff; }
.mobile-nav-top { display: flex; align-items: center; justify-content: center; gap: 130px; margin-bottom: 30px; }
.swiper-btn-custom { color: var(--orange); font-size: 32px; cursor: pointer; }
.swiper-pagination-custom { display: flex; gap: 12px; align-items: center; }
.dot { width: 12px; height: 12px; border: 1px solid #ccc; border-radius: 50%; transition: 0.3s; }
.dot.active { background: var(--orange); border-color: var(--orange); }
.mobile-slide { border-radius: 25px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.mobile-slide img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.mobile-blue-box { background: rgba(0, 40, 94, .84); color: #fff; padding: 30px 20px; }
.mobile-blue-box h3 { font-size: 1.5rem; margin-bottom: 10px; }
.mobile-blue-box p { font-size: 1rem; opacity: 0.9; font-weight: 300; }

/* --- FLOATING BUTTONS --- */
.floating-buttons {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%);
    background: #3d4144; padding: 18px 12px; border-radius: 20px 0 0 20px; z-index: 10000;
    display: flex; flex-direction: column; gap: 25px;
}
.floating-btn { color: #d1d1d1; font-size: 28px; text-decoration: none; transition: 0.3s; }
.floating-btn:hover { color: #fff; transform: scale(1.1); }

@media (max-width: 1024px) { 
    .dis-interactive-container { display: none; }
    .mobile-journey-wrapper { display: block; }
    .banner-section { position: relative; height: auto; }
    .banner-image { height: 60vh; }
    .spacer { display: none; }
    .desktop-form-container { width: 95%; margin: 10px auto 40px; position: relative !important; top: auto !important; right: auto !important; transform: none !important; }
    .banner-overlay { display: none !important; }
}

/* --- 5. CAMPUS FEATURES () --- */
:root {
    --navy: #002147;
    --accent-gold: #d98d28;
}

.campus-section {
    position: relative;
    z-index: 12;
    padding: 100px 20px;
    background-color: var(--navy);
    background-image: url(''); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 33, 71, 0.88);
    z-index: 1;
}

.campus-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header h2 {
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 800;
    color: #fff;
}

.section-header p {
    color: #fff;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 40px;
}

.script-font {
    color: var(--accent-gold);
    text-transform: lowercase;
    font-style: italic;
    display: inline-block;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.campus-card {
    height: 480px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.campus-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,33,71,1) 15%, rgba(0,33,71,0.5) 50%, transparent 100%);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    text-align: left;
    color: #fff;
}

.card-title {
    font-weight: 800;
    margin: 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.2rem;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8; 
}

.card-list li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
    color: #fff;
}

.card-list li::before {
    content: '•';
    color: var(--accent-gold);
    position: absolute;
    left: 0;
}

.secondary-bg {
    background-color: #001a33;
}

@media (max-width: 768px) {
    .campus-section { padding: 60px 15px; }
    .campus-card { height: 400px; }
}

/* --- 6. AWARDS & RECOGNITIONS --- */
.awards-section { 
    padding: 80px 0; 
    background: #fff; 
    text-align: center; 
    position: relative;
    z-index: 11;
}

.awards-section h2 {
    margin-bottom: 10px;
}

.awards-images-container { 
    display: flex; 
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 50px; 
    margin-top: 40px; 
}

.awards-images-container img { 
    max-width: 350px; 
    height: auto; 
    border-radius: 10px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

@media (max-width: 768px) {
    .awards-images-container img { max-width: 90%; }
}

/* --- 7. MOMENTS GALLERY () --- */
.gallery-section {
    background: #fdfdfd;
    padding: 20px 0;
    overflow-x: hidden;
    position: relative;
    z-index: 11;
}

.gallery-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 100px auto 0; /* Significantly increased top margin to clear strings from heading */
}

.gallery-section .dis-journey-intro {
    margin-bottom: 0; /* Let the gallery-container margin handle the spacing */
    position: relative;
    z-index: 10; /* Ensure heading stays above strings if they ever overlap */
    background: #fdfdfd; /* Solid background to hide strings behind heading */
    padding-bottom: 20px;
}

.gallery {
    position: relative;
    width: 100%;
    display: grid;
    justify-content: space-between;
    justify-items: center;
    align-items: center;
    --left: 0;
    --top: 0;
    --zoom: 1;
    --trans-dur: .8s;
    transition-property: --left, --top, --zoom;
    transition-duration: var(--trans-dur), var(--trans-dur), calc(.75 * var(--trans-dur));
    transition-delay: 0s, 0s, calc(.25 * var(--trans-dur));
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(var(--left), var(--top)) scale(var(--zoom));
}

.gallery-container.zoomed-in > .gallery {
    transition-duration: var(--trans-dur), var(--trans-dur), calc(.6 * var(--trans-dur));
    transition-delay: 0s;
}

.gallery-item {
    position: relative;
    grid-column-end: span 2;
}

.gallery-item-perspective,
.gallery-item-strings-perspective {
    perspective: 1000px; /* Increased perspective for larger items */
}

.gallery-item-perspective {
    position: relative;
    z-index: 1;
    display: block;
    text-decoration: none;
    outline: none;
}

.gallery-container:not(.zoomed-in) .gallery-item-perspective:hover + .gallery-item-strings-perspective .gallery-item-strings,
.gallery-container:not(.zoomed-in) .gallery-item-perspective:hover .gallery-item-wrap {
    animation: wobble .9s ease-in-out;
}

@keyframes wobble {
    15% { transform: rotateY(10deg); }
    40% { transform: rotateY(-7deg); }
    60% { transform: rotateY(4deg); }
    78% { transform: rotateY(-2deg); }
    89% { transform: rotateY(1deg); }
    100% { transform: none; }
}

.gallery-item-wrap {
    padding: 18px; /* Increased padding/frame size */
    background: var(--frame);
    cursor: pointer;
    box-shadow: 6px 8px 12px rgba(0,0,0,0.5); /* Enhanced shadow */
    transition: .25s;
    z-index: 1;
}

.gallery-item-strings-perspective {
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
}

.gallery-item-strings {
    flex: auto;
}

.gallery-item-strings::before,
.gallery-item-strings::after {
    content: "";
    position: absolute;
    bottom: 50%;
    width: 1.5px; /* Slightly thicker strings */
    background: hsl(30, 50%, 93%);
    box-shadow: 4px 0 3px rgba(0,0,0,.4);
    pointer-events: none;
}

.gallery-item-strings::before { left: 7%; }
.gallery-item-strings::after { right: 7%; }

.gallery-item-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    transition: opacity var(--trans-dur);
    pointer-events: none;
}

.gallery-item.current .gallery-item-overlay {
    opacity: 0;
    transition-duration: .8s;
}

.gallery-img {
    display: block;
    max-width: 100%;
    aspect-ratio: 1 / 1; /* Force square aspect ratio */
    object-fit: cover; /* Ensure image fills the square without distortion */
    width: 450px; /* Force a larger width for images */
}

@media (max-width: 899px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 10vw; /* Reduced gap to allow larger items */
        padding: 5% 5%;
    }

    .gallery-img { width: 100%; } /* Flexible on mobile */

    .gallery-item:nth-child(3n + 3) {
        grid-column-start: 2;
    }

    .gallery-item-strings::before,
    .gallery-item-strings::after {
        height: 57vw;
    }

    .gallery-item:nth-child(3n + 1) .gallery-item-strings::before,
    .gallery-item:nth-child(3n + 2) .gallery-item-strings::after {
        height: 125vw;
    }
}

@media (min-width: 900px) {
    .gallery {
        grid-template-columns: repeat(6, 1fr);
        gap: 6vw; /* Reduced gap for larger items */
        padding: 5% 10%;
    }

    .gallery-item:nth-child(5n + 4) {
        grid-column-start: 2;
    }

    .gallery-item-strings::before,
    .gallery-item-strings::after {
        height: 31vw;
    }

    .gallery-item:nth-child(5n + 1) .gallery-item-strings::before,
    .gallery-item:nth-child(5n + 3) .gallery-item-strings::after {
        height: 63vw;
    }
}

/* --- 8. ADMISSION PROCESS (Integrated from application-process.php) --- */
.admission-process-section {
    padding: 20px 0;
    background-color: #fff;
    position: relative;
    z-index: 11;
}

.admission-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- DESKTOP TOP PROGRESS CARDS --- */
.desktop-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 60px;
}

.step-card {
    background-color: var(--blue);
    color: white;
    padding: 25px 10px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.4;
    transform: scale(0.95);
    cursor: pointer;
}

.step-card.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 40, 94, 0.25);
    background-color: var(--blue);
}

.step-card.completed {
    opacity: 0.8;
    background-color: var(--blue);
}

.step-card .icon { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.step-card .label { font-size: 0.9rem; font-weight: 600; line-height: 1.3; text-transform: uppercase; }

/* --- CONTENT GRID --- */
.admission-content-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    border-top: 1px solid #eee;
    padding-top: 50px;
}

/* Eligibility Styles */
.eligibility-box h3 { color: var(--blue); font-size: 1.5rem; margin-bottom: 20px; font-weight: 700; }
.eligibility-list { list-style: none; padding: 0; }
.eligibility-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}
.eligibility-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--orange);
    font-size: 2.5rem;
    top: -12px;
}

/* --- ADMISSIONS TIMELINE --- */
.vertical-timeline {
    position: relative;
    padding-left: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: flex-start;
    opacity: 0.3;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.active { opacity: 1; transform: translateX(5px); }
.timeline-item.completed { opacity: 0.7; }

.timeline-circle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background-color: var(--blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
    font-size: 1.1rem;
}

.timeline-item.active .timeline-circle {
    background-color: var(--orange);
}

/* SEGMENTED LINE LOGIC */
.timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 54px;
    bottom: -44px;
    width: 2px;
    background-color: var(--gold);
    z-index: 1;
}

.timeline-text {
    padding-left: 20px;
    margin-top: 4px;
}

.timeline-text h4 { margin: 0; font-size: 1.2rem; color: var(--blue); font-weight: 700; }
.timeline-text p { margin: 6px 0 0; color: #666; font-size: 0.95rem; line-height: 1.4; }

/* Marketing Section */
.marketing-banner {
    background: #f9f9f9;
    padding: 30px;
    border-left: 5px solid var(--orange);
    border-radius: 4px;
    margin-top: 40px;
}
.marketing-banner h3 { margin: 0 0 10px; font-size: 1.4rem; color: var(--blue); font-weight: 700; }
.marketing-banner p { margin: 0; color: #555; font-style: italic; line-height: 1.5; }

.admission-apply-btn {
    background-color: var(--orange);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 30px;
    width: 100%;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}
.admission-apply-btn:hover { background-color: var(--blue); transform: translateY(-2px); }

@media (max-width: 992px) {
    .desktop-steps { display: none; }
    .admission-content-grid { grid-template-columns: 1fr; }
    .vertical-timeline { margin-top: 20px; }
}


/* --- 7. FOOTER SECTION --- */
.dis-footer {
    background-color: var(--blue);
    color: #fff;
    padding: 10px 20px 20px;
    position: relative;
    z-index: 15; /* Higher than banner and all sections */
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    max-height: 80px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer-info p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-info strong {
    color: #fff;
    font-size: 1.2rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: var(--orange) !important;
}

.footer-bottom {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .dis-footer { padding: 40px 15px 20px; }
}