/* =========================================================
   EVENTS PAGE - CREATIVE & MODERN DESIGN
   ========================================================= */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #1b1b1b;
    background: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =========================================================
   EVENTS HERO SECTION
   ========================================================= */

.events-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.events-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(241, 196, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 43, 73, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.events-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.events-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #002B49;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-family: 'Georgia', serif;
}

.events-subtitle {
    font-size: 1.3rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.5;
}

/* =========================================================
   EVENTS LIST SECTION
   ========================================================= */

.events-list-section {
    padding: 80px 0 100px;
    background: #ffffff;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 0;
}

/* =========================================================
   RECONSTRUCTED EVENT CARD LAYOUT - STUNNING & SPACIOUS
   ========================================================= */

.event-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    margin: 0;
    padding: 0;
}

.event-card:hover {
    transform: translateY(-15px);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.15),
        0 8px 32px rgba(241, 196, 0, 0.12);
    border-color: rgba(241, 196, 0, 0.3);
}

.event-card.featured {
    border: 3px solid #F1C400;
    box-shadow: 
        0 12px 40px rgba(241, 196, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1);
}

.event-card.featured:hover {
    transform: translateY(-20px);
    box-shadow: 
        0 35px 90px rgba(241, 196, 0, 0.25),
        0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Full-Width Image Section */
.event-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 0;
    padding: 0;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
    margin: 0;
    padding: 0;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

/* Title Overlay on Image */
.event-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 43, 73, 0.95) 0%,
        rgba(0, 43, 73, 0.85) 30%,
        rgba(0, 43, 73, 0.7) 60%,
        rgba(0, 43, 73, 0.3) 80%,
        transparent 100%
    );
    padding: 40px 30px 30px;
    color: white;
}

.event-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
    font-family: 'Georgia', serif;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.01em;
}

/* Enhanced Date Badge */
.event-date-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, #002B49 0%, #001a2e 100%);
    color: white;
    padding: 18px 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 80px;
    box-shadow: 
        0 10px 30px rgba(0, 43, 73, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.event-month {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    color: white;
}

.event-day {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: white;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: linear-gradient(135deg, #002B49 0%, #001a2e 100%);
    color: #F1C400;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 8px 24px rgba(0, 43, 73, 0.4);
    border: 2px solid rgba(241, 196, 0, 0.3);
    z-index: 2;
}

/* Spacious Content Section Below Image */
.event-content {
    padding: 40px 35px 35px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: #ffffff;
}

/* Meta Information Grid */
.event-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(241, 243, 244, 0.6) 100%);
    border-radius: 12px;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.event-time,
.event-location {
    font-size: 1rem;
    color: #002B49;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
}

.event-time::before {
    content: "🕐";
    font-size: 1.2rem;
}

.event-location::before {
    content: "📍";
    font-size: 1.2rem;
}

/* Description Text */
.event-description {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    margin: 0;
    text-align: left;
    font-weight: 400;
}

/* Location Detail Box */
.event-location-detail {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(241, 196, 0, 0.08) 0%, rgba(241, 196, 0, 0.04) 100%);
    border-radius: 8px;
    border-left: 5px solid #F1C400;
    margin: 0;
    line-height: 1.6;
}

/* Button Actions */
.event-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: auto;
    padding-top: 25px;
}

.event-btn {
    padding: 16px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.event-btn.primary {
    background: linear-gradient(135deg, #002B49 0%, #001a2e 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 43, 73, 0.25);
}

.event-btn.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 43, 73, 0.35);
    background: linear-gradient(135deg, #001a2e 0%, #002B49 100%);
}

.event-btn.secondary {
    background: rgba(241, 196, 0, 0.1);
    color: #002B49;
    border: 2px solid rgba(241, 196, 0, 0.4);
}

.event-btn.secondary:hover {
    background: #F1C400;
    color: #002B49;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(241, 196, 0, 0.35);
    border-color: #F1C400;
}

/* =========================================================
   ANIMATIONS & INTERACTIONS
   ========================================================= */

.event-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.event-card:nth-child(1) { animation-delay: 0s; }
.event-card:nth-child(2) { animation-delay: 0.1s; }
.event-card:nth-child(3) { animation-delay: 0.2s; }
.event-card:nth-child(4) { animation-delay: 0.3s; }
.event-card:nth-child(5) { animation-delay: 0.4s; }
.event-card:nth-child(6) { animation-delay: 0.5s; }
.event-card:nth-child(7) { animation-delay: 0.6s; }
.event-card:nth-child(8) { animation-delay: 0.7s; }
.event-card:nth-child(9) { animation-delay: 0.8s; }
.event-card:nth-child(10) { animation-delay: 0.9s; }
.event-card:nth-child(11) { animation-delay: 1s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 30px;
    }
    
    .events-hero {
        padding: 120px 0 60px;
    }
    
    .events-list-section {
        padding: 60px 0 80px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .events-hero {
        padding: 100px 0 50px;
    }
    
    .events-title {
        font-size: 2.5rem;
    }
    
    .events-subtitle {
        font-size: 1.1rem;
    }
    
    .event-content {
        padding: 25px;
    }
    
    .event-title {
        font-size: 1.2rem;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .event-btn {
        text-align: center;
        width: 100%;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .events-hero {
        padding: 80px 0 40px;
    }
    
    .events-title {
        font-size: 2rem;
    }
    
    .events-subtitle {
        font-size: 1rem;
    }
    
    .event-content {
        padding: 20px;
    }
    
    .event-image {
        height: 180px;
    }
    
    .event-date-badge {
        top: 15px;
        right: 15px;
        padding: 10px;
        min-width: 50px;
    }
    
    .event-day {
        font-size: 1.3rem;
    }
    
    .featured-badge {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

/* =========================================================
   ACCESSIBILITY & MOTION PREFERENCES
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .event-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .event-card:hover {
        transform: none;
    }
    
    .event-image img {
        transition: none;
    }
    
    .event-card:hover .event-image img {
        transform: none;
    }
}

/* Focus states for accessibility */
.event-btn:focus {
    outline: 2px solid #F1C400;
    outline-offset: 2px;
}

.event-card:focus-within {
    box-shadow: 
        0 0 0 2px #F1C400,
        0 8px 30px rgba(0, 0, 0, 0.15);
}