/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    background-color: #333;
    color: white;
    z-index: 9999;
    border-radius: 4px;
    max-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s;
}

.toast-success {
    background-color: #4CAF50;
}

.toast-danger {
    background-color: #f44336;
}

.toast-warning {
    background-color: #ff9800;
}

.toast-info {
    background-color: #2196F3;
}

.toast-fade-out {
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

:root {
    /* New Orange-Centric Color Palette */
    --primary-orange: #FF6B35;      /* Vibrant Orange - Main brand color */
    --secondary-cream: #F5E6D3;     /* Warm Cream - Backgrounds */
    --accent-coral: #FF6B4A;        /* Coral - Hover states & accents */
    --text-navy: #1a2332;           /* Deep Navy - Primary text */
    --text-secondary: #4a5568;      /* Softer dark - Secondary text */
    --bg-warm-white: #FFF9F5;       /* Warm White - Light backgrounds */
    --bg-peach-tint: #FFE8DC;       /* Peachy tint - Section backgrounds */
    --orange-light: #FF8A5B;        /* Lighter orange for gradients */
    --orange-dark: #E55A2B;         /* Darker orange for emphasis */

    /* Legacy mappings for backward compatibility */
    --primary-color: var(--primary-orange);
    --secondary-color: var(--secondary-cream);
    --accent-color: var(--accent-coral);
    --dark-color: var(--text-navy);
    --light-color: var(--bg-warm-white);
    --text-primary: var(--text-navy);
}

/* Override Bootstrap's background utilities with warm colors */
.bg-light {
    background-color: var(--bg-peach-tint) !important;
}

.bg-white {
    background-color: var(--bg-warm-white) !important;
}

.bg-secondary {
    background-color: var(--secondary-cream) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

/* Form Controls with Orange Theme */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Modal Headers with Orange Accent */
.modal-header {
    background: linear-gradient(135deg, var(--bg-warm-white) 0%, var(--secondary-cream) 100%);
    border-bottom: 2px solid var(--primary-orange);
}

.modal-title {
    color: var(--text-navy);
    font-weight: 600;
}

/* Cards with Orange Theme */
.card {
    border: 1px solid rgba(255, 107, 53, 0.1);
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.05);
}

.card:hover {
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.1);
}

.card-header {
    background: var(--secondary-cream);
    border-bottom: 2px solid var(--primary-orange);
}

/* Badges with Orange Theme */
.badge.bg-primary {
    background-color: var(--primary-orange) !important;
}

.badge.bg-success {
    background-color: var(--orange-light) !important;
}

.badge.bg-info {
    background-color: var(--accent-coral) !important;
}

/* Enhanced Feature Boxes */
.feature-box {
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    background-color: white;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
    background-color: var(--bg-warm-white);
}

/* Enhanced Fun Assistant Section */
.fun-assistant-section {
    background: linear-gradient(135deg, var(--bg-peach-tint) 0%, var(--secondary-cream) 100%);
}

/* About page CTA buttons */
#about-page-ctas {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

#about-page-ctas .cta-button-host,
#about-page-ctas .cta-button-subscribe {
    min-width: 200px;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    #about-page-ctas {
        flex-direction: column;
        align-items: center;
    }

    #about-page-ctas .cta-button-host,
    #about-page-ctas .cta-button-subscribe {
        width: 100%;
    }
}

/* Enhanced Rating System */
.rating-scale {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: nowrap;
    padding: 1rem;
}

.rating-scale .rating-item {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    border: 2px solid transparent;
}

.rating-scale .rating-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-orange);
    background-color: var(--bg-warm-white);
}

.rating-scale .rating-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 138, 0, 0.15);
}

/* Advertising Page Styles */
.ad-specs table {
    width: 100%;
    border-collapse: collapse;
}

.ad-specs th,
.ad-specs td {
    padding: 12px;
    border: 1px solid #ddd;
}

.pricing-card {
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.border-primary {
    border-width: 2px !important;
}

/* Enhanced Buttons - Orange Theme */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

/* Primary buttons - Orange */
.btn-primary, .btn.btn-primary {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.2);
}

.btn-primary:hover, .btn.btn-primary:hover,
.btn-primary:focus, .btn.btn-primary:focus,
.btn-primary:active, .btn.btn-primary:active {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

/* Success buttons - Also Orange (for consistency) */
.btn-success, .btn.btn-success {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

.btn-success:hover, .btn.btn-success:hover,
.btn-success:focus, .btn.btn-success:focus {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: white;
}

/* Outline Primary - Orange */
.btn-outline-primary, .btn.btn-outline-primary {
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    background: transparent;
}

.btn-outline-primary:hover, .btn.btn-outline-primary:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

/* Secondary buttons - Cream */
.btn-secondary, .btn.btn-secondary {
    background: var(--secondary-cream);
    border-color: var(--secondary-cream);
    color: var(--text-navy);
}

.btn-secondary:hover, .btn.btn-secondary:hover {
    background: var(--bg-peach-tint);
    border-color: var(--bg-peach-tint);
    color: var(--text-navy);
}

/* Outline Secondary */
.btn-outline-secondary, .btn.btn-outline-secondary {
    border: 2px solid var(--secondary-cream);
    color: var(--text-navy);
    background: transparent;
}

.btn-outline-secondary:hover, .btn.btn-outline-secondary:hover {
    background: var(--secondary-cream);
    color: var(--text-navy);
}

/* Info buttons - Lighter Orange */
.btn-info, .btn.btn-info {
    background: var(--orange-light);
    border-color: var(--orange-light);
    color: white;
}

.btn-info:hover, .btn.btn-info:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

/* Danger buttons - Coral accent */
.btn-danger, .btn.btn-danger,
.btn-outline-danger, .btn.btn-outline-danger {
    border-color: var(--accent-coral);
}

.btn-danger, .btn.btn-danger {
    background: var(--accent-coral);
    color: white;
}

.btn-outline-danger, .btn.btn-outline-danger {
    color: var(--accent-coral);
    background: transparent;
}

.btn-outline-danger:hover, .btn.btn-outline-danger:hover {
    background: var(--accent-coral);
    color: white;
}

/* Hero Section */
#hero.hero-section {
    background: url("/static/images/Have-Fun-FunList.ai-home.jpeg") center center / cover no-repeat;
    background-color: var(--light-color);
    /* Fallback */
    height: 60vh;
    margin: 0;
    padding: 0;
    max-width: 100vw;
    position: relative;
    z-index: 1;
    min-height: 500px;
    padding-top: 20px;
}

@media (max-width: 768px) {
    #hero.hero-section {
        height: 45vh;
        background-size: 300%;
        background-position: center 40%;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .hero-content h1 {
        margin-top: -20px;
    }
}

@media (max-width: 480px) {
    #hero.hero-section {
        height: 35vh;
        margin-bottom: 8px;
        background-size: 250%;
        background-position: center 45%;
    }
}

.content-section {
    background-color: var(--light-color);
    color: var(--text-primary);
}

.content-section h1 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .container {
        text-align: center;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .view-options {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .view-options .btn {
        width: 200px;
        margin: 5px auto;
    }

    .primary-cta {
        width: 200px;
        margin: 10px auto;
    }

    .fun-rating-scale {
        padding: 0 15px;
    }

    .rating-row {
        flex-direction: column;
        gap: 15px;
    }

    .rating-item {
        width: 100%;
        text-align: center;
    }
}

#hero.hero-section .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}


/* Help Center Styles */
/* Hero section */
.help-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FF6B00 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(255, 138, 0, 0.15);
    margin-bottom: 3rem;
}

.help-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.search-input {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
}

/* Category cards */
.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.category-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 138, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.category-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.category-links li a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.category-links li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Card variations */
.getting-started-card .category-icon-wrapper {
    background-color: rgba(255, 106, 0, 0.1);
}

.getting-started-card .category-icon {
    color: #FF6A00;
}

.creators-card .category-icon-wrapper {
    background-color: rgba(0, 168, 232, 0.1);
}

.creators-card .category-icon {
    color: #00A8E8;
}

.advertisers-card .category-icon-wrapper {
    background-color: rgba(242, 58, 58, 0.1);
}

.advertisers-card .category-icon {
    color: #F23A3A;
}

.security-card .category-icon-wrapper {
    background-color: rgba(38, 166, 91, 0.1);
}

.security-card .category-icon {
    color: #26A65B;
}

.map-card .category-icon-wrapper {
    background-color: rgba(142, 68, 173, 0.1);
}

.map-card .category-icon {
    color: #8E44AD;
}

.legal-card .category-icon-wrapper {
    background-color: rgba(41, 128, 185, 0.1);
}

.legal-card .category-icon {
    color: #2980B9;
}

/* Article cards */
.articles-section {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.article-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.article-card .badge {
    font-size: 0.75rem;
    padding: 0.5em 0.8em;
}

.article-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

/* FAQ cards */
.faq-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.faq-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 138, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
}

/* Support banner */
.support-banner {
    background: linear-gradient(135deg, #00A8E8 0%, #4D13D1 100%);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin: 3rem 0;
}

.support-banner h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.support-banner .btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
}

/* Accordion styling for FAQs */
.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.accordion-button {
    padding: 1.25rem;
    font-weight: 600;
    background-color: #f8f9fa;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 138, 0, 0.25);
}

.faq-section {
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .help-hero {
        padding: 2rem 1rem;
    }

    .help-hero h1 {
        font-size: 2rem;
    }

    .category-card {
        margin-bottom: 1.5rem;
    }

    .support-banner {
        padding: 2rem 1rem;
    }

    .support-banner .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .support-banner .btn {
        width: 100%;
    }
}

#hero.hero-section h1,
#hero.hero-section p {
    color: var(--light-color);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/*Navbar Styles */
.navbar {
    background: white !important;
    border-bottom: 3px solid var(--primary-orange);
    box-shadow: 0px 2px 12px rgba(255, 107, 53, 0.15);
    padding: 0.75rem 0;
    min-height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    margin-bottom: 0;
    display: block !important;
    visibility: visible !important;
}

.alert {
    /* Removed fixed positioning to allow normal document flow on AI pages */
    position: static;
    margin-bottom: 1rem;
    border-radius: 0;
}

.alert+main {
    padding-top: 130px !important;
}

.navbar-brand {
    color: var(--primary-orange) !important;
    font-weight: 700;
    z-index: 1031;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-brand span {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--primary-orange) !important;
}

/* Ensure brand stays centered on all screens */
@media (max-width: 991px) {
    .navbar-brand {
        z-index: 1030;
    }

    .navbar .dropdown {
        margin-left: auto;
    }

    .navbar-collapse {
        margin-top: 1rem;
    }
}

/* Desktop specific styles */
@media (min-width: 992px) {
    .navbar-brand {
        margin-right: 2rem;
    }

    .navbar-nav.mx-auto {
        margin: 0 auto !important;
    }

    .navbar .nav-item {
        margin: 0 0.5rem;
    }
}

.navbar .nav-link {
    color: var(--text-navy) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover {
    color: var(--primary-orange) !important;
    background-color: var(--bg-warm-white);
    border-radius: 4px;
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    min-width: 200px;
}

@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 70px;
        left: 0;
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 15px;
        width: 100%;
        height: auto;
        background-color: white;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

    .navbar-collapse.collapsing,
    .navbar-collapse.show {
        transition: all 0.3s ease;
    }

    .navbar-nav {
        margin-top: 1rem;
    }
}

.navbar .dropdown-item:hover {
    background-color: rgba(255, 138, 0, 0.1);
}

.navbar .nav-icon {
    font-size: 1.25rem;
    color: #0d6efd;
}

.navbar .dropdown-toggle::after {
    display: none;
}

.navbar .dropdown-menu {
    margin-top: 0.5rem;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        position: absolute;
        width: 200px;
        left: 1rem;
        top: 100%;
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        display: block;
        text-align: left;
        border-radius: 4px;
    }

    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 138, 0, 0.1);
    }
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    z-index: 1000;
}

.modal {
    z-index: 99999;
}

.modal-backdrop {
    z-index: 99998;
}

/* Cookie Consent Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid #dee2e6;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Add padding to main content to prevent navbar overlap */
main {
    padding-top: 60px;
    width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    main {
        padding-top: 90px;
    }

    .map-container-wrapper,
    .events-container {
        padding-top: 1rem;
        margin-top: 1rem;
    }

    .page-header {
        margin-top: 1rem;
    }

    .alert+main {
        padding-top: 150px !important;
    }
}

/* Extra padding for auth pages */
.row.justify-content-center {
    margin-top: 2rem;
}

/* Specific styling for auth pages */
.auth-page-content {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

/* Special handling for hero section */
#hero.hero-section {
    margin-top: 1rem;
    padding-top: 1.5rem;
    min-height: 400px;
}

.navbar .nav-link {
    color: #333 !important;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
}

.navbar .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar {
    padding: 0.75rem 0;
    min-height: 70px;
}

.navbar .btn-success {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--light-color) !important;
    font-weight: 700;
    padding: 10px 15px;
}

.navbar .btn-success:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}


/* Ad Container Styles */
.banner-container {
    background: #f8f9fa;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 999;
    line-height: 0;
    font-size: 0;
}

.banner-ad {
    position: relative;
    text-align: center;
    line-height: 0;
    font-size: 0;
    display: block;
    height: 70px;
    overflow: hidden;
}

.ad-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-slot {
    margin: 0 auto;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.ad-slot[data-ad-size="728x90"] {
    width: 728px;
    height: 90px;
    max-width: 100%;
}

.ad-slot[data-ad-size="300x250"] {
    width: 300px;
    height: 250px;
    max-width: 100%;
}

.sponsor-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: 300px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.sponsor-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sponsor-content img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .ad-slot[data-ad-size="728x90"] {
        height: 60px;
    }

    .sponsors-grid {
        margin: 0 -10px;
    }
}

/* Featured Events Carousel */
.featured-events-section {
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.05) 0%, rgba(0, 212, 224, 0.05) 100%);
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* Button Styles */
.btn.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-color);
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 171, 0, 0.3);
}

/* Remove the blue shaded box */
.hero-image {
    display: none !important;
}

/* General Styling Updates */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    letter-spacing: 0.2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.content-section h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.lead {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.4;
}

.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

main {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
    background-color: #f8f9fa;
}

.footer h5 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-color);
}

/* Feature Boxes */
.feature-box {
    border-radius: 8px;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    text-align: center;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box h3 {
    margin-bottom: 1rem;
}

.feature-box p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.feature-box .btn {
    width: 80%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .feature-box {
        padding-bottom: 70px;
    }

    .feature-box .btn {
        bottom: 15px;
        left: 15px;
        right: 15px;
    }
}

/* Fun Assistant Section */
.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Rating System */
.fun-rating-scale {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1rem;
    margin: 2rem 0;
}

.rating-stack {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.rating-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rating-item .stars {
    font-size: 1.5rem;
}

.rating-item .label {
    font-size: 1rem;
    color: var(--text-primary);
}

.rating-item .stars {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

@media (max-width: 768px) {
    .rating-scale {
        flex-direction: column;
    }

    /* Target Market Suggestions */
    .suggestion-dropdown {
        display: none;
        position: absolute;
        z-index: 1000;
        background-color: white;
        border: 1px solid #ddd;
        max-height: 200px;
        overflow-y: auto;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }

    .suggestion-item {
        padding: 8px 12px;
        cursor: pointer;
    }

    .suggestion-item:hover {
        background-color: #f8f9fa;
    }


    .rating-item {
        margin-bottom: 1rem;
    }
}


/* View Switcher */
.view-switcher {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-switcher .btn {
    min-width: 150px;

    /* Advertisement card styling */
    .advertisement-card {
        border: 1px dashed #ccc;
        background-color: #fffdf5;
        margin-bottom: 15px;
        border-radius: 8px;
    }

    .ad-label {
        font-size: 0.8rem;
        color: #666;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 0.5rem;
    }

    text-align: center;
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.05) 0%, rgba(0, 212, 224, 0.05) 100%);
}

.search-form .input-group {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.search-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
}

.search-form .btn {
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (max-width: 768px) {
    .search-form .btn {
        padding-left: 1rem;
        padding-right: 1rem;
        font-size: 0.9rem;
    }

    .search-form .input-group {
        flex-wrap: nowrap;
    }
}

.map-container-wrapper {
    padding-top: 2rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .map-container-wrapper {
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.view-switcher {
    display: flex;
    align-items: center;
}

.learn-more-btn {
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    background: transparent !important;
    padding: 8px 24px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

.learn-more-btn:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
}

.view-options {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Map Styles */
.event-popup {
    min-width: 200px;
}

.event-popup h5 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.event-popup p {
    margin-bottom: 5px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .map-container {
        height: 400px;
    }

    .view-switcher {
        margin-top: 1rem;
        width: 100%;
    }

    .view-switcher .btn {
        width: 100%;
        justify-content: center;
    }

    .filter-label {
        margin-top: 0.5rem;
    }
}


.social-icons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    margin-bottom: 2rem;
}

.social-icons a {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.chat-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.chat-message.user {
    background-color: #f8f9fa;
}

.chat-message.assistant {
    background-color: #e9ecef;
}

@media (max-width: 768px) {
    .feature-box {
        margin-bottom: 2rem;
        padding: 2rem !important;
    }

    .footer {
        text-align: left;
        padding: 3rem 1rem;
    }

    .footer h5 {
        margin-bottom: 1.5rem;
        color: var(--primary-color);
    }

    .footer {
        background-color: #f8f9fa;
        padding: 2.5rem 0 1.5rem;
    }

    .footer h5 {
        font-size: 0.875rem;
        font-weight: 600;
        text-transform: uppercase;
        color: #333;
        margin-bottom: 1rem;
        letter-spacing: 0.5px;
    }

    .footer ul {
        margin-bottom: 0;
    }

    .footer ul li {
        line-height: 1.6;
    }

    .footer ul li a {
        color: #666;
        text-decoration: none;
        font-size: 0.875rem;
        transition: color 0.2s;
        display: inline-block;
    }

    .footer ul li a:hover {
        color: var(--primary-color);
        text-decoration: none;
    }

    .footer hr {
        background-color: rgba(0, 0, 0, 0.1);
        margin: 1.5rem 0;
    }

    .footer .social-buttons {
        display: flex;
        gap: 10px;
    }

    /* Style for the NETWORK section to match parent company style */
    .footer .col-md-2:last-child h5 {
        color: #0d6efd;
    }

    .footer .fas {
        margin-right: 0.5rem;
        color: #666;
    }

    .footer .cookie-settings {
        cursor: pointer;
    }

    .social-buttons {
        display: flex;
        gap: 12px;
        justify-content: flex-start;
        margin-top: 1rem;
    }

    .btn-social {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #f8f9fa;
        color: #333;
        font-size: 1.2rem;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid #ddd;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .btn-social:hover {
        background-color: #4CAF50;
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .social-buttons {
        display: flex;
        gap: 15px;
        justify-content: center;
        margin: 15px 0;
    }

    /* Platform-specific brand colors on hover */
    .btn-social.facebook:hover {
        background-color: #3b5998;
    }

    .btn-social.instagram:hover {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    }

    .btn-social.tiktok:hover {
        background: linear-gradient(45deg, #25F4EE 0%, #000000 50%, #FE2C55 100%);
    }

    /* Make social icons more visible */
    .social-buttons {
        display: flex;
        justify-content: center;
        margin: 1rem 0;
        gap: 1rem;
    }

    .btn-social {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        font-size: 18px;
        background-color: #f8f9fa;
        color: #333;
        border-radius: 50%;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid #ddd;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .btn-social i {
        font-size: 18px;
    }

    .btn-social.facebook {
        color: #3b5998;
    }

    .btn-social.instagram {
        color: #e1306c;
    }

    .btn-social.tiktok {
        color: #000000;
    }

    .footer a {
        color: #666;
        text-decoration: none;
        transition: color 0.2s;
    }

    .footer a:hover {
        color: #4CAF50;
        text-decoration: none;
    }

    @media (max-width: 768px) {
        .social-buttons {
            justify-content: center;
            margin: 1.5rem auto 0;
        }
    }

    @media (max-width: 768px) {
        .footer .col-md-3 {
            margin-bottom: 2rem;
            text-align: center;
        }

        .social-icons,
        .social-buttons {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            margin: 1rem auto;
        }

        .footer {
            text-align: center;
        }

        .subscribe-form .input-group {
            margin: 0 auto;
        }

        .btn-social {
            margin: 0 5px;
        }
    }
}

.chat-demo {
    margin-top: 2rem;
}

.fun-assistant-section .btn {
    width: 100%;
    margin-bottom: 2rem;
}

.feature-list {
    marginleft: 1rem;
}
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

@media (min-width: 769px) {
    .container {
        padding-top: 2rem;
    }
}

/* Consistent top spacing for map and events pages */
.map-container-wrapper {
    margin-top: 2rem;
    padding-top: 2rem;
}

@media (max-width: 768px) {
    .map-container-wrapper {
        margin-top: 1rem;
        padding-top: 1rem;
    }
}

/* Ensure hero section buttons stand out */
.primary-cta {
    background-color: var(--accent-color);
    color: white;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border: none;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    display: inline-block;
    text-align: center;
}

/* Floating Buttons */
/* Floating buttons removed - functionality moved to footer/navigation */

.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    background-color: #ea580c;
    color: white;
}

@media (max-width: 768px) {
    .rating-scale {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Rating Details Accordion Styles */
.rating-details {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 138, 0, 0.25);
}

.accordion-item {
    border: 1px solid rgba(255, 138, 0, 0.2);
    margin-bottom: 0.5rem;
}

.event-card.highlighted {
    background-color: #e9ecef;
    border-color: var(--primary-color);
}

.sponsored-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.sponsored-card .card-body {
    padding: 1rem;
}

.sponsored-content {
    min-height: 120px;
}

.event-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.event-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.event-card .default-event-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0.1;
}

.event-card .card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.event-card .fun-rating .stars {
    color: var(--primary-color);
}

.event-card .social-links a {
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.event-card .social-links a:hover {
    color: var(--primary-color) !important;
}

.event-card .btn-group {
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .event-card .card-img-top {
        height: 160px;
    }

    .event-card .btn-group {
        width: 100%;
        margin-bottom: 1rem;
    }

    .event-card .btn-group .btn {
        flex: 1;
    }

    .event-card .card-footer .d-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .event-card .social-links {
        margin-top: 1rem;
        text-align: center;
    }
}

.page-header {
    margin-bottom: 2rem;
}

.search-filters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.filter-bar {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-form .form-control,
.filter-form .form-select {
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.filter-form .form-control:focus,
.filter-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 138, 0, 0.25);
}

/* Filter Styles */
.filter-bar {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-bar-mobile .card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.view-toggle {
    display: flex;
    justify-content: center;
}

.view-toggle .btn-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .filter-bar-mobile .collapse {
        margin-top: 1rem;
    }

    .filter-bar-mobile .card-body {
        padding: 1rem;
        background: #f8f9fa;
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .filter-bar {
        padding: 1rem;
    }

    .filter-form .row>div {
        margin-bottom: 0.5rem;
    }
}

.search-container {
    margin-bottom: 2.5rem;
}

.search-container .text-center {
    margin-top: 1.5rem;
}

.view-full-map-link {
    margin-top: 2.5rem;
    /* Increased spacing */
}

.add-event-link {
    /* Added for desktop navigation */
    margin-right: 1rem;
    /* Adjust spacing as needed */
}

@media (max-width: 991px) {
    .add-event-mobile {
        /* Added for mobile navigation */
        margin-bottom: 1rem;
    }
}

/* Submit Event Form Container */
.container form {
    padding: 1rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

/* Alert positioning - removed fixed to allow normal flow */
/* Duplicate rule commented out - see line 756 for active rule */
/* .alert {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 1020;
    margin: 0;
    border-radius: 0;
} */

/* Adjust main content when alert is present */
.alert+main {
    padding-top: 120px !important;
}

/* Form pages specific spacing */
.auth-form-container {
    margin-top: 2rem;
}

/* Add extra spacing to signup, login, and other form pages */
.row.justify-content-center {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .alert+main {
        padding-top: 140px !important;
    }
}

.pre-hero-banner,
.organizer-banner {
    display: none;
}

/* Add additional custom styles here */

/* About page CTA styles */
#about-page-ctas .cta-button-host,
#about-page-ctas .cta-button-subscribe {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#about-page-ctas .cta-button-host:hover {
    background-color: #0d6efd;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
    transform: translateY(-2px);
}

/* Target Market Suggestions */
.suggestion-dropdown {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    width: calc(100% - 24px);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

#about-page-ctas .cta-button-subscribe:hover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
    transform: translateY(-2px);
}

.cta-section {
    transition: all 0.3s ease;
}

.cta-section:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Add padding to container to prevent content from being hidden under navbar */
.container {
    padding-top: 1rem;
}

/* Additional top padding for pages with alerts to prevent double padding */
.alert+.container {
    padding-top: 0;
}

/* Dropdown enhancements */
.dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* User type indicator styles */
.dropdown-menu .border-bottom {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0.5rem;
}

.sponsored-content {
    padding: 1rem;
    background-color: #f9f9f9;
}

/* Map specific styling */
#map {
    height: 700px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    /* Lower z-index for map container */
}

.map-container {
    height: 700px;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 8px;
    boxshadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-content-row {
    margin-bottom: 30px;
}

/* Fix z-index issues with map container */
.leaflet-container {
    height: 100%;
    width: 100%;
}

/* Enhanced event cards */
.event-cards-container {
    max-height: 700px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
}

.event-card {
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.event-card.highlighted {
    border-left: 4px solid #4285F4;
    background-color: rgba(66, 133, 244, 0.05);
}

.sponsored-card {
    border-left: 4px solid #ffc107;
}

/* Map controls and popups z-index */
.map-controls {
    z-index: 800 !important;
}

.map-popup {
    z-index: 700 !important;
}

/* Event popup styling */
.event-popup {
    min-width: 200px;
    padding: 5px;
}

.event-popup h5 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 16px;
}

.event-popup p {
    margin-bottom: 10px;
    font-size: 14px;
}

/* User location marker styling */
.user-location-marker {
    color: #4285F4;
    text-align: center;
}

.pulse {
    display: block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(66, 133, 244, 0.6);
    box-shadow: 0 0 0 rgba(66, 133, 244, 0.6);
    animation: pulse 2s infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

    70% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
}

/* Make sure event cards container scrolls independently */
.event-cards-container {
    overflow-y: auto;
    height: 600px;
    padding-right: 10px;
}

/* Fix for fixed header and footer */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

footer {
    position: relative;
    bottom: 0;
    width: 100%;
    z-index: 900;
}

/* Ensure dropdown menus appear above the map */
.dropdown-menu {
    z-index: 1000 !important;
}

/* Navigation bar should be above the map */
.navbar {
    z-index: 1100 !important;
    position: relative;
}

/* Custom user location marker */
.user-location-marker {
    background-color: #4285F4;
    border-radius: 50%;
    box-shadow: 0 0 0 2px white;
}

.pulse {
    display: block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(66, 133, 244, 0.6);
    box-shadow: 0 0 0 rgba(66, 133, 244, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(66, 133, 244, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
    }
}

.event-popup h5 {
    margin-bottom: 8px;
    color: var(--primary-color);
}

.event-popup p {
    margin-bottom: 5px;
    font-size: 14px;
}

/* Map page additional styles */
.filter-bar {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Event card styles */
.event-card {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: white;
}

.event-card:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.event-card.highlighted {
    background-color: #e9ecef;
    border-left-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Sponsored card styles */
.sponsored-card {
    border: 1px dashed #ccc;
    background-color: #fffaf0;
}

.sponsored-content {
    padding: 1rem;
    background-color: #f9f9f9;
}

/* Map container */
#map {
    height: 700px;
    width: 100%;
    z-index: 1;
}

/* Event cards container */
.event-cards-container {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 5px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .event-cards-container {
        height: calc(100vh - 350px);
        margin-bottom: 60px;
    }

    .event-card {
        margin-bottom: 10px;
    }

    .footer {
        padding-bottom: 70px;
    }
}

.event-cards-container::-webkit-scrollbar {
    width: 8px;
}

.event-cards-container::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.event-cards-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

/* Map popup styles */
.event-popup {
    min-width: 220px;
    padding: 5px;
}

.event-popup h5 {
    margin-bottom: 10px;
    font-weight: 600;
}

.event-popup p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.event-popup .btn {
    margin-top: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #map {
        height: 400px;
        margin-bottom: 20px;
    }

    .event-cards-container {
        height: 500px;
    }

    .filter-bar .row {
        flex-direction: column;
    }

    .filter-bar .col-md {
        margin-bottom: 10px;
    }
}

/* Header and navigation styling */
.navbar {
    background-color: var(--light-color);
    padding: 15px 0;
    margin-bottom: 0;
}

/* Make navbar links visible */
.navbar .nav-link {
    color: #333 !important;
    font-weight: 600;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.navbar-nav {
    display: flex;
    align-items: center;
}

/* Hero section spacing */
#hero.hero-section {
    padding-top: 70px;
    /* Adjust as needed */
    margin-top: 0;
}

.pre-hero-banner,
.organizer-banner {
    display: none;
}

/* Hide footer on map page */
.map-content-row {
    margin-bottom: 0;
    padding-bottom: 0;
}

.map-page footer {
    display: none;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: block !important;
}

.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1100;
}

.dropdown-menu.show {
    display: block !important;
}

/* Featured Event Toggle Switches */
.form-check.form-switch {
    display: flex;
    align-items: center;
}

.form-check-input.type-checkbox {
    cursor: pointer;
}

.form-check-label {
    margin-left: 8px;
    font-weight: 500;
}

.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.navbar .nav-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* User dropdown styling */
/* User icon styles removed per requirements */

/* Removed dark overlay to show the original image without shading */
/* Hero section overlay removed for clearer image display */

/* Custom styles for FunList.ai */

/* Map styling */
.leaflet-popup-content {
    min-width: 200px;
}

.leaflet-popup-content h5 {
    margin-bottom: 8px;
    color: #0d6efd;
}

.event-popup {
    padding: 5px;
}

.user-location-marker {
    color: #0d6efd;
    font-size: 24px;
    position: relative;
}

.user-location-marker .pulse {
    position: absolute;
    width: 30px;
    height: 30px;
    left: -5px;
    top: -5px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* --- Admin Console Layout --- */
.admin-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 992px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }
}

.admin-sidebar {
    /* background: linear-gradient(180deg, #1a2433 0%, #0f1826 100%); */
    background: #e6683c;
    color: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    position: sticky;
    top: 90px;
    align-self: start;
    box-shadow: 0 8px 30px rgba(10, 24, 50, 0.4);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.8rem;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    transition: background 0.2s ease;
}

.admin-nav-link.active,
.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.admin-nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.admin-nav-text span {
    display: block;
    font-weight: 600;
}

.admin-nav-text small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.nav-pill {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
}

.admin-sidebar-footer {
    margin-top: 2rem;
}

.admin-main {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 15px 60px rgba(15, 23, 42, 0.08);
}

.admin-header-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
    color: #94a3b8;
}

.admin-page-title {
    margin-bottom: 0.25rem;
}

.admin-page-description {
    color: #475467;
    max-width: 560px;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-search {
    position: relative;
}

.admin-search input {
    padding-right: 2.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.search-key {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #94a3b8;
    background: #e2e8f0;
    border-radius: 6px;
    padding: 0.1rem 0.35rem;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.admin-stat-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

.admin-stat-card.attention {
    background: #fff1e6;
    border-color: #ffd5b5;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475467;
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    margin: 0.25rem 0;
}

.stat-meta {
    font-size: 0.85rem;
}

.admin-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.25rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-card-title {
    margin-bottom: 0.15rem;
}

.admin-grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.admin-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.chart-card {
    min-height: 280px;
}

.quick-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: border 0.2s ease, transform 0.2s ease;
}

.quick-action:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff7ed;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-breakdown,
.analytics-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.role-breakdown li,
.analytics-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

.role-breakdown li:last-child,
.analytics-list li:last-child {
    border-bottom: none;
}

.activity-card {
    min-height: 320px;
}

.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.activity-list li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f8fafc;
}

.activity-list li:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.bg-teal-subtle {
    background: #ecfdf5;
}

.venue-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.venue-list li,
.venue-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.venue-list li:last-child,
.venue-card:last-child {
    border-bottom: none;
}

.org-grid,
.venue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.org-card,
.venue-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem;
    background: #f8fafc;
}

.admin-status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.status-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #475467;
    font-size: 0.9rem;
}

.status-tab.active {
    background: #fff7ed;
    border-color: #ffd5b5;
    color: #b45309;
}

.admin-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.admin-table td {
    vertical-align: middle;
    color: #0f172a;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-pill--pending {
    background: #fff7ed;
    color: #b45309;
}

.status-pill--approved {
    background: #ecfdf5;
    color: #047857;
}

.status-pill--rejected {
    background: #fef2f2;
    color: #b91c1c;
}

.status-pill--draft {
    background: #f5f5f5;
    color: #525252;
}

.status-pill--neutral {
    background: #e2e8f0;
    color: #475467;
}

.role-chip-group {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.role-chip {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4c1d95;
}

.venue-card p,
.org-card p {
    margin-bottom: 0.25rem;
}

.analytics-list strong {
    font-size: 1.1rem;
}

.role-highlight {
    display: flex;
    gap: 1.25rem;
}

.role-highlight>div {
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    min-width: 110px;
}

.venue-card a {
    font-weight: 600;
    color: var(--primary-color);
}

@media (max-width: 576px) {
    .admin-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .role-highlight {
        flex-direction: column;
    }
}

/* Floating Buttons Container */
.floating-buttons-container {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    z-index: 1040;
    pointer-events: none;
}

.floating-button {
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    text-decoration: none;
    font-size: 0.95rem;
    border: none;
}

.floating-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.floating-button i {
    font-size: 1.1rem;
}

.feedback-button {
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
}

.fun-assistant-button {
    background: linear-gradient(135deg, #FF8A00, #FF6B00);
    animation: pulse-light 2s infinite;
}

@keyframes pulse-light {
    0% {
        box-shadow: 0 4px 12px rgba(255, 138, 0, 0.4);
    }
    70% {
        box-shadow: 0 4px 12px rgba(255, 138, 0, 0.4), 0 0 0 10px rgba(255, 138, 0, 0);
    }
    100% {
        box-shadow: 0 4px 12px rgba(255, 138, 0, 0.4);
    }
}

/* Adjust when cookie consent is visible */
body.cookie-consent-visible .floating-buttons-container {
    bottom: 4.5rem;
}

@media (max-width: 768px) {
    .floating-buttons-container {
        bottom: 1.5rem;
        right: 1rem;
        gap: 0.6rem;
    }

    .floating-button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .floating-button i {
        font-size: 1rem;
    }

    body.cookie-consent-visible .floating-buttons-container {
        bottom: 6rem;
    }
}