/* ===========================
   Global Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #000000;
    --primary-dark: #1a1a1a;
    --primary-light: #333333;
    --secondary-color: #404040;
    --accent-color: #666666;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #000000 0%, #2d2d2d 100%);
    --gradient-secondary: linear-gradient(135deg, #1a1a1a 0%, #404040 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: #000000;
}

.logo i {
    font-size: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links > li > a.active {
    color: #000000;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mobile-menu-actions {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
}

.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #111827;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle span:nth-child(2) {
    margin: 4px 0;
}

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

.navbar.mobile-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

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

/* Dropdown menu in main nav */
.nav-item.dropdown {
    position: relative;
}

.nav-item .dropdown-toggle::after {
    content: '▾';
    font-size: 10px;
    margin-left: 4px;
}

.nav-dropdown {
    position: absolute;
    top: 140%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 4px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 999;
}

.nav-item.dropdown:hover > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li a {
    display: block;
    padding: 6px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
}

.nav-dropdown li a:hover {
    background: var(--bg-secondary);
    color: #000000;
}

.nav-dropdown li a.active {
    background: var(--bg-secondary);
    color: #000000;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-primary);
}

.user-btn:hover {
    border-color: #000000;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #000000 0%, #404040 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.user-btn i {
    font-size: 12px;
    transition: transform 0.3s;
}

.user-btn.active i {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

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

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.user-dropdown a:hover {
    background: var(--bg-secondary);
}

.user-dropdown a i {
    width: 20px;
    color: var(--text-secondary);
}

.user-dropdown hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.user-dropdown .logout-link {
    color: #dc2626;
}

.user-dropdown .logout-link:hover {
    background: #fee2e2;
}

/* ===========================
   Buttons
   =========================== */
.btn-primary,
.btn-secondary,
.btn-search,
.btn-event {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 14px;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: #000000;
    color: #000000;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    background: linear-gradient(135deg, #0a0e27 0%, #000000 50%, #0f172a 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Animated gradient overlay */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: rotateGradient 20s linear infinite;
    z-index: 1;
}

/* Animated light orbs */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 30%, rgba(147, 197, 253, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 40% 80%, rgba(37, 99, 235, 0.12) 0%, transparent 25%);
    animation: floatOrbs 15s ease-in-out infinite;
    z-index: 1;
}

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

@keyframes floatOrbs {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.8;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.9;
    }
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

/* Floating particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(147, 197, 253, 0.6);
    border-radius: 50%;
    animation: floatParticle 10s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 85%;
    top: 30%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.particle:nth-child(3) {
    left: 50%;
    top: 50%;
    animation-delay: 4s;
    animation-duration: 14s;
}

.particle:nth-child(4) {
    left: 20%;
    top: 70%;
    animation-delay: 1s;
    animation-duration: 11s;
}

/* ===========================
   Contact Page
   =========================== */
.contact-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 24px;
}

.contact-layout {
    display: grid;
    /* 8/4 style split between details and image */
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

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

.contact-info {
    padding: 8px 0;
}

.contact-info h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #0f172a;
}

.contact-list {
    list-style: none;
    margin: 0 0 18px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.contact-list li strong {
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
}

.contact-list li span,
.contact-list li a {
    font-size: 15px;
    color: #111827;
    text-decoration: none;
}

.contact-list li a:hover {
    text-decoration: underline;
}

.contact-social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.contact-social-link {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    background: radial-gradient(circle at top left, rgba(59,130,246,0.6), rgba(15,23,42,0.9));
    border: 1px solid rgba(148,163,184,0.6);
    box-shadow: 0 10px 25px rgba(15,23,42,0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-social-link:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 16px 35px rgba(15,23,42,0.8);
    background: radial-gradient(circle at top left, rgba(96,165,250,0.9), rgba(15,23,42,1));
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.contact-map iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
    display: block;
}

.contact-media {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.contact-media-image {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain; /* show full image without cropping */
    display: block;
}

.particle:nth-child(5) {
    left: 70%;
    top: 60%;
    animation-delay: 3s;
    animation-duration: 13s;
}

.particle:nth-child(6) {
    left: 40%;
    top: 25%;
    animation-delay: 5s;
    animation-duration: 9s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) scale(1.5);
        opacity: 0;
    }
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    }
    50% {
        text-shadow: 0 0 40px rgba(59, 130, 246, 0.5), 0 0 60px rgba(147, 197, 253, 0.3);
    }
}

.gradient-text {
    color: white;
}

@keyframes shimmer {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
}

/* ===========================
   Search Container
   =========================== */
.search-container {
    display: flex;
    gap: 12px;
    background: white;
    padding: 12px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl), 0 0 40px rgba(59, 130, 246, 0.2);
    max-width: 800px;
    margin: 0 auto;
    animation: floatSearch 3s ease-in-out infinite;
}

@keyframes floatSearch {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.search-box,
.filter-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    flex: 1;
    border-radius: 12px;
    background: var(--bg-secondary);
}

.search-box i,
.filter-box i {
    color: var(--text-secondary);
    font-size: 18px;
}

.search-input,
.filter-select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-primary);
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.filter-select {
    cursor: pointer;
}

.btn-search {
    background: var(--gradient-primary);
    color: white;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-search:hover {
    transform: scale(1.05);
}

/* ===========================
   Upcoming Events in Hero Section - Compact
   =========================== */
.upcoming-events-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    justify-content: center;
}

.event-countdown-mini {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
}

.event-countdown-mini:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.event-countdown-mini span {
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-countdown-mini strong {
    color: #10b981;
    font-weight: 700;
    font-size: 15px;
}

/* ===========================
   Categories
   =========================== */
.categories {
    padding: 32px 0;
    background: var(--bg-primary);
}

.category-pills {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
}

.category-pills::-webkit-scrollbar {
    height: 4px;
}

.category-pills::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.category-pill {
    padding: 12px 24px;
    border-radius: 24px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 14px;
}

.category-pill:hover,
.category-pill.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* ===========================
   Events Section
   =========================== */
.events-section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.view-options {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.view-btn:hover,
.view-btn.active {
    background: #000000;
    color: white;
    border-color: #000000;
}

/* ===========================
   Events Grid
   =========================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
}

.event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    cursor: pointer;
}

.event-card-highlight {
    box-shadow: 0 0 0 2px #3b82f6, var(--shadow-xl);
    transform: translateY(-4px);
}

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

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

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.event-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.event-status-badge {
    position: absolute;
    top: 16px;
    right: 60px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #111827;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(209,213,219,0.9);
    backdrop-filter: blur(10px);
}

.event-status-upcoming {
    color: #166534;
    border-color: rgba(34,197,94,0.5);
    background: rgba(220,252,231,0.9);
}

.event-status-past {
    color: #b45309;
    border-color: rgba(251,191,36,0.6);
    background: rgba(254,243,199,0.95);
}

.bookmark-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.bookmark-btn:hover {
    background: #000000;
    color: white;
    transform: scale(1.1);
}

.event-content {
    padding: 24px;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000000;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
}

.event-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.event-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.meta-item i {
    color: var(--text-light);
}

.event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.event-attendees {
    display: flex;
    align-items: center;
    gap: 12px;
}

.attendee-avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: -12px;
    background: linear-gradient(135deg, #000000 0%, #404040 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.avatar:first-child {
    margin-left: 0;
}

.organizer-avatar {
    margin-left: 0 !important;
    border: 3px solid #10b981;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.organizer-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.registered-indicator {
    position: absolute;
    top: 16px;
    right: 56px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
    }
}

.event-attendees span {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.event-price {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

.btn-event {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-event:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===========================
   Gallery Page
   =========================== */
.page-gallery {
    padding: 40px 0 20px;
}

.gallery-section {
    margin-bottom: 40px;
}

.gallery-heading {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.gallery-lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.gallery-lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    background: #000;
}

.gallery-lightbox-caption {
    padding: 10px 16px;
    color: #f9fafb;
    font-size: 14px;
    background: rgba(15, 23, 42, 0.9);
}

.gallery-lightbox-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-size: 28px;
    cursor: pointer;
    z-index: 1;
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.7);
    border: none;
    color: #e5e7eb;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-lightbox-nav.prev {
    left: 12px;
}

.gallery-lightbox-nav.next {
    right: 12px;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

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

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #000000;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    font-size: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.4);
}

.footer-contact {
    margin-top: 16px;
}

.footer-contact p {
    margin: 8px 0;
    font-size: 14px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: white;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile fullscreen nav: logo centered, close icon top-right, full-height menu */
    .navbar.mobile-open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        z-index: 1100;
        overflow-y: auto;
    }

    .navbar.mobile-open .nav-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding-top: 16px;
        padding-bottom: 24px;
    }

    .navbar.mobile-open .logo {
        justify-content: center;
    }

    .navbar.mobile-open .mobile-menu-toggle {
        position: absolute;
        top: 14px;
        right: 20px;
        z-index: 1200;
    }

    .navbar.mobile-open .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid #e5e7eb;
    }

    .navbar.mobile-open .nav-links li {
        width: 100%;
    }

    .navbar.mobile-open .nav-links a {
        display: block;
        padding: 10px 4px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .navbar.mobile-open .nav-links li {
        padding: 0 16px;
    }

    /* Dropdowns open as popup on click, not hover */
    .nav-item.dropdown:hover > .nav-dropdown {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-4px);
    }

    .nav-item.dropdown.open > .nav-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Hide desktop auth/actions on mobile; show mobile versions inside menu instead */
    .nav-actions {
        display: none;
    }

    .navbar.mobile-open .mobile-menu-actions {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        padding-top: 12px;
    }

    .navbar.mobile-open .mobile-menu-actions .btn-primary,
    .navbar.mobile-open .mobile-menu-actions .btn-secondary {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .desktop-only {
        display: none !important;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .search-container {
        flex-direction: column;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .nav-actions {
        gap: 8px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 16px;
        font-size: 13px;
    }

    .event-card {
        border-radius: 16px;
    }
}

