/* ============================================
   MODERN HERO SECTION
   ============================================ */

.hero-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #102a43 0%, #334f5d 100%);
    padding-top: 100px;
    padding-bottom: 2rem;
}

.hero-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.animated-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(39, 175, 165, 0.2) 0%,
        rgba(42, 235, 206, 0.2) 50%,
        rgba(196, 29, 21, 0.2) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    filter: grayscale(40%) contrast(1.1);
    animation: slideshow 20s infinite, kenBurns 20s infinite;
    transform-origin: center center;
}

.hero-slide:nth-child(1) { animation-delay: 0s; transform-origin: center center; }
.hero-slide:nth-child(2) { animation-delay: 5s; transform-origin: top left; }
.hero-slide:nth-child(3) { animation-delay: 10s; transform-origin: bottom right; }
.hero-slide:nth-child(4) { animation-delay: 15s; transform-origin: top right; }

@keyframes slideshow {
    0%, 20%, 100% { opacity: 0; }
    5%, 15% { opacity: 0.85; }
}

@keyframes kenBurns {
    0%, 20%, 100% { transform: scale(1); }
    5% { transform: scale(1); }
    15% { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 25, 40, 0.4) 0%,
        rgba(16, 42, 67, 0.6) 40%,
        rgba(10, 25, 40, 0.75) 100%
    );
    z-index: 3;
}

.hero-content-wrapper {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease 0.2s both;
}

.badge-icon {
    font-size: 1.2rem;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: white;
    letter-spacing: 0.1em;
    animation: fadeInUp 0.8s ease both;
}

.title-line:nth-child(1) {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--secondary-bright-teal);
    animation-delay: 0.3s;
}

.title-main {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 700;
    background: linear-gradient(135deg, white 0%, var(--secondary-bright-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.4s;
}

.title-subtitle {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    animation-delay: 0.5s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    font-family: var(--font-elegant);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--secondary-yellow-gold);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.7s both;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.feature-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.pill-icon {
    font-size: 1.3rem;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-bright-teal) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(39, 175, 165, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(39, 175, 165, 0.6);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-hero-primary svg,
.btn-hero-secondary svg {
    width: 20px;
    height: 20px;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    animation: fadeIn 1s ease 1s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% {
        transform: translate(-50%, 0);
        opacity: 0;
    }
    40%, 60% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* Hero Mobile Responsive */
@media (max-width: 768px) {
    .hero-modern {
        padding-top: 80px;
        padding-bottom: 80px;
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile */
    }
    
    .hero-content-wrapper {
        padding: 0 1.5rem;
        justify-content: flex-start;
        padding-top: 15vh;
    }
    
    .hero-cta {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }
    
    .hero-features {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .feature-pill {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .hero-scroll-hint {
        bottom: 1.5rem;
    }
    
    /* Ensure images are more visible on mobile */
    .hero-slide {
        filter: grayscale(30%) contrast(1.15);
    }
    
    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(10, 25, 40, 0.35) 0%,
            rgba(16, 42, 67, 0.55) 30%,
            rgba(10, 25, 40, 0.7) 100%
        );
    }
}

@media (max-width: 480px) {
    .hero-content-wrapper {
        padding-top: 12vh;
    }
    
    .title-line.title-main {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
}

/* ============================================
   STATS BANNER
   ============================================ */

.stats-banner {
    background: white;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   MODERN SECTIONS
   ============================================ */

.section {
    padding: 6rem 0;
    position: relative;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header-modern {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-teal);
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(39, 175, 165, 0.1);
    border-radius: 50px;
}

.section-title-modern {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-dark-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.section-header-modern.light .section-title-modern,
.section-header-modern.light .section-description {
    color: white;
}

/* ============================================
   HIGHLIGHT CARDS
   ============================================ */

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}


.highlight-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(39, 175, 165, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.highlight-card:hover .card-glow {
    opacity: 1;
}

.card-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.card-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.highlight-card:hover .card-bg-image {
    transform: scale(1.1);
}

.card-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.card-icon-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card-content-modern {
    padding: 2rem;
}

.card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-teal);
    background: rgba(39, 175, 165, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.card-title-modern {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
    margin-bottom: 1rem;
}

.card-description-modern {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.card-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-teal);
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.3s ease;
}

/* Make entire highlight card clickable via stretched link */
.highlight-card .card-link-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

.card-link-modern:hover {
    gap: 1rem;
}

.card-link-modern svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   EVENTS GRID
   ============================================ */

.events-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.event-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, var(--primary-teal), var(--secondary-yellow-gold));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.event-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.event-image-modern {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.event-image-modern img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* Date badge on home page cards - SOLID, no skew */
.event-image-modern .event-date-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, var(--primary-red, #c41d15), #a11818);
    color: white;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 3px 10px rgba(196, 29, 21, 0.4);
    transform: none !important;
    z-index: 5;
}

.event-content-modern {
    padding: 1.5rem;
}

.event-title-modern {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
    margin-bottom: 0.75rem;
}

.event-venue,
.event-cost {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.event-link-modern {
    color: var(--primary-teal);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-link-modern:hover {
    color: var(--primary-dark-blue);
}

/* Event skeleton loading */
.event-card-skeleton {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.skeleton-image {
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 1.5rem;
}

.skeleton-text {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.skeleton-text.short {
    width: 60%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.btn-primary-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-bright-teal) 100%);
    color: white;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(39, 175, 165, 0.3);
    transition: all 0.3s ease;
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(39, 175, 165, 0.5);
}

.btn-primary-modern svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   EVENTS PAGE STYLING
   ============================================ */

.events-hero {
    position: relative;
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #1e3a5f 100%);
    color: white;
    text-align: center;
    overflow: hidden;
}

.events-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    opacity: 0.5;
}

.events-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.events-hero .eyebrow {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.events-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 20px;
    letter-spacing: -1px;
}

.events-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Featured Annual Events Section */
.featured-events-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.featured-events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(39, 175, 165, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(196, 29, 21, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.featured-events-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.featured-events-header {
    text-align: center;
    margin-bottom: 40px;
}

.featured-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.featured-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.featured-events-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.featured-event-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.featured-event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-teal) 0%, var(--secondary-bright-teal) 100%);
}

.featured-event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.featured-event-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.featured-event-content {
    padding: 25px;
}

.featured-event-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.featured-event-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark-blue);
    margin: 0 0 10px;
    line-height: 1.3;
}

.featured-event-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-teal);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.featured-event-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.featured-event-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-bright-teal) 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.featured-event-link:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(39, 175, 165, 0.4);
}

.events-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 30px;
}

.portal-cta {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
    border-radius: 16px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.portal-cta strong {
    color: var(--primary-dark-blue);
    font-size: 1.1rem;
}

.portal-actions {
    display: flex;
    gap: 15px;
}

.cta-btn {
    padding: 12px 28px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(196, 29, 21, 0.3);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 29, 21, 0.4);
}

.cta-btn.secondary {
    background: white;
    color: var(--primary-dark-blue);
    border: 2px solid var(--primary-dark-blue);
}

.filters-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 20px;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #f1f5f9;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-dark-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-input,
.filter-select {
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: white;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 29, 21, 0.1);
}

.filter-select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232c5282" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 45px;
}

.results-count {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.no-events {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
    font-size: 1.1rem;
}

/* Event Cards */
.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #f1f5f9;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.event-card-image-container {
    width: 100%;
    height: 240px;
    background: #f8fafc;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex-shrink: 0;
    border-bottom: 2px solid #f1f5f9;
    overflow: hidden;
    position: relative;
}

.sold-out-banner {
    position: absolute;
    top: 20px;
    right: -35px;
    background: #d9534f;
    color: white;
    padding: 8px 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(217, 83, 79, 0.5);
    z-index: 10;
    text-align: center;
}

.event-card-image {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto;
}

.event-card-content {
    padding: 25px;
}

.event-card-date {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #a81610 100%);
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(196, 29, 21, 0.3);
}

.event-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text-dark);
    line-height: 1.3;
}

.event-card-venue {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-card-description {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.event-card-meta span {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.event-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #7c2d12;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

/* Event Detail Modal */
.event-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.event-detail-modal.active {
    opacity: 1;
    visibility: visible;
}

.event-detail-dialog {
    background: white;
    border-radius: 20px;
    max-width: 1100px;
    width: 100%;
    height: 80vh;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.event-detail-modal.active .event-detail-dialog {
    transform: scale(1);
}

.event-detail-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-detail-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.event-detail-content {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 0;
    height: 100%;
    overflow: hidden;
}

.event-detail-media {
    background: #f8fafc;
    height: 100%;
    border-radius: 20px 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.event-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Support both .event-detail-info (old) and .event-detail-right (new) */
.event-detail-info,
.event-detail-right {
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.event-detail-left {
    background: #f8fafc;
    border-radius: 20px 0 0 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-detail-header {
    flex-shrink: 0;
}

.event-detail-date {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #a81610 100%);
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    align-self: flex-start;
}

.event-detail-info h3,
.event-detail-header h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--text-dark);
    line-height: 1.2;
}

.event-detail-venue {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.event-detail-description {
    color: #475569;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.9rem;
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.event-detail-scrollable {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.event-detail-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.event-detail-meta span {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.event-detail-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    flex-wrap: wrap;
}

.btn-primary,
.btn-outline,
.btn-calendar,
.btn-share {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    cursor: pointer !important;
    border: none;
    flex: 1;
    min-width: fit-content;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(196, 29, 21, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 29, 21, 0.4);
}

.btn-outline {
    background: white;
    color: var(--primary-dark-blue);
    border: 2px solid var(--primary-dark-blue);
}

.btn-outline:hover {
    background: var(--primary-dark-blue);
    color: white;
}

.btn-calendar {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #1e3a5f 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
}

.btn-calendar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 82, 130, 0.4);
}

.btn-share {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

.share-modal.active {
    display: flex !important;
}

.share-modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.share-modal h4 {
    margin: 0 0 25px;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-option-btn {
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    background: white;
    cursor: pointer !important;
    transition: all 0.2s ease;
    display: block !important;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
    visibility: visible !important;
    opacity: 1 !important;
}

.share-option-btn:hover {
    border-color: var(--primary-color);
    background: #fef2f2;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .event-detail-modal {
        padding: 0;
        align-items: flex-end;
    }
    
    .event-detail-dialog {
        width: 100%;
        max-width: 100%;
        height: 96vh;
        max-height: 96vh;
        border-radius: 20px 20px 0 0;
        margin: 0;
    }
    
    .event-detail-content {
        grid-template-columns: 1fr;
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }
    
    .event-detail-left {
        flex: none;
        width: 100%;
        background: transparent;
        padding: 0;
        border-radius: 0;
    }
    
    .event-detail-media {
        border-radius: 0;
        min-height: 320px;
        height: 320px;
        padding: 0;
        flex-shrink: 0;
        position: relative;
    }
    
    .event-detail-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .event-detail-close {
        position: fixed;
        top: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        font-size: 30px;
        z-index: 999999;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .event-detail-info,
    .event-detail-right {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: auto;
        overflow: visible;
    }
    
    .event-detail-header {
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .event-detail-date {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .event-detail-info h3,
    .event-detail-header h3 {
        font-size: 1.75rem !important;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .event-detail-venue {
        font-size: 1rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }
    
    .event-detail-description {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
        flex: none;
        overflow: visible;
        padding-right: 0;
    }
    
    .event-detail-scrollable {
        flex: none;
        overflow: visible;
        padding-right: 0;
    }
    
    .event-detail-scrollable .event-detail-description {
        margin-bottom: 1.5rem;
    }
    
    .event-detail-meta {
        padding: 1rem;
        margin-bottom: 1.5rem;
        gap: 1rem;
        flex-wrap: wrap;
        border-top: none;
        border-bottom: none;
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
        border-radius: 12px;
    }
    
    .event-detail-meta span {
        font-size: 0.95rem;
        flex: 1 1 45%;
    }
    
    .event-detail-actions {
        flex-direction: column;
        gap: 0.75rem;
        position: sticky;
        bottom: 0;
        background: white;
        padding: 1rem 0 1.5rem 0;
        margin: 0;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
        z-index: 100;
    }
    
    .btn-primary,
    .btn-outline,
    .btn-calendar,
    .btn-share {
        padding: 1.25rem 2rem !important;
        font-size: 1.1rem !important;
        border-radius: 12px !important;
        width: 100%;
        min-height: 56px;
        flex: none;
    }
    
    .share-modal-content {
        padding: 30px 20px;
    }
}

/* Responsive Events Page */
@media (max-width: 1024px) {
    .filters-panel {
        grid-template-columns: 1fr 1fr;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .event-detail-content {
        grid-template-columns: 1fr;
    }
    
    .event-detail-media {
        border-radius: 20px 20px 0 0;
        min-height: 300px;
        position: relative;
        padding: 0;
    }
    
    .event-detail-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .events-hero {
        padding: 140px 0 80px;
    }
    
    .events-hero h1 {
        font-size: 2.5rem;
    }
    
    .portal-cta {
        flex-direction: column;
        text-align: center;
    }
    
    .filters-panel {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-detail-info {
        padding: 30px;
    }
}

/* ============================================
   PUBLIC EVENTS CALENDAR
   ============================================ */

.view-toggle {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.view-toggle-buttons {
    display: flex;
    gap: 8px;
}

.view-btn {
    padding: 10px 12px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.view-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-subscribe {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #1e3a5f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(44, 82, 130, 0.3);
    white-space: nowrap;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.4);
}

.events-calendar {
    margin-top: 30px;
}

.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #1e3a5f 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(44, 82, 130, 0.3);
}

.calendar-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.calendar-month-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: 1px;
}

.calendar-btn-today {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark-blue);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-btn-today:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.calendar-view-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.calendar-day-header {
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-dark-blue);
    padding: 12px 8px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    border-radius: 8px;
}

.calendar-day-cell {
    min-height: 120px;
    padding: 10px;
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
}

.calendar-day-cell:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.calendar-day-cell.today {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
}

.calendar-day-cell.other-month {
    background: #fafafa;
    opacity: 0.5;
}

.calendar-day-number {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.calendar-day-cell.today .calendar-day-number {
    color: var(--primary-color);
}

.calendar-event-item {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a81610 100%);
    color: white;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(196, 29, 21, 0.3);
}

.calendar-event-item.featured {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #7c2d12;
}

.calendar-more-events {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    text-align: center;
    margin-top: 4px;
    cursor: pointer;
}

.calendar-more-events:hover {
    color: var(--primary-color);
}

/* Responsive Calendar */
@media (max-width: 1024px) {
    .calendar-view-grid {
        gap: 8px;
        padding: 15px;
    }
    
    .calendar-day-cell {
        min-height: 100px;
        padding: 8px;
    }
    
    .calendar-event-item {
        font-size: 0.7rem;
        padding: 4px 6px;
    }
}

@media (max-width: 768px) {
    .events-hero {
        padding: 140px 0 80px;
    }
    
    .featured-events-section {
        padding: 40px 0;
    }
    
    .featured-title {
        font-size: 1.75rem;
    }
    
    .featured-events-carousel {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .featured-event-card {
        margin: 0 10px;
    }
    
    .calendar-controls {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 12px;
        padding: 15px;
    }
    
    .calendar-month-title {
        font-size: 1.25rem;
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
        margin: 0;
    }
    
    .calendar-btn:nth-of-type(1) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .calendar-btn-today {
        grid-column: 2;
        grid-row: 2;
        justify-self: center;
    }
    
    .calendar-btn:nth-of-type(2) {
        grid-column: 3;
        grid-row: 2;
    }
    
    .calendar-view-grid {
        gap: 4px;
        padding: 10px;
    }
    
    .calendar-day-cell {
        min-height: 80px;
        padding: 6px;
    }
    
    .calendar-day-header {
        font-size: 0.75rem;
        padding: 8px 4px;
    }
    
    .calendar-event-item {
        font-size: 0.65rem;
        padding: 3px 5px;
    }
}

/* ============================================
   EXPLORE ATCHISON - FIREBASE BUSINESS DIRECTORY
   ============================================ */

.explore-section {
    padding: 100px 2rem 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.explore-categories {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto 60px;
}

.category-card {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(39, 175, 165, 0.1), transparent);
    transition: left 0.5s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(39, 175, 165, 0.25);
}

.category-card.active {
    background: linear-gradient(135deg, #27afa5 0%, #2aebce 100%);
    box-shadow: 0 12px 40px rgba(39, 175, 165, 0.4);
    transform: translateY(-8px) scale(1.02);
}

.category-card.active .category-name,
.category-card.active .category-count {
    color: white;
}

.category-card.active .category-count {
    background: rgba(255, 255, 255, 0.3);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s;
}

.category-card:hover .category-icon {
    transform: scale(1.15) rotate(5deg);
}

.category-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #102a43;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.3;
    padding: 0 8px;
}

/* Smaller font for longer category names */
.category-card[data-category="history"] .category-name,
.category-card[data-category="civic"] .category-name,
.category-card[data-category="arts"] .category-name {
    font-size: 0.95rem;
}

.category-count {
    font-size: 1rem;
    color: #27afa5;
    font-weight: 600;
    padding: 8px 18px;
    background: rgba(39, 175, 165, 0.1);
    border-radius: 25px;
    display: inline-block;
}

/* Subcategory Carousel */
.subcategory-carousel {
    max-width: 1400px;
    margin: 0 auto 50px;
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.subcategory-carousel.hidden {
    display: none;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 15px;
}

.carousel-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #102a43;
}

.carousel-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #c41d15;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.carousel-close:hover {
    background: rgba(196, 29, 21, 0.1);
    transform: rotate(90deg);
}

.carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.carousel-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #27afa5 #f1f3f5;
    padding: 10px 5px;
}

.carousel-track::-webkit-scrollbar {
    height: 8px;
}

.carousel-track::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 10px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: #27afa5;
    border-radius: 10px;
}

.subcategory-pill {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid transparent;
    border-radius: 30px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: #102a43;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.subcategory-pill:hover {
    background: linear-gradient(135deg, #27afa5 0%, #2aebce 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 175, 165, 0.3);
}

.subcategory-pill.active {
    background: linear-gradient(135deg, #27afa5 0%, #2aebce 100%);
    color: white;
    border-color: #1a8e87;
    box-shadow: 0 4px 15px rgba(39, 175, 165, 0.4);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #27afa5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: #27afa5;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 5px;
}

.carousel-nav.next {
    right: 5px;
}

/* Businesses Container */
.businesses-container {
    max-width: 1400px;
    margin: 0 auto;
}

.businesses-container.hidden {
    display: none;
}

.businesses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
    position: relative;
    z-index: 50;
}

.businesses-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.view-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #27afa5 0%, #2aebce 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(39, 175, 165, 0.3);
    cursor: pointer;
    z-index: 10;
    position: relative;
}

.view-map-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 175, 165, 0.4);
}

.view-map-link svg {
    width: 20px;
    height: 20px;
}

/* Show full text on desktop, short text on mobile */
.view-map-text-full {
    display: inline;
}
.view-map-text-mobile {
    display: none;
}

@media (max-width: 768px) {
    .view-map-text-full {
        display: none;
    }
    .view-map-text-mobile {
        display: inline;
    }
}

/* Business View Controls */
.businesses-view-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    position: relative;
    z-index: 100;
}

.view-toggle-btns {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
    pointer-events: auto;
    position: relative;
    z-index: 100;
}

.view-toggle-btns .view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto !important;
    position: relative;
    z-index: 100;
}

.view-toggle-btns .view-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.view-toggle-btns .view-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Business List View */
.business-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 0 20px;
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.business-list-header {
    display: grid;
    grid-template-columns: 1fr 140px 200px 140px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 2px solid #e2e8f0;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
}

.business-list-body {
    max-height: 70vh;
    overflow-y: auto;
    pointer-events: auto;
}

.business-list-row {
    display: grid;
    grid-template-columns: 1fr 140px 200px 140px;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
    pointer-events: auto !important;
}

.business-list-row:hover {
    background: linear-gradient(135deg, rgba(39, 175, 165, 0.05) 0%, rgba(39, 175, 165, 0.1) 100%);
}

.business-list-row:last-child {
    border-bottom: none;
}

.biz-list-col-name {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.biz-list-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.biz-list-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.biz-list-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.biz-list-desc {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.biz-list-col-category {
    color: #27afa5;
    font-weight: 600;
    font-size: 0.9rem;
}

.biz-list-col-address {
    color: #475569;
    font-size: 0.9rem;
}

.biz-list-col-phone {
    color: #475569;
    font-size: 0.9rem;
}

.business-list-empty {
    padding: 3rem;
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
}

/* Business list responsive */
@media (max-width: 1024px) {
    .business-list-header,
    .business-list-row {
        grid-template-columns: 1fr 120px 160px;
    }
    
    .biz-list-col-phone {
        display: none;
    }
    
    .business-list-header .biz-list-col-phone {
        display: none;
    }
}

@media (max-width: 768px) {
    .businesses-view-controls {
        gap: 8px;
    }
    
    .view-toggle-btns .view-btn {
        width: 32px;
        height: 32px;
    }
    
    .business-list {
        margin: 0 10px;
        border-radius: 10px;
    }
    
    .business-list-header {
        display: none;
    }
    
    .business-list-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .biz-list-col-category {
        font-size: 0.8rem;
    }
    
    .biz-list-col-category::before {
        content: "🏷️ ";
    }
    
    .biz-list-col-address {
        font-size: 0.85rem;
        color: #64748b;
    }
    
    .biz-list-col-address::before {
        content: "📍 ";
    }
    
    .biz-list-col-phone {
        display: block;
        font-size: 0.85rem;
    }
    
    .biz-list-col-phone::before {
        content: "📞 ";
    }
}

.business-grid-firebase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.business-card-firebase {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    max-width: 100%;
    pointer-events: auto;
}

.business-card-firebase * {
    pointer-events: none;
}

.business-card-firebase img {
    pointer-events: none;
}

.business-card-firebase:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(39, 175, 165, 0.25);
}

.business-card-image {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.business-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.business-card-firebase:hover .business-card-image img {
    transform: scale(1.08);
}

.chamber-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 65px !important;
    height: 65px !important;
    max-width: 65px !important;
    max-height: 65px !important;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 2;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.business-card-body {
    padding: 20px;
}

.business-logo {
    width: 100%;
    max-width: 180px;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    margin: 0 auto 15px;
    display: block;
}

.business-logo-spacer {
    width: 100%;
    max-width: 180px;
    height: 70px;
    margin: 0 auto 15px;
    display: block;
}

.business-card-body h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #102a43;
    margin-bottom: 10px;
    text-align: center;
}

.business-address {
    font-size: 0.95rem;
    color: #627d98;
    text-align: center;
    margin: 0;
}

/* Business Modal */
.business-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 42, 67, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    backdrop-filter: blur(10px);
}

.business-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content-wrapper {
    background: white;
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.business-modal.active .modal-content-wrapper {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
    color: #c41d15;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-close-btn:hover {
    background: #c41d15;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.modal-storefront-wrapper {
    position: relative;
    width: 100%;
    height: 380px; /* Taller for more storefront image */
    overflow: visible; /* Allow logo to overlap */
    background: linear-gradient(135deg, #102a43 0%, #334f5d 100%);
    border-bottom: 3px solid rgba(39, 175, 165, 0.3);
}

.modal-storefront-wrapper img#modalStorefront {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Keep focal point centered */
}

.modal-chamber-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    z-index: 5;
}

.modal-chamber-badge.hidden {
    display: none;
}

.modal-body {
    padding: 15px 20px 10px;
    overflow-y: auto;
    flex: 1;
}

.modal-logo-wrapper {
    position: absolute;
    bottom: -50px; /* Overlap the storefront image */
    right: 20px;
    z-index: 10;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
                0 2px 8px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(39, 175, 165, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    /* Ensure minimum size for small logos */
    min-width: 80px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-logo-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2),
                0 4px 12px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(39, 175, 165, 0.4);
}

.modal-logo-wrapper img {
    width: 100px;
    height: 100px;
    min-width: 80px;
    min-height: 80px;
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    display: block;
}

.modal-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #102a43;
    text-align: left;
    margin-bottom: 4px;
    margin-top: 5px;
    padding-right: 130px; /* Room for the logo overlay */
    line-height: 1.25;
}

.modal-description {
    font-size: 0.9rem;
    color: #486581;
    line-height: 1.4;
    margin-bottom: 15px;
    text-align: left;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}

.modal-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(39, 175, 165, 0.05) 0%, rgba(42, 235, 206, 0.08) 100%);
    border-radius: 6px;
    transition: all 0.3s;
    border: 1px solid rgba(39, 175, 165, 0.15);
    position: relative;
    overflow: hidden;
    min-width: 0; /* Allow flex item to shrink */
}

.modal-info-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #27afa5 0%, #2aebce 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-info-item:hover {
    background: linear-gradient(135deg, rgba(39, 175, 165, 0.12) 0%, rgba(42, 235, 206, 0.15) 100%);
    transform: translateX(3px);
    border-color: rgba(39, 175, 165, 0.3);
    box-shadow: 0 4px 12px rgba(39, 175, 165, 0.1);
}

.modal-info-item:hover::before {
    opacity: 1;
}

.modal-info-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(39, 175, 165, 0.15) 0%, rgba(42, 235, 206, 0.15) 100%);
    border-radius: 6px;
    margin-top: 2px;
}

.modal-info-text {
    flex: 1;
    white-space: pre-line; /* Preserve line breaks for hours */
    line-height: 1.4;
    font-size: 0.85rem;
    word-break: break-word;
    overflow-wrap: anywhere;
    min-width: 0; /* Allow flex item to shrink below content size */
}

.modal-info-text a {
    color: #27afa5;
    text-decoration: none;
    word-break: break-all;
}

.modal-info-text a:hover {
    text-decoration: underline;
}

/* Hours-specific styling */
#modalHoursWrapper .modal-info-text {
    white-space: pre-line;
    font-size: 0.9rem;
    line-height: 1.6;
}

.modal-info-text a {
    color: #27afa5;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.modal-info-text a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #27afa5 0%, #2aebce 100%);
    transition: width 0.3s;
}

.modal-info-text a:hover {
    color: #1a8e87;
}

.modal-info-text a:hover::after {
    width: 100%;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.modal-btn {
    flex: 1;
    min-width: 200px;
    padding: 18px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #27afa5 0%, #2aebce 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(39, 175, 165, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(39, 175, 165, 0.4);
}

.modal-btn-secondary {
    background: linear-gradient(135deg, #102a43 0%, #334f5d 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(16, 42, 67, 0.3);
}

.modal-btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 42, 67, 0.4);
}

.modal-social-section {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.modal-social-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #102a43;
    margin-bottom: 20px;
}

.modal-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-social-links.hidden {
    display: none;
}

.modal-social-links a {
    font-size: 2rem;
    transition: transform 0.3s;
    text-decoration: none;
    display: inline-block;
}

.modal-social-links a:hover {
    transform: scale(1.3) rotate(5deg);
}

/* Responsive Design */

/* Large screens - start condensing at 1400px */
@media (max-width: 1400px) {
    .explore-categories {
        gap: 15px;
    }
    
    .category-card {
        padding: 25px 15px;
    }
    
    .category-name {
        font-size: 1rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
}

/* Medium-large screens - switch to 4 columns at 1350px to prevent text clipping */
@media (max-width: 1350px) {
    .explore-categories {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .category-card {
        padding: 25px 20px;
    }
    
    .category-name {
        font-size: 1.1rem;
    }
    
    .category-icon {
        font-size: 2.75rem;
        margin-bottom: 12px;
    }
}

@media (max-width: 1024px) {
    .explore-categories {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .business-grid-firebase {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .explore-section {
        padding: 80px 1rem 60px;
    }
    
    /* 2x4 grid for categories on mobile */
    .explore-categories {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        padding: 0;
        margin: 0 auto 30px;
        overflow-x: visible;
    }
    
    .category-card {
        padding: 20px 15px;
        min-width: 0;
        width: auto;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .category-name {
        font-size: 0.85rem;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    .category-count {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .carousel-wrapper {
        padding: 0 40px;
    }
    
    .business-grid-firebase {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-body {
        padding: 20px 20px;
    }
    
    .modal-name {
        font-size: 1.6rem;
        margin-top: 10px;
        padding-right: 120px; /* Room for logo on mobile */
    }
    
    .modal-logo-wrapper {
        bottom: -40px;
        right: 15px;
        padding: 8px;
        min-width: 60px;
        min-height: 60px;
    }
    
    .modal-logo-wrapper img {
        width: 70px;
        height: 70px;
        min-width: 60px;
        min-height: 60px;
        max-width: 80px;
        max-height: 80px;
    }
    
    .modal-storefront-wrapper {
        height: 180px; /* Fixed height on mobile too */
    }
    
    .modal-info-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        min-width: 100%;
    }
    
    .chamber-badge {
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
        top: 6px;
        left: 6px;
    }
    
    .modal-chamber-badge {
        width: 70px !important;
        height: 70px !important;
        max-width: 70px !important;
        max-height: 70px !important;
    }
}

@media (max-width: 480px) {
    /* 2x4 grid on smaller mobile */
    .explore-categories {
        gap: 8px;
    }
    
    .category-card {
        padding: 15px 10px;
    }
    
    .category-icon {
        font-size: 1.75rem;
        margin-bottom: 0.4rem;
    }
    
    .category-name {
        font-size: 0.75rem;
    }
    
    .subcategory-carousel {
        padding: 20px 15px;
    }
    
    .carousel-wrapper {
        padding: 0 30px;
    }
    
    .subcategory-pill {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .businesses-title {
        font-size: 1.5rem;
    }
    
    .modal-content-wrapper {
        border-radius: 16px;
        margin: 10px;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
    
    .modal-close-btn {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }
}

/* ============================================
   IMAGE LIGHTBOX
   ============================================ */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .lightbox-close {
        width: 44px;
        height: 44px;
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
    }
}

