/* ===========================
   Events Grid Section
   =========================== */

.events-grid-section {
    padding: 80px 0;
}

/* ===========================
   Event Card
   =========================== */

.events-grid-card {
    overflow: hidden;
    height: 100%;
}

.events-grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ===========================
   Event Image
   =========================== */

.events-grid-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.events-grid-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.events-grid-card:hover .events-grid-image-wrapper img {
    transform: scale(1.05);
}

/* ===========================
   Date Badge
   =========================== */

.events-grid-date-badge {
    position: absolute;
    background-color: #F8B531;
    color: #fff;
    padding: 10px 12px;
    text-align: center;
    min-width: 70px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.events-grid-date-badge.events-grid-orange-badge {
    background-color: #F8B531;
    color: #2C2C2C;
}

.events-grid-date-weekday {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.events-grid-date-day {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2px;
}

.events-grid-date-month {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ===========================
   Card Body
   =========================== */

.events-grid-card .card-body {
    padding: 20px;
}

.events-grid-title {
    font-size: 18px;
    font-weight: 800;
    color: #2C2C2C;
    margin-bottom: 10px;
    line-height: 1.3;
}

.events-grid-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===========================
   Pagination
   =========================== */

.events-grid-pagination {
    margin-top: 60px;
}

.events-grid-page-item {
    margin: 0 5px;
}

.events-grid-page-link {
    color: #2C2C2C;
    background-color: #fff;
    border: 2px solid #D9D9D9;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
}

.events-grid-page-link:hover {
    background-color: #B92525;
    border-color: #B92525;
    color: #fff;
}

.events-grid-page-item.active .events-grid-page-link {
    background-color: #B92525;
    border-color: #B92525;
    color: #fff;
}

/* ===========================
   Responsive - Tablet
   =========================== */

@media (max-width: 991px) {
    .events-grid-section {
        padding: 60px 0;
    }

    .events-grid-image-wrapper {
        height: 200px;
    }

    .events-grid-title {
        font-size: 16px;
    }

    .events-grid-text {
        font-size: 13px;
    }
}

/* ===========================
   Responsive - Mobile
   =========================== */

@media (max-width: 767px) {
    .events-grid-section {
        padding: 40px 0;
    }

    .events-grid-image-wrapper {
        height: 180px;
    }

    .events-grid-date-badge {
        top: 10px;
        right: 10px;
        padding: 8px 10px;
        min-width: 60px;
    }

    .events-grid-date-weekday {
        font-size: 10px;
    }

    .events-grid-date-day {
        font-size: 24px;
    }

    .events-grid-date-month {
        font-size: 11px;
    }

    .events-grid-title {
        font-size: 15px;
    }

    .events-grid-text {
        font-size: 13px;
    }

    .events-grid-page-link {
        padding: 8px 14px;
        font-size: 14px;
    }
}
