/* css/events.css */

/* --- 1. Compact Hero --- */
.hero-compact {
    background-color: var(--deep-blue);
    color: var(--white);
    position: relative;
    padding: 110px 30px 40px;
    text-align: center;
}

.hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.hero-compact h1 {
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin: 0;
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(62, 92, 154, 0.15) 0%, rgba(42, 64, 104, 0) 70%);
    z-index: 1; pointer-events: none;
}
.hero-content { z-index: 2; position: relative; }


/* --- 2. Sticky Nav --- */
.events-nav-bar {
    position: sticky;
    top: 70px;
    z-index: 90;
    margin-left:10px;
    background: rgba(255, 255, 255, 0.90);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 10px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.events-nav-bar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.nav-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.year-form { flex-shrink: 0; }

.select-wrapper {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.select-wrapper:hover { border-color: #cbd5e1; background: #fff; }
.select-wrapper i { color: var(--primary-blue); margin-right: 6px; }
.select-wrapper select { border: none; background: transparent; font-weight: 600; color: #334155; outline: none; cursor: pointer; }

.event-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
}
.event-tabs::-webkit-scrollbar { display: none; }

.tab-link {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: normal;
    word-break: break-word;
    transition: all 0.2s ease;
    background: transparent;
}
.tab-link:hover { background: #f1f5f9; color: var(--deep-blue); }
.tab-link.active { background: var(--deep-blue); color: #fff; box-shadow: 0 2px 8px rgba(30, 41, 59, 0.2); }


/* --- 3. Events Layout --- */
.events-main-wrapper { background-color: #f8fafc; min-height: 100vh; }

.events-container {
    max-width: 960px;
    margin: 0px auto 0px;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Event Card */
.event-card {
    background: #fff;
    border: none;
    border-radius: 2px;
    overflow: hidden; 
    display: flex;
    flex-direction: row;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-items: stretch; 
    padding: 15px 10px;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.event-card.reverse { flex-direction: row-reverse; }


/* --- 4. Slideshow (Padded) --- */
.slideshow-wrapper {
    position: relative;
    width: 35%; 
    min-width: 280px;
    aspect-ratio: 4 / 3; 
    background: #e2e8f0;
    overflow: hidden; 
    flex-shrink: 0;
    
    /* CHANGE: Reduce from 12px to 6px (This shrinks the top/bottom white space) */
    padding: 0px; 
}
.slide-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
}

.slide-img {
    width: 100%;
    min-width: 100%; 
    height: 100%;    
    object-fit: cover; 
    flex-shrink: 0;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Navigation Buttons */
.slide-btn {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    width: 36px; 
    height: 36px; 
    background: rgba(255,255,255, 0.95);
    border: none; 
    border-radius: 50%; 
    cursor: pointer;
    color: var(--deep-blue); 
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0; 
    transition: opacity 0.2s, transform 0.2s; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 10; 
}

.slideshow-wrapper:hover .slide-btn { opacity: 1; }
.slide-btn:hover { transform: translateY(-50%) scale(1.1); background: #fff; }
.slide-btn.prev { left: 16px; }
.slide-btn.next { right: 16px; }


/* --- 5. Content Side --- */
.event-content {
    flex: 1;
    padding: 12px 24px; /* Slightly more side padding */
    display: flex;
    flex-direction: column;
    
    /* FIX: Align items to start (top) instead of center to help "shift up" look */
    justify-content: flex-start; 
}

.content-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    
    /* FIX: Align top so date stays put even if title wraps */
    align-items: flex-start; 
    flex-wrap: wrap;
    gap: 15px;
}

.event-title {
    font-family: var(--font-serif);
    
    /* FIX: Bigger Font Size */
    font-size: 1.8rem; 
    font-weight: 700;
    color: var(--deep-blue);
    
    /* FIX: Shift Up visually by removing default top spacing */
    margin: 0; 
    
    line-height: 1.1; /* Tighter line height for large text */
    flex: 1; /* Allow title to take available space */
}

.event-date {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    
    /* FIX: Add slight top margin to align with the larger title text baseline */
    margin-top: 2px;
}

.event-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 12px;
}

.event-points {
    margin: 0;
    padding-left: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    list-style: none;
}

.event-points ul { margin-top: 4px; padding-left: 15px; }

.event-points > li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
}

.event-points > li::before {
    content: "•";
    color: var(--primary-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em; /* Slightly larger bullet */
    line-height: 1;
}

.empty-state { text-align: center; padding: 60px 20px; color: #94a3b8; }
.placeholder-slide { height: 100%; display: flex; align-items: center; justify-content: center; color: #cbd5e1; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 850px) {
    .events-nav-bar {
        margin-left: 0;
    }

    .nav-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 12px;
    }

    .year-form, .select-wrapper {
        width: 100%;
    }

    .select-wrapper select {
        width: 100%;
    }

    .event-tabs {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
        width: 100%;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }

    .event-tabs::-webkit-scrollbar { display: none; }

    .tab-link {
        white-space: nowrap !important;
        word-break: keep-all !important;
        font-size: 0.78rem;
        padding: 6px 12px;
        flex-shrink: 0;
        display: inline-block;
    }

    /* Fix card layout */
    .event-card, .event-card.reverse {
        flex-direction: column !important;
    }

    .slideshow-wrapper {
        width: 100% !important;
        min-width: unset !important;
        aspect-ratio: 16 / 9;
    }

    .event-content {
        padding: 15px !important;
    }

    .event-title {
        font-size: 1.3rem !important;
    }

    .content-header {
        flex-direction: column;
        gap: 8px;
    }

    .event-date {
        white-space: normal;
    }
}