/* ================================
   EVENTS SECTION WRAPPER
================================ */
.events-section {
    width: 95%;
    margin: 30px auto;
}

.events-section h2 {
    font-size: 26px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    color: #222;
}

/* ================================
   TABLE STYLE
================================ */
.events-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.events-table thead {
    background: #eaf1ff;
}

.events-table th,
.events-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

/* Hover effect */
.events-table tbody tr:hover {
    background: #f5f9ff;
}

/* ================================
   FIX THUMBNAIL COLUMN WIDTH
================================ */
.events-table th:nth-child(5),
.events-table td:nth-child(5) {
    width: 90px;
    max-width: 90px;
    text-align: center;
}

/* ================================
   THUMBNAIL STYLE – UNIVERSAL
   (Desktop + Laptop + Mobile)
================================ */
.event-thumb {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
    overflow: hidden;        /* prevents big image overflow */
}

.no-image {
    width: 60px !important;
    height: 60px !important;
    background: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    font-size: 11px;
    margin: 0 auto;
}

/* ================================
   EVENT LINK STYLE (Desktop)
================================ */
.event-link {
    color: #1a73e8;
    font-weight: 600;
    text-decoration: none;
}

.event-link:hover {
    text-decoration: underline;
}

/* ================================
   LAPTOP VIEW FIX
   (1024px – 1366px)
================================ */
@media (min-width: 1024px) and (max-width: 1366px) {
    .events-table th,
    .events-table td {
        padding: 10px 12px;
        font-size: 15px;
    }

    .events-section {
        width: 90%;
        margin: 20px auto;
    }
}

/* ================================
   TABLET VIEW
================================ */
@media (min-width: 768px) and (max-width: 1023px) {
    .events-table th,
    .events-table td {
        padding: 12px;
        font-size: 15px;
    }
}

/* ================================
   MOBILE VIEW
================================ */
@media (max-width: 768px) {
    .events-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .events-table {
        min-width: 650px;
        font-size: 14px;
    }

    .events-table th,
    .events-table td {
        padding: 10px 12px;
        white-space: nowrap;
    }

    .events-table td:nth-child(2) {
        white-space: normal;
    }

    .event-link {
        display: inline-block;
        padding: 8px 14px;
        border: 1px solid #1a73e8;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 600;
    }

    .event-link:hover {
        background: #1a73e8;
        color: white;
    }
}

/* ================================
   NO EVENTS MESSAGE
================================ */
.no-events {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: #666;
}
