/* ============================================
   EVENT PAGE - Index & Show
   ============================================ */

/* ---- Hero ---- */
.event-hero {
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    color: white;
    padding: 70px 20px;
    text-align: center;
}

.event-hero h1 {
    font-size: 40px;
    margin-bottom: 12px;
    font-weight: 700;
}

.event-hero p {
    font-size: 17px;
    opacity: 0.95;
}

/* ---- Breadcrumb ---- */
.event-breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

.event-breadcrumb a {
    color: #1a6fa8;
    text-decoration: none;
}

.event-breadcrumb a:hover {
    text-decoration: underline;
}

/* ---- Content ---- */
.event-content-section {
    background: #f5f7fa;
    padding: 50px 0;
}

.event-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.event-section-title h2 {
    font-size: 26px;
    color: #0d2b4e;
    margin: 0;
    font-weight: 700;
}

/* ---- Filter ---- */
.event-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.event-filter-btn {
    padding: 8px 20px;
    background: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.event-filter-btn:hover,
.event-filter-btn.active {
    background: #1a6fa8;
    color: white;
    border-color: #1a6fa8;
}

/* ---- Event Timeline (Upcoming) ---- */
.event-timeline {
    position: relative;
    padding-left: 70px;
    margin-bottom: 50px;
}

.event-timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 45px;
}

.event-timeline-item:last-child {
    margin-bottom: 0;
}

.event-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: -46px;
    top: 60px;
    bottom: -45px;
    width: 0;
    border-left: 3px dotted #ffd93d;
}

.event-date-badge {
    position: absolute;
    left: -70px;
    top: 0;
    width: 56px;
    height: 56px;
    background: #ffd93d;
    color: #0d2b4e;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.event-date-badge .day {
    font-size: 18px;
    line-height: 1.1;
}

.event-date-badge .month {
    font-size: 11px;
    text-transform: uppercase;
    line-height: 1.1;
}

.event-timeline-poster {
    width: 320px;
    height: 210px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.event-timeline-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-timeline-poster .event-poster-placeholder {
    font-size: 48px;
}

.event-timeline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

.event-timeline-title {
    font-size: 24px;
    color: #0d2b4e;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.event-timeline-location {
    color: #1a6fa8;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-timeline-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    max-height: 66px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-timeline-btn {
    align-self: flex-start;
    margin-top: 8px;
    display: inline-block;
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    color: white;
    padding: 10px 26px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.event-timeline-btn:hover {
    box-shadow: 0 4px 15px rgba(26, 111, 168, 0.4);
    transform: translateY(-2px);
}

/* ---- Event Grid (Poster style) ---- */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 50px;
}

.event-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

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

.event-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    overflow: hidden;
}

.event-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: rgba(255, 255, 255, 0.6);
}

.event-status-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a6fa8;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.event-card-title {
    font-size: 17px;
    color: #0d2b4e;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
}

.event-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
}

.event-btn-detail {
    margin-top: auto;
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
    color: white;
    padding: 11px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.event-btn-detail:hover {
    box-shadow: 0 4px 15px rgba(26, 111, 168, 0.4);
}

/* ---- Empty state ---- */
.event-empty {
    text-align: center;
    padding: 70px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.event-empty-icon {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.event-empty h3 {
    color: #0d2b4e;
    margin-bottom: 8px;
}

.event-empty p {
    color: #999;
}

/* ---- Pagination ---- */
.event-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* ============================================
   EVENT SHOW (Detail)
   ============================================ */
.event-detail-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
}

.event-detail-poster {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #0d2b4e 0%, #1a6fa8 100%);
}

.event-detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-detail-main {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.event-detail-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.event-detail-title {
    font-size: 30px;
    color: #0d2b4e;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.event-detail-meta {
    display: grid;
    gap: 14px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #444;
}

.event-meta-icon {
    width: 38px;
    height: 38px;
    background: #eef4fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.event-detail-desc {
    line-height: 1.8;
    color: #555;
    font-size: 15px;
    margin-bottom: 25px;
}

/* ---- Related events ---- */
.event-related-section {
    margin-top: 50px;
}

.event-related-title {
    font-size: 24px;
    color: #0d2b4e;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

/* ---- Back button ---- */
.event-back-wrap {
    text-align: center;
    margin-top: 35px;
}

.event-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #1a6fa8;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #1a6fa8;
    transition: all 0.3s;
}

.event-btn-back:hover {
    background: #1a6fa8;
    color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .event-detail-grid {
        grid-template-columns: 1fr;
    }

    .event-detail-poster {
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .event-hero { padding: 45px 20px; }
    .event-hero h1 { font-size: 26px; }
    .event-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
    .event-card-body { padding: 14px; }
    .event-card-title { font-size: 15px; }
    .event-detail-main { padding: 22px; }
    .event-detail-title { font-size: 22px; }
}