.usec-events-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 60px 0px;
    color: inherit;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

.usec-events-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    /* color: #d4af37; */
    margin-bottom: 60px;
}

.usec-events-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.usec-event-card {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    padding: 35px 40px;
    position: relative;
    color: #fff;
    min-height: 150px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

/* Global color override: single background/text color for all cards */
.usec-event-card.usec-global-colors {
    background: none;
    background-color: var(--usec-card-bg-color, #333333);
    color: var(--usec-card-text-color, #ffffff);
}

.usec-event-card.usec-global-colors .usec-event-title {
    color: inherit;
}

.usec-event-card.usec-global-colors .usec-event-toggle {
    color: inherit;
    border-color: currentColor;
}

.usec-event-card.usec-global-colors .usec-view-details {
    color: inherit;
}

.usec-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ---------- Dual noise overlay for pronounced grain ---------- */
.usec-event-card.usec-has-noise::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    /* Two noise textures – light & dark */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='0.7'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='8' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)' opacity='0.7'/%3E%3C/svg%3E");
    background-repeat: repeat, repeat;
    background-size: 40px 40px, 40px 40px; /* denser */
    background-blend-mode: screen, multiply; /* light specks + dark specks */
    opacity: 0.6; /* stronger */
    filter: contrast(3) brightness(0.9);
}

/* Apply mix-blend-mode for all noise styles */
.usec-event-card.usec-noise-css::before,
.usec-event-card.usec-noise-dots::before {
    mix-blend-mode: overlay; /* visible speckles without broad haze */
}

/* SVG and Grain get special treatment for better visibility */
.usec-event-card.usec-noise-svg::before,
.usec-event-card.usec-noise-grain::before {
    mix-blend-mode: overlay; /* stronger speckles with cast underneath */
    opacity: var(--usec-noise-opacity, 0.40);
    filter: contrast(2.8) brightness(0.92);
}

/* CSS-based noise texture */
.usec-event-card.usec-noise-css::before {
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(0,0,0,.03) 35px, rgba(0,0,0,.03) 70px);
    background-size: 100px 100px;
}

/* SVG filter noise - similar to CodePen example */
.usec-event-card.usec-noise-svg::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* Dotted noise pattern */
.usec-event-card.usec-noise-dots::before {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Grain texture - Subtle SVG noise pattern */
.usec-event-card.usec-noise-grain::before {
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='4' seed='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.6'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 30px 30px; /* denser, more visible grain */
}

.usec-event-card > * {
    position: relative;
    z-index: 2;
}

.usec-event-card.usec-has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.usec-event-card.usec-has-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

/* Subtle dark cast beneath content while keeping grain visible */
.usec-event-card.usec-has-noise::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.18);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0; /* below grain so speckles show through */
}

/* Gradients with reduced saturation to match mockup */
.usec-gradient-sunset {
    /* Rust → Olive/Gold */
    background: linear-gradient(90deg, #9B2B0B 0%, #B67B2C 45%, #8CA63A 100%);
}

.usec-gradient-ocean {
    /* Olive → Plum */
    background: linear-gradient(90deg,
        #8CA63A 0%,
        #6B7F3E 35%,
        #6A2A6F 82%,
        #4A1B68 100%
    );
}

.usec-gradient-berry {
    /* Plum → Rust */
    background: linear-gradient(90deg,
        #4A1B68 0%,
        #6E275F 15%,
        #8B343C 50%,
        #C33E13 100%
    );
}

.usec-gradient-forest {
    /* Alternative green to blue gradient */
    background: linear-gradient(135deg, #4CAF50 0%, #2196F3 100%);
}

.usec-gradient-fire {
    /* Alternative red to orange gradient */
    background: linear-gradient(135deg, #E91E63 0%, #FF5722 50%, #FF9800 100%);
}

.usec-event-date {
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.usec-event-day {
    font-size: 72px;
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 5px;
    letter-spacing: -2px;
}

.usec-event-month {
    font-size: 20px;
    font-weight: 500;
    text-transform: capitalize;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

.usec-event-content {
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.usec-event-title {
    font-size: 36px;
    font-weight: 600;
    margin: 0;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.usec-event-excerpt {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 15px;
}

.usec-event-details {
    grid-column: 1 / -1;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.usec-event-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 400;
    opacity: 0.95;
}

.usec-event-description p {
    margin: 0 0 15px 0;
}

.usec-event-meta {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.9;
    font-weight: 500;
}

.usec-event-meta p {
    margin: 0 0 8px 0;
}

.usec-event-toggle {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

/* Button is visible on both desktop and mobile */
.usec-event-toggle {
    display: inline-block;
}

.usec-event-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.usec-event-toggle.active {
    background: rgba(255, 255, 255, 0.2);
}

.usec-event-link {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.usec-view-details {
    color: #fff;
    text-decoration: underline;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.usec-view-details:hover {
    opacity: 0.8;
    color: #fff;
}

.usec-no-events {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

@media (max-width: 1024px) {
    .usec-events-container {
        padding: 50px 40px;
    }
    
    .usec-event-card {
        grid-template-columns: 100px 1fr auto;
        padding: 30px;
    }
    
    .usec-event-day {
        font-size: 48px;
    }
    
    .usec-event-month {
        font-size: 18px;
    }
    
    .usec-event-title {
        font-size: 28px;
    }
    
    .usec-event-content {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .usec-events-container {
        padding: 30px 20px;
    }
    
    .usec-event-card {
        display: flex;
        flex-wrap: wrap;
        padding: 25px 20px;
        text-align: left;
    }
    
    .usec-event-date {
        flex: 0 0 80px;
        text-align: center;
        margin-right: 20px;
    }
    
    .usec-event-day {
        font-size: 42px;
        line-height: 1;
        margin-bottom: 0;
    }
    
    .usec-event-month {
        font-size: 16px;
    }
    
    .usec-event-content {
        flex: 1;
        padding: 0;
        min-width: 0;
    }
    
    .usec-event-title {
        font-size: 26px;
        margin: 0 0 10px 0;
        line-height: 1.3;
        padding-top: 5px;
    }
    
    /* Button placement on mobile */
    .usec-event-toggle {
        display: block;
        width: 100%;
        padding: 10px 20px;
        font-size: 14px;
        margin: 15px 0 0 0;
    }
    
    /* Move button when expanded */
    .usec-event-card.has-expanded-details .usec-event-toggle {
        order: 10;
    }
    
    .usec-event-details {
        flex: 1 1 100%;
        width: 100%;
        margin: 20px 0 0 0;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        order: 5;
    }
    
    .usec-event-description {
        font-size: 16px;
    }
    
    .usec-event-meta {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .usec-events-container {
        padding: 40px 15px;
    }
    
    .usec-events-title {
        font-size: 18px;
        letter-spacing: 3px;
    }
    
    .usec-event-card {
        padding: 25px 20px;
    }
    
    .usec-event-day {
        font-size: 42px;
    }
    
    .usec-event-month {
        font-size: 16px;
    }
    
    .usec-event-title {
        font-size: 22px;
    }
    
    .usec-event-toggle {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Load More spacing: keep button close to last card */
.usec-load-more-container {
    text-align: center;
    margin-top: 14px;
    padding-top: 0;
}

.usec-load-more-ajax {
    background: transparent;
    border: 2px solid #d4af37;
    color: #d4af37;
    padding: 12px 24px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}

.usec-load-more-ajax:hover {
    background: #d4af37;
    color: #000;
}
