:root {
    --school-blue: #0047BA;
    --school-red: #DD2107;
    --text-dark: #111111;
    --text-muted: #555555;
    --nav-text: #333333;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-up { transform: translateY(40px); }
.reveal-down { transform: translateY(-40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Micro-animations */
.hover-scale {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.pulse-button {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(221, 33, 7, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(221, 33, 7, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(221, 33, 7, 0); }
}

.nav-link-grow {
    position: relative;
}

.nav-link-grow::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--school-red);
    transition: width 0.3s ease;
}

.nav-link-grow:hover::after {
    width: 100%;
}

.mobile-br {
    display: none;
}

body {
    font-family: 'Cambria', serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}

/* Top Header */
header {
    background: #fff;
}

.top-header {
    padding: 15px 5% 5px 5%;
    /* Reduced bottom padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.logo-container img {
    height: 90px;
    /* Adjusted for better visibility */
    width: auto;
}

.contact-info-wrapper {
    display: flex;
    gap: 40px;
    /* Increased gap as per image */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-box {
    width: 48px;
    height: 48px;
    background-color: #3AB0E5;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0;
    /* Sharper corners as per image */
}

.icon-box svg {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 700;
    max-width: 300px;
    line-height: 1.4;
}

/* Navigation */
.main-nav {
    border-top: 1px solid #e5e5e5;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    display: block;
    padding: 20px 20px;
    /* Balanced padding */
    text-decoration: none;
    color: var(--nav-text);
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--school-red);
}

.contact-btn {
    background-color: var(--school-red);
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s;
    display: inline-block;
}

.contact-btn:hover {
    background-color: #90030b;
}

.offcanvas-nav li a:hover,
.offcanvas-nav li a.active {
    color: var(--school-red);
}

.offcanvas-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.offcanvas-contact-btn {
    display: inline-flex;
    /* Changed to inline-flex to allow auto-width */
    align-self: center;
    /* Center horizontally in the flex container */
    justify-content: center;
    align-items: center;
    background-color: var(--school-blue);
    color: white;
    text-align: center;
    padding: 10px 25px;
    /* Reduced vertical padding, generous horizontal */
    text-decoration: none;
    font-weight: 700;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 71, 186, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    width: fit-content;
    /* Only take space needed for text */
}

.offcanvas-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item .info-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    color: var(--school-blue);
    font-weight: 800;
    margin-bottom: 2px;
}

.info-item p {
    font-size: 12px;
    color: #444;
    line-height: 1.3;
    margin: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-image: url('../images/heroimage.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 150px 8% 380px;
    /* Increased bottom padding so cards don't hide buttons */
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 800px;
}

.hero-title {
    font-family: 'Merriweather', serif;
    font-size: 64px;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background-color: var(--school-red);
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-secondary {
    background-color: white;
    color: #333;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.3s;
}

/* Hero Features (Overlapping) */
.hero-features {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    /* This enables the stepped effect */
    z-index: 3;
}

.feature-card {
    padding: 0 10% 20px;
    box-sizing: border-box;
}

.feature-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 19px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
}

.card-dark-blue {
    background-color: #051F49;
    min-height: 140px;
    padding-top: 20px;
}

.card-light-blue {
    background-color: #3AB0E5;
    min-height: 180px;
    padding-top: 60px;
}

.card-red {
    background-color: var(--school-red);
    min-height: 220px;
    padding-top: 53px;
    /* Accounts for the 47px badge row */
}

/* Avatars and Badge */
.badge-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
}

.avatars img:first-child {
    margin-left: 0;
}

.badge {
    background-color: var(--school-blue);
    color: white;
    font-size: 12px;
    font-weight: 700;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid white;
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-features {
        position: relative;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 5% 50px !important;
        /* Reduced padding for mobile */
        text-align: center;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 32px !important;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 16px !important;
        margin-bottom: 30px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        padding: 15px 20px;
        font-size: 13px;
        text-align: center;
    }

    .hero-features {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 40px;
    }

    .feature-card {
        padding: 30px 20px !important;
        text-align: left;
    }

    .card-dark-blue,
    .card-light-blue,
    .card-red {
        min-height: auto !important;
        padding-top: 30px !important;
    }
}

/* About Section */
.about-section {
    padding: 100px 0 0;
    /* No horizontal padding so image can go full width */
    background-color: #fff;
    color: var(--text-dark);
}

.about-container {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 40px;
    padding: 0 8%;
    /* Added horizontal padding here instead */
}

.about-content {
    flex: 1;
    max-width: 500px;
}

.about-subtitle {
    color: var(--school-red);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.about-title {
    font-family: 'Merriweather', serif;
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.4;
}

.text-red {
    color: var(--school-red);
}

.text-blue {
    color: var(--school-blue);
}

.about-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-established {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.about-established .text-blue {
    font-size: 22px;
    margin-left: 8px;
}

.about-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-row {
    display: flex;
    background-color: #f4f5f7;
    border-top: 1px solid #e0e0e0;
    padding: 25px 30px;
    gap: 20px;
}

.stat-row:last-child {
    border-bottom: 1px solid #e0e0e0;
}

.stat-row.border-red {
    border-left: 10px solid var(--school-red);
}

/* Second stat row (Global Locations) */
.stat-row:nth-child(2).border-blue {
    border-left: 10px solid #051F49;
}

/* Third stat row (Educational Legacy) */
.stat-row:nth-child(3).border-blue {
    border-left: 10px solid #3AB0E5;
}

.stat-number {
    flex: 0 0 150px;
}

.stat-number h4 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 5px 0;
    /* Reset top margin to 0 for perfect straight alignment */
    color: var(--text-dark);
}

.stat-row.border-red .stat-number h4 {
    color: var(--school-red);
}

.stat-number span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.stat-desc {
    flex: 1;
}

.stat-desc p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.about-image-wrapper {
    width: 100%;
    margin-top: 50px;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1024px) {
    .about-container {
        flex-direction: column;
        padding: 0 5%;
    }

    .about-content {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .about-stats {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0 0;
    }

    .about-title {
        font-size: 26px !important;
        /* Slightly smaller to ensure 2 lines fit */
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .about-title br {
        display: none;
        /* Hide the desktop line break on mobile */
    }

    .about-text {
        font-size: 13px;
        line-height: 1.7;
    }

    .about-established {
        font-size: 13px;
        margin-bottom: 25px;
    }

    .mobile-br {
        display: block;
    }

    .about-content .btn-primary {
        display: block !important;
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    /* Restoring Stat Row styles */
    .stat-row {
        flex-direction: column;
        /* Stack number above description */
        padding: 20px;
        gap: 10px;
        border-left-width: 6px;
    }

    .stat-number {
        flex: 0 0 auto;
        text-align: left;
    }

    .stat-number h4 {
        font-size: 20px;
        margin-bottom: 2px;
    }

    .stat-number span {
        font-size: 14px;
        display: block;
        margin-bottom: 8px;
    }

    .stat-desc {
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding-top: 10px;
    }

    .stat-desc p {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Academics Section */
.academics-section {
    padding: 100px 8%;
    background-color: #fbfbfb;
}

.academics-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.academics-content {
    flex: 1;
    max-width: 500px;
}

.academics-subtitle {
    color: var(--school-red);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.academics-title {
    font-family: 'Merriweather', serif;
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.3;
}

.academics-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 25px;
}

.academics-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Reset to left */
    gap: 3px;
    /* Very thin gap between cards */
}

.acad-card {
    padding: 25px 35px;
    color: white;
    width: 85%;
    /* Shorter width to create a larger stagger */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.acad-card.dark-blue {
    background-color: #051F49;
    margin-left: 15%;
    /* Pushed hard to the right */
}

.acad-card.light-blue {
    background-color: #3AB0E5;
    margin-left: 0;
    /* Pushed hard to the left */
}

/* Middle card offset logic */
.acad-card.offset-left {
    /* Logic handled by color classes above */
}

.acad-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.acad-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.acad-card .arrow {
    font-size: 20px;
    font-weight: 300;
}

.acad-card p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
}

@media (max-width: 1024px) {
    .academics-container {
        flex-direction: column;
        align-items: stretch;
        padding: 0 15px;
        /* Reduced padding to give text more space */
        gap: 20px;
    }

    .academics-content {
        max-width: 100%;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .academics-section {
        padding: 60px 0;
    }

    .academics-title {
        font-size: 24px !important;
        /* Slightly smaller to ensure 2 lines fit */
        margin-bottom: 20px;
        line-height: 1.3;
    }

    /* .academics-title br removed display: none to allow 2 lines as per desktop break */

    .academics-text {
        font-size: 13px;
        line-height: 1.7;
    }

    .academics-content .btn-primary {
        display: block !important;
        width: 100%;
        text-align: center;
        padding: 15px 0;
        margin-bottom: 0;
    }

    .academics-cards {
        width: 100%;
        gap: 15px;
        /* More space between stacked cards on mobile */
    }

    .acad-card {
        width: 100% !important;
        /* Full width cards */
        margin-left: 0 !important;
        /* Remove stagger */
        padding: 25px 20px;
    }

    .acad-card h3 {
        font-size: 15px;
    }

    .acad-card p {
        font-size: 13px;
    }
}

.contact-btn {
    background-color: var(--school-red);
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.contact-btn:hover {
    background-color: #8e030b;
}

@media (max-width: 1024px) {
    .contact-info-wrapper {
        display: none;
    }

    .nav-links {
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Faculties Section */
.faculties-section {
    padding: 80px 8%;
    background-color: #eef2f6;
}

.faculties-header {
    text-align: center;
    margin-bottom: 50px;
}

.faculties-subtitle {
    color: var(--school-red);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.faculties-title {
    font-family: 'Merriweather', serif;
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.faculties-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.faculties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.faculty-card {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.faculty-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(58, 176, 229, 0) 30%, rgba(58, 176, 229, 0.8) 70%, rgba(30, 140, 190, 1) 100%);
    z-index: 1;
}

.faculty-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(200, 30, 30, 0) 30%, rgba(200, 30, 30, 0.85) 70%, rgba(177, 4, 14, 1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.faculty-card:hover .faculty-overlay::after {
    opacity: 1;
}

.faculty-content {
    position: relative;
    z-index: 2;
    padding: 30px 25px;
    color: white;
}

.faculty-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.faculty-content p {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0;
}



/* Why Us Section */
.why-us-section {
    padding: 100px 8%;
    background-color: #ffffff;
    overflow: hidden;
}

.why-us-container {
    max-width: 100%;
    margin: 0 auto;
}

.why-us-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    gap: 50px;
}

.why-title-wrapper {
    flex: 1;
}

.why-subtitle {
    color: var(--school-red);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.why-subtitle .text-red {
    color: var(--school-red);
}

.why-title {
    font-family: 'Merriweather', serif;
    font-size: 36px;
    color: #333;
    line-height: 1.3;
    margin: 0;
}

.why-desc-wrapper {
    flex: 1;
    max-width: 500px;
}

.why-desc-wrapper p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.why-us-content {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.why-image-wrapper {
    flex: 1;
    position: relative;
    margin-left: 20px;
    margin-bottom: 20px;
}

.blue-square {
    position: absolute;
    bottom: -20px;
    left: -100vw;
    width: calc(100vw + 30%);
    height: 120px;
    background-color: #3AB0E5;
    z-index: 1;
}

.why-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 380px;
}

.why-features-grid {
    flex: 1.2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.why-feature-card {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
}

.why-feature-card.bg-light-purple {
    background-color: #f3f5fa;
}

.why-feature-card.bg-white {
    background-color: #ffffff;
}

.why-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.why-icon svg {
    width: 20px;
    height: 20px;
    color: var(--school-red);
}

.why-feature-card h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.why-feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .why-us-header {
        flex-direction: column;
        gap: 20px;
    }

    .why-us-content {
        flex-direction: column;
    }

    .why-features-grid {
        margin-top: 30px;
    }

    .why-title {
        font-size: 26px !important;
        line-height: 1.3;
    }
}

@media (max-width: 600px) {
    .why-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .faculties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .faculties-grid {
        grid-template-columns: 1fr;
    }

    .faculties-title {
        font-size: 26px !important;
        line-height: 1.3;
    }
}

/* Campus Highlights Section */
.campus-highlights {
    padding: 40px 0 60px;
    background-color: #fff;
    text-align: center;
    overflow: hidden;
}

.highlights-header {
    margin-bottom: 60px;
    padding: 0 5%;
}

.highlights-subtitle {
    color: var(--school-red);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 20px;
}

.highlights-title {
    font-family: 'Merriweather', serif;
    font-size: 42px;
    color: #444;
    line-height: 1.3;
    max-width: 800px;
    margin: 0 auto;
}

.highlights-container {
    padding: 0 5%;
    position: relative;
}

.highlights-swiper {
    padding: 20px 0 60px !important;
}

.highlight-slide {
    height: auto;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .highlight-slide {
        width: 85%;
    }

    .highlights-title {
        font-size: 28px;
    }
}

.highlight-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.highlight-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.highlight-slide:hover .highlight-image-wrapper img {
    transform: scale(1.1);
}

/* Custom Swiper Navigation */
.highlights-navigation {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.swiper-nav-btn {
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.swiper-nav-btn:hover {
    background-color: var(--school-red);
    color: white;
    border-color: var(--school-red);
}

.swiper-nav-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 1024px) {
    .contact-info-wrapper {
        display: none;
    }

    .nav-links {
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Footer Section */
.site-footer {
    background-color: #051F49;
    /* Dark blue matching the theme */
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.footer-top {
    padding: 80px 5% 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    height: 120px;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 25px;
    max-width: 300px;
}

/* CTA Section */
.cta-section {
    padding: 0 5% 100px;
    background-color: #fff;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #3AB0E5 0%, #051F49 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 40px 80px 60px;
    min-height: 350px;
    overflow: visible;
}

.cta-image-wrapper {
    position: absolute;
    bottom: 0;
    left: -40px;
    width: 50%;
    height: 160%;
    display: flex;
    align-items: flex-end;
}

.cta-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cta-content {
    margin-left: 45%;
    margin-top: 0;
    color: white;
    max-width: 550px;
}

.cta-title {
    font-family: 'Merriweather', serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 25px;
}

.cta-desc {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 15px;
}

.cta-btn {
    display: inline-block;
    background-color: white;
    color: var(--school-red);
    padding: 15px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.cta-btn:hover {
    background-color: transparent;
    color: white;
}

@media (max-width: 1024px) {
    .cta-container {
        flex-direction: column;
        padding: 60px 40px;
        text-align: center;
        overflow: hidden;
    }

    .cta-image-wrapper {
        position: relative;
        left: 0;
        width: 100%;
        height: auto;
        margin-bottom: 30px;
        justify-content: center;
    }

    .cta-content {
        margin-left: 0;
        max-width: 100%;
    }

    .cta-title {
        font-size: 32px;
    }
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--school-red);
    transform: translateY(-3px);
}

.footer-heading {
    font-family: 'Merriweather', serif;
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--school-red);
}

.footer-links,
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--school-red);
    padding-left: 5px;
}

.footer-contact-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-contact-list li span {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    background-color: #031533;
    /* Darker blue for contrast */
    padding: 25px 5%;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-content p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
    font-size: 13px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

.footer-bottom-links .separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .faculties-header {
        text-align: center;
    }

    .faculties-title {
        font-size: 28px;
    }

    .cta-container {
        flex-direction: column;
        padding: 60px 40px 0;
        /* Reduced bottom padding to 0 */
        text-align: center;
        min-height: auto;
        overflow: hidden;
    }

    .cta-image-wrapper {
        position: relative;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 300px;
        margin-top: 40px;
        margin-bottom: 0;
        /* Ensure no bottom margin */
        order: 2;
    }

    .cta-content {
        margin-left: 0;
        margin-top: 0;
        order: 1;
        max-width: 100%;
    }

    .cta-title {
        font-size: 24px !important;
    }

    .cta-section {
        padding: 60px 5%;
    }
}

@media (max-width: 768px) {
    .faculties-grid {
        grid-template-columns: 1fr;
    }

    .highlights-title {
        font-size: 26px;
    }

    .highlight-slide {
        width: 85%;
        /* Single slide with a peek of the next one on mobile */
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Header (NSK Style) */
.mobile-nav-container {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.mobile-logo-box img {
    height: 50px;
    width: auto;
}

.nsk-mobile-toggle {
    background-color: var(--school-blue);
    /* Updated to school blue */
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 0;
    transition: all 0.3s ease;
}

.nsk-mobile-toggle:active {
    transform: scale(0.95);
}

.nsk-mobile-toggle .bar {
    display: block;
    width: 28px;
    height: 3px;
    /* Bolder bars to match crop */
    background-color: white;
    border-radius: 4px;
}

/* Offcanvas Overlay */
.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.offcanvas-overlay.active {
    visibility: visible;
    opacity: 1;
}

.offcanvas-content {
    position: absolute;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background-color: #fff;
    transition: right 0.3s ease;
    padding: 15px;
    /* Minimal padding */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Keep auto just in case, but design to fit */
}

.offcanvas-overlay.active .offcanvas-content {
    right: 0;
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px 35px 15px 15px;
    /* Significant right padding to avoid clipping */
}

.offcanvas-logo img {
    height: 40px;
}

.close-offcanvas {
    font-size: 24px;
    background-color: var(--school-red);
    /* High visibility red */
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: white;
    /* White X on red background */
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(177, 4, 14, 0.3);
}

.close-offcanvas:hover {
    background-color: #90030b;
    transform: rotate(90deg);
}

.offcanvas-nav {
    list-style: none;
    padding: 0;
}

.offcanvas-nav li {
    margin-bottom: 12px;
    /* Reduced margin */
}

.offcanvas-nav li a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    /* Smaller font */
    font-weight: 500;
}

@media (max-width: 1024px) {
    body {
        /* Temporary background to confirm media query is working */
        background-color: #f0f4f8 !important;
    }

    .top-header {
        display: none !important;
    }

    .desktop-logo-box {
        display: none !important;
    }

    /* Keep new sticky header hidden on mobile since mobile already has a good layout */
    .sticky-header-clone {
        display: none !important;
    }

    .main-nav {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        border-top: none !important;
        border-bottom: 5px solid #1e2d3d !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background: #ffffff !important;
    }

    .mobile-nav-container {
        display: flex !important;
        width: 100% !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 5% !important;
        box-sizing: border-box !important;
    }

    .nav-links,
    .main-nav .contact-btn {
        display: none !important;
    }
}

/* =====================
   CONTACT PAGE STYLES
   ===================== */

/* Sticky Header Clone */
.sticky-header-clone {
    position: fixed;
    top: -100px; /* Hidden initially */
    left: 0;
    width: 100%;
    z-index: 2000;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: top 0.3s ease-in-out;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.sticky-header-clone.visible {
    top: 0;
}

.sticky-header-clone .desktop-logo-box img {
    height: 60px;
    width: auto;
    display: block;
    padding: 5px 0;
}

.sticky-header-clone .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sticky-header-clone .nav-links li a {
    display: block;
    padding: 20px 20px;
    text-decoration: none;
    color: var(--nav-text);
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s;
}

.sticky-header-clone .nav-links li a:hover,
.sticky-header-clone .nav-links li a.active {
    color: var(--school-red);
}

.sticky-header-clone .contact-btn {
    background-color: var(--school-red);
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s;
    display: inline-block;
}

.sticky-header-clone .contact-btn:hover {
    background-color: #90030b;
}

/* Contact Hero — reuses .about-hero styles */
.contact-hero {
    padding: 120px 5% 90px;
}

/* Info Cards Grid */
.contact-info-section {
    padding: 70px 5%;
    background-color: #f4f7fb;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: white;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    border-top: 4px solid #3AB0E5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.info-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.info-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 16px;
    color: #051F49;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.info-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Form + Map */
.contact-form-map {
    padding: 80px 5%;
    background: white;
}

.form-map-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.contact-form-wrapper h2 {
    font-family: 'Merriweather', serif;
    font-size: 32px;
    color: #051F49;
    margin: 0 0 30px 0;
    font-weight: 800;
}

.styled-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e0e6f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background: #f8fafd;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3AB0E5;
    box-shadow: 0 0 0 3px rgba(58, 176, 229, 0.15);
    background: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aab2c0;
}

.contact-map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    min-height: 450px;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-hero-content h1 {
        font-size: 34px;
    }

    .contact-hero-content p {
        font-size: 15px;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .form-map-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-map-wrapper {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-hero {
        padding: 80px 5% 60px;
    }
}

/* ================================
   CONTACT PAGE EXTRA ANIMATIONS
   ================================ */

/* Floating bounce for info icons */
@keyframes float-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.info-icon {
    animation: float-bounce 2.5s ease-in-out infinite;
}

.info-card:nth-child(2) .info-icon { animation-delay: 0.3s; }
.info-card:nth-child(3) .info-icon { animation-delay: 0.6s; }
.info-card:nth-child(4) .info-icon { animation-delay: 0.9s; }

/* Hero title slide-in from left */
@keyframes hero-title-in {
    0% { opacity: 0; transform: translateX(-60px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Hero subtitle fade-up */
@keyframes hero-subtitle-in {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.contact-hero-content h1 {
    animation: hero-title-in 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.contact-hero-content p {
    animation: hero-subtitle-in 0.8s ease 0.6s both;
}

/* Staggered form field entrance */
@keyframes form-field-in {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.styled-form .form-group:nth-child(1) { animation: form-field-in 0.5s ease 0.2s both; }
.styled-form .form-group:nth-child(2) { animation: form-field-in 0.5s ease 0.35s both; }
.styled-form .form-group:nth-child(3) { animation: form-field-in 0.5s ease 0.5s both; }
.styled-form .form-group:nth-child(4) { animation: form-field-in 0.5s ease 0.65s both; }

.styled-form button[type="submit"] {
    animation: form-field-in 0.5s ease 0.8s both;
}

/* Input focus glow pulse */
@keyframes input-glow {
    0% { box-shadow: 0 0 0 3px rgba(58, 176, 229, 0.15); }
    50% { box-shadow: 0 0 0 6px rgba(58, 176, 229, 0.08); }
    100% { box-shadow: 0 0 0 3px rgba(58, 176, 229, 0.15); }
}

.form-group input:focus,
.form-group textarea:focus {
    animation: input-glow 1.5s ease infinite;
}

/* Map wrapper subtle scale entrance */
@keyframes map-scale-in {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}

.contact-map-wrapper iframe {
    animation: map-scale-in 0.8s ease 0.4s both;
}

/* Hero background shimmer */
@keyframes hero-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.contact-hero {
    background-size: 200% 200%;
    animation: hero-shimmer 8s ease infinite;
}

/* =====================
   ABOUT PAGE STYLES
   ===================== */

/* Hero */
.about-hero {
    position: relative;
    background: linear-gradient(135deg, #051F49 0%, #0a3a7d 50%, #3AB0E5 100%);
    background-size: 200% 200%;
    animation: hero-shimmer 10s ease infinite;
    padding: 120px 5% 90px;
    text-align: center;
    color: white;
    overflow: hidden;
}

.about-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.about-hero-content {
    position: relative;
    z-index: 1;
}

.about-hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    backdrop-filter: blur(4px);
}

.about-hero-title {
    font-family: 'Merriweather', serif;
    font-size: 56px;
    font-weight: 900;
    margin: 0 0 30px 0;
    letter-spacing: -1px;
    line-height: 1.2;
}

/* Scrolling text ticker */
.about-hero-scrolling {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.about-hero-scrolling span {
    display: inline-block;
    font-size: 18px;
    font-weight: 500;
    opacity: 0.7;
    padding: 0 15px;
    animation: scroll-ticker 12s linear infinite;
}

@keyframes scroll-ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Section Tag */
.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #3AB0E5;
    margin-bottom: 15px;
    position: relative;
    padding-left: 45px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background: #3AB0E5;
}

/* Who We Are */
.about-who-section {
    padding: 100px 5%;
    background: white;
}

.about-who-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-who-text h2 {
    font-family: 'Merriweather', serif;
    font-size: 36px;
    color: #051F49;
    font-weight: 800;
    margin: 0 0 25px 0;
    line-height: 1.3;
}

.about-who-text p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0 0 18px 0;
}

.about-who-image {
    position: relative;
}

.about-who-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    position: relative;
    z-index: 2;
}

.about-accent-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, #3AB0E5, #051F49);
    border-radius: 16px;
    z-index: 1;
    opacity: 0.3;
}

/* Philosophy Banner */
.about-philosophy {
    background: linear-gradient(135deg, #051F49 0%, #0a3a7d 100%);
    padding: 80px 5%;
}

.about-philosophy-inner {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-icon {
    font-size: 48px;
    margin-bottom: 25px;
    animation: float-bounce 2.5s ease-in-out infinite;
}

.about-philosophy blockquote {
    font-family: 'Merriweather', serif;
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    font-style: italic;
    line-height: 1.8;
    margin: 0;
    padding: 0 20px;
    border: none;
    position: relative;
}

.about-philosophy blockquote::before,
.about-philosophy blockquote::after {
    content: '"';
    font-size: 60px;
    color: #3AB0E5;
    position: absolute;
    font-family: Georgia, serif;
    line-height: 1;
}

.about-philosophy blockquote::before {
    top: -20px;
    left: -10px;
}

.about-philosophy blockquote::after {
    content: '"';
    bottom: -40px;
    right: -10px;
}

/* Vision Cards */
.about-vision-section {
    padding: 100px 5%;
    background: #f4f7fb;
}

.about-vision-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.vision-card {
    background: white;
    border-radius: 20px;
    padding: 45px 35px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    border-bottom: 4px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.vision-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3AB0E5, #051F49);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.vision-card:hover::before {
    transform: scaleX(1);
}

.vision-icon {
    font-size: 44px;
    margin-bottom: 20px;
    animation: float-bounce 3s ease-in-out infinite;
}

.vision-card:nth-child(2) .vision-icon { animation-delay: 0.5s; }
.vision-card:nth-child(3) .vision-icon { animation-delay: 1s; }

.vision-card h3 {
    font-family: 'Merriweather', serif;
    font-size: 20px;
    color: #051F49;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.vision-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Beyond Teaching */
.about-beyond-section {
    padding: 100px 5%;
    background: white;
}

.about-beyond-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-beyond-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.about-beyond-text h2 {
    font-family: 'Merriweather', serif;
    font-size: 36px;
    color: #051F49;
    font-weight: 800;
    margin: 0 0 25px 0;
    line-height: 1.3;
}

.about-beyond-text p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0 0 18px 0;
}

/* Our Story */
.about-story-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, #3AB0E5 0%, #051F49 100%);
    background-size: 200% 200%;
    animation: hero-shimmer 8s ease infinite;
}

.about-story-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-story-content .section-tag {
    color: rgba(255,255,255,0.7);
}

.about-story-content .section-tag::before {
    background: rgba(255,255,255,0.5);
}

.about-story-content h2 {
    font-family: 'Merriweather', serif;
    font-size: 36px;
    color: white;
    font-weight: 800;
    margin: 0 0 25px 0;
}

.about-story-content p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    margin: 0;
}

/* Chairman's Message */
.about-chairman-section {
    padding: 100px 5%;
    background: #f4f7fb;
}

.about-chairman-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: start;
}

.chairman-image-wrapper {
    text-align: center;
    position: sticky;
    top: 120px;
}

.chairman-frame {
    width: 220px;
    height: 220px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3AB0E5, #051F49);
    padding: 6px;
    box-shadow: 0 15px 40px rgba(5, 31, 73, 0.2);
}

.chairman-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 30px;
}

.chairman-name-card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.chairman-name-card h4 {
    font-family: 'Merriweather', serif;
    font-size: 18px;
    color: #051F49;
    margin: 0 0 5px 0;
    font-weight: 800;
}

.chairman-name-card span {
    font-size: 13px;
    color: #3AB0E5;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.chairman-message .section-tag {
    color: #3AB0E5;
}

.chairman-message h2 {
    font-family: 'Merriweather', serif;
    font-size: 36px;
    color: #051F49;
    font-weight: 800;
    margin: 0 0 30px 0;
    line-height: 1.3;
}

.chairman-message p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0 0 18px 0;
}

.chairman-message em {
    color: #051F49;
    font-weight: 600;
}

.chairman-invite {
    background: linear-gradient(135deg, rgba(58,176,229,0.08), rgba(5,31,73,0.06));
    padding: 20px 25px;
    border-radius: 12px;
    border-left: 4px solid #3AB0E5;
    font-style: italic;
}

.chairman-cta {
    font-size: 18px !important;
    color: #051F49 !important;
    margin-top: 25px !important;
}

/* About Page Responsive */
@media (max-width: 1024px) {
    .about-who-container,
    .about-beyond-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-chairman-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .chairman-image-wrapper {
        position: static;
    }

    .about-vision-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .about-hero-title {
        font-size: 36px;
    }

    .about-who-text h2,
    .about-beyond-text h2,
    .chairman-message h2,
    .about-story-content h2 {
        font-size: 28px;
    }

    .about-vision-container {
        grid-template-columns: 1fr;
    }

    .about-philosophy blockquote {
        font-size: 16px;
    }

    .about-hero {
        padding: 90px 5% 70px;
    }
}

/* =====================
   ACADEMICS PAGE
   ===================== */

/* Intro */
.acad-intro-section {
    padding: 80px 5% 60px;
    background: #f4f7fb;
    text-align: center;
}

.acad-intro-container {
    max-width: 800px;
    margin: 0 auto;
}

.acad-intro-container h2 {
    font-family: 'Merriweather', serif;
    font-size: 38px;
    color: #051F49;
    font-weight: 800;
    margin: 15px 0 20px 0;
}

.acad-intro-container p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Programs Section */
.acad-programs-section {
    padding: 0 0 100px;
    background: #fff;
}

.acad-programs-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Program Card */
.prog-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 500px;
    position: relative;
    overflow: hidden;
    align-items: stretch;
    scroll-margin-top: 100px; /* Offset for sticky header when anchor jumping */
}

.prog-card-reverse .prog-image-side {
    order: 2;
}

.prog-card-reverse .prog-content-side {
    order: 1;
}

/* Image Side */
.prog-image-side {
    position: relative;
    overflow: hidden;
}

.prog-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.prog-card:hover .prog-image-side img {
    transform: scale(1.05);
}

.prog-age-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: linear-gradient(135deg, #3AB0E5, #051F49);
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 30px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(58,176,229,0.4);
    z-index: 2;
}

.prog-card-reverse .prog-age-badge {
    left: auto;
    right: 25px;
}

/* Content Side */
.prog-content-side {
    background: white;
    padding: 60px 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    border-bottom: 1px solid #f0f4f8;
}

.prog-card:nth-child(even) .prog-content-side {
    background: #f8fbff;
}

/* Decorative accent line */
.prog-content-side::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #3AB0E5, #051F49);
}

.prog-card-reverse .prog-content-side::before {
    left: 0;
    right: auto;
}

.prog-level-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #3AB0E5;
    margin-bottom: 12px;
    position: relative;
    padding-left: 38px;
}

.prog-level-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 25px;
    height: 2px;
    background: #3AB0E5;
}

.prog-title {
    font-family: 'Merriweather', serif;
    font-size: 34px;
    font-weight: 900;
    color: #051F49;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.prog-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 25px 0;
}

/* Feature List */
.prog-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prog-features li {
    font-size: 14px;
    color: #444;
    padding-left: 28px;
    position: relative;
    line-height: 1.5;
}

.prog-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3AB0E5, #051F49);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 20px;
    text-align: center;
}

/* Apply Button */
.prog-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3AB0E5, #051F49);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 6px 20px rgba(58, 176, 229, 0.3);
    position: relative;
    overflow: hidden;
}

.prog-apply-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #051F49, #3AB0E5);
    transition: left 0.4s ease;
    z-index: 0;
}

.prog-apply-btn:hover::before {
    left: 0;
}

.prog-apply-btn span,
.prog-apply-btn svg {
    position: relative;
    z-index: 1;
}

.prog-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(5, 31, 73, 0.3);
}

/* Apply Modal */
.apply-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 31, 73, 0.7);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.apply-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.apply-modal-box {
    background: white;
    border-radius: 24px;
    padding: 45px 40px;
    max-width: 480px;
    width: 100%;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

.apply-modal-overlay.active .apply-modal-box {
    transform: translateY(0);
}

.apply-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: #f0f4f8;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    line-height: 1;
}

.apply-modal-close:hover {
    background: #fde8e8;
    color: #c0392b;
}

.apply-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.apply-modal-icon {
    font-size: 44px;
    margin-bottom: 15px;
    animation: float-bounce 2.5s ease-in-out infinite;
}

.apply-modal-header h3 {
    font-family: 'Merriweather', serif;
    font-size: 22px;
    color: #051F49;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.apply-modal-header h3 span {
    color: #3AB0E5;
}

.apply-modal-header p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.apply-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.apply-modal-form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #051F49;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 1024px) {
    .prog-card,
    .prog-card-reverse {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }

    .prog-card-reverse .prog-image-side,
    .prog-card-reverse .prog-content-side {
        order: 0;
    }

    .prog-image-side {
        height: 350px;
        min-height: auto;
    }

    .prog-content-side {
        padding: 40px 35px;
    }

    .prog-content-side::before {
        top: 0; left: 0; right: 0; bottom: auto;
        width: 100%; height: 4px;
    }

    .prog-card-reverse .prog-content-side::before {
        right: 0;
        left: 0;
    }

    .prog-age-badge,
    .prog-card-reverse .prog-age-badge {
        left: 20px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .prog-title {
        font-size: 26px;
    }

    .prog-content-side {
        padding: 30px 25px;
    }

    .prog-image-side {
        height: 250px;
        min-height: auto;
    }

    .apply-modal-box {
        padding: 35px 25px;
    }

    .acad-intro-container h2 {
        font-size: 28px;
    }
}