@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfMZg.ttf) format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuI6fMZg.ttf) format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuGKYMZg.ttf) format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuFuYMZg.ttf) format('truetype');
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.01em;
    font-weight: 400;
    color: #333;
    font-size: 0.9em;
    /* Slight global reduction if needed, but specifically asked for menus */
}

/* Specific Header Reduction */
.header-section h3 {
    font-size: 1.1em;
    /* Reduced from default h3 */
}

h2,
h3,
h4,
.calendar-day-header,
.result-header,
.filter-dropdown-button,
.calendar-month-year {
    font-weight: 600;
    letter-spacing: -0.01em;
}

small,
.result-event,
.time-slot {
    font-weight: 400;
}

/* Layout Grid */
.calendar-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Reducido pero homogeneo */
    width: 100%;
}

/* Zone 1: Calendar */
.calendar-container {
    width: 100%;
    /* Full width as requested */
    margin: 0 auto;
    /* Center it */
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    /* Redondeo */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.calendar-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

/* Desktop: horizontal layout for date picker and title */
@media (min-width: 769px) {
    .calendar-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .date-picker-section {
        flex: 0 0 auto;
        margin-bottom: 0;
    }

    .header-row-title {
        flex: 1;
        text-align: center;
        margin-bottom: 0;
    }

    .header-row-controls {
        flex: 0 0 auto;
    }
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    max-height: 360px;
    /* Reduced by 40% from 600px */
    overflow-y: hidden;
    /* Remove vertical scroll as requested */
}

.calendar-day-header {
    text-align: center;
    font-weight: bold;
    padding: 5px;
    background: #f0f0f0;
    position: sticky;
    /* Keep headers visible if scrolling */
    top: 0;
    z-index: 5;
}

/* Week View Styles */
.week-view-container {
    display: flex;
    flex-direction: column;
    height: 480px;
    /* Doubled from 240px */
    overflow-y: auto;
    border: 1px solid #eee;
    margin-top: 10px;
    position: relative;
}



.week-header-row {
    display: grid;
    grid-template-columns: 50px repeat(3, 1fr);
    /* Time col + 3 days */
    background: #f9f9f9;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #ddd;
    font-size: 0.8em;
    /* Reduced font size for Week Headers */
}

.week-body {
    display: grid;
    grid-template-columns: 50px repeat(3, 1fr);
    position: relative;
    /* 14 hours * 60px/hr = 840px height usually, or flex */
}

.time-column {
    border-right: 1px solid #ddd;
    background: #fff;
}

.time-slot {
    height: 60px;
    /* 1 hour height */
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.75em;
    color: #888;
    text-align: right;
    padding-right: 5px;
    padding-top: 2px;
}

.day-column {
    border-right: 1px solid #eee;
    position: relative;
    background: #fff;
}

.week-event {
    position: absolute;
    left: 2px;
    right: 2px;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 0.7em;
    color: #fff;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 5;
    line-height: 1.2;
}

.view-btn {
    padding: 4px 8px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 5px;
}

.view-btn.active {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

.calendar-day {
    aspect-ratio: 2.66;
    /* Increased ratio to reduce height (approx 40% reduction) */
    border: 1px solid #eee;
    padding: 2px;
    /* Reduced padding */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    /* Stack number and event text */
    justify-content: center;
    /* Center Vertical */
    align-items: center;
    /* Center Horizontal */
    font-size: 0.8em;
    /* Reduced font size */
    border-radius: 4px;
}

.day-event-count {
    font-size: 0.75em;
    font-style: italic;
    color: #666;
    margin-top: 2px;
}

/* Heatmap Colors will be assigned via inline styles or JS classes */

/* Zone 2 + Ficha + Map Container */
/* Zone 2 + Ficha + Map Container */
/* Zone 2 + Ficha + Map Container */
.bottom-section {
    width: 95%;
    margin: 10px auto 0;
    display: grid;
    grid-template-areas:
        "search-filter search-list"
        "details search-list";
    grid-template-columns: 1fr 260px;
    grid-template-rows: auto 1fr;
    gap: 20px;
    height: 800px;
    margin-bottom: 40px;
}

.search-column {
    grid-area: search-list;
    width: 100%;
    /* Reset fixed width */
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.details-column {
    grid-area: details;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 0;
    /* Reset margin */
}

/* The search/filter row */
.search-filter-row {
    grid-area: search-filter;
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    align-self: end;
    /* Align to bottom of its cell if needed */
}

/* Zone 2: Search & Results */
.search-column {
    width: 260px;
    /* Increased width to avoid horizontal scroll */
    height: 100%;
    /* Fill parent height */
    overflow-y: auto;
    /* Independent vertical scroll */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Homogeneo */
    padding-right: 10px;
    /* Extra space for scrollbar */
}

.search-box {
    width: calc(100% - 2px);
    /* Tiny margin to avoid border clipping */
    box-sizing: border-box;
    /* Ensure padding doesn't increase width */
    padding: 12px;
    /* Increased padding */
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    /* Slightly larger font */
}

/* Custom Dropdown for Filters */
.filter-dropdown-container {
    position: relative;
    width: 100%;
}

.filter-dropdown-button {
    width: 100%;
    padding: 12px;
    /* Increased padding */
    border: 1px solid #ccc;
    border-radius: 8px;
    /* Redondeo cajas */
    background: #fff;
    font-size: 1rem;
    /* Slightly larger font */
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.filter-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    padding: 5px;
}

.filter-dropdown-content.show {
    display: block;
}

.filter-option {
    padding: 5px;
    font-size: 0.8em;
    display: flex;
    gap: 5px;
    align-items: center;
    cursor: pointer;
}

.filter-option:hover {
    background-color: #f0f0f0;
}

#search-results {
    flex-grow: 1;
    border: 1px solid #eee;
    padding: 5px;
    background: #f9f9f9;
}

.result-item {
    background: #fff;
    border-radius: 8px;
    /* Redondeo cajas */
    border: 1px solid #ddd;
    padding: 8px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.result-item:hover {
    background: #eef;
}

.result-header {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 3px;
    color: #333;
}

.result-event {
    font-size: 0.8em;
    font-style: italic;
    color: gray;
    /* Oblique simulated if font doesn't support it, but italic is sufficient usually. 
       "inclinadas a la derecha" = italic/oblique */
    transform: skewX(-10deg);
    /* Explicit nudge if regular italic isn't enough */
    display: block;
}

/* Ficha & Map Column */
.details-column {
    flex-grow: 1;
    height: 100%;
    /* Fill parent height */
    overflow-y: auto;
    /* Independent vertical scroll */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 10px;
    /* Extra separation just in case */
    padding-right: 10px;
}

.ficha-container {
    background: #f8f9fa;
    /* Soft background color */
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    /* Redondeo cajas */
}

.map-container {
    flex: none;
    /* Disable flex growth to rely on fixed height */
    height: 250px;
    /* Explicit fixed height (approx 25% reduction from potential ~350px) */
    background: #eee;
    /* Removed border and radius as it is now inside the card */
    margin-top: 15px;
    /* Add spacing from text */
    overflow: hidden;
    /* Ensures content strictly follows border radius */
    position: relative;
    width: 100%;
    /* Ensure full width */
    border-radius: 8px;
    /* Slight radius for internal map */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive tweaks if needed, but "200px fixed" was specific */
/* Responsive tweaks */
@media (max-width: 768px) {
    .calendar-container {
        width: 100%;
        margin-right: auto;
        margin-left: 0;
        padding: 5px;
        box-sizing: border-box;
        /* Fix for overflow */
    }

    /* Prevent horizontal scroll on mobile for month view */
    .calendar-grid {
        gap: 2px;
        /* Reduce gap */
        max-height: none;
        height: auto;
        overflow-y: visible;
        box-sizing: border-box;
    }

    .calendar-day {
        font-size: 0.7em;
        /* Smaller font */
        padding: 1px;
        aspect-ratio: 0.55 !important;
        min-height: 60px;
    }

    .week-view-container {
        height: 400px;
    }

    .bottom-section {
        display: grid;
        /* Ensure grid is used */
        grid-template-areas:
            "search-filter"
            "search-list"
            "details";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        gap: 15px;
    }

    .search-column,
    .details-column,
    .search-filter-row {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* Override .search-column specific mobile height */
    .search-column {
        height: 300px;
        /* Keep fixed height for results scroll */
    }

    .details-column {
        height: auto;
        margin-top: 0;
        /* Clear previous margin */
    }

    .ficha-container {
        flex: none;
        width: 100%;
        height: auto;
        min-height: 200px;
        /* allow growth */
        display: block;
    }

    .map-container {
        flex: none;
        width: 100%;
        height: 300px;
        /* fixed for map */
        min-height: 300px;
        display: block;
    }

    #leaflet-map {
        height: 100% !important;
        width: 100% !important;
    }
}

/* Filter Dropdown Standard Style */
.filter-dropdown-container {
    width: 100%;
    /* Back to full width in column */
}

.filter-dropdown-button {
    width: 100%;
    justify-content: space-between;
}

.countdown-timer {
    color: gray;
    font-size: 0.9em;
    font-style: italic;
    display: block;
    /* Ensure new line if needed */
    margin-top: 2px;
}

/* Search Result Date/Time Header Style */
.result-datetime-header {
    font-size: 0.75em;
    font-style: italic;
    color: #555;
    text-align: left;
    margin-bottom: 2px;
}

/* Refresh Button Style */
.btn-refresh {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-refresh:hover {
    background-color: #2980b9;
}

.btn-refresh:active {
    transform: translateY(1px);
    box-shadow: none;
}

.refresh-discreet-btn {
    background: transparent;
    border: none;
    color: #999;
    font-size: 0.7em;
    cursor: pointer;
    padding: 5px;
    opacity: 0.6;
    transition: opacity 0.3s, color 0.3s;
    text-decoration: underline;
}

.fichas-link-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    flex: 1;
    min-width: 250px;
}

.btn-action {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #4f46e5;
    /* Indigo primary */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
    display: inline-block;
}

.btn-action:hover {
    background-color: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.3);
    color: #ffffff;
}

/* ===================================
   Styles from https://www.osw.mx/css.css
   Added to support main-container layout
   =================================== */

/* Layout Classes */
.main-container {
    width: auto;
    margin: 5px;
}

.separator-bar {
    margin: auto;
    width: 99%;
    background-color: #2e091b;
    height: 25px;
    margin-bottom: 0;
}

.header-section {
    width: 100%;
    background-color: rgba(171, 166, 175, 0.8);
    padding: 5px 0;
    border-radius: 5px;
}

.content-wrapper {
    display: flex;
    width: 100%;
}

.col-spacer {
    display: none;
}

.col-sidebar {
    display: none;
}

.col-main {
    width: 100%;
    vertical-align: top;
    padding-top: 0;
}

.card-ficha {
    margin: 10px;
    background-color: #fcfbfb;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(131, 0, 7, 0.1);
    padding: 40px 25px;
    width: calc(33% - 20px);
    float: left;
    text-align: center;
    font-family: system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-ficha:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(170, 7, 7, 0.15);
    cursor: default;
}

.card-ficha:nth-of-type(3n+1) {
    clear: left;
}

.card-ficha .card-icon {
    margin-bottom: 20px;
    color: #000000;
    display: flex;
    justify-content: center;
}

.card-ficha h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.card-ficha p {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.5;
    margin: 0;
}

.top-adjuster {
    height: 10px;
}

/* Footer Styles from osw.mx */
.site-footer {
    background-color: #2e091b;
    color: #8d8989;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    margin-top: 0px;
    border-radius: 5px;
}

.footer-column {
    flex: 1;
    padding: 10px;
    text-align: center;
}

.footer-column h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.footer-column p {
    margin: 5px 0;
    font-size: 0.8rem;
    padding: 0;
}

.footer-column a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .col-spacer {
        display: none;
    }

    .col-sidebar {
        width: 100%;
        height: 10px;
        min-height: 10px;
    }

    .col-main {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .separator-bar {
        width: 100%;
    }

    .card-ficha {
        float: none;
        width: 80%;
        margin: 10px auto;
        display: block;
    }

    .site-footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 20px;
    }
}

/* ===================================
   Enhanced Calendar Navigation Styles
   =================================== */

/* Date Picker Section */
.date-picker-section {
    display: flex;
    flex-direction: row;
    /* Keep horizontal on desktop */
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.date-picker-label {
    color: white;
    font-weight: 600;
    font-size: 0.9em;
    margin: 0;
}

.date-picker-input {
    padding: 8px 12px;
    border: 2px solid white;
    border-radius: 6px;
    font-size: 0.9em;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-picker-input:hover {
    border-color: #ffd700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.date-picker-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
}

.btn-go-date {
    padding: 8px 20px;
    background: #ffd700;
    color: #333;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===================================
   New Layout: Search & Filter Top Row
   =================================== */

.search-filter-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.search-filter-row .search-box {
    flex: 1;
    width: auto;
    /* Reset fixed width */
    margin: 0;
    /* Reset margins */
}

.search-filter-row .filter-dropdown-container {
    flex: 1;
    width: auto;
    /* Reset fixed width */
}

@media (max-width: 768px) {
    .search-filter-row {
        flex-direction: column;
        gap: 10px;
    }

    .search-filter-row .search-box,
    .search-filter-row .filter-dropdown-container {
        width: 100%;
    }
}

.btn-go-date:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-go-date:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Month/Year Title */
.header-row-title {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

.header-row-title h3 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
    font-weight: 700;
}

/* Navigation Controls */
.header-row-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Navigation Buttons */
.nav-btn {
    padding: 10px 16px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.nav-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.nav-btn-prev svg,
.nav-btn-next svg {
    stroke: currentColor;
}

.nav-btn-today {
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.nav-btn-today:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* View Selector */
.view-selector {
    padding: 10px 16px;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: white;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.view-selector:hover {
    background: #f0f4ff;
    border-color: #764ba2;
}

.view-selector:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 8px rgba(118, 75, 162, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .date-picker-section {
        flex-direction: column;
        gap: 8px;
    }

    .header-row-controls {
        gap: 8px;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 0.85em;
        min-width: 40px;
        min-height: 40px;
    }

    .nav-btn-today {
        padding: 8px 16px;
    }

    .view-selector {
        margin-left: 0;
        width: 100%;
        max-width: 200px;
    }

    .header-row-title h3 {
        font-size: 1.2em;
    }
}

/* ===================================
   Improved Ficha (Event Details) Spacing
   =================================== */

.ficha-container h3 {
    margin-bottom: 12px;
    line-height: 1.4;
    padding-bottom: 6px;
    border-bottom: 2px solid #e0e0e0;
}

.ficha-container p {
    margin-bottom: 10px;
    line-height: 1.5;
    padding: 5px 0;
}

.ficha-container strong {
    display: inline-block;
    min-width: 120px;
    margin-right: 10px;
    color: #667eea;
}

/* Countdown timer spacing */
.countdown-timer {
    display: block;
    margin-top: 5px;
    padding-top: 5px;
    line-height: 1.4;
}

/* Timezone select spacing */
#timezone-select {
    margin-top: 6px;
    margin-bottom: 6px;
}

/* Link spacing in ficha */
.ficha-container a {
    display: inline-block;
    margin-top: 5px;
    padding: 4px 8px;
    background: #f0f4ff;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.ficha-container a:hover {
    background: #667eea;
    color: white;
}

/* New Event Link Container Styles */
.event-link-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: right;
}

.event-link-button-wrap {
    margin-bottom: 8px;
}

.event-link-container .btn-action {
    background: #111827;
    /* Dark charcoal/almost black */
    color: #f9fafb;
    /* Off-white for high contrast */
    border: 2px solid #111827;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 28px;
    font-size: 0.95rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.event-link-container .btn-action:hover {
    background: #374151;
    /* Lighter charcoal on hover */
    border-color: #374151;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.event-link-container .btn-action.btn-success {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
}

.event-url-italic {
    font-size: 0.85rem;
    font-style: italic;
    color: #444;
    /* Darker gray for better contrast */
    word-break: break-all;
    margin-top: 5px;
}

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

    .event-url-italic {
        font-size: 0.75rem;
        display: block;
        margin-top: 5px;
    }
}