/* Beranda — Agenda & Pengumuman */
.home-agenda-section {
    background: linear-gradient(180deg, #f4faf6 0%, #fff 280px);
}

.home-agenda-panel,
.home-pengumuman-sidebar {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e3efe8;
    box-shadow: 0 10px 36px rgba(0, 80, 40, .07);
    height: 100%;
}

.home-agenda-panel-head,
.home-pengumuman-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #e8f2ec;
}

.home-agenda-panel-head h3,
.home-pengumuman-sidebar-head h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f3d2d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-agenda-panel-head h3 i,
.home-pengumuman-sidebar-head h3 i {
    color: var(--theme-primary, #006838);
}

.home-agenda-panel-head a,
.home-pengumuman-sidebar-more {
    font-size: 13px;
    font-weight: 700;
    color: var(--theme-primary, #006838);
    text-decoration: none;
    white-space: nowrap;
}

.home-agenda-panel-head a:hover,
.home-pengumuman-sidebar-more:hover {
    color: #005a2e;
}

.home-agenda-list {
    padding: 8px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-agenda-item {
    --home-agenda-item-h: 148px;
    display: flex;
    gap: 0;
    min-height: var(--home-agenda-item-h);
    max-height: var(--home-agenda-item-h);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8f2ec;
    background: #fff;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-agenda-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 80, 40, .1);
    border-color: color-mix(in srgb, var(--theme-primary, #006838) 30%, #e8f2ec);
}

.home-agenda-date {
    flex: 0 0 88px;
    background: linear-gradient(160deg, var(--theme-primary, #006838), #005a2e);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    text-align: center;
}

.home-agenda-date.multi {
    flex: 0 0 104px;
}

.home-agenda-date .day {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.home-agenda-date .month {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-top: 4px;
}

.home-agenda-date .year {
    font-size: 11px;
    opacity: .88;
    margin-top: 2px;
}

.home-agenda-date .range-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.home-agenda-date .range-sep {
    font-size: 12px;
    font-weight: 700;
    opacity: .85;
}

.home-agenda-date .range-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-agenda-date .range-block .day {
    font-size: 22px;
}

.home-agenda-body {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
}

.home-agenda-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}

.home-agenda-status {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
}

.home-agenda-status-upcoming { background: #e8f4ff; color: #1a6fb5; }
.home-agenda-status-ongoing { background: #e7f8ee; color: #0a8a45; }
.home-agenda-status-past { background: #f1f1f1; color: #777; }

.home-agenda-category {
    font-size: 11px;
    color: #6b8f7b;
    font-weight: 600;
}

.home-agenda-body h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px;
    min-height: calc(1.4em * 2);
    max-height: calc(1.4em * 2);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.home-agenda-body h4 a {
    color: #1f3d2d;
    text-decoration: none;
}

.home-agenda-body h4 a:hover {
    color: var(--theme-primary, #006838);
}

.home-agenda-info {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 12px;
    color: #5f6f66;
}

.home-agenda-info span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.home-agenda-info i {
    color: var(--theme-primary, #006838);
    margin-right: 4px;
    width: 13px;
}

.home-agenda-empty {
    text-align: center;
    padding: 48px 20px;
    color: #6b8f7b;
}

.home-agenda-empty i {
    color: color-mix(in srgb, var(--theme-primary, #006838) 55%, #fff);
    margin-bottom: 12px;
}

/* Sidebar pengumuman */
.home-pengumuman-sidebar {
    display: flex;
    flex-direction: column;
}

.home-pengumuman-sidebar-list {
    flex: 1;
    padding: 8px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-pengumuman-item {
    display: flex;
    gap: 12px;
    align-items: stretch;
    min-height: 88px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e8eef5;
    background: #fafcff;
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .2s;
}

.home-pengumuman-item:hover {
    background: #fff;
    border-color: color-mix(in srgb, var(--theme-primary, #006838) 28%, #e8eef5);
    transform: translateX(3px);
}

.home-pengumuman-stripe {
    flex: 0 0 4px;
    border-radius: 4px;
    align-self: stretch;
}

.home-pengumuman-stripe.pengumuman-priority-urgent {
    background: linear-gradient(180deg, #e53935, #c62828);
}

.home-pengumuman-stripe.pengumuman-priority-important {
    background: linear-gradient(180deg, #fb8c00, #ef6c00);
}

.home-pengumuman-stripe.pengumuman-priority-normal {
    background: linear-gradient(180deg, var(--theme-secondary, #c9a227), #9a7b1a);
}

.home-pengumuman-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.home-pengumuman-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.home-pengumuman-priority {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 2px 8px;
    border-radius: 999px;
}

.home-pengumuman-priority.pengumuman-priority-urgent {
    background: #fde8e8;
    color: #c62828;
}

.home-pengumuman-priority.pengumuman-priority-important {
    background: #fff3e0;
    color: #e65100;
}

.home-pengumuman-priority.pengumuman-priority-normal {
    background: #e8f4ff;
    color: #9a7b1a;
}

.home-pengumuman-cat {
    font-size: 10px;
    font-weight: 600;
    color: #7a8a9e;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.home-pengumuman-content h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #1e2a3a;
    margin: 0 0 6px;
    min-height: calc(1.4em * 2);
    max-height: calc(1.4em * 2);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.home-pengumuman-date {
    margin-top: auto;
    font-size: 11px;
    color: #8a96a8;
}

.home-pengumuman-date i {
    color: var(--theme-primary, #006838);
    margin-right: 4px;
}

.home-pengumuman-sidebar-foot {
    padding: 0 16px 20px;
}

.home-pengumuman-sidebar-foot .default-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.home-pengumuman-empty {
    text-align: center;
    padding: 40px 20px;
    color: #8a96a8;
    font-size: 14px;
}

.home-pengumuman-empty i {
    display: block;
    font-size: 2rem;
    color: color-mix(in srgb, var(--theme-primary, #006838) 50%, #fff);
    margin-bottom: 10px;
}

@media (max-width: 991px) {
    .home-pengumuman-sidebar {
        margin-top: 8px;
    }
}

@media (max-width: 575px) {
    .home-agenda-item {
        --home-agenda-item-h: auto;
        min-height: 132px;
        max-height: none;
        flex-direction: column;
    }

    .home-agenda-date,
    .home-agenda-date.multi {
        flex: none;
        flex-direction: row;
        gap: 10px;
        padding: 10px 14px;
        justify-content: flex-start;
    }

    .home-agenda-date .day,
    .home-agenda-date .range-block .day {
        font-size: 22px;
    }

    .home-agenda-body h4 {
        min-height: auto;
        max-height: none;
        -webkit-line-clamp: 3;
    }
}
