:root {
    --primary: #1e3a8a;        /* Deep blue - trust, stability */
    --secondary: #f59e0b;      /* Warm amber - energy, optimism */
    --accent: #10b981;         /* Green - growth, success */
    --light: #f8fafc;          /* Very light blue-gray */
    --dark: #1e293b;           /* Dark slate */
    --success: #059669;        /* Emerald green */
    --warning: #d97706;        /* Orange */
    --text-primary: #334155;   /* Slate gray */
    --text-secondary: #64748b; /* Light slate */
    --border: #e2e8f0;         /* Light border */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 48px;
    width: 48px;
    background: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.025em;
}

.logo-text span {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Special styling for announcements link */
.nav-menu .announcements-link {
    background: linear-gradient(135deg, var(--secondary) 0%, #f59e0b 100%);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    animation: pulse-glow 2s infinite;
}

.nav-menu .announcements-link:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.4);
}

/* Dropdown styles removed - using simple navigation */

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
    }
}

.login-btn {
    background: var(--secondary) !important;
    color: white !important;
    font-weight: 600;
}

.login-btn:hover {
    background: var(--warning) !important;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 30%, #3b82f6 70%, var(--accent) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Professional Animated Background */
.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Geometric Shapes */
.geometric-shape {
    position: absolute;
    opacity: 0.1;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.circle-1 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    top: 15%;
    left: 10%;
    animation: gentle-float 8s infinite;
    animation-delay: 0s;
}

.circle-2 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    top: 70%;
    right: 15%;
    animation: gentle-float 12s infinite;
    animation-delay: 2s;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(255, 255, 255, 0.08);
    top: 25%;
    right: 25%;
    animation: rotate-float 15s infinite;
    animation-delay: 1s;
}

.triangle-2 {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid rgba(255, 255, 255, 0.06);
    top: 60%;
    left: 20%;
    animation: rotate-float 10s infinite;
    animation-delay: 4s;
}

.square-1 {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    top: 40%;
    left: 80%;
    animation: gentle-rotate 20s infinite;
    animation-delay: 3s;
    transform-origin: center;
}

.square-2 {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    top: 80%;
    left: 60%;
    animation: gentle-rotate 14s infinite;
    animation-delay: 6s;
    transform-origin: center;
}

/* Educational Icons */
.education-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.15);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.education-icon svg {
    width: 100%;
    height: 100%;
}

.book-icon {
    top: 20%;
    left: 70%;
    animation: pulse-float 6s infinite;
    animation-delay: 1s;
}

.graduation-icon {
    top: 65%;
    right: 30%;
    animation: pulse-float 8s infinite;
    animation-delay: 3s;
}

.science-icon {
    top: 35%;
    left: 15%;
    animation: pulse-float 7s infinite;
    animation-delay: 5s;
}

.atom-icon {
    top: 75%;
    left: 25%;
    animation: pulse-float 9s infinite;
    animation-delay: 2s;
}

/* Floating Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particle-float 15s infinite linear;
}

.particle-1 {
    top: 10%;
    left: 30%;
    animation-delay: 0s;
}

.particle-2 {
    top: 30%;
    right: 20%;
    animation-delay: 3s;
}

.particle-3 {
    top: 50%;
    left: 60%;
    animation-delay: 6s;
}

.particle-4 {
    top: 70%;
    right: 40%;
    animation-delay: 9s;
}

.particle-5 {
    top: 85%;
    left: 45%;
    animation-delay: 12s;
}

.particle-6 {
    top: 15%;
    right: 60%;
    animation-delay: 4s;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
}

/* Professional Animation Keyframes */
@keyframes gentle-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes rotate-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(180deg); }
}

@keyframes gentle-rotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(45deg); }
}

@keyframes pulse-float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-10px) scale(1.1);
        opacity: 0.25;
    }
}

@keyframes particle-float {
    0% {
        transform: translateY(0px);
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 15;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hero p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.3);
}

.btn:hover {
    background: var(--warning);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(245, 158, 11, 0.4);
}

/* Form Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert i {
    margin-right: 8px;
}

.alert ul {
    margin-top: 8px;
    padding-left: 20px;
}

.alert ul li {
    margin-bottom: 4px;
}

/* Button Loading State */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-loading {
    display: none;
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 64px;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.about-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary), transparent);
    opacity: 0.1;
    z-index: 1;
}

.about-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.about-text h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 24px;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Academic Classes Section */
.academics {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 50%, #f8f9fa 100%);
}

/* Academic Classes Grid */
.academics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 60px;
}

.academic-class-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.academic-class-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
    border-color: rgba(52, 152, 219, 0.3);
}

.academic-class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #f39c12, #e74c3c);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.academic-class-card:hover::before {
    opacity: 1;
}

.class-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 35px 25px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.class-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(0deg); }
    50% { transform: translateX(0%) translateY(0%) rotate(180deg); }
}

.class-header::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 12px solid #764ba2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.class-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.class-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
    z-index: -1;
}

.academic-class-card:hover .class-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.35);
}

.class-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

.class-age {
    font-size: 0.95rem;
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: 15px;
    display: inline-block;
}

.class-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.class-description {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.class-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 1px;
}

.class-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: grid;
    gap: 12px;
}

.class-features li {
    padding: 12px 16px;
    color: #2d3748;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.class-features li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.class-features li:hover::before {
    transform: translateX(0);
}

.class-features li:hover {
    background: rgba(52, 152, 219, 0.08);
    transform: translateX(4px);
}

.class-features li i {
    color: #2ecc71;
    margin-right: 12px;
    font-size: 0.9rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.class-footer {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.class-capacity {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.class-capacity i {
    color: #3498db;
    margin-right: 5px;
}

/* Class-specific icon colors */
.nursery { background: linear-gradient(135deg, #ff6b6b, #ff8e8e); }
.kg1 { background: linear-gradient(135deg, #4ecdc4, #7fdbda); }
.kg2 { background: linear-gradient(135deg, #45b7d1, #74c7e3); }
.class1 { background: linear-gradient(135deg, #96ceb4, #b8dcc6); }
.class2 { background: linear-gradient(135deg, #feca57, #fed976); }
.class3 { background: linear-gradient(135deg, #ff9ff3, #ffb3f7); }
.class4 { background: linear-gradient(135deg, #54a0ff, #7db3ff); }

/* Academic Statistics - Enhanced for Dynamic Data */
.academic-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0 50px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stat-card {
    background: white;
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.5rem;
}

.stat-content h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.3rem;
    font-weight: 600;
}

.stat-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Faculty Section - New Design */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 48px;
    padding: 0 20px;
}

.faculty-card-new {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    border-top: 4px solid #2c5aa0;
}

.faculty-card-new.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.faculty-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.faculty-image-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e3f2fd;
    transition: all 0.3s ease;
    /* Enhanced flex container for auto-adjustment */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ensure consistent sizing */
    flex-shrink: 0;
}

.faculty-card-new:hover .faculty-image-circle {
    border-color: #2c5aa0;
    transform: scale(1.05);
}

.faculty-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    /* Enhanced flex auto-adjustment for all image formats including PNG */
    display: block;
    border-radius: 50%;
    /* Support for PNG transparency */
    background: white;
    /* Flex properties for automatic card adjustment */
    flex-shrink: 0;
    /* Ensure proper aspect ratio and auto-adjustment */
    aspect-ratio: 1;
    /* Additional properties for better auto-adjustment */
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    /* Ensure image fills container properly */
    object-position: center;
}

/* Photo upload indicator for faculty cards */

.photo-upload-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 2;
    transition: all 0.3s ease;
}

.faculty-card-new:hover .photo-upload-indicator {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

/* Enhanced auto-adjustment for faculty images */
.faculty-avatar[src*=".png"],
.faculty-avatar[src*=".jpg"],
.faculty-avatar[src*=".jpeg"],
.faculty-avatar[src*=".gif"] {
    /* Ensure all image formats auto-adjust properly */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    image-rendering: auto;
}

/* Loading state for faculty images */
.faculty-avatar:not([src]),
.faculty-avatar[src=""] {
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    background-size: 400% 400%;
    animation: loading-shimmer 1.5s ease-in-out infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ensure faculty cards maintain aspect ratio on all devices */
.faculty-card-new {
    /* Add flex properties for better layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Ensure consistent height */
    min-height: 280px;
}

.faculty-content {
    /* Ensure content area is flexible */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.faculty-divider {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #2c5aa0, #64b5f6);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.faculty-content {
    text-align: center;
}

.faculty-name-new {
    font-size: 18px;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.faculty-qualification-new {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.4;
}

.faculty-experience-new {
    font-size: 14px;
    color: #2c5aa0;
    font-weight: 600;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 6px 12px;
    border-radius: 15px;
    margin: 8px auto 12px;
    display: inline-block;
    border: 1px solid #90caf9;
    box-shadow: 0 2px 4px rgba(44, 90, 160, 0.1);
}

.faculty-bio-new {
    color: #777;
    font-size: 13px;
    margin-bottom: 15px;
    font-style: italic;
    line-height: 1.4;
    text-align: center;
    padding: 0 10px;
}

.class-teacher-indicator {
    background: linear-gradient(135deg, #ffd54f, #ffb300);
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.class-teacher-indicator i {
    font-size: 10px;
    color: #f57c00;
}

/* Enhanced Dynamic Academic Program Elements */
.class-teacher {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08), rgba(46, 204, 113, 0.12));
    border: 1px solid rgba(46, 204, 113, 0.25);
    border-radius: 16px;
    padding: 16px 20px;
    margin-top: 20px;
    font-size: 14px;
    color: #27ae60;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.class-teacher::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2ecc71, #27ae60);
    border-radius: 0 2px 2px 0;
}

.class-teacher i {
    margin-right: 10px;
    color: #2ecc71;
    font-size: 16px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 204, 113, 0.15);
    border-radius: 50%;
}

.teacher-qualification {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 6px;
    font-style: italic;
    padding-left: 30px;
}

.capacity-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.class-capacity, .current-enrollment {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.class-capacity {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.current-enrollment {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.enrollment-status {
    margin-bottom: 16px;
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.status-badge:hover::before {
    left: 100%;
}

.status-badge.available {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-badge.filling {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.status-badge.full {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.enrollment-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: linear-gradient(135deg, #ecf0f1, #d5dbdb);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
    border-radius: 6px 6px 0 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9, #1abc9c);
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-text {
    font-size: 11px;
    font-weight: 700;
    color: #4a5568;
    min-width: 55px;
    text-align: right;
    background: rgba(74, 85, 104, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
}

.no-programs-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    border: 2px dashed #dee2e6;
}

.message-icon {
    font-size: 48px;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.no-programs-message h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 24px;
}

.no-programs-message p {
    color: #7f8c8d;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
}

/* Faculty Responsive Design */
@media (max-width: 1200px) {
    .faculty-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .faculty-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .faculty-card-new {
        padding: 25px 15px;
    }

    .faculty-image-circle {
        width: 80px;
        height: 80px;
    }

    .faculty-name-new {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 10px;
    }

    .faculty-card-new {
        padding: 20px 12px;
    }

    .faculty-image-circle {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    .faculty-name-new {
        font-size: 15px;
    }

    .faculty-qualification-new {
        font-size: 13px;
    }
}

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

    .faculty-card-new {
        padding: 25px 20px;
        margin: 0 10px;
    }

    .faculty-image-circle {
        width: 90px;
        height: 90px;
        margin-bottom: 20px;
    }

    .faculty-name-new {
        font-size: 17px;
    }

    .faculty-qualification-new {
        font-size: 14px;
    }
}

/* Faculty Statistics */
.faculty-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 64px;
    padding: 32px;
    background: linear-gradient(135deg, var(--light) 0%, #e2e8f0 100%);
    border-radius: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* No Faculty State */
.no-faculty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.no-faculty-icon {
    font-size: 64px;
    color: var(--border);
    margin-bottom: 24px;
}

.no-faculty h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.no-faculty p {
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto;
}

/* Testimonials Section with Animated Background */
.testimonials {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 50%, #f8f9fa 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Testimonials Animated Background */
.testimonials-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Background Overlay */
.testimonials-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(248, 249, 250, 0.3) 100%);
    z-index: 2;
}

/* Floating Hearts */
.floating-heart {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.6;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.heart-1 {
    top: 15%;
    left: 10%;
    animation: gentle-pulse 4s infinite;
    animation-delay: 0s;
}

.heart-2 {
    top: 70%;
    right: 15%;
    animation: gentle-pulse 5s infinite;
    animation-delay: 1.5s;
}

.heart-3 {
    top: 40%;
    left: 85%;
    animation: gentle-pulse 4.5s infinite;
    animation-delay: 3s;
}

/* Floating Stars */
.floating-star {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0.7;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.star-1 {
    top: 25%;
    left: 20%;
    animation: twinkle-float 6s infinite;
    animation-delay: 0s;
}

.star-2 {
    top: 60%;
    right: 25%;
    animation: twinkle-float 7s infinite;
    animation-delay: 2s;
}

.star-3 {
    top: 80%;
    left: 30%;
    animation: twinkle-float 5.5s infinite;
    animation-delay: 4s;
}

.star-4 {
    top: 10%;
    right: 40%;
    animation: twinkle-float 6.5s infinite;
    animation-delay: 1s;
}

/* Floating Speech Bubbles */
.floating-bubble {
    position: absolute;
    font-size: 1.3rem;
    opacity: 0.5;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.bubble-1 {
    top: 35%;
    left: 15%;
    animation: bubble-float 8s infinite;
    animation-delay: 0s;
}

.bubble-2 {
    top: 55%;
    right: 20%;
    animation: bubble-float 9s infinite;
    animation-delay: 3s;
}

.bubble-3 {
    top: 20%;
    left: 70%;
    animation: bubble-float 7s infinite;
    animation-delay: 5s;
}

/* Floating Thumbs Up */
.floating-thumbs {
    position: absolute;
    font-size: 1.4rem;
    opacity: 0.6;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.thumbs-1 {
    top: 45%;
    right: 10%;
    animation: thumbs-bounce 5s infinite;
    animation-delay: 1s;
}

.thumbs-2 {
    top: 75%;
    left: 60%;
    animation: thumbs-bounce 6s infinite;
    animation-delay: 4s;
}

/* Geometric Shapes */
.testimonial-shape {
    position: absolute;
    opacity: 0.08;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.circle-shape-1 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c5aa0, #64b5f6);
    top: 30%;
    right: 5%;
    animation: shape-rotate 20s infinite;
    animation-delay: 0s;
}

.circle-shape-2 {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #64b5f6, #2c5aa0);
    top: 65%;
    left: 5%;
    animation: shape-rotate 25s infinite;
    animation-delay: 5s;
}

.triangle-shape-1 {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid rgba(44, 90, 160, 0.1);
    top: 50%;
    left: 80%;
    animation: shape-float 15s infinite;
    animation-delay: 2s;
}

.square-shape-1 {
    width: 40px;
    height: 40px;
    background: rgba(100, 181, 246, 0.1);
    top: 85%;
    right: 30%;
    animation: shape-rotate 18s infinite;
    animation-delay: 7s;
    transform-origin: center;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 48px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-50px);
    border-top: 4px solid #2c5aa0;
    position: relative;
    overflow: hidden;
}

.testimonial-card.animate-slide-in {
    animation: slideInLeft 0.8s ease-out forwards;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #64b5f6);
}

.testimonial-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.avatar-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2c5aa0, #64b5f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.testimonial-content {
    text-align: left;
}

.testimonial-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 4px;
}

.testimonial-role {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.testimonial-quote {
    position: relative;
}

.quote-icon {
    color: #64b5f6;
    font-size: 20px;
    margin-bottom: 10px;
    display: block;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    margin: 0;
}

/* Testimonials Background Animation Keyframes */
@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes twinkle-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-15px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-15px) rotate(270deg);
        opacity: 1;
    }
}

@keyframes bubble-float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.7;
    }
    66% {
        transform: translateY(-10px) scale(0.9);
        opacity: 0.6;
    }
}

@keyframes thumbs-bounce {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-10px) rotate(-5deg);
        opacity: 0.8;
    }
}

@keyframes shape-rotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(0.9);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes shape-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-25px);
    }
}

/* Testimonials Card Animation */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Testimonials Responsive Design */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .testimonial-card {
        padding: 25px 20px;
    }

    .avatar-circle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .testimonial-name {
        font-size: 16px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    /* Reduce animation complexity on tablets */
    .floating-heart, .floating-star, .floating-bubble, .floating-thumbs {
        font-size: 1.2rem;
        opacity: 0.4;
    }

    .testimonial-shape {
        opacity: 0.05;
        transform: scale(0.8);
    }
}

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

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .testimonial-card {
        padding: 30px 25px;
        margin: 0 10px;
    }

    .avatar-circle {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .testimonial-name {
        font-size: 18px;
    }

    .testimonial-text {
        font-size: 15px;
    }

    .testimonial-content {
        text-align: center;
    }

    /* Simplify animations on mobile */
    .floating-heart, .floating-star, .floating-bubble, .floating-thumbs {
        font-size: 1rem;
        opacity: 0.3;
        animation-duration: 8s !important;
    }

    /* Hide some complex elements on mobile */
    .triangle-shape-1, .square-shape-1, .bubble-3, .thumbs-2, .star-4 {
        display: none;
    }

    .testimonial-shape {
        opacity: 0.03;
        transform: scale(0.6);
    }
}

/* Events (formerly Gallery) */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Event Card Specific Styles */
.event-card {
    background: white;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 350px;
}

.event-card img {
    height: 180px;
    object-fit: cover;
}

.event-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-date {
    margin-bottom: 12px;
}

.date-highlight {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.event-title {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

/* Legacy gallery overlay for non-event items */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

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

.gallery-overlay i {
    color: white;
    font-size: 32px;
}

/* Events Responsive Styles */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-card {
        min-height: 320px;
    }

    .event-content {
        padding: 16px;
    }

    .event-title {
        font-size: 16px;
    }

    .event-description {
        font-size: 13px;
    }

    .date-highlight {
        font-size: 11px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .event-card {
        min-height: 300px;
    }

    .event-card img {
        height: 160px;
    }

    .event-content {
        padding: 14px;
    }
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-details h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark) 0%, #0f172a 100%);
    color: white;
    padding: 80px 0 32px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-about p {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 18px;
    margin-bottom: 24px;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 8px;
}

.footer-contact li {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
    align-items: center;
}

.footer-contact i {
    color: var(--secondary);
    width: 20px;
}

.copyright {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        gap: 16px;
        align-items: stretch;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        color: var(--text-primary);
        padding: 12px 16px;
        border-radius: 8px;
        text-align: center;
    }
    
    .nav-menu a:hover {
        background: var(--light);
        color: var(--primary);
    }

    /* Mobile announcements link styling */
    .nav-menu .announcements-link {
        background: linear-gradient(135deg, var(--secondary) 0%, #f59e0b 100%);
        color: white !important;
        font-weight: 600;
        margin: 8px 0;
    }

    .nav-menu .announcements-link:hover {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: white !important;
    }

    /* Mobile dropdown styles removed - using simple navigation */
    
    .login-btn {
        background: var(--primary) !important;
        color: white !important;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero {
        min-height: 80vh;
    }

    .hero-content {
        padding: 32px 16px;
    }

    /* Academic Classes Responsive */
    .academics-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    .academic-class-card {
        margin: 0 10px;
        min-height: 380px;
    }

    .class-header {
        padding: 25px 20px 20px;
    }

    .class-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .class-title {
        font-size: 1.7rem;
    }

    .class-content {
        padding: 25px 20px;
    }

    .capacity-info {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .class-capacity, .current-enrollment {
        justify-content: center;
    }

    .class-header {
        padding: 25px 20px;
    }

    .class-title {
        font-size: 1.6rem;
    }

    .academic-stats {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }

    /* Reduce animation complexity on tablets */
    .geometric-shape {
        opacity: 0.06;
        transform: scale(0.8);
    }

    .education-icon {
        width: 30px;
        height: 30px;
        opacity: 0.1;
    }

    .particle {
        width: 3px;
        height: 3px;
    }
    
    .academic-content,
    .contact-form {
        padding: 24px;
    }
    

}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
    }

    /* Academic Classes Mobile */
    .academics {
        padding: 60px 0;
    }

    .academics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        padding: 0 10px;
    }

    .academic-class-card {
        min-height: 350px;
        border-radius: 20px;
    }

    .class-header {
        padding: 20px 15px;
    }

    .class-title {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .class-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .class-content {
        padding: 20px;
    }

    .class-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .class-features li {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .class-teacher {
        padding: 14px 16px;
        margin-top: 16px;
    }

    .capacity-info {
        padding: 10px 14px;
        margin-bottom: 14px;
    }

    .status-badge {
        padding: 6px 12px;
        font-size: 10px;
    }

    .enrollment-progress {
        padding: 6px 10px;
    }

    .progress-bar {
        height: 8px;
    }

    .academic-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 30px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .stat-content h4 {
        font-size: 1.1rem;
    }

    /* Simplify animations on mobile */
    .geometric-shape {
        opacity: 0.04;
        transform: scale(0.6);
    }

    .education-icon {
        width: 25px;
        height: 25px;
        opacity: 0.08;
    }

    /* Hide some complex elements on mobile */
    .triangle-2, .square-2, .atom-icon, .particle-4, .particle-5, .particle-6 {
        display: none;
    }

    .particle {
        width: 2px;
        height: 2px;
        animation-duration: 12s;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .section-title {
        margin-bottom: 48px;
    }
    
    .footer-container {
        gap: 32px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.bg-light { background-color: var(--light); }
.bg-primary { background-color: var(--primary); }
.rounded { border-radius: 12px; }
.shadow { box-shadow: var(--shadow); }
.mb-4 { margin-bottom: 24px; }
.mt-4 { margin-top: 24px; }
.p-4 { padding: 24px; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Faculty Mobile Responsive Styles */
@media (max-width: 768px) {
    .faculty-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .faculty-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 24px;
        margin-top: 48px;
    }

    .faculty-image-container {
        height: 240px;
    }

    .faculty-info {
        padding: 20px;
    }

    .faculty-name {
        font-size: 20px;
    }

    .faculty-details > div {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .contact-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .faculty-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
    }

    .faculty-image-container {
        height: 200px;
    }

    .class-teacher-badge {
        top: 12px;
        right: 12px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .faculty-details i {
        font-size: 12px;
    }
}