/**
 * Vista Events Frontend Styles
 * 
 * @package Vista_Events
 * @since 1.0.0
 */

/* ==== Event Cards ==== */
.vista-event-card {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vista-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.vista-event-card-image {
    position: relative;
    overflow: hidden;
}

.vista-event-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.vista-event-virtual-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--e-global-color-secondary, #007cba);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.vista-event-card-content {
    padding: 20px;
}

.vista-event-card-date {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    margin-bottom: 15px;
    min-width: 80px;
    float: left;
    margin-right: 15px;
}

.vista-event-date-month {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
}

.vista-event-date-day {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.vista-event-date-time {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.vista-event-card-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    line-height: 1.3;
}

.vista-event-card-title a {
    color: #333;
    text-decoration: none;
}

.vista-event-card-title a:hover {
    color: var(--e-global-color-secondary, #007cba);
}

.vista-event-card-excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.vista-event-card-meta {
    margin-bottom: 15px;
    clear: both;
}

.vista-event-card-location,
.vista-event-card-organizer {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.vista-event-location-icon,
.vista-event-organizer-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* ==== Event Buttons ==== */
.vista-event-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
    cursor: pointer;
}

.vista-event-button-primary {
    background-color: var(--e-global-color-secondary, #007cba);
    color: white;
}

.vista-event-button-primary:hover {
    background-color: var(--e-global-color-secondary-dark, #005a87);
    color: white;
}

.vista-event-button-secondary {
    background-color: #6c757d;
    color: white;
}

.vista-event-button-secondary:hover {
    background-color: #545b62;
    color: white;
}

.vista-event-button-outline {
    background-color: transparent;
    color: var(--e-global-color-secondary, #007cba);
    border: 2px solid var(--e-global-color-secondary, #007cba);
}

.vista-event-button-outline:hover {
    background-color: var(--e-global-color-secondary, #007cba);
    color: white;
}

.vista-event-button-small {
    padding: 6px 12px;
    font-size: 12px;
}

.vista-event-button-medium {
    padding: 10px 20px;
    font-size: 14px;
}

.vista-event-button-large {
    padding: 14px 28px;
    font-size: 16px;
}

.vista-event-button-icon {
    margin-right: 5px;
}

/* ==== Event Lists ==== */
.vista-events-list-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.vista-events-grid-2-columns {
    grid-template-columns: repeat(2, 1fr);
}

.vista-events-grid-3-columns {
    grid-template-columns: repeat(3, 1fr);
}

.vista-events-grid-4-columns {
    grid-template-columns: repeat(4, 1fr);
}

/* ==== Event Details ==== */
.vista-event-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.vista-event-details-table th,
.vista-event-details-table td {
    padding: 10px;
    border: 1px solid #e1e5e9;
    text-align: left;
}

.vista-event-details-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    width: 30%;
}

.vista-event-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vista-event-details-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e1e5e9;
}

.vista-event-details-list li:last-child {
    border-bottom: none;
}

/* ==== Organizer Cards ==== */
.vista-organizer-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}

.vista-organizer-card-photo {
    flex-shrink: 0;
}

.vista-organizer-card-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.vista-organizer-card-content {
    flex: 1;
}

.vista-organizer-card-name {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
}

.vista-organizer-card-title {
    color: #666;
    margin: 0 0 5px 0;
    font-size: 14px;
    font-style: italic;
}

.vista-organizer-card-organization {
    color: #555;
    margin: 0 0 10px 0;
    font-size: 14px;
}

.vista-organizer-card-bio {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.vista-organizer-card-contact {
    margin-bottom: 10px;
}

.vista-organizer-card-contact a {
    display: inline-block;
    margin-right: 15px;
    color: var(--e-global-color-secondary, #007cba);
    text-decoration: none;
    font-size: 14px;
}

.vista-organizer-card-contact a:hover {
    text-decoration: underline;
}

.vista-organizer-card-social a {
    display: inline-block;
    margin-right: 10px;
    color: var(--e-global-color-secondary, #007cba);
    text-decoration: none;
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid var(--e-global-color-secondary, #007cba);
    border-radius: 4px;
}

.vista-organizer-card-social a:hover {
    background-color: var(--e-global-color-secondary, #007cba);
    color: white;
}

/* ==== Countdown Timer ==== */
.vista-event-countdown {
    text-align: center;
    margin: 20px 0;
}

.vista-countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.vista-countdown-unit {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    min-width: 80px;
}

.vista-countdown-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.vista-countdown-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-top: 5px;
}

.vista-event-countdown-digital .vista-countdown-unit {
    background: #333;
    color: #0f0;
    border: 2px solid #555;
}

.vista-event-countdown-digital .vista-countdown-number {
    color: #0f0;
    font-family: 'Courier New', monospace;
}

.vista-event-countdown-digital .vista-countdown-label {
    color: #0f0;
}

/* ==== Upcoming Events ==== */
.vista-upcoming-events {
    margin-bottom: 30px;
}

.vista-upcoming-events-title {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid var(--e-global-color-secondary, #007cba);
    padding-bottom: 5px;
}

.vista-upcoming-events-list {
    display: grid;
    gap: 20px;
}

/* ==== Responsive Design ==== */
@media (max-width: 768px) {
    .vista-events-grid-2-columns,
    .vista-events-grid-3-columns,
    .vista-events-grid-4-columns {
        grid-template-columns: 1fr;
    }
    
    .vista-event-card-date {
        float: none;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .vista-organizer-card {
        flex-direction: column;
        text-align: center;
    }
    
    .vista-countdown-timer {
        gap: 10px;
    }
    
    .vista-countdown-unit {
        min-width: 60px;
        padding: 10px;
    }
    
    .vista-countdown-number {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .vista-event-card-content {
        padding: 15px;
    }
    
    .vista-countdown-timer {
        gap: 5px;
    }
    
    .vista-countdown-unit {
        min-width: 50px;
        padding: 8px;
    }
    
    .vista-countdown-number {
        font-size: 16px;
    }
}

/* ==== Utility Classes ==== */
.vista-events-no-results,
.vista-events-no-upcoming,
.vista-events-error {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 20px 0;
}

.vista-events-error {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* ==== Accessibility ==== */
.vista-event-card:focus-within {
    outline: 2px solid var(--e-global-color-secondary, #007cba);
    outline-offset: 2px;
}

.vista-event-button:focus {
    outline: 2px solid var(--e-global-color-secondary, #007cba);
    outline-offset: 2px;
}

/* ==== Vista Events Timeline - Matches UI Mockup ==== */
.vista-events-timeline {
    max-width: 100%;
    margin: 0 auto;
    font-family: var(--vista-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.vista-events-month-header {
    margin: 40px 0 30px 0;
}

.vista-events-month-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.vista-events-month-group {
    margin-bottom: 40px;
}

.vista-timeline-event-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.vista-timeline-event-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Image Section */
.vista-timeline-event-image {
    flex-shrink: 0;
    width: 280px;
    height: 200px;
    overflow: hidden;
}

.vista-timeline-event-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.vista-timeline-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vista-timeline-event-card:hover .vista-timeline-featured-image {
    transform: scale(1.05);
}

/* Content Section */
.vista-timeline-event-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Tags */
.vista-timeline-event-tags {
    margin-bottom: 12px;
}

.vista-event-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-right: 8px;
    margin-bottom: 4px;
}

.vista-event-tag-in-person {
    background-color: #10b981;
    color: white;
}

.vista-event-tag-virtual {
    background-color: #3b82f6;
    color: white;
}

.vista-event-tag-type {
    background-color: #64748b;
    color: white;
}

/* Header */
.vista-timeline-event-header {
    margin-bottom: 16px;
}

.vista-timeline-event-title {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.vista-timeline-event-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vista-timeline-event-title a:hover {
    color: #059669;
}

.vista-timeline-event-description {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Meta Information */
.vista-timeline-event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vista-timeline-event-date,
.vista-timeline-event-organizer,
.vista-timeline-event-price {
    display: flex;
    align-items: center;
}

.vista-event-meta-label {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
}

.vista-timeline-event-date .vista-event-meta-label {
    color: #059669;
}

/* Action Section */
.vista-timeline-event-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.vista-timeline-event-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #10b981;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.vista-timeline-event-arrow:hover {
    background-color: #059669;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.vista-timeline-event-arrow svg {
    transition: transform 0.2s ease;
}

.vista-timeline-event-arrow:hover svg {
    transform: translateX(2px);
}

/* Empty State */
.vista-events-timeline-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 1.1rem;
}

/* Responsive Design for Timeline */
@media (max-width: 768px) {
    .vista-timeline-event-card {
        flex-direction: column;
        margin-bottom: 20px;
    }
    
    .vista-timeline-event-image {
        width: 100%;
        height: 200px;
    }
    
    .vista-timeline-event-content {
        padding: 20px;
    }
    
    .vista-timeline-event-action {
        padding: 16px 20px;
    }
    
    .vista-events-month-title {
        font-size: 1.75rem;
    }
    
    .vista-timeline-event-title {
        font-size: 1.25rem;
    }
    
    .vista-timeline-event-meta {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .vista-timeline-event-content {
        padding: 16px;
    }
    
    .vista-events-month-title {
        font-size: 1.5rem;
    }
    
    .vista-timeline-event-title {
        font-size: 1.1rem;
    }
    
    .vista-event-tag {
        font-size: 11px;
        padding: 3px 10px;
    }
}

/* ===================================
   Vista Event Posts (Vertical Cards)
   =================================== */

.vista-event-posts-grid {
    display: grid;
    gap: 24px;
    margin: 20px 0;
}

.vista-event-posts-col-1 {
    grid-template-columns: 1fr;
}

.vista-event-posts-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.vista-event-posts-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.vista-event-posts-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

.vista-event-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vista-event-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.vista-event-post-image {
    position: relative;
    width: 100%;
    padding-top: 60%; /* 5:3 aspect ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.vista-event-post-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.vista-event-post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vista-event-post-card:hover .vista-event-post-image img {
    transform: scale(1.05);
}

.vista-event-virtual-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--e-global-color-secondary, #007cba);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.vista-event-post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vista-event-post-title,
h3.vista-event-post-title {
    margin: 0 0 12px 0;
    font-size: 22px !important;
    font-weight: 600;
    line-height: 1.4;
}

.vista-event-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vista-event-post-title a:hover {
    color: var(--e-global-color-secondary, #007cba);
}

.vista-event-post-date,
.vista-event-post-time,
.vista-event-post-location,
.vista-event-post-cost {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.vista-event-post-date .dashicons,
.vista-event-post-time .dashicons,
.vista-event-post-location .dashicons,
.vista-event-post-cost .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--e-global-color-secondary, #007cba);
}

/* Flexible Schedule Badge in Event Post Cards */
.vista-event-post-date .vista-flexible-schedule-badge {
    background: #f39c12 !important;
    background-color: #f39c12 !important;
    color: #ffffff !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3) !important;
    display: inline-block !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.vista-event-post-excerpt {
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.vista-event-post-button {
    display: inline-block;
    margin-top: auto;
    padding: 10px 20px;
    background: #fff;
    color: var(--e-global-color-secondary, #951103);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}

.vista-event-post-button:hover {
    background: var(--e-global-color-secondary, #951103) !important;
    color: #fff !important;
}

.vista-no-events {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Responsive Breakpoints: 4 → 3 → 2 → 1 */

/* Tablet Large: 4 columns become 3 columns */
@media (max-width: 1200px) {
    .vista-event-posts-col-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet: 4 and 3 columns become 2 columns */
@media (max-width: 992px) {
    .vista-event-posts-col-4,
    .vista-event-posts-col-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: All columns become 1 column, horizontal card layout */
@media (max-width: 600px) {
    .vista-event-posts-col-2,
    .vista-event-posts-col-3,
    .vista-event-posts-col-4 {
        grid-template-columns: 1fr;
    }

    .vista-event-posts-grid {
        gap: 16px;
    }

    /* Horizontal card layout: image left, content right */
    .vista-event-post-card {
        flex-direction: row !important;
        height: auto;
        align-items: stretch;
    }

    /* Image on the left - 30% width, matches content height */
    .vista-event-post-image {
        width: 30% !important;
        min-width: 30%;
        max-width: 30%;
        padding-top: 0 !important;
        flex-shrink: 0;
        align-self: stretch;
        display: flex;
        align-items: stretch;
    }

    .vista-event-post-image a {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: stretch;
    }

    .vista-event-post-image img {
        position: relative;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Content on the right - 70% width, left-aligned */
    .vista-event-post-content {
        width: 70% !important;
        padding: 12px 16px;
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
    }

    .vista-event-post-title,
    h3.vista-event-post-title {
        font-size: 16px !important;
        font-weight: 600 !important;
        margin-bottom: 8px;
        line-height: 1.3;
        text-align: left;
    }

    .vista-event-post-title a {
        text-align: left;
    }

    .vista-event-post-date,
    .vista-event-post-time,
    .vista-event-post-location,
    .vista-event-post-cost {
        font-size: 13px;
        margin-bottom: 6px;
        gap: 6px;
        text-align: left;
        justify-content: flex-start;
    }

    .vista-event-post-date .dashicons,
    .vista-event-post-time .dashicons,
    .vista-event-post-location .dashicons,
    .vista-event-post-cost .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }

    .vista-event-post-excerpt {
        font-size: 13px;
        margin: 8px 0;
        line-height: 1.5;
        text-align: left;
    }

    /* Convert button to simple clickable text on mobile */
    .vista-event-post-button {
        display: inline-block !important;
        padding: 0 !important;
        margin-top: 8px !important;
        background: transparent !important;
        color: var(--e-global-color-secondary, #007cba) !important;
        text-decoration: none !important;
        border-radius: 0 !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        border: none !important;
        box-shadow: none !important;
        transition: opacity 0.2s ease !important;
        text-align: left !important;
    }

    .vista-event-post-button:hover {
        background: transparent !important;
        color: var(--e-global-color-secondary, #007cba) !important;
        opacity: 0.7 !important;
        text-decoration: underline !important;
        transform: none !important;
    }

    /* Adjust flexible badge size for mobile */
    .vista-event-post-date .vista-flexible-schedule-badge {
        padding: 4px 10px !important;
        font-size: 10px !important;
    }

    /* Virtual badge positioning for horizontal layout */
    .vista-event-virtual-badge {
        top: 8px;
        right: 8px;
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* ========================================
   FLEXIBLE DATE EVENTS
   ======================================== */

/* Flexible event badge */
.vista-event-flexible-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--e-global-color-accent, #f39c12);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Flexible event info display */
.vista-event-post-flexible-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    padding: 10px;
    background: #fff9e6;
    border-left: 3px solid var(--e-global-color-accent, #f39c12);
    border-radius: 4px;
}

.vista-event-post-flexible-info .dashicons {
    color: var(--e-global-color-accent, #f39c12);
    vertical-align: middle;
}

.vista-flexible-duration {
    font-weight: 600;
    color: var(--e-global-color-text, #23282d);
    font-size: 14px;
}

.vista-flexible-description {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-left: 20px;
}

/* Flexible event card styling - border accent removed per user request */
.vista-event-post-card.vista-event-flexible:hover {
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.15);
}

/* Calendar flexible events section */
.vista-calendar-flexible-section {
    background: #f9f9f9;
    border-top: 2px solid var(--e-global-color-secondary, #951103);
    padding: 20px;
    margin-top: 25px;
    border-radius: 4px;
}

.vista-calendar-flexible-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--e-global-color-primary, #23282d);
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.vista-calendar-flexible-section .vista-event-list-item {
    background: #fff;
    margin-bottom: 10px;
    border-left: 3px solid var(--e-global-color-accent, #f39c12);
}

.vista-calendar-flexible-section .vista-event-list-item:hover {
    border-left-color: var(--e-global-color-accent, #f39c12);
}

/* Single event template - flexible date display */
.vista-event-header.vista-event-flexible .vista-event-header-date-time {
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
    border-left: 4px solid var(--e-global-color-accent, #f39c12);
}

/* Flexible Schedule Badge - High Contrast Tag/Label */
.vista-flexible-schedule-badge {
    display: inline-block;
    background: #f39c12 !important;
    background-color: #f39c12 !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3) !important;
    transition: all 0.2s ease !important;
    line-height: 1.4 !important;
}

/* Ensure badge is visible in header context */
.vista-event-header .vista-flexible-schedule-badge,
.vista-event-datetime .vista-flexible-schedule-badge,
.datetime-content .vista-flexible-schedule-badge {
    background: #f39c12 !important;
    background-color: #f39c12 !important;
    color: #ffffff !important;
}

.vista-flexible-schedule-badge:hover {
    background: #e67e22 !important;
    background-color: #e67e22 !important;
    box-shadow: 0 3px 8px rgba(243, 156, 18, 0.4) !important;
    transform: translateY(-1px);
}

.vista-flexible-schedule-info {
    padding: 10px 12px !important;
    background: #fff9e6;
    border: 1px solid #e6d89c;
    border-radius: 4px;
    margin: 10px 0 !important;
}

.vista-flexible-schedule-info h4 {
    margin: 0 0 6px 0 !important;
    font-size: 14px !important;
    color: #23282d !important;
}

.vista-flexible-schedule-info p {
    color: #23282d !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

.vista-flexible-schedule-info p:first-child {
    margin-bottom: 8px !important;
}

.vista-flexible-schedule-info p + p {
    margin-top: 8px !important;
}

.vista-flexible-schedule-info strong {
    color: #23282d !important;
    font-weight: 600 !important;
    display: inline;
    margin-right: 6px;
    font-size: 13px;
}

.vista-flexible-schedule-info p br {
    display: none;
}

/* Badge inside the info box needs different styling for contrast */
.vista-flexible-schedule-info .vista-flexible-schedule-badge {
    background: #f39c12 !important;
    background-color: #f39c12 !important;
    color: #ffffff !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3) !important;
    margin-bottom: 8px !important;
    display: inline-block !important;
}

.vista-flexible-duration-display {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b !important;
    margin: 12px 0 8px 0;
    line-height: 1.5;
}

.vista-flexible-availability-display {
    font-size: 14px;
    color: #475569 !important;
    margin: 8px 0;
    line-height: 1.6;
}

/* Responsive adjustments for flexible events */
@media (max-width: 600px) {
    .vista-event-flexible-badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    .vista-event-post-flexible-info {
        padding: 8px;
    }

    .vista-flexible-description {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .vista-flexible-schedule-badge {
        font-size: 11px !important;
        padding: 5px 12px !important;
        letter-spacing: 0.5px !important;
    }
    
    .vista-flexible-duration-display {
        font-size: 15px;
    }
    
    .vista-flexible-availability-display {
        font-size: 13px;
    }
}

/* ==== Event Type Archive Title ==== */
.vista-events-archive-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.vista-archive-title {
    font-size: 48px;
    margin-bottom: 1rem;
    color: #1e293b;
    line-height: 1.2;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .vista-events-archive-header {
        padding: 1.5rem 1rem;
    }

    .vista-archive-title {
        font-size: 32px;
        margin-bottom: 0.75rem;
        line-height: 1.25;
    }
}

@media screen and (max-width: 480px) {
    .vista-events-archive-header {
        padding: 1rem 0.875rem;
    }

    .vista-archive-title {
        font-size: 24px;
        margin-bottom: 0.625rem;
        line-height: 1.3;
    }
}
