/* ===========================
   MODERN DESIGN SYSTEM - GRADIFY
   Premium Educational Website
   =========================== */

:root {
    /* Modern Color Palette */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #f97316;
    --secondary-dark: #ea580c;
    --secondary-light: #fb923c;
    --accent-color: #14b8a6;
    --accent-dark: #0d9488;

    /* Neutrals */
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --light-bg: #f8fafc;
    --light-surface: #ffffff;
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #64748b;
    --border-color: #e2e8f0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --gradient-accent: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-hero: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.8) 50%, rgba(15, 23, 42, 0.7) 100%);

    /* Spacing */
    --section-padding: 120px 0;
    --container-max-width: 1280px;
    --container-padding: 0 24px;

    /* Typography */
    --font-primary: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ===========================
   Reset & Base Styles
   =========================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--light-surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul,
ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-smooth);
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ===========================
   Typography
   =========================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.875rem);
}

h5 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}

p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ===========================
   Container & Layout
   =========================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-padding {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(251, 146, 60, 0.1));
    border-radius: var(--radius-full);
    border: 2px solid rgba(249, 115, 22, 0.2);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===========================
   Buttons - Premium Design
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl), 0 0 30px rgba(249, 115, 22, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
}

/* ===========================
   Top Bar - Modern Glassmorphism
   =========================== */
.top-bar {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 0;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.contact-info span:hover {
    color: var(--secondary-light);
    transform: translateY(-2px);
}

.contact-info i {
    color: var(--secondary-color);
    font-size: 1rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-links span {
    margin-right: 0.5rem;
    font-weight: 600;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px) rotate(360deg);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.4);
}

/* ===========================
   Header - Glassmorphism Navigation
   =========================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

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

.logo i {
    color: var(--secondary-color);
    font-size: 2.25rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

/* Hide mobile apply button on desktop */
.mobile-apply-btn {
    display: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition-smooth);
    border-radius: var(--radius-md);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.search-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===========================
   Responsive - Header & Navigation
   =========================== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 30px 30px;
        gap: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition-smooth);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        padding: 1rem 0;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-link::after {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-actions .btn-primary {
        display: none;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.75rem;
        justify-content: center;
    }

    .contact-info span {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .navbar {
        padding: 1rem 0;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo i {
        font-size: 1.75rem;
    }

    .nav-menu {
        width: 100%;
        right: -100%;
    }

    .search-btn {
        width: 38px;
        height: 38px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .logo span {
        font-size: 1.25rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .search-btn {
        width: 34px;
        height: 34px;
    }
}

/* ===========================
   Responsive Navigation
   =========================== */

/* Tablet - Show hamburger menu earlier */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 30px 30px;
        box-shadow: var(--shadow-2xl);
        transition: var(--transition-smooth);
        z-index: 999;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
        justify-content: flex-start;
    }

    .nav-link::after {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-actions .btn-primary {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .top-bar {
        padding: 0.75rem 0;
    }

    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .social-links {
        justify-content: center;
    }

    .social-links span {
        display: none;
    }

    .navbar {
        padding: 1rem 0;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo i {
        font-size: 1.75rem;
    }

    .nav-actions .search-btn:not(:last-of-type) {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-menu {
        width: 100%;
    }
}

/* Hide scrollbar on mobile */
@media (max-width: 768px) {
    * {
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
    }

    *::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari and Opera */
    }
}

/* ===========================

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenburns 25s ease-in-out infinite alternate;
}

@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 2;
}

.hero-text {
    max-width: 900px;
}

.slide.active .hero-text {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.75rem;
    background: rgba(249, 115, 22, 0.15);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(249, 115, 22, 0.3);
}

.hero-subtitle i {
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    width: 100%;
    height: 1rem;
    background: var(--secondary-color);
    opacity: 0.3;
    z-index: -1;
    transform: skewX(-12deg);
    border-radius: var(--radius-sm);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* ===========================
   Page Headers - Inner Pages
   =========================== */
.page-header {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background-color: var(--dark-bg);
}

.page-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-header-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
}

.page-header-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.2);
}

/* ===========================
   Features Cards - Glassmorphism
   =========================== */
.features-cards {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--light-bg) 0%, white 100%);
    margin-top: -5rem;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-color);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.feature-card.card-teal .feature-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-card.card-orange .feature-icon {
    background: var(--gradient-secondary);
}

.feature-card.card-blue .feature-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.feature-card.card-green .feature-icon {
    background: var(--gradient-accent);
}

.feature-content {
    flex: 1;
}

.feature-number {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.feature-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.9375rem;
    color: var(--text-medium);
    margin: 0;
    line-height: 1.6;
}

/* ===========================
   About Section
   =========================== */
.about-section {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    min-height: 500px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    text-align: center;
}

.about-badge h4 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-medium);
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.about-feature-item:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: translateX(10px);
}

.about-feature-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.about-feature-item span {
    font-weight: 600;
    color: var(--text-dark);
}

/* ===========================
   Courses Section - Premium Cards
   =========================== */
.courses-section {
    background: var(--light-bg);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.course-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-lg);
}

.course-content {
    padding: 2rem;
}

.course-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-meta i {
    color: var(--secondary-color);
}

.course-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.course-content p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===========================
   Gallery Section
   =========================== */
.gallery-section {
    background: white;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 2rem;
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-overlay h4 {
    color: white;
    margin: 0;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-btn {
    width: 60px;
    height: 60px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-bounce);
}

.gallery-item:hover .gallery-btn {
    transform: scale(1.2) rotate(360deg);
}

/* ===========================
   Faculty Section
   =========================== */
.faculty-section {
    background: var(--light-bg);
}

/* ===========================
   Contact Section
   =========================== */
.contact-section {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.contact-info-item:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-details p {
    color: var(--text-medium);
    margin: 0;
}

.contact-form {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: var(--radius-xl);
}

.contact-form h3 {
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.contact-map {
    width: 100%;
    height: 550px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

@media (max-width: 1200px) {
    .contact-grid {
        gap: 2rem;
    }

    .contact-map {
        height: 500px;
    }
}

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

    .contact-map {
        height: 450px;
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-map {
        height: 400px;
    }
}

#map {
    width: 100%;
    height: 100%;
    background: var(--light-bg);
}

/* ===========================
   Footer - Modern Design
   =========================== */
.footer {
    background: var(--dark-bg);
    color: white;
}

.footer-main {
    padding: 5rem 0 3rem;
}

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

.footer-col h4,
.footer-col h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.875rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
}

.footer-logo i {
    color: var(--secondary-color);
    font-size: 2.25rem;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-col ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-secondary);
    color: white;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-bottom i {
    color: var(--secondary-color);
}

/* ===========================
   Lightbox
   =========================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-lg);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ===========================
   Utility Classes
   =========================== */
.photo-card {
    display: none;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .top-bar {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 6rem 0 2rem;
        gap: 0;
        transition: var(--transition-smooth);
        z-index: 2000;
        visibility: hidden;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
        visibility: visible;
    }

    .nav-link {
        padding: 1.25rem 2rem;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(99, 102, 241, 0.1);
        width: 100%;
        text-align: left;
        border-radius: 0;
        margin-bottom: 0;
    }

    /* Mobile Apply Button - position top left, next to X */
    .mobile-apply-btn {
        display: block;
        position: absolute;
        top: 1rem;
        left: 1.5rem;
        padding: 0;
        border-bottom: none;
        z-index: 10;
    }

    .mobile-apply-btn .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 2100;
        position: relative;
    }

    .nav-link::after {
        display: none;
        /* Hide standard underline on mobile */
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(99, 102, 241, 0.05);
        color: var(--primary-color);
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.3rem;
        gap: 0.5rem;
    }

    .logo i {
        font-size: 1.8rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    button.search-btn {
        display: none;
    }

    /* Ensure login icon is visible */
    a.search-btn[aria-label="Login"] {
        display: flex !important;
        width: 38px;
        height: 38px;
    }

    .nav-actions .btn-primary {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .nav-actions .btn-primary span {
        display: none;
    }

    .nav-actions .btn-primary i {
        margin: 0;
    }

    /* Proportions for small screens */
    @media (max-width: 480px) {
        .nav-actions .btn-primary span {
            display: none;
        }

        .nav-actions .btn-primary i {
            margin: 0;
            font-size: 1rem;
        }

        .logo {
            font-size: 1.15rem;
            /* Reduced to fit text on small screens */
        }
    }

    .mobile-menu-toggle {
        display: flex;
        margin-left: 0.5rem;
    }

    .features-grid,
    .courses-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-grid .footer-col:first-child {
        grid-column: 1 / -1;
    }

    .footer-grid .footer-col:last-child {
        grid-column: 1 / -1;
    }

    .hero-buttons {
        flex-direction: column;
    }

    /* Footer Newsletter Input Boost */
    .newsletter-form input {
        height: 55px;
        font-size: 1rem;
    }

    .newsletter-form button {
        height: 55px;
        padding: 0 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }
}

/* GLOBAL MOBILE INPUT BOOST */
@media (max-width: 991px) {

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    select,
    textarea,
    .form-control {
        height: 65px !important;
        min-height: 65px !important;
        font-size: 1.15rem !important;
        padding: 0 1.5rem !important;
        border: 2px solid rgba(15, 23, 42, 0.1) !important;
        background-color: white !important;
        border-radius: 12px !important;
    }

    textarea.form-control {
        height: auto !important;
        min-height: 150px !important;
        padding: 1.25rem 1.5rem !important;
    }

    /* Newsletter Sections Specific (Dark Backgrounds) */
    .newsletter-section .input-group {
        flex-direction: column !important;
        background: transparent !important;
        border: none !important;
        gap: 1.25rem !important;
        padding: 0 !important;
    }

    .newsletter-section input {
        height: 70px !important;
        min-height: 70px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        color: white !important;
        border-radius: 9999px !important;
        width: 100% !important;
        text-align: center !important;
    }

    .newsletter-section .btn {
        width: 100% !important;
        height: 65px !important;
        min-height: 65px !important;
        border-radius: 9999px !important;
    }

    .newsletter-form {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================
   Preloader Styles
   =========================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.loader-logo i {
    font-size: 3rem;
    animation: bounce 2s infinite;
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 9999px;
    animation: loading 1.5s infinite ease-in-out;
}

@keyframes loading {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===========================
   Newsletter Section - Premium
   =========================== */
.newsletter-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    margin-bottom: 0;
}

.newsletter-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: -2;
}

.newsletter-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.newsletter-icon {
    display: inline-flex;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.newsletter-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

.newsletter-form-premium {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 0.5rem;
    backdrop-filter: blur(5px);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 0 1.5rem;
    outline: none;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-group .btn {
    padding: 0.75rem 2rem;
}



/* ===========================
   Modal System (Generic)
   =========================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-2xl);
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-medium);
    transition: var(--transition-smooth);
    background: var(--light-bg);
}

.modal-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--light-bg);
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}


/* Event Details Modal Styles */
.event-details-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
}

.event-details-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    min-width: 100px;
}

.event-details-date .day {
    font-size: 2rem;
    font-weight: 900;
    color: #6366f1;
    line-height: 1;
}

.event-details-date .month {
    font-size: 0.875rem;
    font-weight: 700;
    color: #6366f1;
    text-transform: uppercase;
}

.event-details-info {
    flex: 1;
}

.event-details-category {
    background: #fff7ed;
    color: #f97316;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.event-details-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.event-details-desc {
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.event-details-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

.event-details-meta div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-details-meta i {
    color: #f97316;
}

.no-event-message {
    padding: 3rem;
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
}

.no-event-message i {
    display: block;
    font-size: 3rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
}