/* Halaman agenda — kartu horizontal */

.agenda-page {
    background: linear-gradient(180deg, #f4faf6 0%, #fff 220px);
}

.agenda-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.agenda-filter-btn {
    border: 1px solid #d8e8de;
    background: #fff;
    color: #355f47;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.agenda-filter-btn:hover,
.agenda-filter-btn.active {
    background: var(--theme-primary, #006838);
    border-color: var(--theme-primary, #006838);
    color: #fff;
}

.agenda-timeline {
    position: relative;
    padding-left: 0;
}

.agenda-item {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 80, 40, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #e8f2ec;
    transition: transform 0.25s, box-shadow 0.25s;
}

.agenda-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 80, 40, 0.12);
}

.agenda-date-badge {
    flex: 0 0 110px;
    background: linear-gradient(160deg, var(--theme-primary, #006838), #005a2e);
    color: #fff;
    text-align: center;
    padding: 22px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.agenda-date-badge.multi {
    flex: 0 0 130px;
    padding: 16px 10px;
}

.agenda-date-badge .range-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.agenda-date-badge .range-sep {
    font-size: 16px;
    font-weight: 700;
    opacity: 0.85;
    line-height: 1;
}

.agenda-date-badge .range-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.agenda-date-badge .day {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.agenda-date-badge .month {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}

.agenda-date-badge .year {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 2px;
}

.agenda-body {
    flex: 1;
    min-width: 0;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.agenda-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.agenda-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}

.agenda-status-upcoming {
    background: #e8f4ff;
    color: #1a6fb5;
}

.agenda-status-ongoing {
    background: #e7f8ee;
    color: #0a8a45;
}

.agenda-status-past {
    background: #f1f1f1;
    color: #777;
}

.agenda-category {
    font-size: 12px;
    color: #6b8f7b;
    font-weight: 600;
}

.agenda-body h3 {
    font-size: 20px;
    margin: 0 0 8px;
    line-height: 1.35;
}

.agenda-body h3 a {
    color: #1f3d2d;
    text-decoration: none;
}

.agenda-body h3 a:hover {
    color: var(--theme-primary, #006838);
}

.agenda-body p {
    color: #5f6f66;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.65;
}

.agenda-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    font-size: 13px;
    color: #4a5f54;
}

.agenda-info-row span {
    display: inline-flex;
    align-items: center;
}

.agenda-info-row span i {
    color: var(--theme-primary, #006838);
    margin-right: 6px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.agenda-media {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    align-self: stretch;
}

.agenda-thumb {
    flex: 0 0 200px;
    width: 200px;
    position: relative;
    overflow: hidden;
    display: none;
}

.agenda-thumb > a {
    display: block;
    width: 100%;
    height: 100%;
}

.agenda-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.agenda-share-wa-rail {
    flex: 0 0 42px;
    width: 42px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 14px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    align-self: stretch;
    transition: background 0.2s ease;
}

.agenda-share-wa-rail:hover,
.agenda-share-wa-rail:focus {
    color: #fff;
    background: #1ebe57;
}

.agenda-share-wa-rail i {
    font-size: 22px;
    line-height: 1;
}

.agenda-media--no-image {
    flex: 0 0 42px;
}

.agenda-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed #cfe0d6;
    color: #6b8f7b;
}

@media (min-width: 992px) {
    .agenda-thumb {
        display: block;
    }
}

@media (max-width: 991px) {
    .agenda-media {
        border-top: 1px solid #e8f2ec;
    }

    .agenda-thumb {
        display: block;
        flex: 1 1 auto;
        width: auto;
        min-height: 180px;
    }

    .agenda-share-wa-rail {
        flex: 0 0 48px;
        width: 48px;
        align-items: center;
        padding-top: 0;
    }
}

@media (max-width: 767px) {
    .agenda-item {
        flex-direction: column;
    }

    .agenda-date-badge {
        flex-direction: row;
        gap: 10px;
        padding: 14px 18px;
        align-items: baseline;
        justify-content: flex-start;
    }

    .agenda-date-badge.multi {
        flex: none;
    }

    .agenda-date-badge .day {
        font-size: 28px;
    }

    .agenda-body {
        padding: 18px;
    }

    .agenda-media {
        flex-direction: row;
    }

    .agenda-media--no-image {
        flex: none;
        width: 100%;
    }

    .agenda-media--no-image .agenda-share-wa-rail {
        flex: 1 1 auto;
        width: 100%;
        height: 48px;
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .agenda-thumb {
        min-height: 160px;
    }
}
