/* ==========================================================================
   PIXELHUE Events Page Styles (insights1.css)
   ========================================================================== */

.events-page-section {
    background-color: #ffffff;
    padding: 60px 0;
    /* min-height: calc(100vh - 120px); */
    width: 100%;
    font-family: var(--font-family, 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.events-page-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.events-main-title {
    font-size: 21px;
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
    /* letter-spacing: -0.2px; */
    margin: 0 0 28px 0;
    line-height: 1.2;
}

/* ==========================================================================
   Tabs Navigation (Online Events / Offline Events)
   ========================================================================== */
.events-tabs-nav {
    display: flex;
    background-color: #eef1f5;
    border-radius: 8px;
    margin-bottom: 25px;
    position: relative;
}

.events-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 25px 20px;
    font-size: 18px;
    font-weight: 500;
    color: #333333;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    position: relative;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 4px;
    text-align: center;
}

.events-tab-btn:hover:not(.active) {
    background-color: #e2e6eb;
    color: #111111;
}

.events-tab-btn.active {
    background-color: #0066cc;
    color: #ffffff;
}

/* Arrow indicator on active tab */
.events-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #0066cc;
    z-index: 3;
}

/* ==========================================================================
   Table Component
   ========================================================================== */
.events-tab-content {
    display: none;
}

.events-tab-content.active {
    display: block;
}

.events-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #e1e5ea;
    border-radius: 4px;
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.events-table th {
    background-color: #eef1f5;
    color: #222222;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 14px;
    border: 1px solid #e1e5ea;
    white-space: nowrap;
}

.events-table td {
    padding: 16px 14px;
    font-size: 13.5px;
    color: #333333;
    border: 1px solid #e1e5ea;
    vertical-align: middle;
    line-height: 1.55;
}

.events-table tbody tr:hover td {
    background-color: #f9fbfd;
}

.events-event-name {
    font-weight: 500;
    color: #222222;
}

/* Status Buttons */
.event-status-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 22px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    min-width: 90px;
    box-sizing: border-box;
    white-space: nowrap;
}

.event-status-btn.disabled {
    background-color: #d1d5db;
    color: #ffffff;
    cursor: default;
    user-select: none;
}

.event-status-btn.active {
    background-color: #0066cc;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.event-status-btn.active:hover {
    background-color: #0052a3;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* More Button */
.events-more-wrap {
    text-align: center;
    margin: 25px 0 35px;
}

.events-more-btn {
    display: inline-block;
    background-color: #0066cc;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 30px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.events-more-btn:hover {
    background-color: #0052a3;
}

/* Newsletter text */
.events-newsletter-text {
    font-size: 14px;
    color: #444444;
    margin: 0;
    padding-top: 10px;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .events-page-section {
        padding: 40px 0 70px;
    }

    .events-main-title {
        /* font-size: 24px; */
        margin-bottom: 20px;
    }

    .events-tab-btn {
        padding: 12px 10px;
        font-size: 13px;
    }

    .events-table th,
    .events-table td {
        padding: 12px 10px;
        font-size: 12.5px;
    }
}
