/* ===========================
   MODERN EVENTS SECTION STYLING
   =========================== */

/* Section Base */
.events-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Section Header */
.section-header {
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Enhanced Featured Event Card */
.featured-event-container {
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.featured-event-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
}

.featured-event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.featured-event-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.2);
}

.featured-event-card:hover::before {
    opacity: 1;
}

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

.event-hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.event-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.event-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 25px;
}

.featured-event-card:hover .event-badge {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.6);
}

/* Enhanced Event Content */
.event-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(10px);
}

.event-meta {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.event-date,
.event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.event-date i,
.event-location i {
    color: #3b82f6;
    font-size: 1rem;
}

.event-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    position: relative;
}

.event-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.featured-event-card:hover .event-title::after {
    width: 120px;
}

.event-description {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Countdown Timer */
.countdown-section {
    margin-bottom: 40px;
}

.countdown-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-timer {
    display: flex;
    gap: 16px;
}

.countdown-item {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    min-width: 80px;
    transition: all 0.3s ease;
}

.countdown-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.countdown-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 4px;
}

.countdown-unit {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Action Buttons */
.event-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary-modern,
.btn-secondary-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary-modern {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary-modern {
    background: transparent;
    color: #3b82f6;
    border-color: #3b82f6;
}

.btn-secondary-modern:hover {
    background: #3b82f6;
    color: white;
    text-decoration: none;
}

/* Enhanced Other Events Section */
.other-events-section {
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.other-events-title {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
}

.other-events-title::before {
    content: '✨';
    position: absolute;
    left: 50%;
    top: -40px;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0.7;
}

.other-events-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 2px;
}

.other-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.mini-event-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.mini-event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mini-event-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
    background: white;
}

.mini-event-card:hover::before {
    opacity: 1;
}

.mini-event-date {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    min-width: 85px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    overflow: hidden;
}

.mini-event-date::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 16px;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
}

.mini-event-card:hover .mini-event-date {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.mini-event-card:hover .mini-event-date::before {
    transform: translateX(0);
}

.mini-event-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.mini-event-date .month {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
}

.mini-event-content {
    flex: 1;
}

.mini-event-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}

.mini-event-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.mini-event-location i {
    color: #3b82f6;
}

.mini-event-link {
    color: #3b82f6;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    background: #f1f5f9;
}

.mini-event-link:hover {
    background: #3b82f6;
    color: white;
    text-decoration: none;
}

/* No Events State */
.no-events-container {
    text-align: center;
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.no-events-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.no-events-title {
    font-size: 2rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 16px;
}

.no-events-text {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* Enhanced Section CTA */
.section-cta {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 32px;
    padding: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.section-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.section-cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(139, 92, 246, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    transition: transform 0.3s ease;
}

.section-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-30%, 30%);
    transition: transform 0.3s ease;
}

.section-cta:hover::before {
    transform: translate(25%, -25%) scale(1.1);
}

.section-cta:hover::after {
    transform: translate(-25%, 25%) scale(1.1);
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.cta-text {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin: 0;
}

.btn-outline-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.btn-outline-modern.large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

.btn-outline-modern:hover {
    background: white;
    color: #1e293b;
    border-color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
    
    .featured-event-card {
        grid-template-columns: 1fr;
    }
    
    .event-hero-image {
        height: 300px;
    }
    
    .event-content {
        padding: 40px;
    }
    
    .section-cta {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .events-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    .featured-event-container {
        margin-bottom: 60px;
    }
    
    .event-content {
        padding: 32px;
    }
    
    .event-title {
        font-size: 2rem;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .countdown-timer {
        gap: 12px;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 12px 8px;
    }
    
    .countdown-value {
        font-size: 1.75rem;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .other-events-grid {
        grid-template-columns: 1fr;
    }
    
    .mini-event-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .events-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .event-content {
        padding: 24px;
    }
    
    .event-title {
        font-size: 1.75rem;
    }
    
    .btn-primary-modern,
    .btn-secondary-modern {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
    
    .section-cta {
        padding: 32px 24px;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
}