/**
 * Frontend Styling voor mandieligneis.nl
 * Gebaseerd op Demo17 - Entertainment/Media Design
 */

/* ========================================
   CSS Custom Properties (Color Scheme)
   ======================================== */

:root {
    /* Dark Mode (default) */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2c2c2c;
    --bg-tertiary: #3a3a3a;
    --bg-header: rgba(26, 26, 26, 0.95);
    --bg-overlay: rgba(0, 0, 0, 0.7);
    
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --text-dark: #666666;
    
    --accent: #ff6b6b;
    --accent-dark: #ee5a24;
    --accent-light: rgba(255, 107, 107, 0.2);
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(255, 107, 107, 0.3);
    
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-accent: rgba(255, 107, 107, 0.2);
    
    /* Logo filter for dark mode (neon rainbow) */
    --logo-filter: brightness(0) invert(1) sepia(1) saturate(10000%) hue-rotate(0deg);
    --logo-animation: neonRainbow 20s linear infinite;
}

/* Light Mode */
body.light-mode {
    --bg-primary: #f8f9f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eef2ea;
    --bg-header: rgba(248, 249, 245, 0.95);
    --bg-overlay: rgba(255, 255, 255, 0.9);
    
    --text-primary: #1a3d1a;
    --text-secondary: #3d5c3d;
    --text-muted: #5a7a5a;
    --text-dark: #2d4a2d;
    
    --accent: #2d6b2d;
    --accent-dark: #1a4d1a;
    --accent-light: rgba(45, 107, 45, 0.15);
    
    --border-color: rgba(45, 107, 45, 0.2);
    --border-accent: rgba(45, 107, 45, 0.4);
    
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-accent: rgba(45, 107, 45, 0.2);
    
    /* Logo filter for light mode (green animation) */
    --logo-filter: brightness(0) sepia(1) saturate(10000%) hue-rotate(90deg);
    --logo-animation: greenShift 20s linear infinite;
}

/* Green shift animation for light mode logo */
@keyframes greenShift {
    0% {
        filter: brightness(0) sepia(1) saturate(5000%) hue-rotate(70deg);
    }
    50% {
        filter: brightness(0) sepia(1) saturate(5000%) hue-rotate(110deg);
    }
    100% {
        filter: brightness(0) sepia(1) saturate(5000%) hue-rotate(70deg);
    }
}

/* ========================================
   Base Styles
   ======================================== */

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

html {
    background: var(--bg-primary);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 120px;
    width: auto;
    filter: var(--logo-filter);
    margin-right: 100px;
    animation: var(--logo-animation);
    transition: filter 0.4s ease, transform 0.3s ease;
}

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

/* Neon rainbow animation for dark mode */
@keyframes neonRainbow {
    0% {
        filter: brightness(0) invert(1) sepia(1) saturate(10000%) hue-rotate(0deg);
    }
    100% {
        filter: brightness(0) invert(1) sepia(1) saturate(10000%) hue-rotate(360deg);
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    position: relative;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active {
    gap: 0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(0px);
    position: absolute;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(0px);
    position: absolute;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 15px;
    align-items: center;
    margin-right: 280px; /* Space for search + theme toggle on desktop */
}

/* Desktop header tools (search + toggle) */
.header-tools {
    position: fixed;
    top: 15px;
    right: 40px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-header);
    padding: 6px 10px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.header-search-input {
    padding: 6px 12px;
    border: none;
    border-radius: 20px;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    width: 120px;
    transition: width 0.3s ease;
}

.header-search-input:focus {
    width: 180px;
}

.header-search-input::placeholder {
    color: var(--text-muted);
}

.header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-search-btn:hover {
    background: var(--accent-dark);
    transform: scale(1.05);
}

/* Hide mobile search on desktop */
.nav-search-mobile {
    display: none;
}

.nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.nav a:hover {
    background: var(--accent);
    color: var(--text-primary);
}

/* Responsive Menu */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }
    
    /* Hide desktop header tools on mobile */
    .header-tools {
        display: none;
    }
    
    /* Show mobile search in nav */
    .nav-search-mobile {
        display: flex;
        width: 100%;
        margin-top: 10px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }

    .nav {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: var(--bg-header);
        backdrop-filter: blur(20px);
        flex-direction: column;
        margin-right: 0; /* Remove desktop margin on mobile */
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0;
        padding: 90px 20px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav a {
        display: block;
        padding: 14px 16px;
        border-radius: 8px;
        width: 100%;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 0;
    }
    
    /* Logo: smaller and no margin-right when hamburger menu is visible */
    .logo {
        height: 80px;
        margin-right: 0;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 40px;
}

.hero-title,
.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-subtitle,
.hero p {
    font-size: 1.5rem;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

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

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.page {
    padding: 120px 40px 80px;
}

/* Main Content */
.main-content {
    padding-top: 80px;
    flex: 1 0 auto;
    background: var(--bg-primary);
}

/* Sections */
.section {
    background: var(--bg-primary);
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--accent), var(--accent-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Don't block clicks on card content */
}

.card:hover::before {
    opacity: 0.1;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.2);
}

.card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.location {
    color: var(--accent);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    z-index: 2; /* Ensure button is clickable above card overlay */
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

/* Announcements */
.announcements {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcement {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    padding: 20px;
    border-radius: 8px;
}

.announcement-card {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.announcement .text,
.announcement-card .text {
    color: var(--text-primary);
    line-height: 1.7;
}

/* Photo Grid */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.album-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

/* Album cover photo background */
.album-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--cover-image);
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.album-card:hover::before {
    opacity: 0.35;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-accent);
}

.album-card a {
    display: block;
    padding: 30px;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.album-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 1px 3px var(--shadow-color);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
    grid-auto-rows: 280px; /* Fixed row height for uniform appearance */
}

.photo-item {
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    height: 100%; /* Fill the grid cell */
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.2);
    z-index: 10;
}

.photo-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Crop to fill the square, maintaining aspect ratio */
    object-position: center;
}

.caption {
    padding: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 40px;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #333;
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

#searchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 2px solid #333;
    border-radius: 10px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

.search-suggestions a {
    display: block;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
}

.search-suggestions a:hover {
    background: var(--accent);
}

/* Entrepreneurs Grid */
.entrepreneurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.entrepreneur-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.entrepreneur-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.2);
}

.entrepreneur-card .photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.entrepreneur-card .content {
    padding: 30px;
}

.entrepreneur-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.entrepreneur-card .contact {
    color: var(--accent);
    font-weight: 500;
}

/* Article Detail */
.article-detail {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.article-detail h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.article-detail .content {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 40px 0;
}

/* Year Selector */
.year-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.year-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.year-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.year-btn:hover {
    background: var(--accent);
}

/* Archive List */
.archive-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.archive-item {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.archive-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    flex: 1;
}

.archive-item a:hover {
    color: var(--accent);
}

.archive-item .title {
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.pagination a:hover {
    background: var(--accent);
}

/* Content Page */
.content-page {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-page ul {
    margin: 20px 0 20px 40px;
}

.content-page li {
    margin-bottom: 10px;
}

/* Contact Info */
.contact-info {
    background: #333;
    border-radius: 15px;
    padding: 40px;
    margin-top: 40px;
}

.contact-info strong {
    color: var(--accent);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    position: relative;
    margin-top: 80px;
    flex-shrink: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    color: var(--text-dark);
}

/* Footer Sponsors */
.footer-sponsors {
    margin-bottom: 40px;
    min-height: 180px; /* Fixed height to prevent jumping */
}

.sponsors-title {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 400;
}

.sponsors-banners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap; /* No wrapping for smooth animation */
    max-width: 1200px;
    margin: 0 auto;
    height: 140px; /* Fixed height to prevent jumping */
    min-height: 140px;
    position: relative;
    overflow: visible; /* Allow hover effects to expand outside */
}

.sponsor-banner {
    position: relative;
    opacity: 0.8;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
    overflow: hidden;
    background: var(--bg-secondary);
    padding: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0; /* Prevent shrinking during animation */
    will-change: transform, opacity; /* Optimize for animations */
    width: 280px; /* Fixed width */
    height: 140px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fade-in animation for new banners */
.sponsor-banner.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

/* Fade-out animation for removed banners */
.sponsor-banner.fade-out {
    animation: fadeOut 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.8;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}

.sponsor-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--accent), var(--accent-dark));
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.sponsor-banner:hover {
    opacity: 1;
    transform: translateY(-10px) scale(1.5);
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 20px 50px rgba(255, 107, 107, 0.4);
    z-index: 100; /* Ensure it appears above other banners */
}

.sponsor-banner:hover::before {
    opacity: 0.15;
}

.sponsor-banner:hover img {
    filter: brightness(1.1);
}

/* Prevent hover effects during fade animations */
.sponsor-banner.fade-in:hover,
.sponsor-banner.fade-out:hover {
    transform: none;
    opacity: inherit;
    z-index: auto;
}

.sponsor-banner img {
    display: block;
    max-height: 120px;
    max-width: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: filter 0.3s ease;
}

.footer-copyright {
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1,
    .hero-title {
        font-size: 2.2rem;
    }

    .hero p,
    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .page {
        padding: 100px 20px 60px;
    }

    .article-detail {
        padding: 40px 30px;
    }

    .content-page {
        padding: 40px 30px;
    }

    /* Footer banners: 1 banner on mobile */
    .footer-sponsors {
        min-height: 160px;
        height: 160px; /* Fixed height */
    }
    
    .sponsors-banners {
        gap: 20px;
        height: 120px; /* Fixed height */
        min-height: 120px;
    }
    
    .sponsor-banner {
        width: 240px; /* Fixed width for mobile */
        height: 120px; /* Fixed height for mobile */
        max-width: 100%;
    }
    
    .sponsor-banner img {
        max-height: 100px;
        max-width: 200px;
    }
    
    /* Photo grid: smaller squares on mobile */
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-auto-rows: 150px;
        gap: 10px;
    }
}

/* Tablet: 2 banners */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-sponsors {
        min-height: 170px;
        height: 170px; /* Fixed height */
    }
    
    .sponsors-banners {
        gap: 25px;
        height: 130px; /* Fixed height */
        min-height: 130px;
    }
    
    .sponsor-banner {
        width: 260px; /* Fixed width for tablet */
        height: 130px; /* Fixed height for tablet */
    }
    
    .sponsor-banner img {
        max-height: 110px;
        max-width: 220px;
    }
    
    /* Photo grid: medium squares on tablet */
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-auto-rows: 200px;
        gap: 15px;
    }
}

/* Desktop: 3 banners */
@media (min-width: 1025px) {
    .footer-sponsors {
        min-height: 180px;
        height: 180px; /* Fixed height */
    }
    
    .sponsors-banners {
        gap: 30px;
        height: 140px; /* Fixed height */
        min-height: 140px;
    }
    
    .sponsor-banner {
        width: 280px; /* Fixed width for desktop */
        height: 140px; /* Fixed height for desktop */
    }
    
    .sponsor-banner img {
        max-height: 120px;
        max-width: 250px;
    }
}

/* Sponsors Page */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.sponsor-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    text-align: center;
}

.sponsor-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
}

.sponsor-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sponsor-card h3 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.sponsor-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.sponsor-cta {
    margin-top: 60px;
    padding: 40px;
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    text-align: center;
}

.sponsor-cta h2 {
    color: var(--accent);
    margin-bottom: 15px;
}

.sponsor-cta p {
    font-size: 1.1rem;
}

.sponsor-cta a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.sponsor-cta a:hover {
    border-bottom-color: var(--accent);
}

.intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 20px 0 40px;
    text-align: center;
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 107, 107, 0.8);
    border-color: var(--accent);
    transform: rotate(90deg);
}

/* Navigation buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 60px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10001;
    user-select: none;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-nav:hover {
    background: rgba(255, 107, 107, 0.8);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Caption */
.lightbox-caption {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 80%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    line-height: 1.4;
}

/* Counter */
.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    z-index: 10001;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 40px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-counter {
        bottom: 20px;
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/* ========================================
   Theme Toggle Switch
   ======================================== */

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle-label {
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.theme-toggle-label svg {
    display: block;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
    flex-shrink: 0;
}

.theme-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.theme-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 26px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.theme-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-primary);
    border-radius: 50%;
    transition: all 0.4s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.theme-switch input:checked + .theme-slider {
    background: var(--accent-light);
    border-color: var(--accent);
}

.theme-switch input:checked + .theme-slider::before {
    left: calc(100% - 20px);
    transform: translateY(-50%);
    background: var(--accent);
}

/* Desktop: Show toggle in header-tools container */
.theme-toggle-desktop {
    display: flex;
    background: var(--bg-header);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.theme-toggle-mobile {
    display: none;
}

/* Mobile: Show toggle in hamburger menu, hide desktop version */
@media (max-width: 1024px) {
    .theme-toggle-desktop {
        display: none;
    }
    
    .theme-toggle-mobile {
        display: flex;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
        justify-content: center;
        flex-shrink: 0;
        width: 100%;
    }
}

/* Light mode specific adjustments */
body.light-mode .header {
    box-shadow: 0 2px 20px var(--shadow-color);
}

body.light-mode .card {
    box-shadow: 0 5px 30px var(--shadow-color);
}

body.light-mode .card:hover {
    box-shadow: 0 15px 40px var(--shadow-accent);
}

body.light-mode .btn {
    box-shadow: 0 4px 15px var(--shadow-accent);
}

body.light-mode .photo-item {
    box-shadow: 0 4px 20px var(--shadow-color);
}

body.light-mode .footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

body.light-mode .lightbox-overlay {
    background: rgba(255, 255, 255, 0.95);
}

body.light-mode .lightbox-close,
body.light-mode .lightbox-nav {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.light-mode .lightbox-close:hover,
body.light-mode .lightbox-nav:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

body.light-mode .lightbox-counter {
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px var(--shadow-color);
}

body.light-mode .lightbox-caption {
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* ========================================
   SEARCH STYLES
   ======================================== */

/* Navigation Search */
.nav-search-form {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.nav-search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    min-width: 120px;
}

.nav-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--shadow-accent);
}

.nav-search-input::placeholder {
    color: var(--text-muted);
}

.nav-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-search-btn:hover {
    background: var(--accent-dark);
    transform: scale(1.1);
}

/* Search Page */
.search-form-large {
    margin-bottom: 40px;
}

.search-input-group {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-large {
    flex: 1;
    padding: 15px 25px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input-large:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--shadow-accent);
}

.search-input-large::placeholder {
    color: var(--text-muted);
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
}

.search-message {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.search-count {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.no-results {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 15px;
}

/* Search Results */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-result-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.search-result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: var(--accent);
}

.result-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.category-icon {
    flex-shrink: 0;
}

body.light-mode .result-category {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.search-result-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.search-result-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result-card h3 a:hover {
    color: var(--accent);
}

.result-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.result-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.result-location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.location-icon {
    flex-shrink: 0;
}

/* Desktop: nav search is hidden, using header-tools instead */
@media (min-width: 1025px) {
    .nav-search-mobile {
        display: none !important;
    }
}

/* Mobile search adjustments */
@media (max-width: 1024px) {
    .nav-search-form {
        width: 100%;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   CONTACT FORM STYLES
   ======================================== */

.contact-form {
    max-width: 700px;
    margin: 30px 0;
}

.contact-form .form-group {
    margin-bottom: 25px;
    display: block;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.contact-form .form-group input[type="text"],
.contact-form .form-group input[type="email"],
.contact-form .form-group input[type="number"],
.contact-form .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: block;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--shadow-accent);
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
    color: var(--text-muted);
}

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 180px;
}

.contact-form .form-group input[type="file"] {
    padding: 15px;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.contact-form .form-group input[type="file"]:hover {
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.contact-form .form-group small {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.captcha-group .captcha-question {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.captcha-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--bg-tertiary);
    padding: 10px 20px;
    border-radius: 8px;
    white-space: nowrap;
}

.captcha-group input[type="number"] {
    width: 120px !important;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.captcha-group input[type="hidden"] {
    display: none !important;
}

.btn-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    font-size: 1.1rem;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

body.light-mode .alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

body.light-mode .alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Contact Info Box */
.contact-info-box {
    margin-top: 50px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.contact-info-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact-info-box p {
    margin: 10px 0;
    color: var(--text-secondary);
}

.contact-info-box a {
    color: var(--accent);
    text-decoration: none;
}

.contact-info-box a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .captcha-group .captcha-question {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .captcha-group input[type="number"] {
        width: 100%;
    }
}


