/* ============================================
   MODERN GOVERNMENT PORTAL DESIGN
   District Teacher Welfare Trust Gaya
   ============================================ */

/* Root Variables - Modern Color Scheme */
:root {
    --primary-navy: #0d2855;
    --primary-dark: #1a3a5c;
    --secondary-saffron: #f59e0b;
    --accent-amber: #d97706;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-lighter: #f3f4f6;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --border-light: #e5e7eb;
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Gradient Text Effect */
.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Badge */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-navy);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Modern Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

.animate-bounce-in {
    animation: bounceIn 0.8s ease-out 0.6s backwards;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.5s backwards;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary-navy);
}

p { color: var(--text-medium); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-navy);
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-right: auto;
}

.logo-image {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(245, 158, 11, 0.3);
    transition: var(--transition);
}

.logo-image:hover {
    transform: scale(1.05);
    border-color: var(--secondary-saffron);
}

.site-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.site-tagline {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link i {
    font-size: 0.75rem;
    opacity: 0.8;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-saffron);
}

.nav-link.active {
    background: rgba(245, 158, 11, 0.15);
    color: var(--secondary-saffron);
}

/* Header Action Buttons */
.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.btn-header {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-header i {
    font-size: 0.75rem;
}

.btn-register {
    background: var(--secondary-saffron);
    color: var(--primary-navy);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-register:hover {
    background: var(--accent-amber);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.btn-renewal {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-renewal:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-admin {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-admin:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.nav-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-close:hover {
    background: var(--secondary-saffron);
    color: var(--primary-navy);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.hamburger-line {
    width: 24px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.nav-close { display: none; }

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #0d2855 0%, #1a3a5c 50%, #2d4a75 100%);
    color: white;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 40px 40px;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/background_image.jpg') center/cover;
    opacity: 0.05;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    border: 2px solid rgba(245, 158, 11, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
}

/* Hero Stats Counter */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-saffron);
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: pulse 2s infinite;
    cursor: pointer;
}

.hero-scroll-indicator i {
    font-size: 2rem;
    color: var(--secondary-saffron);
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--gradient-gold);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::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;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-secondary {
    background: lightgreen;
    color: white;
    border: 2px solid lightgreen;
}

.btn-secondary:hover {
    background: #90EE90;
}

.btn-donation {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-donation:hover {
    background: linear-gradient(135deg, #db2777, #e11d48);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
}

.btn-outline:hover {
    background: var(--primary-navy);
    color: white;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.header-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-saffron), var(--accent-amber));
    border-radius: 2px;
    margin-bottom: 20px;
}

.header-underline-center {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-saffron), var(--accent-amber));
    border-radius: 2px;
    margin: 0 auto 20px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
}

.text-center {
    text-align: center;
}

/* ============================================
   WELCOME SECTION
   ============================================ */

.welcome-section {
    padding: 80px 20px;
    background: var(--bg-white);
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.welcome-tagline {
    font-size: 1.3rem;
    color: var(--secondary-saffron);
    font-weight: 600;
    margin-bottom: 20px;
}

.welcome-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.mission-box {
    background: var(--bg-lighter);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-saffron);
}

.mission-box h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mission-box i {
    color: var(--secondary-saffron);
    font-size: 1.2rem;
}

.mission-box p {
    font-size: 0.95rem;
}

.feature-grid-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-box {
    background: var(--bg-lighter);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-box:hover {
    border-color: var(--secondary-saffron);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-saffron);
    margin-bottom: 15px;
}

.feature-box h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feature-box p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   QUICK ACCESS SECTION
   ============================================ */

.quick-access-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg-light) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.service-card {
    background: linear-gradient(135deg, white 0%, rgba(102, 126, 234, 0.03) 100%);
    padding: 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(102, 126, 234, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary-navy);
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 50px;
    color: var(--text-medium);
}

.service-link {
    color: var(--secondary-saffron);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.service-link:hover {
    gap: 12px;
    color: var(--accent-amber);
}

/* ============================================
   ACHIEVEMENTS SECTION WITH CIRCULAR CAROUSEL
   ============================================ */

.achievements-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg-light) 100%);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.achievement-card {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 35px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.achievement-card:hover::before {
    opacity: 1;
}

.achievement-icon {
    font-size: 3rem;
    color: var(--secondary-saffron);
    margin-bottom: 10px;
    transition: var(--transition);
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.15);
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-saffron);
    font-family: 'Poppins', sans-serif;
}

.achievement-text {
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.achievement-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.events-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.calendar-wrapper { background: white; }

.calendar {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.calendar-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
    flex: 1;
    text-align: center;
}

.calendar-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.calendar-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--bg-lighter);
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 0.9rem;
}

.weekday {
    padding: 12px;
    text-align: center;
}

.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-light);
    padding: 1px;
}

.date {
    background: white;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.date:hover:not(.prev-month) {
    background: var(--bg-lighter);
}

.date.prev-month {
    color: var(--border-light);
}

.date.has-event {
    background: rgba(245, 158, 11, 0.1);
    color: var(--secondary-saffron);
    font-weight: 600;
}

.date.today {
    background: var(--secondary-saffron);
    color: var(--primary-navy);
    font-weight: 600;
}

.events-list { background: white; }

.events-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--primary-navy);
}

.event-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-left: 4px solid var(--secondary-saffron);
    background: var(--bg-lighter);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.event-card:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}

.event-badge {
    background: var(--secondary-saffron);
    color: var(--primary-navy);
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.event-details h4 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.event-details h4 i {
    color: var(--secondary-saffron);
    margin-right: 8px;
}

.event-time {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.event-desc {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* ============================================
   TRUSTEES SECTION
   ============================================ */

.trustees-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-dark) 100%);
    color: white;
}

.trustees-section .section-header h2 {
    color: white;
}

.trustees-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.trustee-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(20px);
    position: relative;
}

.trustee-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--secondary-saffron), transparent, var(--secondary-saffron));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.trustee-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.trustee-card:hover::before {
    opacity: 1;
}

.trustee-avatar {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-saffron), var(--accent-amber));
    position: relative;
}

.trustee-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
}

.trustee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.trustee-card:hover .trustee-avatar img {
    transform: scale(1.1);
}

.trustee-info {
    padding: 25px;
    text-align: center;
}

.trustee-info h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.trustee-role {
    color: var(--secondary-saffron);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.trustee-bio {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--secondary-saffron) 0%, var(--accent-amber) 100%);
    text-align: center;
    color: var(--primary-navy);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-navy);
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--primary-navy);
}

.cta-section .btn-primary {
    background: var(--primary-navy);
    color: white;
}

.cta-section .btn-primary:hover {
    background: var(--primary-dark);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, #0d2855 0%, #1a3a5c 50%, #0d2855 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 20px 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
}

.footer::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-saffron);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-saffron);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-saffron);
    color: var(--primary-navy);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
    color: var(--secondary-saffron);
    font-size: 1.1rem;
    margin-top: 3px;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--secondary-saffron);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-meta {
    display: flex;
    gap: 25px;
}

.footer-meta a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-meta a:hover {
    color: var(--secondary-saffron);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-saffron);
    color: var(--primary-navy);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.scroll-to-top:hover {
    background: var(--accent-amber);
    transform: translateY(-3px);
}

.scroll-to-top.show {
    display: flex;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .nav-list {
        gap: 0.2rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    .btn-header {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .header-actions {
        gap: 6px;
    }
    
    .site-title {
        font-size: 1rem;
    }
    
    .site-tagline {
        font-size: 0.72rem;
    }
}

@media (max-width: 1024px) {
    .hero-title { font-size: 2.5rem; }
    .welcome-grid { grid-template-columns: 1fr; gap: 40px; }
    .trustees-grid { grid-template-columns: repeat(3, 1fr); }
    .achievements-grid { grid-template-columns: repeat(2, 1fr); }
    .events-container { grid-template-columns: 1fr; }
    .mission-vision { grid-template-columns: 1fr; }
    .feature-grid-small { grid-template-columns: 1fr; }
    
    .nav-list {
        gap: 0.15rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 5px 6px;
    }
    
    .nav-link i {
        display: none;
    }
    
    .btn-header {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    
    .btn-header i {
        display: none;
    }
    
    .header-actions {
        gap: 5px;
    }
    
    .logo-image {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    /* Mobile menu styles */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, var(--primary-navy) 0%, var(--primary-dark) 100%);
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .nav-menu.open {
        left: 0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 5px;
    }
    
    .nav-link {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .nav-link i {
        font-size: 1rem;
        width: 24px;
    }
    
    .nav-close {
        display: flex;
    }
    
    /* Add action buttons to mobile menu */
    .nav-menu.open .nav-list::after {
        content: '';
        display: block;
        height: 1px;
        background: rgba(255, 255, 255, 0.2);
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-actions {
        display: none;
    }
    
    .site-title { font-size: 0.95rem; }
    .site-tagline { font-size: 0.7rem; }
    .logo-image { width: 45px; height: 45px; }
    .hero { padding: 60px 20px; min-height: 500px; }
    .hero-title { font-size: 2rem; }
    .hero-benefits { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .btn, .btn-lg { width: 100%; justify-content: center; }
    .section-header h2 { font-size: 1.8rem; }
    .services-grid { grid-template-columns: 1fr; }
    .trustees-grid { grid-template-columns: repeat(2, 1fr); }
    .achievements-grid { grid-template-columns: 1fr; }
    .cta-content h2 { font-size: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-meta { flex-direction: column; gap: 10px; }
    .achievement-card { padding: 30px 20px; }
    .achievement-number { font-size: 2rem; }
    .achievement-text { font-size: 1rem; }
}

@media (max-width: 480px) {
    .logo-section { gap: 8px; }
    .logo-image { width: 40px; height: 40px; }
    .site-title { font-size: 0.85rem; }
    .site-tagline { font-size: 0.65rem; }
    .hero { padding: 40px 15px; min-height: 400px; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .section-header h2 { font-size: 1.5rem; }
    .welcome-section, .quick-access-section, .events-section, .trustees-section, .achievements-section, .cta-section { padding: 50px 15px; }
    .services-grid { gap: 15px; }
    .service-card { padding: 25px; }
    .trustees-grid { grid-template-columns: 1fr; }
    .achievements-grid { grid-template-columns: 1fr; }
    .scroll-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; }
    .hero-badge { font-size: 0.8rem; padding: 6px 12px; }
    .benefit-item { font-size: 0.85rem; }
    .achievement-card { padding: 25px 20px; }
    .achievement-number { font-size: 1.8rem; }
    .achievement-icon { font-size: 2.2rem; }
}

/* Accessibility */
:focus-visible {
    outline: 3px solid var(--secondary-saffron);
    outline-offset: 2px;
}

button:focus-visible, a:focus-visible {
    outline: 3px solid var(--secondary-saffron);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .header, .footer, .scroll-to-top { display: none; }
}

/* ============================================
   TEACHER REGISTRATION FORM PAGE (ADD AT END)
   ============================================ */

.page-bg {
  background: linear-gradient(180deg, #eef2f6 0%, #ffffff 60%);
  min-height: calc(100vh - 64px);
  padding: 35px 0 60px;
}

.form-card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  padding: 38px 42px 40px;
  border: 1px solid rgba(229, 231, 235, 0.85);
}

.form-title {
  text-align: center;
  font-size: 3rem;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}

.form-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1rem;
}

.form-divider {
  width: 70%;
  height: 2px;
  margin: 10px auto 30px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.85), transparent);
  border-radius: 999px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.form-label .req {
  color: #e11d48;
  font-weight: 800;
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 13px 14px;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-size: 0.98rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--secondary-saffron);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
  outline: none;
}

.form-control::placeholder {
  color: #9ca3af;
}

.form-textarea {
  min-height: 92px;
  resize: vertical;
}

.form-terms {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 0;
  color: var(--text-medium);
  font-weight: 600;
  line-height: 1.4;
}

.form-terms input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--secondary-saffron);
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.form-actions .btn {
  min-width: 210px;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 800;
}

.btn-submit {
  background: linear-gradient(180deg, #fbbf24, var(--secondary-saffron));
  color: var(--primary-navy);
  box-shadow: 0 12px 22px rgba(245, 158, 11, 0.35);
}

.btn-submit:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #f59e0b, var(--accent-amber));
}

.btn-ghost {
  background: #fff;
  color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
}

.btn-ghost:hover {
  background: rgba(13, 40, 85, 0.06);
}

/* ============================================
   GALLERY SECTION
   ============================================ */


/* ============================================
   MEMORIES (TILES) - SECTION
============================================ */

.memories-section{
  padding: 80px 20px;
  background: var(--bg-light);
}

.memories-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.memory-card{
  position: relative;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  aspect-ratio: 4/3;
}

.memory-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.memory-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,40,85,0.85), rgba(13,40,85,0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.memory-title{
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  text-align: left;
  z-index: 2;
  text-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.memory-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.memory-card:hover img{
  transform: scale(1.06);
}

.memory-card:hover .memory-overlay{
  opacity: 1;
}

/* Responsive */
@media (max-width: 1200px){
  .memories-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px){
  .memories-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px){
  .memories-grid{ grid-template-columns: 1fr; }
}

/* ============================================
   MEMORIES MODAL
============================================ */

.memory-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.memory-modal.show{
  display: block;
}

.memory-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
}

.memory-modal-content{
  position: relative;
  z-index: 2;
  width: min(900px, 92vw);
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

.memory-modal-content img{
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

#memoryModalCaption{
  margin: 0;
  padding: 14px 16px 18px;
  font-weight: 700;
  color: var(--primary-navy);
}

.memory-close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 0;
  background: rgba(255,255,255,0.95);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 900;
  color: var(--primary-navy);
  box-shadow: var(--shadow-md);
  z-index: 3;
}

.memory-close:hover{
  background: var(--secondary-saffron);
  color: var(--primary-navy);
}

/* ============================================
   MODERN ENHANCEMENTS & IMPROVEMENTS
   ============================================ */

/* Enhanced event cards with better visual hierarchy */
.event-card {
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
}

.event-card:hover::before {
    width: 8px;
}

/* Loading spinner animation */
@keyframes spinner {
    to { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spinner 1s linear infinite;
}

/* Enhanced service cards with gradient borders */
.service-card {
    position: relative;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-gold);
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.service-card:hover::after {
    opacity: 0.2;
}

/* Smooth section transitions */
section {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Enhanced calendar styling */
.calendar {
    transition: var(--transition);
}

.calendar:hover {
    box-shadow: var(--shadow-xl);
}

.date.has-event {
    position: relative;
}

.date.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary-saffron);
}

/* Improved button hover effects */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Enhanced trustee cards with better image effects */
.trustee-avatar {
    position: relative;
    overflow: hidden;
}

.trustee-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.trustee-card:hover .trustee-avatar::before {
    opacity: 1;
}

/* Improved section headers */
.section-badge {
    position: relative;
    transition: var(--transition);
}

.section-badge:hover {
    transform: scale(1.05);
}

/* Better focus states for accessibility */
*:focus-visible {
    outline: 3px solid var(--secondary-saffron);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Enhanced achievement cards */
.achievement-card {
    cursor: default;
}

.achievement-icon {
    position: relative;
    display: inline-block;
}

.achievement-card:hover .achievement-icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Enhanced footer with better visual hierarchy */
.footer-section {
    position: relative;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

/* Improved CTA section */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
}

/* Smooth hover animations for all clickable elements */
a, button, .service-card, .trustee-card, .achievement-card, .memory-card {
    -webkit-tap-highlight-color: transparent;
}

/* Enhanced mobile menu */
@media (max-width: 768px) {
    .nav-menu.open {
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Print-friendly styles */
@media print {
    .hero::before, .hero::after,
    .service-card::before, .service-card::after,
    .achievement-card::before,
    .cta-section::before, .cta-section::after {
        display: none;
    }
}
