/* =========================================
   1. HERO MINI & PAGE OVERLAYS
   ========================================= */
.hero-mini {
    position: relative;
    padding: 140px 0 80px;
    background-color: #050505;
    text-align: center;
    overflow: hidden;
}

.hero-mini .hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('../assets/hbg2.webp'); /* Update path as needed */
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 1;
}

.hero-mini .container {
    position: relative;
    z-index: 10;
}

.hero-subtitle {
    color: #9ca3af;
    margin-top: 1rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   2. EVENTS GRID (Mobile First: 2 Columns)
   ========================================= */
.section-events {
    padding: 60px 0;
    background-color: #f8fafc;
}

.events-grid {
    display: grid;
    /* Default for Mobile: 2 per row */
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Desktop Adjustment: 4 per row */
@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* =========================================
   3. EVENT CARD STYLING
   ========================================= */
.event-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.event-img-wrap {
    position: relative;
    height: 140px; /* Mobile height */
    width: 100%;
}

@media (min-width: 1024px) {
    .event-img-wrap {
        height: 180px; /* Desktop height */
    }
}

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

.event-tag {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--secondary); /* Uses index.html variable */
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.event-body {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    line-height: 1.3;
}

.event-body p {
    color: var(--gray);
    font-size: 0.8rem;
    margin-bottom: 1.2rem;
    line-height: 1.4;
    
    /* Line Clamping: Limits text to 2 lines for a clean grid */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    margin-top: auto; /* Pushes button to the bottom */
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 0.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.read-more-btn:hover {
    background: var(--primary);
    color: #ffffff;
}

/* =========================================
   4. MODAL POPUP (POPUP DESIGN)
   ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    padding: 2.5rem 2rem;
    border-radius: 24px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: #f3f4f6;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--dark);
    transition: background 0.2s;
}

.modal-close:hover {
    background: #e5e7eb;
}

.modal-header h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.modal-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 600;
}

.modal-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-info i {
    color: var(--secondary);
}

#modalDesc {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Styling for lists inside the modal description */
#modalDesc ul {
    list-style-type: disc; /* Ensures the bullet dots appear */
    margin-left: 20px;     /* Gives room for the dots */
    margin-top: 10px;      /* Spacing from the text above */
}

#modalDesc li {
    margin-bottom: 8px;    /* Spacing between each bullet point */
    display: list-item;    /* Ensures it behaves like a list */
}

#modalDesc strong {
    display: inline-block;
    margin-top: 10px;
}
/* =========================================
   5. "OPENS SOON" BUTTON (DISABLED STATE)
   ========================================= */
.btn-disabled {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    background: #e2e8f0;
    color: #94a3b8;
    font-weight: 700;
    font-size: 1rem;
    cursor: not-allowed;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   6. RESPONSIVE FINESSE
   ========================================= */
@media (max-width: 480px) {
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.4rem;
    }

    .events-grid {
        gap: 0.75rem; /* Tighter gap on very small screens */
    }
}

/* Add this to events.css */

.date-header {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary); /* Uses your existing variable */
    font-size: 1.5rem;
    margin: 3rem 0 1.5rem 0;
    padding-left: 1rem;
    border-left: 5px solid var(--secondary); /* Uses your yellow/gold accent */
    font-weight: 700;
}

/* Adjust margin for the first header */
.date-header:first-of-type {
    margin-top: 0;
}