/* ================================================================
   PPID DISDIKBUD PROVINSI KALIMANTAN TIMUR - AGENDA & BERITA CSS
   Modern GovTech News & Event Layout v3.0
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Scope styling */
.agenda-module {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #334155;
}

/* ================================================================
   1. HERO BANNER
   ================================================================ */
.agenda-hero-banner {
    background: linear-gradient(135deg, #091a2b 0%, #0f2744 55%, #0284c7 100%);
    padding: 55px 0 65px 0;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.agenda-hero-banner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(2, 132, 199, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.agenda-hero-banner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 8%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Breadcrumb */
.agenda-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 500;
    margin-bottom: 18px;
}

.agenda-breadcrumb a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.agenda-breadcrumb a:hover {
    color: #38bdf8;
}

.agenda-breadcrumb .sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.72rem;
}

.agenda-breadcrumb .current {
    color: #ffffff;
    font-weight: 700;
}

/* Badge Tag */
.agenda-official-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #38bdf8;
    margin-bottom: 14px;
}

.agenda-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    animation: agendaPulse 2s infinite;
}

@keyframes agendaPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 7px rgba(56, 189, 248, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

.agenda-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.25;
}

.agenda-hero-title .highlight {
    background: linear-gradient(135deg, #ffffff 40%, #ffffff 85%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.agenda-hero-subtitle {
    font-size: 1rem;
    color: #cbd5e1;
    max-width: 780px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ================================================================
   2. MAIN PAGE WRAPPER & TOOLBAR
   ================================================================ */
.agenda-page-wrapper {
    padding: 40px 0 85px 0;
}

.agenda-toolbar-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 26px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.agenda-count-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.agenda-search-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.82rem;
    color: #0f172a;
    font-weight: 600;
}

.agenda-search-pill a {
    color: #ef4444;
    text-decoration: none;
    font-size: 0.78rem;
    margin-left: 4px;
}

/* ================================================================
   3. MODERN AGENDA CARD
   ================================================================ */
.agenda-card-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.agenda-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.agenda-thumb-container {
    position: relative;
    height: 100%;
    min-height: 220px;
    background: #0f172a;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .agenda-thumb-container {
        height: 200px;
        min-height: 200px;
    }
}

.agenda-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}

.agenda-card-modern:hover .agenda-thumb-img {
    transform: scale(1.06);
}

.agenda-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 8px;
    z-index: 2;
}

.agenda-content-box {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.agenda-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 12px;
}

.agenda-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.agenda-card-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    margin-bottom: 12px;
}

.agenda-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.agenda-card-title a:hover {
    color: #0284c7;
}

.agenda-card-excerpt {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.agenda-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.agenda-author-tag {
    font-size: 0.82rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-read-agenda {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f9ff;
    color: #0284c7;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 9999px;
    text-decoration: none;
    border: 1px solid #bae6fd;
    transition: all 0.2s ease;
}

.btn-read-agenda:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    transform: translateX(2px);
}

/* ================================================================
   4. SIDEBAR WIDGETS
   ================================================================ */
.agenda-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.agenda-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.agenda-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Search Box Form */
.agenda-search-form {
    position: relative;
}

.agenda-search-input {
    width: 100%;
    padding: 11px 44px 11px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.agenda-search-input:focus {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
    outline: none;
}

.agenda-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #0284c7;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 6px 8px;
}

/* Recent Posts List */
.recent-agenda-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-agenda-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: all 0.2s ease;
}

.recent-agenda-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-agenda-item:first-child {
    padding-top: 0;
}

.recent-agenda-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #0f172a;
}

.recent-agenda-details {
    flex-grow: 1;
    min-width: 0;
}

.recent-agenda-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.recent-agenda-item:hover .recent-agenda-title {
    color: #0284c7;
}

.recent-agenda-date {
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Helpdesk & Quick Action Card */
.agenda-helpdesk-banner {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.agenda-helpdesk-banner h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.agenda-helpdesk-banner p {
    font-size: 0.85rem;
    color: #e0f2fe;
    line-height: 1.5;
    margin-bottom: 16px;
}

.btn-helpdesk-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0369a1 !important;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.btn-helpdesk-action:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* ================================================================
   5. DETAIL ARTICLE STYLES
   ================================================================ */
.agenda-detail-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 34px 38px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

@media (max-width: 767.98px) {
    .agenda-detail-card {
        padding: 22px 18px;
    }
}

.agenda-detail-header {
    margin-bottom: 24px;
}

.agenda-detail-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 14px 0 16px 0;
}

.agenda-detail-cover {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.agenda-detail-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 34px;
}

.agenda-detail-body p {
    margin-bottom: 20px;
}

.agenda-detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 18px 0;
}

.agenda-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

/* ================================================================
   6. CUSTOM PAGINATION STYLING
   ================================================================ */
.agenda-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.agenda-pagination-wrap .pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.agenda-pagination-wrap .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.agenda-pagination-wrap .page-item .page-link:hover {
    background: #f1f5f9;
    color: #0284c7;
    border-color: #cbd5e1;
}

.agenda-pagination-wrap .page-item.active .page-link {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.agenda-pagination-wrap .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
    background: #f8fafc;
}