/* Override Bootstrap 5 CSS Variables for Primary Color */
:root {
    --bs-primary: #4574A2;
    --bs-primary-rgb: 69, 116, 162;
    --bs-btn-bg: #4574A2;
    --bs-btn-border-color: #4574A2;
    --bs-btn-hover-bg: #3a5f88;
    --bs-btn-hover-border-color: #3a5f88;
    --bs-btn-active-bg: #3a5f88;
    --bs-btn-active-border-color: #3a5f88;
}

.beta-release {
    font-weight: bold;
    color: rgb(255, 217, 0);
}

/* Notification Badge Pulse Animation */
.pulse-badge {
    display: inline-block;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.text-orange {
    color: rgb(255, 115, 0);
}

.navbar-bottom {
    position: static;
    width: 100%;
    background-color: #111214;
    border-top: 1px solid #2a2a2e;
    padding: 8px 0;
    min-height: 50px;
}

/* Desktop Layout */
.navbar-bottom-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 15px;
}

.navbar-bottom-subscription {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.navbar-bottom-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.navbar-bottom-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

/* Footer text & links */
.footer-text {
    margin: 0;
    font-size: 12px;
    color: #555;
    line-height: 1.3;
}

.footer-link {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    padding: 4px 8px;
}

.footer-link:hover { color: #aaa; text-decoration: underline; }

/* Footer buttons */
.btn-footer-primary {
    background: #c0392b;
    border: none;
    color: #fff !important;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}
.btn-footer-primary:hover { background: #a93226; color: #fff !important; }

.btn-footer-ghost {
    background: transparent;
    border: 1px solid #333;
    color: #aaa !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}
.btn-footer-ghost:hover { border-color: #555; color: #fff !important; }

/* Mobile Compact Layout */
.navbar-bottom-mobile {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 10px;
    gap: 8px;
}

.navbar-actions-compact {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Content buffer */
.content-buffer {
    margin-bottom: 24px;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .navbar-bottom {
        padding: 6px 0; /* Further reduced padding for mobile */
        min-height: 45px; /* Reduced minimum height for mobile */
    }
    
    .navbar-bottom-mobile .btn {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .nav-link-compact {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .navbar-actions-compact .btn {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .navbar-actions-compact .btn-link {
        font-size: 16px;
        padding: 4px 6px;
    }
    
}

/* Extra small mobile adjustments */
@media (max-width: 480px) {
    .navbar-bottom {
        padding: 5px 0;
        min-height: 40px; /* Further reduced minimum height for small mobile */
    }
    
    .navbar-bottom-mobile {
        padding: 0 8px;
        gap: 6px;
    }
    
    .navbar-bottom-mobile .btn {
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .nav-link-compact {
        font-size: 11px;
        padding: 5px 6px;
    }
    
    .navbar-actions-compact {
        gap: 4px;
    }
    
    .navbar-actions-compact .btn {
        font-size: 11px;
        padding: 5px 6px;
    }
    
    .navbar-actions-compact .btn-link {
        font-size: 14px;
        padding: 3px 4px;
    }
    
    /* Reduced buffer for small mobile to match smaller navbar */
    .content-buffer {
        margin-bottom: 60px;
    }
}

  /* Custom styles for navbar */
.navbar-top {
    background-color: #111214 !important;
    border-bottom: 1px solid #2a2a2e !important;
    color: #ffffff !important;
    margin-top: 0 !important;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}
.navbar-top .navbar-brand {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.5px;
    color: #fff !important;
}
.navbar-top .navbar-brand span { color: #c0392b; }
.navbar-top .navbar-nav .nav-link { color: #aaa !important; font-size: 15px; }
.navbar-top .navbar-nav .nav-link:hover,
.navbar-top .navbar-nav .nav-link.active { color: #fff !important; }
.navbar-top .dropdown-menu {
    background: #1a1a1e;
    border: 1px solid #2a2a2e;
}
.navbar-top .dropdown-item { color: #ccc; font-size: 13px; }
.navbar-top .dropdown-item:hover { background: #252528; color: #fff; }
.navbar-top .dropdown-header { color: #666; font-size: 11px; }
.navbar-top .dropdown-divider { border-color: #2a2a2e; }
.btn-nav-signup {
    background: #c0392b;
    border: none;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Archivo', sans-serif;
    letter-spacing: 0.3px;
    text-decoration: none !important;
    white-space: nowrap;
    display: inline-block;
}
.btn-nav-signup:hover { background: #a93226; color: #fff !important; }

/* Super Admin Navbar - Darker Red */
.navbar-top.navbar-super-admin {
    background-color: #c53030 !important; /* Darker red background */
    color: #ffffff !important; /* White text for better contrast on dark background */
}

/* Super Admin navbar items with white text */
.navbar-top.navbar-super-admin .navbar-nav .nav-link,
.navbar-top.navbar-super-admin .navbar-brand {
    color: #ffffff !important; /* White text for darker red background */
}

.navbar-top.navbar-super-admin .navbar-nav .nav-link:hover,
.navbar-top.navbar-super-admin .navbar-brand:hover {
    color: #f0f0f0 !important; /* Slightly dimmed white on hover */
}

/* Ensure navbar items have white text */
.navbar-top .navbar-nav .nav-link,
.navbar-bottom .navbar-nav .nav-link {
    color: #ffffff !important;
}

/* Navbar separator styling */
.navbar-separator {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    margin: 0 0.5rem;
}

.navbar-separator::before {
    content: "";
    height: 20px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    display: block;
}

/* Mobile navbar separator - hide on small screens */
@media (max-width: 991px) {
    .navbar-separator {
        display: none;
    }
}

.flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000; /* Higher than navbar to appear on top */
    pointer-events: none; /* Allow clicks to pass through the overlay */
    display: flex;
    justify-content: center;
    padding: 10px;
}

.flash-message {
    max-width: 600px;
    width: auto;
    pointer-events: auto; /* Re-enable pointer events for the actual message */
    animation: flash-auto-dismiss 8s ease-in-out forwards; /* Increased duration */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add subtle shadow for better visibility */
    font-weight: 500;
}

/* Enhanced error message styling */
.flash-message.alert-danger {
    background-color: #f8d7da !important;
    color: #721c24 !important;
}

.flash-message.alert-success {
    background-color: #d1edff !important;
    color: #0f5132 !important;
}

.flash-message.alert-warning {
    background-color: #fff3cd !important;
    color: #664d03 !important;
}

/* CSS Animation for auto-dismissing flash messages */
@keyframes flash-auto-dismiss {
    0% { 
        opacity: 1; 
        transform: translateY(0);
    }
    85% { 
        opacity: 1; 
        transform: translateY(0);
    }
    100% { 
        opacity: 0; 
        transform: translateY(-20px);
    }
}

.table th.col-company, .table td.col-company {
    width: 20%;
}

.table th.col-logo, .table td.col-logo {
    width: 10%;
}

.table th.col-date, .table td.col-date {
    min-width: 140px;
}

.table th.col-time, .table td.col-time {
    min-width: 110px;
}

.table th.col-location, .table td.col-location {
    width: 30%;
}

.table th.col-cost, .table td.col-cost {
    width: 10%;
}

.table th.col-website, .table td.col-website {
    width: 5%;
}

.table th.col-type, .table td.col-type {
    width: 12%;
    padding-right: 8px !important;
    white-space: nowrap;
}

.title-column {
    min-width: 180px; /* Reduced to help fit all columns */
}

.reduced-width {
    width: 60%; /* Reduce the width by 40% */
}

.fixed-width {
    width: 400px;
}

.card-fixed-height {
    height: 380px; /* Height to accommodate platform links */
    overflow: hidden; /* Hide any overflowing content */
    display: -webkit-box; /* Use a flexbox-like layout */
    -webkit-box-orient: vertical; /* Set the box orientation to vertical */
    -webkit-line-clamp: 6; /* Limit the text to 5 lines */
    line-clamp: 6; /* Standard property for compatibility */
    text-overflow: ellipsis; /* Add ellipsis for overflowing text */
}

.card-fixed-height .card-body {
    padding: 1rem 1rem 0.5rem 1rem; /* Reduced bottom padding */
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
}

/* Push platform icons to bottom of card */
.card-fixed-height .card-body > .d-flex.gap-2 {
    margin-top: auto !important;
    margin-bottom: 0.5rem;
}

/* Ensure card text doesn't push icons down */
.card-fixed-height .card-text {
    flex-grow: 0;
    margin-bottom: 0.5rem;
}

/* Mobile responsiveness for podcast cards */
@media (max-width: 767px) {
    .card-fixed-height {
        height: auto; /* Remove fixed height on mobile */
        min-height: 300px; /* Set minimum height instead */
        overflow: visible; /* Show all content */
    }

    .card-fixed-height .card-body {
        padding: 1rem; /* Adjust padding for mobile */
    }

    .card-fixed-height .card-text {
        -webkit-line-clamp: unset; /* Remove line clamp on mobile */
        line-clamp: unset;
    }
}

@media (max-width: 480px) {
    .card-fixed-height {
        min-height: 280px; /* Slightly smaller on very small screens */
    }

    .card-fixed-height .btn-sm {
        padding: 0.35rem 0.6rem; /* Touch-friendly but not full-width */
        font-size: 0.875rem;
        width: auto; /* Prevent full-width buttons */
        display: inline-flex; /* Keep buttons inline, not block */
    }
}

/* Keep podcast platform buttons horizontal on all screen sizes */
.card-fixed-height .btn-outline-primary,
.card-fixed-height .btn-outline-warning,
.card-fixed-height .btn-outline-success,
.card-fixed-height .btn-outline-secondary,
.card-fixed-height .btn-outline-danger {
    width: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px; /* Ensure touch-friendly size */
}


html, body {
    height: 100%; /* Ensure the page takes up the full height */
    margin: 0;
    padding: 0; /* Ensure no default padding */
    display: flex;
    flex-direction: column;
    padding-bottom: 0; /* Remove default padding */
}

/* Ensure main content area has proper spacing from fixed navbar */
body {
    padding-bottom: 80px !important; /* Reduced bottom padding to match smaller navbar */
}

@media (max-width: 767px) {
    body {
        padding-bottom: 70px !important; /* Reduced padding for mobile to match smaller navbar */
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 60px !important; /* Reduced padding for small mobile to match smaller navbar */
    }
}

.container {
    flex: 1; /* Pushes the footer to the bottom */
}

#calendar {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    z-index: 0; /* Lower the calendar's z-index */
}

.fc {
    z-index: 0; /* Lower the FullCalendar elements' z-index */
}

/* Enhanced calendar styling for better multi-day event visibility */
.fc-daygrid-day {
    min-height: 120px; /* Increase minimum height of day cells */
}

.fc-daygrid-day-frame {
    min-height: 120px; /* Ensure consistent day cell height */
}

.fc-daygrid-event {
    margin: 1px 0; /* Add small margin between events */
    border-radius: 3px; /* Rounded corners for events */
    font-size: 0.85em; /* Slightly smaller font for more events */
    padding: 2px 4px; /* Compact padding */
}

.fc-daygrid-event-harness {
    margin-bottom: 1px; /* Space between event rows */
}

.fc-more-link {
    font-size: 0.8em; /* Smaller "more" link text */
    margin-top: 2px; /* Space above more link */
}

.fc-daygrid-day-number {
    font-weight: bold;
    padding: 4px;
}

/* Mobile calendar adjustments for better event visibility */
@media (max-width: 768px) {
    .fc-daygrid-day {
        min-height: 100px; /* Slightly smaller on mobile but still enough for multiple events */
    }
    
    .fc-daygrid-day-frame {
        min-height: 100px;
    }
    
    .fc-daygrid-event {
        font-size: 0.75em; /* Even smaller font on mobile */
        padding: 1px 3px;
    }
}

/* Calendar legend styles */
.legend-container {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.legend-items {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: white;
    border: 1px solid #e0e0e0;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: inline-block;
    margin-right: 8px;
}

/* Specific legend colors */
.single-day-color {
    background-color: #007bff !important; /* Bootstrap primary blue for single-day events */
}

.multi-day-color {
    background-color: #28a745 !important; /* Green for multi-day events */
}

.holiday-color {
    background-color: #f8b4b4 !important; /* Pastel red for public holidays */
    border: 1px solid #f1a4a4;
}

.quill-content-preview.ql-editor {
    padding-top: 0.5rem !important;
    margin-top: 0 !important;
}
.quill-content-preview.ql-editor > p:first-child {
    margin-top: 0 !important;
}

/* Enhanced table styling for events_list - improved column handling */
.table-striped.table,
.events-list table,
table.table-striped {
    table-layout: auto !important;
    width: 100% !important;
    min-width: 1200px !important;
}

/* Prevent any library from overriding the table layout */
.container-fluid .table-responsive .table {
    table-layout: auto !important;
    min-width: 1200px !important;
}

.table-striped.table th,
.table-striped.table td {
    padding: 8px 4px !important;
    vertical-align: top;
    font-size: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Columns that should allow multiline text wrapping */
.col-company,
.col-title,
.col-location,
.col-notes {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Columns that should remain single line but no ellipsis for important data */
.col-date,
.col-time,
.col-cost {
    white-space: nowrap !important;
}

/* Allow city column to wrap at commas and other natural break points */
.col-city {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    line-height: 1.2 !important;
}

/* Columns that can use ellipsis for less critical data */
.col-website,
.col-type {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Specific column width and alignment adjustments */
.col-logo {
    width: 130px !important;
    text-align: center !important;
    padding: 3px !important;
}

.col-company {
    width: 110px !important;
    min-height: 40px;
}

.col-title {
    width: 200px !important;
    min-height: 40px;
}

.col-location {
    width: 105px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.col-city {
    width: 75px !important;
    text-align: center !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    line-height: 1.2 !important;
}

.col-date {
    width: 100px !important;
    text-align: center !important;
}

.col-time {
    width: 110px !important;
    text-align: center !important;
}

.col-cost {
    width: 90px !important;
    text-align: center !important;
    font-size: 14px;
}

.col-notes {
    width: 85px !important;
    text-align: center !important;
    min-height: 40px;
}

.col-website {
    width: 65px !important;
    text-align: center !important;
}

.col-type {
    width: 90px !important;
    text-align: center !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
}

/* Event list explanatory text styling */
.events-list-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 1rem;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1200px) {
    .table-striped.table th,
    .table-striped.table td {
        font-size: 14px;
        padding: 6px 3px !important;
    }
    
    .col-cost {
        font-size: 13px;
    }
    
    .events-list-info {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .table-striped.table th,
    .table-striped.table td {
        font-size: 13px;
        padding: 4px 2px !important;
    }
    
    .col-cost {
        font-size: 12px;
    }
    
    .events-list-info {
        font-size: 12px;
    }
    
    /* Mobile-responsive calendar improvements */
    .fc {
        font-size: 0.9rem;
    }
    
    .fc-toolbar {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 1rem;
    }
    
    .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .fc-button {
        padding: 8px 12px;
        font-size: 0.85rem;
        margin: 2px;
    }
    
    .fc-toolbar-title {
        font-size: 1.1rem;
        margin: 5px 0;
    }
    
    /* Day grid improvements for mobile */
    .fc-daygrid-event {
        font-size: 0.75rem;
        padding: 2px 4px;
        margin: 1px 0;
    }
    
    .fc-daygrid-day-number {
        font-size: 0.9rem;
        padding: 4px;
    }
    
    .fc-col-header-cell {
        font-size: 0.8rem;
        padding: 8px 2px;
    }
    
    /* List view improvements for mobile */
    .fc-list-event {
        padding: 8px;
        font-size: 0.85rem;
    }
    
    .fc-list-event-title {
        font-weight: 600;
    }
    
    .fc-list-event-time {
        font-size: 0.75rem;
        color: #666;
    }
    
    /* Calendar legend mobile adjustments */
    .legend-container {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .legend-container h5 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .legend-items {
        gap: 8px;
    }
    
    .legend-item {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .legend-color {
        width: 12px;
        height: 12px;
    }
}

/* Extra small mobile adjustments */
@media (max-width: 480px) {
    .fc {
        font-size: 0.8rem;
    }
    
    .fc-button {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
    
    .fc-toolbar-title {
        font-size: 1rem;
    }
    
    .fc-daygrid-event {
        font-size: 0.7rem;
        padding: 1px 2px;
    }
    
    .fc-daygrid-day-number {
        font-size: 0.8rem;
        padding: 2px;
    }
    
    .fc-col-header-cell {
        font-size: 0.7rem;
        padding: 6px 1px;
    }
    
    /* Force list view to be more readable on very small screens */
    .fc-list-event {
        padding: 6px;
        font-size: 0.8rem;
    }
    
    .legend-container {
        padding: 8px;
    }
    
    .legend-items {
        flex-direction: column;
        gap: 6px;
    }
    
    .legend-item {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
}

/* ===== ADMIN DROPDOWN MENU STYLING ===== */
.admin-dropdown {
    min-width: 240px;
    max-height: 80vh;
    overflow-y: auto;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    background: #ffffff;
}

.admin-dropdown .dropdown-header {
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
    padding: 6px 12px 4px 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    border: none;
}

.admin-dropdown .dropdown-header i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.admin-dropdown .dropdown-item {
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #495057;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
}

.admin-dropdown .dropdown-item i {
    width: 18px;
    margin-right: 12px;
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
}

.admin-dropdown .dropdown-item:hover {
    background: transparent;
    color: #2c3e50;
    position: relative;
    z-index: 1;
}

.admin-dropdown .dropdown-item:hover::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 12px;
    right: 12px;
    bottom: 2px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 6px;
    z-index: -1;
}

.admin-dropdown .dropdown-item:hover i {
    color: #007bff;
}

.admin-dropdown .dropdown-divider {
    margin: 6px 12px;
    border-color: #e9ecef;
    opacity: 0.8;
}

/* Super User Item Special Styling */
.admin-dropdown .super-user-item {
    background: transparent;
    border-radius: 6px;
    margin: 2px 0px;
    font-weight: 500;
    border: none;
    position: relative;
    color: #856404;
    z-index: 1;
}

.admin-dropdown .super-user-item i {
    color: #856404;
}

.admin-dropdown .super-user-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8px;
    right: 8px;
    bottom: 0;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 50%, #fdcb6e 100%);
    border: 1px solid #f39c12;
    border-radius: 6px;
    z-index: -1;
}

.admin-dropdown .super-user-item:hover {
    color: #ffffff;
    transform: translateX(4px);
    z-index: 1;
}

.admin-dropdown .super-user-item:hover::after {
    display: none;
}

.admin-dropdown .super-user-item:hover::before {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 50%, #c0392b 100%);
    border: 1px solid #c0392b;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.admin-dropdown .super-user-item:hover i {
    color: #ffffff;
}

/* Admin Dropdown Toggle Button Enhancement */
#adminDropdown {
    font-weight: 500;
    transition: all 0.2s ease;
}

#adminDropdown:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#adminDropdown i {
    margin-right: 6px;
    font-size: 0.9rem;
}

/* General dropdown improvements - more compact styling */
.dropdown-menu .dropdown-item {
    padding: 6px 12px !important;
    font-size: 0.9rem;
}

.dropdown-menu .dropdown-item:hover {
    margin: 0 2px !important;
}

/* Responsive adjustments for admin dropdown */
@media (max-width: 768px) {
    .admin-dropdown {
        min-width: 200px;
        margin-right: 10px;
    }
    
    .admin-dropdown .dropdown-item {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .admin-dropdown .dropdown-header {
        font-size: 0.8rem;
        padding: 8px 14px 6px 14px;
    }
}

/* Ideas page - Note content word wrapping */
#notes .list-group-item {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
}

.note-content-wrapper {
    flex: 1;
    min-width: 0; /* Allows flex items to shrink below their content size */
    max-width: calc(100% - 50px); /* Leave space for the delete button */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.note-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap; /* Preserves line breaks but allows wrapping */
    max-width: 100%;
    margin-top: 5px;
    line-height: 1.4;
}

#notes .list-group-item div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
    min-width: 0; /* Allows flex items to shrink below their content size */
}

/* reCAPTCHA positioning fixes */
.grecaptcha-badge { 
    bottom: 70px !important; /* Move reCAPTCHA badge above the bottom navbar */
    z-index: 999 !important; /* Ensure it stays below navbar but above content */
}

/* Add bottom padding to forms with reCAPTCHA to prevent overlap */
.recaptcha-form {
    padding-bottom: 80px !important; /* Extra space at bottom for both navbar and reCAPTCHA */
}

/* Ad blocker evasion for sponsor/partner content */
.featured-partner {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

.partner-link {
    display: inline-block !important;
    text-decoration: none;
}

.partner-image {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
}

.partner-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.featured-partner:hover {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* Type column badge styling - Force override any dynamic changes */
.table .col-type .badge {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.3rem !important;
    max-width: 110px !important;
    overflow: visible !important;
    white-space: nowrap !important;
    display: inline-block !important;
    margin: 1px !important;
}

/* Purple badge for hybrid events */
.bg-purple {
    background-color: #6f42c1 !important;
}

/* Force Type column width */
.table .col-type,
.table th.col-type,
.table td.col-type {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
}

/* Floating Back to Top Arrow Button */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 30px;
    background-color: #4574A2;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background-color: #335a85;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    font-size: 18px;
}

/* Home Page Styles */

/* Statistics Section */
.stat-item {
    padding: 30px 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #4574A2 !important;
    margin-bottom: 10px;
}

.stat-label {
    font-weight: 600;
    color: #4574A2 !important;
    margin-bottom: 10px;
}

.stat-description {
    font-size: 0.95rem;
    line-height: 1.4;
}

.stats-section {
    background: transparent;
    position: relative;
}

/* Team Section */
.team-item {
    padding: 30px 20px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    text-align: center;
}

.team-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.team-photo {
    width: 140px !important;
    height: 140px !important;
    min-width: 140px;
    min-height: 140px;
    max-width: 140px;
    max-height: 140px;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center !important;
    margin: 0 auto 20px auto !important;
    display: block !important;
    border: 4px solid #4574A2 !important;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.team-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.team-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #4574A2 !important;
    margin-bottom: 8px;
    text-align: center;
}

.team-role {
    font-weight: 600;
    color: #6c757d !important;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-align: center;
}

.team-description {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #6c757d;
    text-align: center;
}

.team-section {
    background: transparent;
    position: relative;
}

/* Home Page Mobile Responsive */
@media (max-width: 768px) {
    /* Statistics Section Mobile */
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-item {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    .stat-description {
        font-size: 0.85rem;
    }
    
    /* Team Section Mobile */
    .team-item {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .team-photo {
        width: 110px !important;
        height: 110px !important;
        min-width: 110px;
        min-height: 110px;
        max-width: 110px;
        max-height: 110px;
        border-width: 3px;
    }
    
    .team-name {
        font-size: 1.2rem;
    }
    
    .team-role {
        font-size: 1rem;
    }
    
    .team-description {
        font-size: 0.9rem;
    }
    
    /* Home Page Sections Mobile Spacing */
    .stats-section,
    .team-section {
        padding: 3rem 0 !important;
    }
    
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575px) {
    /* Statistics Section Extra Small */
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .stat-description {
        font-size: 0.8rem;
    }
    
    .stat-item {
        padding: 15px 10px;
        margin-bottom: 15px;
    }
    
    /* Team Section Extra Small */
    .team-item {
        padding: 20px 10px;
    }
    
    .team-photo {
        width: 90px !important;
        height: 90px !important;
        min-width: 90px;
        min-height: 90px;
        max-width: 90px;
        max-height: 90px;
    }
    
    .team-name {
        font-size: 1.1rem;
    }
    
    .team-role {
        font-size: 0.95rem;
    }
    
    .team-description {
        font-size: 0.85rem;
    }
    
    /* Home Page Title Mobile */
    h1 {
        font-size: 1.8rem !important;
    }
    
    /* Button Mobile */
    .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

/* Reimagined Home Page Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    padding: 4rem 0;
    min-height: 70vh;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-logo {
    max-width: 350px;
    width: 100%;
    height: auto;
}

.hero-buttons {
    margin-top: 2rem;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Trust Section */
.trust-section {
    background: #ffffff;
}

.trust-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.trust-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.trust-icon {
    font-size: 3rem;
    color: #4574A2;
    margin-bottom: 1.5rem;
}

.trust-number {
    font-size: 3rem;
    font-weight: 700;
    color: #4574A2;
    margin-bottom: 0.5rem;
}

.trust-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.trust-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Value Section */
.value-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.value-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4574A2, #3a5f88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.value-card h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.value-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* Mission Section */
.mission-section {
    background: #ffffff;
}

.mission-card {
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    border-left: 5px solid #4574A2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.mission-icon {
    font-size: 2.5rem;
    color: #4574A2;
    margin-bottom: 1.5rem;
}

.mission-card h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.mission-card p {
    color: #6c757d;
    line-height: 1.7;
}

/* Enhanced Team Section */
.team-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-image-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.team-card .team-photo {
    width: 140px !important;
    height: 140px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4574A2;
    margin: 0 auto;
    display: block;
}

.team-card .team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.team-card .team-role {
    font-size: 1rem;
    color: #4574A2;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-card .team-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.team-social {
    margin-top: 1.5rem;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #4574A2 0%, #3a5f88 100%);
    color: white;
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-buttons {
    margin-top: 2rem;
}

/* Section Styling */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Bottom Spacing */
.bottom-spacing {
    padding: 3rem 0;
}

/* Mobile Responsive for New Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .trust-number {
        font-size: 2.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 3rem 0;
        min-height: 60vh;
    }
    
    .value-card,
    .trust-card,
    .team-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .trust-card,
    .value-card,
    .mission-card,
    .team-card {
        padding: 1.5rem;
    }
}

/* ========================================
   CUSTOM PRIMARY COLOR OVERRIDE
   Applied: December 16, 2024 (Beta 0.19)
   Purpose: Match navbar bottom blue for consistent branding across entire application
   Backup: See COLOR_CHANGE_BACKUP.md for reversion instructions
   ======================================== */

/* Text color for primary elements */
.text-primary {
    color: #4574A2 !important;
}

/* Primary buttons - solid background */
.btn-primary,
button.btn-primary,
a.btn-primary {
    background-color: #4574A2 !important;
    border-color: #4574A2 !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active,
button.btn-primary:hover,
button.btn-primary:focus,
button.btn-primary:active,
a.btn-primary:hover,
a.btn-primary:focus {
    background-color: #3a5f88 !important;
    border-color: #3a5f88 !important;
    color: #ffffff !important;
}

/* Ensure primary buttons don't get Bootstrap purple */
.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:focus-visible {
    background-color: #4574A2 !important;
    border-color: #4574A2 !important;
    box-shadow: 0 0 0 0.25rem rgba(69, 116, 162, 0.5) !important;
}

/* Primary outline buttons */
.btn-outline-primary {
    color: #4574A2 !important;
    border-color: #4574A2 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: #4574A2 !important;
    border-color: #4574A2 !important;
    color: #fff !important;
}

/* Primary border color */
.border-primary {
    border-color: #4574A2 !important;
}

/* Links styled as primary */
.link-primary {
    color: #4574A2 !important;
}

.link-primary:hover,
.link-primary:focus {
    color: #3a5f88 !important;
}

/* Background primary color */
.bg-primary {
    background-color: #4574A2 !important;
}

/* Primary badges */
.badge.bg-primary {
    background-color: #4574A2 !important;
}

/* Primary alerts */
.alert-primary {
    background-color: rgba(69, 116, 162, 0.1);
    border-color: #4574A2;
    color: #2c4d6f;
}

/* ======================================== */
/*        SUPERADMIN MENU STYLING            */
/* ======================================== */

/* SuperAdmin dropdown toggle - Gold theme */
#superAdminDropdown {
    color: #ffd700 !important; /* Gold color for SuperAdmin */
    font-weight: 600;
}

#superAdminDropdown:hover {
    color: #ffed4e !important; /* Lighter gold on hover */
}

#superAdminDropdown .fa-crown {
    color: #ffd700 !important; /* Gold crown icon */
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5); /* Subtle glow effect */
}

/* SuperAdmin dropdown menu styling */
.navbar-top.navbar-super-admin #superAdminDropdown {
    color: #ffffff !important; /* White text on darker red navbar */
}

.navbar-top.navbar-super-admin #superAdminDropdown .fa-crown {
    color: #ffd700 !important; /* Gold crown even on red navbar */
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.6)); /* Enhanced glow on dark background */
}

/* ======================================== */

/* ========================================
   MOBILE EVENT CARDS - RESPONSIVE DESIGN
   ======================================== */

/* Core Layout Switching */
@media (min-width: 993px) {
    .mobile-events-container {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .month-section .table-responsive,
    #past-events-table,
    #past-events-header + .table-responsive {
        display: none !important;
    }

    .mobile-events-container {
        display: block !important;
    }

    /* CRITICAL: Override table column fixed widths for mobile cards */
    .mobile-events-container .col-title,
    .mobile-events-container .col-company,
    .mobile-events-container .col-location,
    .mobile-events-container .col-city,
    .mobile-events-container .col-notes,
    .mobile-events-container .col-time,
    .mobile-events-container .col-cost,
    .mobile-events-container .col-type,
    .mobile-events-container .col-website,
    .mobile-events-container .col-going,
    .mobile-events-container .col-date {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Event Card Base Styling */
.event-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Card Header */
.event-card-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
}

.event-logo img {
    max-width: 80px !important;
    max-height: 50px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    padding: 4px;
    background-color: white;
}

.event-company-info h6 {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Event Title */
.event-card-title {
    font-size: 1.1rem;
    line-height: 1.3;
    width: 100%;
    display: block;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.event-card-title a {
    transition: color 0.2s ease;
    display: block;
    width: 100%;
    word-wrap: break-word;
    word-break: break-word;
}

.event-card-title a:hover {
    color: #3a5f88 !important;
    text-decoration: underline !important;
}

/* Meta Badges */
.event-meta .badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    font-weight: 500;
}

.event-meta .badge i {
    font-size: 0.8rem;
    margin-right: 4px;
}

/* Category Badges */
.event-badges .badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.event-badges .badge i {
    font-size: 0.75rem;
    margin-right: 3px;
}

/* Action Buttons */
.event-actions .btn {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
}

/* Accordion Styling */
.event-card .accordion-button {
    font-size: 0.85rem;
    background-color: #f8f9fa;
    border: none;
    padding-left: 0;
    padding-right: 0;
}

.event-card .accordion-button:not(.collapsed) {
    background-color: #e9ecef;
    color: #2c3e50;
    box-shadow: none;
}

.event-card .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.event-card .accordion-body {
    background-color: #fafafa;
    font-size: 0.85rem;
    padding-left: 0;
    padding-right: 0;
}

.event-card .accordion-body small.text-muted {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.event-card .accordion-body small.fw-bold {
    font-size: 0.85rem;
    color: #2c3e50;
    display: block;
    margin-top: 0.25rem;
    text-align: left;
}

/* Ensure all accordion body content is left-aligned */
.event-card .accordion-body .row > div {
    text-align: left;
}

/* Filter Collapse */
#advancedFilters {
    transition: height 0.35s ease;
}

@media (max-width: 768px) {
    #advancedFilters .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    #advancedFilters .form-select {
        font-size: 0.9rem;
    }

    /* Reduce card padding on mobile for more content space */
    .event-card .card-body {
        padding: 0.75rem 0.5rem; /* Reduced horizontal padding to maximize content width */
    }

    /* Ensure title spans full width */
    .event-card-title {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Tablet Grid Layout */
@media (min-width: 768px) and (max-width: 992px) {
    .mobile-events-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .event-card {
        margin-bottom: 0 !important;
    }
}

/* Better text wrapping for location field */
.event-card .col-location small.fw-bold {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
}

/* Better text wrapping for notes field */
.event-card .col-notes small.fw-bold {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .event-card .card-body {
        padding: 0.75rem 0.4rem; /* Even less horizontal padding on small screens */
    }

    .event-logo img {
        max-width: 60px !important;
        max-height: 40px !important;
    }

    .event-card-title {
        font-size: 1rem;
    }

    .event-meta .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }

    .event-actions {
        flex-direction: column;
    }

    .event-actions .btn {
        width: 100%;
        font-size: 0.85rem;
    }
}

/* Category Buttons Mobile */
@media (max-width: 576px) {
    .content-categories .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .content-categories .btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 140px;
        font-size: 0.85rem;
        padding: 0.6rem 0.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .event-card,
    .event-card:hover,
    #advancedFilters {
        transition: none;
    }

    .event-card:hover {
        transform: none;
    }
}

/* ============================================================
   RACEFRAME — HOMEPAGE DARK THEME
   ============================================================ */

/* Global dark body for homepage */
body.page-home {
    background: #16171b;
    color: #e8e8e8;
}


/* rf-page-footer: used on homepage bottom_nav block */
.rf-page-footer {
    position: static;
}

/* Ticker */
.rf-ticker {
    background: #c0392b;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
}
.rf-ticker-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    opacity: 0.8;
    flex-shrink: 0;
}
.rf-ticker-mask {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.rf-ticker-scroll {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: nowrap;
    width: max-content;
    animation: rf-ticker-marquee 40s linear infinite;
}
.rf-ticker-scroll:hover { animation-play-state: paused; }
@keyframes rf-ticker-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.rf-ticker-item { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.rf-ticker-dot { width: 5px; height: 5px; background: rgba(255,255,255,0.4); border-radius: 50%; flex-shrink: 0; }
/* Larger spacer placed between each repeat of the full list so the loop restart is obvious */
.rf-ticker-gap { width: 160px; flex-shrink: 0; }
.rf-ticker-event { font-size: 12px; color: #fff; font-weight: 500; }
.rf-ticker-date { font-size: 11px; color: rgba(255,255,255,0.65); }

/* Hero */
.rf-hero {
    position: relative;
    background-image: url('/static/images/hero-bg.png');
    background-size: cover;
    background-position: center 52%;
    min-height: 480px;
    padding: 40px 24px 48px;
    border-bottom: 1px solid #1e1e22;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.rf-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(17, 18, 20, 0.92) 0%,
        rgba(17, 18, 20, 0.80) 50%,
        rgba(17, 18, 20, 0.40) 100%
    );
    pointer-events: none;
}
.rf-hero > * {
    position: relative;
    z-index: 1;
}
.rf-hero-label {
    font-size: 11px;
    color: #c0392b;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.rf-hero-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 42px;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 12px;
}
.rf-hero-title span { color: #c0392b; }
.rf-hero-sub {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 24px;
    max-width: 520px;
    line-height: 1.6;
}
.rf-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.rf-pill {
    background: #1e1e22;
    border: 1px solid #2a2a2e;
    color: #aaa;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.rf-pill.active,
.rf-pill:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

/* Page body */
.rf-body {
    padding: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.rf-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.rf-section-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    margin: 0;
}
.rf-see-all { font-size: 12px; color: #c0392b; text-decoration: none; }
.rf-see-all:hover { text-decoration: underline; color: #c0392b; }

/* Featured event */
.rf-featured {
    background: #111214;
    border: 1px solid #1e1e22;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.rf-featured-badge {
    background: #c0392b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
}
.rf-featured-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 22px;
    color: #fff;
    margin-bottom: 8px;
}
.rf-featured-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.rf-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #888;
}
.rf-featured-tags { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.rf-tag {
    background: #1e1e22;
    color: #aaa;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
}
.rf-featured-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rf-btn-red {
    background: #c0392b;
    border: none;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}
.rf-btn-red:hover { background: #a93226; color: #fff !important; }
.rf-btn-ghost {
    background: transparent;
    border: 1px solid #333;
    color: #ccc !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.rf-btn-ghost:hover { border-color: #555; color: #fff !important; }
.rf-track-thumb {
    width: 100px;
    min-width: 100px;
    height: 100px;
    background: #1a1a1e;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2a2a2e;
    flex-shrink: 0;
}

/* Event grid */
.rf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}
.rf-card {
    background: #111214;
    border: 1px solid #1e1e22;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: border-color 0.15s;
    text-decoration: none !important;
    display: block;
    color: inherit;
}
.rf-card:hover { border-color: #3a3a3e; }
.rf-card-series {
    font-size: 10px;
    color: #c0392b;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.rf-card-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}
.rf-card-meta { display: flex; flex-direction: column; gap: 4px; }
.rf-card-meta-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #666;
}
.rf-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #1e1e22;
}
.rf-event-type-badge {
    background: #1e1e22;
    color: #aaa;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Calendar strip */
.rf-cal-strip {
    background: #111214;
    border: 1px solid #1e1e22;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 28px;
}
.rf-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.rf-cal-month {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}
.rf-cal-nav { display: flex; gap: 6px; }
.rf-cal-nav a {
    background: #1e1e22;
    border: 1px solid #2a2a2e;
    color: #aaa;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none;
}
.rf-cal-nav a:hover { background: #2a2a2e; color: #fff; }
.rf-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}
.rf-cal-day-label {
    font-size: 10px;
    color: #555;
    padding: 4px 0;
    font-weight: 500;
}
.rf-cal-day {
    font-size: 12px;
    color: #555;
    padding: 6px 4px;
    border-radius: 5px;
    position: relative;
    line-height: 1;
}
.rf-cal-day.has-event {
    color: #e8e8e8;
    background: #1a1a1e;
    cursor: pointer;
}
.rf-cal-day.has-event:hover { background: #222226; }
.rf-cal-day.today {
    color: #fff;
    font-weight: 700;
    background: #1e1212;
    border: 1px solid rgba(192,57,43,0.35);
}
.rf-cal-day .dot {
    width: 4px;
    height: 4px;
    background: #c0392b;
    border-radius: 50%;
    margin: 2px auto 0;
}

/* Mobile bottom nav */
.rf-bottom-nav {
    background: #111214;
    border-top: 1px solid #1e1e22;
    display: flex;
    justify-content: space-around;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    position: sticky;
    bottom: 0;
    z-index: 50;
}
.rf-bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: #555;
    cursor: pointer;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif;
}
.rf-bnav-item.active { color: #c0392b; }
.rf-bnav-item:hover { color: #aaa; }
.rf-bnav-icon { font-size: 18px; }

/* Filter JS hide/show */
.rf-card[data-type].hidden-by-filter { display: none; }

@media (max-width: 576px) {
    .rf-hero-title { font-size: 28px; }
    .rf-featured { flex-direction: column; }
    .rf-track-thumb { display: none; }
    .rf-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
    .rf-grid { grid-template-columns: 1fr; }
}