/* ===== ESSIG-USIA University – Design System ===== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
    /* Primary Colors */
    --blue-900: #0a1628;
    --blue-800: #0f2342;
    --blue-700: #153163;
    --blue-600: #1a3f84;
    --blue-500: #1e4da5;
    --blue-400: #3b6fc4;
    --blue-300: #6a96d8;
    --blue-200: #a3beea;
    --blue-100: #d4e2f7;
    --blue-50: #eef3fb;

    /* Orange Accent */
    --orange-600: #c25e10;
    --orange-500: #e8721a;
    --orange-400: #f59542;
    --orange-300: #f8b070;
    --orange-200: #fad0a5;
    --orange-100: #fde9d3;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #4a4a4a;
    /* Darker for better readability */
    --gray-700: #333333;
    /* Darker for better readability */
    --gray-800: #1a1a1a;
    --gray-900: #000000;

    /* Semantic */
    --success: #2ecc71;
    --warning: #f1c40f;
    --error: #e74c3c;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Sizing */
    --container-max: 1280px;
    --container-wide: 1440px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-blue: 0 8px 30px rgba(30, 77, 165, 0.25);
    --shadow-orange: 0 8px 30px rgba(232, 114, 26, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== Utility Classes ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section-padding {
    padding: var(--space-4xl) 0;
}

.text-center {
    text-align: center;
}

/* ===== Typography ===== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange-500);
    margin-bottom: var(--space-md);
}

.section-label::before {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--orange-500);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--blue-800);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 650px;
    line-height: 1.7;
}

.section-subtitle.centered {
    margin: 0 auto;
}

/* ===== Top Bar ===== */
.top-bar {
    background: var(--blue-900);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.top-bar-left a {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.75);
}

.top-bar-left a:hover {
    color: var(--orange-400);
}

.top-bar-right {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.top-bar-right a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.top-bar-right a:hover {
    color: var(--orange-400);
    transform: translateY(-1px);
}

/* ===== Header / Navigation ===== */
.header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo-img {
    height: 58px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center; /* Horizontally center children relative to logo-text block */
    justify-content: center;
    line-height: normal;
}

.logo-text .name {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--blue-800);
    letter-spacing: -0.2px;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
}

.logo-text .tagline {
    display: block;
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--gray-500);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
    margin-top: 2px;
}

/* Main Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.main-nav a {
    position: relative;
    padding: var(--space-sm) 10px;
    font-size: 0.85rem;
    white-space: nowrap;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.main-nav a:hover {
    color: var(--blue-600);
    background: var(--blue-50);
}

.main-nav a.active {
    color: var(--blue-600);
    font-weight: 600;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--orange-500);
    border-radius: var(--radius-full);
}

.nav-cta {
    margin-left: var(--space-md);
}

/* Hamburger mobile */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--blue-800);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: var(--white);
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(30, 77, 165, 0.35);
}

.btn-secondary {
    background: var(--white);
    color: var(--blue-700);
    border: 2px solid var(--blue-200);
}

.btn-secondary:hover {
    border-color: var(--blue-400);
    background: var(--blue-50);
    transform: translateY(-2px);
}

.btn-orange {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: var(--white);
    box-shadow: var(--shadow-orange);
}

.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(232, 114, 26, 0.35);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--blue-800);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.82rem;
}

/* ===== HERO Section ===== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--blue-900);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(10, 22, 40, 0.92) 0%,
            rgba(15, 35, 66, 0.8) 40%,
            rgba(30, 77, 165, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px; /* Slightly wider for better left alignment look */
    padding: var(--space-4xl) 0;
    margin-left: 0; /* Align to the left of the container */
    text-align: left;
}

.hero .container {
    margin-left: var(--space-xl); /* Stay slightly away from the extreme edge */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    color: var(--orange-300);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange-400);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s 0.2s ease both;
}

.hero h1 .highlight {
    color: var(--orange-400);
    position: relative;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
    max-width: 560px;
    animation: fadeInUp 0.8s 0.4s ease both;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
    /* Added for better desktop spacing */
    animation: fadeInUp 0.8s 0.6s ease both;
}

/* Hero Stats */
.hero-stats {
    position: absolute;
    right: var(--space-xl);
    bottom: var(--space-3xl);
    z-index: 2;
    display: flex;
    gap: var(--space-lg);
    animation: fadeIn 1s 1s ease both;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    text-align: center;
    min-width: 130px;
}

.hero-stat .number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.hero-stat .number span {
    color: var(--orange-400);
}

.hero-stat .label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Decorative floating shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.hero-shapes .shape-1 {
    width: 400px;
    height: 400px;
    background: var(--orange-400);
    top: -100px;
    right: 10%;
    animation: float 8s ease-in-out infinite;
}

.hero-shapes .shape-2 {
    width: 250px;
    height: 250px;
    background: var(--blue-300);
    bottom: 10%;
    right: 25%;
    animation: float 10s 2s ease-in-out infinite reverse;
}

.hero-shapes .shape-3 {
    width: 180px;
    height: 180px;
    background: var(--white);
    top: 30%;
    right: 5%;
    animation: float 6s 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(20px, -30px);
    }

    50% {
        transform: translate(-10px, -50px);
    }

    75% {
        transform: translate(30px, -20px);
    }
}

/* ===== About / Présentation ===== */
.about {
    background: var(--gray-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-image-badge {
    position: absolute;
    bottom: var(--space-xl);
    right: var(--space-xl);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: var(--white);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-orange);
}

.about-image-badge .number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.about-image-badge .text {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.about-content .features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.about-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
}

.about-feature .icon {
    width: 32px;
    height: 32px;
    background: var(--blue-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-600);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ===== Schools / Écoles ===== */
.schools {
    background: var(--white);
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.school-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-slow);
}

.school-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.school-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.school-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.school-card:hover .school-card-image img {
    transform: scale(1.08);
}

.school-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.75), transparent);
}

.school-card-icon {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    z-index: 2;
}

.school-card-body {
    padding: var(--space-xl);
}

.school-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: var(--space-sm);
}

.school-card-body p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.school-card-programs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.school-card-programs .tag {
    padding: 4px 14px;
    background: var(--blue-50);
    color: var(--blue-600);
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

.school-card .btn-sm {
    width: 100%;
    justify-content: center;
}

/* ===== Stats Section ===== */
.stats {
    background: linear-gradient(135deg, var(--blue-800), var(--blue-900));
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(232, 114, 26, 0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: var(--space-xl);
}

.stat-item .stat-number {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-item .stat-number span {
    color: var(--orange-400);
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* ===== Why Choose Us ===== */
.why-us {
    background: var(--white);
}

.why-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    width: 100%;
}

.why-card {
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.why-card h3, 
.why-card p {
    text-align: center;
    width: 100%;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-500), var(--orange-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.why-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    margin-left: auto;
    margin-right: auto;
    transition: all var(--transition-base);
}

.why-card:hover .why-card-icon {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: var(--white);
    box-shadow: var(--shadow-blue);
}

.why-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: var(--space-sm);
}

.why-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== Campus Section ===== */
.campus {
    background: var(--gray-50);
}

.campus-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.campus-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.campus-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.campus-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 250px;
    transition: transform var(--transition-slow);
}

.campus-item:first-child img {
    min-height: 520px;
}

.campus-item:hover img {
    transform: scale(1.05);
}

.campus-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(10, 22, 40, 0.7) 0%,
            transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.campus-item:hover::after {
    opacity: 1;
}

.campus-item-label {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.campus-item:hover .campus-item-label {
    opacity: 1;
    transform: translateY(0);
}

/* ===== News / Actualités ===== */
.news {
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.news-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-slow);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-date {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--orange-500);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
}

.news-card-body {
    padding: var(--space-xl);
}

.news-card-category {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blue-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.news-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.news-card-body p {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.news-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--orange-500);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: gap var(--transition-fast);
}

.news-card-link:hover {
    gap: var(--space-sm);
    color: var(--orange-600);
}

/* ===== CTA / Admission ===== */
.cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content .section-label {
    color: var(--orange-300);
}

.cta-content .section-label::before {
    background: var(--orange-300);
}

.cta-content .section-title {
    color: var(--white);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.cta-image {
    position: relative;
    z-index: 2;
}

.cta-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.cta-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(232, 114, 26, 0.1);
}

.cta-shapes .shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: 20%;
}

.cta-shapes .shape-2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: 10%;
}

/* ===== Testimonials ===== */
.testimonials {
    background: var(--gray-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.testimonial-card {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-slow);
    position: relative;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-card .quote-icon {
    font-size: 2.5rem;
    color: var(--blue-200);
    line-height: 1;
    margin-bottom: var(--space-md);
    font-family: var(--font-serif);
}

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-400), var(--orange-400));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-info .name {
    font-weight: 700;
    color: var(--blue-800);
    font-size: 0.95rem;
}

.testimonial-info .role {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ===== Partners ===== */
.partners {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.partners-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4xl);
    flex-wrap: wrap;
}

.partner-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gray-400);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color var(--transition-base);
    white-space: nowrap;
}

.partner-logo:hover {
    color: var(--blue-500);
}

/* ===== Events Section ===== */
.events {
    background: var(--white);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.event-item {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-slow);
}

.event-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-200);
}

.event-date-box {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-blue);
}

.event-date-box .day {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.event-date-box .month {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    opacity: 0.8;
}

.event-details h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: 4px;
}

.event-details .meta {
    display: flex;
    gap: var(--space-lg);
    font-size: 0.82rem;
    color: var(--gray-500);
}

.event-details .meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-4xl);
    margin-top: var(--space-2xl);
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-info-card {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--blue-200);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-800);
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-form {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--gray-800);
    transition: all var(--transition-fast);
    background: var(--gray-50);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(30, 77, 165, 0.1);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== Footer ===== */
.footer {
    background: var(--blue-900);
    color: rgba(255, 255, 255, 0.7);
    padding-top: var(--space-4xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-items: center;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand .logo-text .name {
    color: var(--white);
}

.footer-brand .logo-text .tagline {
    color: rgba(255, 255, 255, 0.4);
}

.footer-brand p {
    margin-top: var(--space-lg);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.footer-social a:hover {
    background: var(--orange-500);
    border-color: var(--orange-500);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-column {
    text-align: center;
}

.footer-column h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--orange-500);
}

.footer-column ul li {
    margin-bottom: var(--space-sm);
}

.footer-column ul li a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    /* Improved contrast */
    transition: all var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--orange-400);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    justify-content: center;
    align-items: center;
    padding: var(--space-xl) 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    /* Improved contrast */
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    /* Improved contrast */
}

.footer-bottom-links a:hover {
    color: var(--orange-400);
}

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-blue);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 998;
    /* Lowered to keep below nav but above content */
    cursor: pointer;
}

@media (max-width: 768px) {
    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(30, 77, 165, 0.4);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Counter animation ===== */
.counter {
    display: inline;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-stats {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: var(--space-4xl);
        justify-content: center;
        width: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .schools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-divider {
        display: none;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .campus-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .campus-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .hero h1 {
        margin: 0 auto var(--space-xl);
    }

    .hero p {
        margin: 0 auto var(--space-2xl);
    }

    .hero-buttons {
        justify-content: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        height: auto;
        /* Not full height */
        max-height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        padding: var(--space-lg);
        gap: 0;
        z-index: 1000;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        font-size: 1rem;
        padding: var(--space-md);
        border-bottom: 1px solid var(--gray-100);
        width: 100%;
        text-align: center;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: var(--space-md);
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        min-height: 85vh;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .hero-stat {
        text-align: left;
        display: flex;
        align-items: center;
        gap: var(--space-md);
        padding: var(--space-md) var(--space-lg);
    }

    .schools-grid,
    .why-grid,
    .news-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .campus-gallery {
        grid-template-columns: 1fr;
    }

    .campus-item:first-child {
        grid-column: span 1;
    }

    .campus-item img,
    .campus-item:first-child img {
        min-height: 220px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-item {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== Loading Animation ===== */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--blue-900);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.loader-bar {
    width: 120px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--blue-400), var(--orange-400));
    border-radius: var(--radius-full);
    animation: loading 1.5s ease forwards;
}

@keyframes loading {
    to {
        width: 100%;
    }
}
/* ===== News Modal \u0026 Video Overlay ===== */
.video-container-grid {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-container-grid:hover .video-overlay {
    opacity: 1;
    background: rgba(30, 77, 165, 0.4);
}

.modal-news {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.modal-news.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

.modal-news-content {
    background: var(--white);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-2xl);
    animation: slideUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 10;
    transition: all 0.3s;
}

.close-modal:hover {
    background: var(--orange-500);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-news-media {
    width: 100%;
    background: #000;
}

.modal-news-body {
    padding: var(--space-2xl);
}

.modal-news-body h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--blue-800);
    margin: 15px 0 10px;
}

.news-modal-date {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 25px;
    display: block;
}

.full-description {
    line-height: 1.8;
    color: var(--gray-700);
    white-space: pre-line;
}
.news-card-image img { cursor: pointer; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fix for frozen state: ensure modal is always visible when active */
.modal-news.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ===== Floating Action Menu (FAB) - Toggleable ===== */
.fab-wrapper {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 999999 !important;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

.fab-toggle {
    width: 60px;
    height: 60px;
    background-color: #1e4da5 !important; /* Solid blue */
    color: white !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.fab-toggle:hover {
    background-color: #153163 !important; /* Darker blue on hover */
}

.fab-toggle i {
    transition: transform 0.4s ease;
}

.fab-wrapper.active .fab-toggle i {
    transform: rotate(180deg) !important; /* Arrow points down when open */
}

.fab-menu {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.fab-wrapper.active .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-btn {
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    background-color: white;
}

.fab-btn:hover {
    transform: scale(1.1);
}

.fab-btn.whatsapp { background-color: #25d366 !important; }
.fab-btn.radio { background-color: #e8721a !important; }
.fab-btn.tv { background-color: #1e4da5 !important; }

/* Tooltips */
.fab-btn::before {
    content: attr(title);
    position: absolute;
    right: 65px;
    background: rgba(10, 22, 40, 0.9);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.fab-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .fab-wrapper {
        bottom: 20px !important;
        right: 20px !important;
    }
    .fab-toggle {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    .fab-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    .fab-btn::before {
        display: none;
    }
}
/* ========================================= */
/* ===== RESPONSIVE OVERRIDES (ADDED) ===== */
/* ========================================= */

.stats-section-dark {
    background: var(--blue-900);
    color: white;
}

.stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 800;
    color: var(--orange-400);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}

.campus-header {
    margin-bottom: 50px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.news-title {
    margin-bottom: 0;
}

.news-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

.btn-contact-submit {
    margin: 20px auto 0;
    display: flex;
    width: fit-content;
    min-width: 200px;
    justify-content: center;
    gap: 12px;
}

.map-container-wrapper {
    margin-top: 60px;
}

/* Footer Logo Fixes */
.footer-logo-img {
    filter: brightness(0) invert(1);
}

.footer-logo-name {
    color: white !important;
}

.footer-logo-tagline {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Enhancing existing sections */
@media (max-width: 1200px) {
    .hero {
        flex-direction: column;
        align-items: flex-start;
        padding-top: var(--space-4xl);
        padding-bottom: var(--space-3xl);
    }
    .hero-content {
        padding-bottom: var(--space-xl);
    }
    .hero-stats {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        margin-top: 0 !important;
        margin-left: calc(var(--space-xl) + 15px); /* Aligning with the container */
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-md);
        z-index: 2;
        width: calc(100% - var(--space-xl) - 30px);
        box-sizing: border-box;
        justify-content: flex-start;
    }
    .hero-stat {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(15px);
        padding: var(--space-md) var(--space-xl);
    }
}

@media (max-width: 1024px) {
    .stats-grid {
        gap: 20px;
    }
    .cta-img {
        height: 300px;
    }
    .hero-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: var(--space-4xl) 0 var(--space-xl);
    }
    .hero-content {
        padding: 0 15px;
    }
    .hero-badge {
        font-size: 0.75rem;
        padding: 8px 15px;
        white-space: normal;
        text-align: center;
        display: inline-block;
        line-height: 1.4;
    }
    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }
    .hero-stats {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        margin-top: 30px !important;
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .hero-stat {
        flex: 1 1 calc(50% - 15px) !important;
        min-width: 140px !important;
        padding: 15px !important;
        justify-content: center !important;
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
    }
    .hero-stat .number {
        font-size: 2rem !important;
        margin-bottom: 5px !important;
    }
    .hero-stat .label {
        font-size: 0.8rem !important;
    }
    .stats-grid {
        gap: 30px;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .campus-item img,
    .campus-item:first-child img {
        height: 250px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    .btn {
        justify-content: center;
    }
    /* Mobile Menu Glassmorphism */
    .main-nav {
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        padding: 40px 20px;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(-20px);
        opacity: 0;
    }
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    .main-nav a {
        border-radius: 0;
    }
    .logo-text .name {
        font-size: 1rem;
    }
    .logo-text .tagline {
        font-size: 0.5rem;
    }
    .section-padding {
        padding: var(--space-3xl) 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .school-card-image {
        height: 200px;
    }
    .map-container-wrapper {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-stats {
        flex-direction: column;
    }
    .hero-stat {
        width: 100%;
    }
    .about-image img {
        height: 300px;
    }
    .news-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .news-header .btn {
        width: 100%;
    }
    .footer-bottom-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
    .contact-info-card {
        padding: 20px;
    }
    .stat-number {
        font-size: 2rem;
    }
}
