/* Surya Valley School - Main Stylesheet */
/* Modern, Professional Design - Inspired by React UI */

:root {
    /* Primary Brand Colors - Lighter, Modern Palette */
    --color-primary: #4A90E2;        /* Lighter Blue */
    --color-accent-purple: #9B7EDE;  /* Lighter Purple */
    --color-accent-red: #FF6B6B;     /* Coral Red */
    --color-accent-gold: #FFC857;    /* Warm Gold */
    --color-neutral-light: #FFFFFF;
    --color-neutral-dark: #2C3E50;
    --color-neutral-medium: #5A6C7D;
    
    /* Background Colors - Softer, Airier */
    --bg-light-blue: #F0F8FF;
    --bg-light-yellow: #FFF9E6;
    --bg-light-teal: #F0FDFA;
    --bg-light-pink: #FFF5F7;
    --bg-white: #FFFFFF;
    --bg-gray: #F8FAFC;
    --secondary-gray: #F1F5F9;
    
    /* Text Colors - Better Readability */
    --text-dark: #1E293B;
    --text-medium: #64748B;
    --text-light: #94A3B8;
    --text-color-secondary: #64748B;
    
    /* Additional Colors */
    --primary-navy: #4A90E2;
    --primary-white: #FFFFFF;
    --primary-red: #FF6B6B;
    --secondary-red: #F05252;
    --primary-gold: #FFC857;
    --border-light: #E2E8F0;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.08);
    
    /* Softer Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    /* Typography - Better Font Stack */
    --font-family-heading: 'Plus Jakarta Sans', 'Poppins', -apple-system, system-ui, sans-serif;
    --font-family-body: 'Inter', -apple-system, system-ui, 'Segoe UI', sans-serif;
    --font-size-h1: clamp(2.25rem, 4vw + 1rem, 3.75rem);
    --font-size-h2: clamp(1.875rem, 3vw + 1rem, 2.5rem);
    --font-size-h3: clamp(1.5rem, 2vw + 0.5rem, 1.875rem);
    --font-size-body: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);
    
    /* Spacing - More Consistent */
    --spacing-unit: 8px;
    --spacing-xs: calc(var(--spacing-unit) * 1);
    --spacing-sm: calc(var(--spacing-unit) * 2);
    --spacing-md: calc(var(--spacing-unit) * 3);
    --spacing-lg: calc(var(--spacing-unit) * 4);
    --spacing-xl: calc(var(--spacing-unit) * 6);
    --spacing-2xl: calc(var(--spacing-unit) * 8);
    --spacing-3xl: calc(var(--spacing-unit) * 12);
    
    /* Border Radius - Softer Curves */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 50px;
    
    /* Smoother Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-family-body);
    font-size: var(--font-size-body);
    line-height: 1.75;
    color: var(--text-dark);
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 50%, #F0FDFA 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

h1 {
    font-size: var(--font-size-h1);
    font-weight: 800;
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: 700;
}

h3 {
    font-size: var(--font-size-h3);
    font-weight: 700;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--color-accent-purple);
}

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

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

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

.mt-5 {
    margin-top: var(--spacing-xl);
}

.mb-5 {
    margin-bottom: var(--spacing-xl);
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

/* Full-bleed header: let navbar span edge-to-edge */
.header .container {
    max-width: 100%;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-family-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    gap: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: auto;
    margin-left: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0057A7, #7E57C2, #D32F2F);
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

.logo:hover::before {
    width: 100%;
}

.logo:hover {
    transform: translateY(-3px) scale(1.02);
}

.logo img {
    height: 50px;
    width: 50px;
    object-fit: contain;
    flex-shrink: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo:hover img {
    transform: rotate(360deg) scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.logo-text {
    display: inline-block;
    font-size: 1.2rem;
    background: linear-gradient(120deg, #0057A7 0%, #7E57C2 30%, #D32F2F 60%, #FFD700 100%);
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: shimmer 4s ease-in-out infinite;
    font-weight: 800;
    letter-spacing: 0.3px;
    position: relative;
}

.logo:hover .logo-text {
    background-position: 100% center;
    letter-spacing: 1.5px;
    transform: scale(1.05);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: auto;
    margin-right: 0;
}

.nav-link {
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background-color: rgba(0, 87, 167, 0.08);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 1.5rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    cursor: pointer;
    border-radius: var(--radius-sm);
}

/* Hero Section - Background Image Slider */
.hero {
    position: relative;
    color: var(--color-neutral-light);
    padding: 140px 0 100px;
    text-align: center;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 600ms ease-in-out;
    z-index: 0;
}

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

/* Subtle bottom gradient for text readability */
.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Hero navigation dots */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.hero-dot:hover,
.hero-dot:focus {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-dot.active {
    background: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
}

/* Hero arrow buttons */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.hero-arrow:hover,
.hero-arrow:focus {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.9);
}

.hero-arrow-prev {
    left: 20px;
}

.hero-arrow-next {
    right: 20px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content * {
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: var(--font-size-h1);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    color: var(--color-neutral-light);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-2xl);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-family-heading);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.btn-primary {
    background-color: var(--color-accent-gold);
    color: var(--text-dark);
    border-color: var(--color-accent-gold);
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    background-color: #FFC700;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
    color: var(--text-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-neutral-light);
    border-color: var(--color-neutral-light);
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: var(--color-neutral-light);
    color: var(--color-primary);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-neutral-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Apply Now Button - Standardized across entire site */
.cta-button,
.btn-apply,
.cta-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent-purple), var(--color-accent-red));
    color: var(--color-neutral-light) !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-family-heading);
    border: none;
    box-shadow: 0 2px 8px rgba(126, 87, 194, 0.3);
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    min-width: 140px;
    position: relative;
    z-index: 100;
    pointer-events: auto;
}

.cta-button:hover,
.btn-apply:hover,
.cta-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(126, 87, 194, 0.5);
    color: var(--color-neutral-light) !important;
    background: linear-gradient(135deg, #8B6DD1, #E53E3E);
}

.cta-button:active,
.btn-apply:active,
.cta-apply:active {
    transform: translateY(0);
}

.cta-button:focus-visible,
.btn-apply:focus-visible,
.cta-apply:focus-visible {
    outline: 3px solid var(--color-accent-gold);
    outline-offset: 2px;
}

/* Button Group */
.btn-group {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: var(--font-size-h2);
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

/* Cards */
.card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.card-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 87, 167, 0.1);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: var(--spacing-xl);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--text-dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-family-body);
    font-size: 1rem;
    color: var(--color-primary);
    background-color: var(--bg-white);
    border: 2px solid rgba(0, 87, 167, 0.2);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 87, 167, 0.1);
}

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

.form-error {
    color: var(--primary-red);
    font-size: 0.875rem;
    margin-top: 6px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #23223A 100%);
    color: var(--color-neutral-light);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    color: var(--color-accent-gold);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.footer-section p {
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--color-accent-gold);
}

.footer-school-name {
    color: var(--color-accent-gold);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
    color: var(--color-accent-gold);
}

/* Make navbar content flush to edges on desktop */
.header .container {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 768px) {
    .header .container {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
}

/* Tabs / Filters */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background: rgba(0, 87, 167, 0.1);
}

.filter-btn.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 87, 167, 0.3);
}

/* Empty state when no events */
.events-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-medium);
    padding: 40px 0;
}

/* Timeline */
.timeline {
    position: relative;
    margin: var(--spacing-lg) 0;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 87, 167, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--secondary-gray);
    border-radius: var(--radius-lg);
}

.timeline-marker {
    position: absolute;
    left: -32px;
    top: var(--spacing-lg);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 87, 167, 0.25);
}

/* Event Cards */
.event-card {
    position: relative;
}

.date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-md);
    padding: 6px 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 87, 167, 0.3);
}

.date-badge .day {
    font-family: var(--font-family-heading);
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.1;
}

.date-badge .month {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    opacity: 0.95;
}

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

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-md);
}

.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-accent-gold);
    padding: var(--spacing-md);
    text-align: center;
    font-weight: 600;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px 20px;
    transition: background var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(0, 87, 167, 0.1);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mission Logo Display */
@media (min-width: 768px) {
    .mission-logo {
        display: block !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        align-items: stretch;
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        padding: var(--spacing-md);
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo img {
        height: 40px;
        width: 40px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .hero {
        padding: 80px 0 60px;
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .grid {
        gap: var(--spacing-lg);
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 0.95rem;
    }
    
    .logo img {
        height: 35px;
        width: 35px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

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

.fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Gallery Carousel Styles */
.gallery-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.gallery-carousel-track {
    display: flex;
    gap: var(--spacing-lg);
    transition: transform 0.5s ease-in-out;
}

.gallery-carousel-item {
    flex: 0 0 calc(33.333% - var(--spacing-lg));
    min-width: 0;
    cursor: pointer;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}

.gallery-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-normal);
}

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

.gallery-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 87, 167, 0.9);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-carousel-arrow:hover {
    background: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 87, 167, 0.4);
}

.gallery-carousel-arrow-prev {
    left: 10px;
}

.gallery-carousel-arrow-next {
    right: 10px;
}

/* Responsive gallery carousel */
@media (max-width: 1024px) {
    .gallery-carousel-item {
        flex: 0 0 calc(50% - var(--spacing-lg));
    }
}

@media (max-width: 768px) {
    .gallery-carousel {
        padding: 0 50px;
    }
    
    .gallery-carousel-item {
        flex: 0 0 100%;
    }
    
    .gallery-carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Gallery Grid - Consistent Card Sizes */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
    padding: 24px 16px 16px;
    transform: translateY(0);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-caption {
    font-family: var(--font-family-heading);
    font-weight: 600;
    font-size: 16px;
    color: white;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.gallery-album {
    font-family: var(--font-family-body);
    font-weight: 400;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Masonry option */
.gallery-grid.masonry {
    column-count: 3;
    column-gap: 24px;
}

@media (max-width: 1024px) {
    .gallery-grid.masonry { column-count: 2; }
}

@media (max-width: 600px) {
    .gallery-grid.masonry { column-count: 1; }
}

.gallery-grid.masonry .gallery-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 24px;
    aspect-ratio: auto;
}

.gallery-grid.masonry .gallery-image {
    width: 100%;
    height: auto;
}

/* Icon circle utility for Quick Links */
.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    color: var(--color-primary);
    font-size: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: var(--spacing-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover .icon-circle {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Gallery filter active style */
.gallery-filter.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Responsive Gallery Grid */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}

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

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-dropdown {
    position: relative;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: var(--font-family-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.lang-button:hover {
    background: var(--bg-gray);
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.lang-button svg:first-child {
    color: var(--color-primary);
}

.lang-button svg:last-child {
    transition: transform var(--transition-normal);
}

.lang-button:hover svg:last-child {
    transform: rotate(180deg);
}

#currentLang {
    min-width: 30px;
    font-weight: 600;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1000;
    overflow: hidden;
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    text-align: left;
    font-family: var(--font-family-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--bg-gray);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--bg-gray);
    color: var(--color-primary);
    padding-left: 20px;
}

.lang-option.active {
    background: var(--bg-light-blue);
    color: var(--color-primary);
    font-weight: 600;
}

.lang-option.active::before {
    content: '✓ ';
    margin-right: 8px;
}

/* Mobile Language Switcher */
@media (max-width: 768px) {
    .language-switcher {
        order: -1;
        margin-right: auto;
        margin-left: 0;
    }
    
    .lang-button {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    #currentLang {
        display: none;
    }
    
    .lang-menu {
        right: auto;
        left: 0;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta-button,
    .btn,
    .language-switcher {
        display: none;
    }
}
