﻿/* =====================================
   BASE STYLES (shared across all sizes)
   ===================================== */

/* Hero Section */
.events-hero {
    background-color: #b8c6b3;
    padding: 70px 100px;
    margin-bottom: 30px;
}

/* Grid layout inside hero */
.events-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 20px;
}

/* Left text */
.events-header h1 {
    margin: 0 0 8px;
    font-size: 2.6rem;
    font-weight: 800;
    color: #2f2b25;
}

.events-header p {
    margin: 0;
    max-width: 60ch;
    line-height: 1.6;
    color: #2f2b25;
}

/* Right image */
.events-hero-img img {
    width: 100%;
    height: 150px;
    max-width: 500px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Filter Buttons */
.chips {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: center;
    gap: 14px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}

.chip {
    flex: 1 1 130px;
    text-align: center;
    scroll-snap-align: start;
    padding: 10px 0;
    border-radius: 999px;
    border: 1.8px solid #2f2b25;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease;
    min-width: 110px;
    max-width: 150px;
}

    .chip:hover {
        background-color: #f4e2c1;
        transform: translateY(2px);
    }

    .chip.is-active {
        background-color: #d8ab63;
    }

/* Cards section spacing */
.events-list {
    margin-bottom: 48px;
}

/* Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 22px;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Card */
.event-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 520px;
    height: auto;
}

/* Media with fixed aspect ratio */
.event-media {
    position: relative;
    aspect-ratio: 16 / 8;
    background: #eee;
}

    .event-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.event-date {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: .9rem;
}

.event-interest-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.1);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Body */
.event-body {
    padding: 22px 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.event-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.event-schedule-day {
    font-weight: 600;
    color: #2f2b25;
    margin: 0;
    font-size: .9rem;
}

.event-schedule-times {
    margin: 0 0 4px;
    font-size: .9rem;
    color: #555;
}

.event-desc {
    font-size: .9rem;
    color: #444;
    margin: 0 0 8px;
    line-height: 1.4;
}

.event-info-row {
    display: flex;
    justify-content: center;
    gap: 22px;
    font-size: .9rem;
    font-weight: 600;
    color: #333;
    margin-top: 4px;
}

.event-price {
    color: #111;
    font-weight: 700;
}

.event-slots {
    color: #444;
}

/* Actions */
.event-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.event-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 6px;
}

/* BUTTON CENTERED AT BOTTOM */
.event-book-btn {
    display: block;
    margin: 0 auto;
    text-align: center;
    width: 140px;
    padding: 8px 0;
    background: #4f7c55;
    color: #fff;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}

    .event-book-btn:hover {
        background: #3e6644;
    }



/* ============================
   DESKTOP (1024px+)
   ============================ */

@media (min-width: 1024px) {
    .events-hero {
        padding: 70px 100px;
    }

    .events-grid {
        grid-template-columns: repeat(3, minmax(0,1fr)); /* THREE COLUMNS */
        gap: 26px;
    }
}



/* ============================
   TABLET (768px–1023px)
   ============================ */

@media (min-width: 768px) and (max-width: 1023px) {
    .events-hero {
        padding: 60px 40px;
    }

    .events-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .events-grid {
        grid-template-columns: repeat(2, minmax(0,1fr)); /* TWO COLUMNS */
        gap: 24px;
    }
}



/* ============================
   MOBILE (0–767px)
   ============================ */

@media (max-width: 767px) {
    .events-hero {
        padding: 40px 20px;
        text-align: center;
    }

    .events-header h1 {
        font-size: 2rem;
    }

    .events-header p {
        font-size: 1rem;
    }

    .events-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .events-hero-img img {
        margin: 0 auto;
        max-width: 90%;
    }

    .event-card {
        height: auto;
    }

    .event-body {
        padding: 16px 20px;
    }

    .event-book-btn {
        width: 160px;
    }

    .chips {
        justify-content: flex-start;
        padding-left: 16px;
    }

    .chip {
        flex: 0 0 auto;
        min-width: 100px;
    }

    .events-grid {
        grid-template-columns: 1fr; /* ONE COLUMN */
        gap: 20px;
    }

    .event-book-btn {
        width: 100%;
        display: block;
        padding: 12px 0;
        max-width: none;
        margin: 0;
        border-radius: 10px;
        font-size: 1rem;
    }
}
