/* ================================================================
   PPID DISDIKBUD PROVINSI KALIMANTAN TIMUR
   LAYANAN & TRANSPARANSI MODERN STYLESHEET (layanan-transparansi.css)
   Refined GovTech Design System v3.0
   ================================================================ */

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

:root {
    --layanan-primary: #0284c7;
    --layanan-primary-hover: #0369a1;
    --layanan-primary-soft: #e0f2fe;
    --layanan-navy: #0f2744;
    --layanan-navy-dark: #071524;
    --layanan-amber: #f59e0b;
    --layanan-amber-soft: #fef3c7;
    --layanan-emerald: #10b981;
    --layanan-emerald-soft: #d1fae5;
    --layanan-rose: #f43f5e;
    --layanan-rose-soft: #ffe4e6;
    --layanan-purple: #7c3aed;
    --layanan-purple-soft: #ede9fe;
    --layanan-slate-900: #0f172a;
    --layanan-slate-800: #1e293b;
    --layanan-slate-700: #334155;
    --layanan-slate-600: #475569;
    --layanan-slate-500: #64748b;
    --layanan-slate-400: #94a3b8;
    --layanan-slate-200: #e2e8f0;
    --layanan-slate-100: #f1f5f9;
    --layanan-slate-50: #f8fafc;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background-color: #f8fafc !important;
    color: var(--layanan-slate-700);
}

/* ================================================================
   1. MODERN HERO BANNER
   ================================================================ */
.layanan-hero-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(7, 21, 36, 0.97) 0%, rgba(15, 39, 68, 0.92) 55%, rgba(2, 132, 199, 0.82) 100%),
                url('../img/hero-bg.jpg') center center / cover no-repeat;
    padding: 55px 0 60px 0;
    color: #ffffff;
    overflow: hidden;
    margin-bottom: 0;
}

.layanan-hero-banner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: 8%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

.layanan-hero-banner::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 5%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.layanan-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

.layanan-breadcrumb a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.layanan-breadcrumb .sep {
    font-size: 0.72rem;
    color: #64748b;
}

.layanan-breadcrumb .current {
    color: #38bdf8;
    font-weight: 600;
}

.layanan-official-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #e0f2fe;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.layanan-pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    animation: layananPulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes layananPulse {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.layanan-hero-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    line-height: 1.25;
}

.layanan-hero-title span.highlight {
    background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.layanan-hero-subtitle {
    font-size: 0.98rem;
    color: #e2e8f0;
    max-width: 700px;
    line-height: 1.65;
    margin-bottom: 0;
    opacity: 0.92;
}

/* ================================================================
   2. MAIN PAGE WRAPPER & CONTAINER
   ================================================================ */
.layanan-page-wrapper {
    background-color: #f8fafc;
    padding: 40px 0 75px 0;
}

.layanan-main-card {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid var(--layanan-slate-200);
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
    padding: 32px 34px;
    position: relative;
}

@media (max-width: 767.98px) {
    .layanan-main-card {
        padding: 22px 18px;
        border-radius: 16px;
    }
}

.layanan-card-header {
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--layanan-slate-100);
}

.layanan-card-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.layanan-card-icon-bubble {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: var(--layanan-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.12);
}

.layanan-card-icon-bubble.amber {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.layanan-card-icon-bubble.purple {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #7c3aed;
}

.layanan-card-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--layanan-slate-900);
    margin-bottom: 4px;
    line-height: 1.3;
}

.layanan-card-desc {
    color: var(--layanan-slate-500);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* ================================================================
   3. PUSAT UNDUHAN: MODERN DOCUMENT CARDS
   ================================================================ */
.unduhan-search-box {
    background: #f8fafc;
    border: 1px solid var(--layanan-slate-200);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 28px;
}

.unduhan-search-input {
    height: 46px;
    border-radius: 12px !important;
    border: 1px solid var(--layanan-slate-200) !important;
    background: #ffffff !important;
    padding: 8px 16px 8px 42px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: var(--layanan-slate-800) !important;
    transition: all 0.2s ease !important;
}

.unduhan-search-input:focus {
    border-color: var(--layanan-primary) !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
    outline: none !important;
}

.unduhan-card {
    background: #ffffff;
    border: 1px solid var(--layanan-slate-200);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.unduhan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0284c7, #38bdf8);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.unduhan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(2, 132, 199, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
    border-color: #bae6fd;
}

.unduhan-card:hover::before {
    opacity: 1;
}

.unduhan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.unduhan-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff1f2 0%, #fee2e2 100%);
    border: 1px solid #fecdd3;
    color: #e11d48;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(225, 29, 72, 0.08);
}

.unduhan-card:hover .unduhan-icon-wrap {
    transform: scale(1.08);
}

.unduhan-badge-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.unduhan-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--layanan-slate-600);
    border: 1px solid var(--layanan-slate-200);
    display: inline-flex;
    align-items: center;
}

.unduhan-ext-badge {
    font-size: 0.70rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    letter-spacing: 0.5px;
}

.unduhan-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--layanan-slate-900);
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
    transition: color 0.2s ease;
}

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

.unduhan-meta {
    font-size: 0.80rem;
    color: var(--layanan-slate-400);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    margin-top: auto;
}

.unduhan-meta-sep {
    color: #cbd5e1;
}

.unduhan-source {
    color: #059669;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.unduhan-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--layanan-slate-100);
}

.unduhan-btn-preview {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap !important;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: var(--layanan-slate-700);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.unduhan-btn-preview:hover {
    background: #f0f9ff;
    border-color: #38bdf8;
    color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.15);
}

.unduhan-btn-preview i {
    font-size: 0.92rem;
    color: #0284c7;
    transition: transform 0.2s ease;
}

.unduhan-btn-preview:hover i {
    transform: scale(1.15);
}

.unduhan-btn-download {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap !important;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 1.5px solid transparent;
    color: #ffffff !important;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.unduhan-btn-download:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.unduhan-btn-download i {
    font-size: 0.92rem;
    transition: transform 0.2s ease;
}

.unduhan-btn-download:hover i {
    transform: translateY(2px);
}

@media (max-width: 420px) {
    .unduhan-actions {
        flex-direction: column;
        gap: 8px;
    }
    .unduhan-btn-preview,
    .unduhan-btn-download {
        width: 100%;
    }
}

/* ================================================================
   4. GRATIFIKASI: TENTANG, PERATURAN, PANDUAN, FAQ
   ================================================================ */
/* Section Card Content */
.grat-section-card {
    background: #f8fafc;
    border: 1px solid var(--layanan-slate-200);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.grat-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--layanan-slate-900);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grat-section-title i {
    color: var(--layanan-primary);
}

.grat-law-box {
    background: #ffffff;
    border-left: 4px solid var(--layanan-primary);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 14px 0;
    border: 1px solid var(--layanan-slate-200);
    border-left-width: 4px;
}

.grat-law-title {
    font-weight: 700;
    color: var(--layanan-slate-900);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.grat-alert-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.grat-alert-box i {
    color: #ef4444;
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Modern Document Table */
.layanan-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--layanan-slate-200);
    background: #ffffff;
}

.layanan-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.layanan-table thead th {
    background: #f1f5f9;
    color: var(--layanan-slate-800);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 14px 18px;
    border-bottom: 2px solid var(--layanan-slate-200);
}

.layanan-table tbody tr {
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--layanan-slate-100);
}

.layanan-table tbody tr:last-child {
    border-bottom: none;
}

.layanan-table tbody tr:hover {
    background: #f8fafc;
}

.layanan-table tbody td {
    padding: 14px 18px;
    vertical-align: middle;
    font-size: 0.9rem;
    color: var(--layanan-slate-700);
}

.layanan-table-num {
    width: 40px;
    text-align: center;
    font-weight: 700;
    color: var(--layanan-slate-400);
}

.layanan-doc-name {
    font-weight: 600;
    color: var(--layanan-slate-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.layanan-doc-name i {
    color: #ef4444;
    font-size: 1.1rem;
}

/* Modern FAQ Accordion */
.layanan-faq-accordion .accordion-item {
    border: 1px solid var(--layanan-slate-200) !important;
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: 12px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.layanan-faq-accordion .accordion-item:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.layanan-faq-accordion .accordion-button {
    padding: 16px 20px !important;
    background: #ffffff !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    color: var(--layanan-slate-900) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.layanan-faq-accordion .accordion-button:not(.collapsed) {
    background: #f0f9ff !important;
    color: var(--layanan-primary) !important;
    border-bottom: 1px solid var(--layanan-slate-200) !important;
}

.layanan-faq-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--layanan-slate-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.layanan-faq-accordion .accordion-button:not(.collapsed) .layanan-faq-badge {
    background: var(--layanan-primary-soft);
    color: var(--layanan-primary);
}

.layanan-faq-accordion .accordion-body {
    padding: 20px 24px;
    background: #ffffff;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--layanan-slate-700);
}

/* ================================================================
   5. SIDEBAR WIDGETS
   ================================================================ */
.layanan-sidebar-wrap {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: 90px;
}

.layanan-side-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    border: 1px solid var(--layanan-slate-200);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
}

.layanan-side-header {
    font-size: 1rem;
    font-weight: 800;
    color: var(--layanan-slate-900);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--layanan-slate-100);
    display: flex;
    align-items: center;
    gap: 10px;
}

.layanan-side-header i {
    color: var(--layanan-primary);
}

.layanan-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.layanan-nav-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 13px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--layanan-slate-700);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.layanan-nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.layanan-nav-left i {
    width: 20px;
    text-align: center;
    color: var(--layanan-slate-400);
    font-size: 0.92rem;
    transition: color 0.2s;
}

.layanan-nav-item a:hover {
    background: var(--layanan-slate-50);
    color: var(--layanan-primary);
    border-color: var(--layanan-slate-200);
    transform: translateX(3px);
}

.layanan-nav-item a:hover .layanan-nav-left i {
    color: var(--layanan-primary);
}

.layanan-nav-item.active a {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
}

.layanan-nav-item.active a .layanan-nav-left i {
    color: #ffffff !important;
}

.layanan-nav-item a .layanan-arrow {
    font-size: 0.72rem;
    opacity: 0.5;
}

.layanan-nav-item.active a .layanan-arrow {
    opacity: 1;
}

/* Recent Posts Widget */
.layanan-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.layanan-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--layanan-slate-100);
}

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

.layanan-recent-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--layanan-slate-200);
}

.layanan-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.layanan-recent-item:hover .layanan-recent-thumb img {
    transform: scale(1.08);
}

.layanan-recent-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.layanan-recent-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--layanan-slate-800);
    text-decoration: none;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.layanan-recent-title:hover {
    color: var(--layanan-primary);
}

.layanan-recent-date {
    font-size: 0.74rem;
    color: var(--layanan-slate-400);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Helpdesk Card */
.layanan-help-card {
    background: linear-gradient(135deg, #071524 0%, #0f2744 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 39, 68, 0.2);
}

.layanan-help-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(56, 189, 248, 0) 70%);
    border-radius: 50%;
}

.layanan-help-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 8px;
}

.layanan-help-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.layanan-help-desc {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 16px;
}

.layanan-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 16px;
    border-radius: 10px;
    background: #10b981;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
}

.layanan-help-btn:hover {
    background: #059669;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
