/* ── Activity Page ─────────────────────────────────────── */

.activity-section {
    padding: 40px 0 70px;
    background: #f4f6f9;
    min-height: 60vh;
}

/* Tab bar */
.activity-tabs {
    display: flex;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 30px;
}

.activity-tab-btn {
    flex: 1;
    padding: 14px 10px;
    border: none;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    border-right: 1px solid #dee2e6;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.activity-tab-btn:last-child { border-right: none; }

.activity-tab-btn.active {
    background: #1a3a5c;
    color: #fff;
}

.activity-tab-btn:not(.active):hover {
    background: #e9ecef;
}

/* Tab scroll on small screens */
@media (max-width: 600px) {
    .activity-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .activity-tab-btn { min-width: 130px; }
}

/* Tab panes */
.activity-pane { display: none; }
.activity-pane.active { display: block; }

/* ── Extension Work & Event – link list ──────────────── */
.activity-link-list { list-style: none; padding: 0; margin: 0; }

.activity-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border-left: 4px solid #1a3a5c;
    border-radius: 0 6px 6px 0;
    margin-bottom: 10px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.activity-link-item:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    border-color: #2980b9;
}

.activity-link-item a {
    color: #1a3a5c;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    flex: 1;
}

.activity-link-item a:hover { color: #2980b9; text-decoration: underline; }

.activity-link-item .doc-icon {
    color: #2980b9;
    font-size: 18px;
    flex-shrink: 0;
}

/* ── Webinar Reports – green badge buttons ──────────── */
.report-btn-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.report-btn {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.report-btn:hover {
    background: #219150;
    color: #fff;
    transform: translateY(-2px);
}

/* ── Webinar Videos – YouTube thumbnail grid ────────── */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.14);
    color: inherit;
    text-decoration: none;
}

.video-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    overflow: hidden;
}

.video-thumb-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    transition: background 0.2s;
}

.video-card:hover .play-overlay { background: rgba(0,0,0,0.4); }

.play-overlay i {
    font-size: 52px;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.video-info {
    padding: 12px 14px;
}

.video-info h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a3a5c;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Empty state ───────────────────────────────────── */
.empty-activity {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.empty-activity i { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-activity p { font-size: 15px; }

/* ── Video modal ────────────────────────────────────── */
#videoModal .modal-dialog { max-width: 800px; }
#videoModal .ratio { background: #000; }
