/*
Theme Name: PTA Samarinda Modern - SK Badilag 2722/2026
Theme URI: https://pta-samarinda.go.id/
Author: Arif Pribadi
Author URI: https://github.com/arifpribadi
Description: Tema Portal Resmi Pengadilan Tinggi Agama Samarinda berdasarkan Standar Tata Kelola & Desain SK Dirjen Badilag Mahkamah Agung RI No. 2722/DJA/SK.TI1/X/2026. Arsitektur dan sistem portal dikembangkan oleh Arif Pribadi (Pranata Komputer Pengadilan Tinggi Agama Samarinda).
Version: 1.0.3
License: GNU General Public License v2 or later
Text Domain: pta-samarinda
*/

/* ==========================================================================
   1. IDENTITAS VISUAL & PALET WARNA RESMI (BAB III HURUF B SK 2722/2026)
   - Warna Utama (Primary): #056e4f (Hijau Badilag)
   - Warna Sekunder (Secondary): #ff9900 (Kuning Emas)
   ========================================================================== */
:root {
    --pa-primary: #056e4f;
    --pa-primary-dark: #034d37;
    --pa-primary-light: #e6f3ef;
    --pa-secondary: #ff9900;
    --pa-secondary-hover: #e68a00;
    --bs-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-bg: #f8fafc;
    --base-font-size: 16px;
}

html, body {
    font-size: var(--base-font-size);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--bs-body-font-family);
    background-color: var(--bs-body-bg);
    color: #1e293b;
}

/* Utilitas Warna Kustom */
.bg-pa-primary { background-color: var(--pa-primary) !important; }
.text-pa-primary { color: var(--pa-primary) !important; }
.border-pa-primary { border-color: var(--pa-primary) !important; }

.bg-pa-secondary { background-color: var(--pa-secondary) !important; }
.text-pa-secondary { color: var(--pa-secondary) !important; }
.border-pa-secondary { border-color: var(--pa-secondary) !important; }

.bg-pa-primary-light { background-color: var(--pa-primary-light) !important; }

/* Tipografi */
.font-display { font-family: 'Montserrat', sans-serif; }

/* Tombol Standar Solid */
.btn-pa-secondary {
    background-color: var(--pa-secondary);
    color: #111827;
    border-color: var(--pa-secondary);
    font-weight: 700;
    transition: all 0.2s ease;
}
.btn-pa-secondary:hover, .btn-pa-secondary:focus {
    background-color: var(--pa-secondary-hover);
    border-color: var(--pa-secondary-hover);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 153, 0, 0.4);
}

.btn-pa-primary {
    background-color: var(--pa-primary);
    color: #ffffff;
    border-color: var(--pa-primary);
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-pa-primary:hover, .btn-pa-primary:focus {
    background-color: var(--pa-primary-dark);
    border-color: var(--pa-primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(5, 110, 79, 0.35);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--pa-primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--pa-primary-dark); }

/* ==========================================================================
   2. NAVIGASI 6 MENU UTAMA (BAB III HURUF F SK 2722/2026)
   ========================================================================== */
@media (min-width: 1200px) {
    .pta-brand-wrap {
        width: auto !important;
        flex-shrink: 0;
    }
    .pta-brand-wrap .navbar-brand {
        max-width: none !important;
    }
    .navbar-collapse {
        width: auto !important;
        flex-grow: 1;
    }
    .navbar-nav {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
    }
    .navbar-nav .nav-link {
        max-width: 155px;
        text-align: center;
        justify-content: center;
    }
}
.navbar-nav .nav-link {
    color: #334155;
    font-weight: 600;
    font-size: 0.87rem;
    padding: 0.45rem 0.65rem;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: normal;
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.navbar-nav .nav-link:hover {
    color: var(--pa-primary);
}
.navbar-nav .nav-link.active {
    color: var(--pa-primary) !important;
    font-weight: 700;
    border-bottom: 3px solid var(--pa-secondary);
}
.dropdown-menu {
    border-top: 3px solid var(--pa-secondary);
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    min-width: 230px;
    max-width: 300px;
}
.dropdown-item {
    font-size: 0.87rem;
    font-weight: 500;
    padding: 0.52rem 1.15rem;
    transition: all 0.15s ease;
    white-space: normal;
    line-height: 1.35;
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--pa-primary-light);
    color: var(--pa-primary);
    padding-left: 1.5rem;
}

/* Sidebar Sub-Navigasi (Desktop col-lg-3 Sticky) */
.sidebar-nav-link {
    color: #334155;
    border-left: 4px solid transparent;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
}
.sidebar-nav-link:hover {
    background-color: var(--pa-primary-light);
    color: var(--pa-primary);
    padding-left: 1.25rem !important;
}
.sidebar-nav-link.active {
    background-color: var(--pa-primary) !important;
    color: #ffffff !important;
    border-left: 4px solid var(--pa-secondary);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(5, 110, 79, 0.25);
}
.sidebar-nav-link.active i {
    color: var(--pa-secondary) !important;
}

/* ==========================================================================
   3. HERO SLIDER EKONOMIS (MAKSIMAL 3-5 SLIDE - BAB III HURUF C)
   ========================================================================== */
#hero-carousel .carousel-item {
    min-height: 380px;
    background-position: center;
    background-size: cover;
    position: relative;
    background-color: var(--pa-primary-dark);
}
#hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 110, 79, 0.95) 0%, rgba(5, 110, 79, 0.85) 60%, rgba(3, 77, 55, 0.78) 100%);
}
#hero-carousel .hero-content {
    position: relative;
    z-index: 10;
}

/* Kartu Pintasan Layanan (Solid Elevation, Top Accent, Akses <= 2 Klik) */
.card-shortcut {
    transition: all 0.25s ease-in-out;
    border: 1px solid #e2e8f0;
    border-top: 4px solid var(--pa-primary);
    border-radius: 12px;
    color: #1e293b;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.card-shortcut:hover {
    background-color: var(--pa-primary) !important;
    border-top-color: var(--pa-secondary);
    color: #ffffff !important;
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(5, 110, 79, 0.22) !important;
}
.card-shortcut .bi {
    color: var(--pa-primary);
    transition: color 0.25s ease, transform 0.25s ease;
}
.card-shortcut:hover .bi {
    color: var(--pa-secondary);
    transform: scale(1.1);
}
.card-shortcut:hover h3 {
    color: #ffffff !important;
}
.card-shortcut:hover p {
    color: #e2e8f0 !important;
}

/* Card Styling Solid */
.card {
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f5;
}

/* ==========================================================================
   4. FITUR AKSESIBILITAS RAMAH DISABILITAS / WCAG (LAMPIRAN II HURUF B)
   ========================================================================== */
.a11y-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1055;
}
.a11y-panel {
    width: 290px;
    display: none;
    border-radius: 12px;
}
.a11y-panel.show {
    display: block;
}

/* Mode Kontras Tinggi (High Contrast Mode WCAG 2.1 AAA) */
body.high-contrast {
    background-color: #000000 !important;
    color: #ffff00 !important;
}
body.high-contrast header,
body.high-contrast nav,
body.high-contrast section,
body.high-contrast .card,
body.high-contrast .bg-white,
body.high-contrast .bg-light,
body.high-contrast .modal-content,
body.high-contrast footer,
body.high-contrast .sidebar-nav-link {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border: 1px solid #ffff00 !important;
}
body.high-contrast a,
body.high-contrast button,
body.high-contrast h1, body.high-contrast h2, body.high-contrast h3, body.high-contrast h4,
body.high-contrast p, body.high-contrast span, body.high-contrast td, body.high-contrast th,
body.high-contrast i {
    color: #ffff00 !important;
}
body.high-contrast .btn-pa-secondary,
body.high-contrast .btn-pa-primary,
body.high-contrast .btn-success {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
    font-weight: bold !important;
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* ==========================================================================
   6. KOMPONEN KLASIK UNGGULAN WEB LAMA (PORTAL WARTA, MAKLUMAT, TV, APLIKASI)
   ========================================================================== */

/* 1. WARTA & INFORMASI */
.pta-unified-portal-tabs {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.06);
    margin: 1.5rem 0 2rem 0;
    box-sizing: border-box;
}
.pta-tabs-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
.pta-tabs-title-group {
    flex: 1;
    min-width: 240px;
}
.pta-section-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #ecfdf5;
    color: #056E4F;
    border: 1px solid #a7f3d0;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.pta-tabs-main-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 0;
}
.pta-tabs-nav-buttons {
    display: inline-flex;
    background: #f1f5f9;
    padding: 0.35rem;
    border-radius: 9999px;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.pta-tab-nav-btn {
    background: transparent;
    border: none;
    padding: 0.55rem 1.25rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.pta-tab-nav-btn:hover {
    color: #056E4F;
    background: rgba(255, 255, 255, 0.8);
}
.pta-tab-nav-btn.active {
    background: linear-gradient(135deg, #056E4F 0%, #0d9488 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5, 110, 79, 0.3);
}
.pta-tab-pane {
    display: none;
    animation: ptaTabFade 0.3s ease;
}
.pta-tab-pane.active {
    display: block;
}
@keyframes ptaTabFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pta-tab-articles-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}
@media (max-width: 991.98px) {
    .pta-tab-articles-layout {
        grid-template-columns: 1fr;
    }
}
.pta-card-hero {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}
.pta-card-hero:hover {
    border-color: #a7f3d0;
    box-shadow: 0 12px 28px rgba(5, 110, 79, 0.12);
}
.pta-card-thumb-link {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: #0f172a;
}
.pta-article-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.pta-card-hero:hover .pta-article-thumb-img {
    transform: scale(1.04);
}
.pta-card-badge-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.badge-amber   { background: linear-gradient(135deg, #b45309, #f59e0b); }
.badge-blue    { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.badge-emerald { background: linear-gradient(135deg, #022c22, #056E4F); }
.badge-teal    { background: linear-gradient(135deg, #0f766e, #0d9488); }

.pta-article-placeholder-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 2.2rem;
}
.pta-article-placeholder-thumb span {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.pta-card-body-wrap {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.pta-card-meta-line {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.pta-card-headline {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 0.65rem 0;
}
.pta-card-headline a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}
.pta-card-headline a:hover {
    color: #056E4F;
}
.pta-card-summary {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 1rem 0;
    flex: 1;
}
.pta-card-readmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #056E4F 0%, #047857 100%);
    color: #ffffff !important;
    padding: 0.5rem 1.15rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    width: fit-content;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.pta-card-readmore-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: #ffffff !important;
    transform: translateX(4px);
}
.pta-articles-subgrid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.pta-card-compact {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.pta-card-compact:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.pta-compact-thumb-link {
    width: 90px;
    height: 68px;
    min-width: 90px;
    border-radius: 6px;
    overflow: hidden;
    background: #0f172a;
    display: block;
}
.pta-compact-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pta-compact-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
}
.pta-compact-body {
    flex: 1;
    min-width: 0;
}
.pta-compact-meta {
    font-size: 0.75rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.pta-compact-headline {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}
.pta-compact-headline a {
    color: #1e293b;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    transition: color 0.15s ease;
}
.pta-compact-headline a:hover {
    color: #056E4F;
}
.pta-tab-pane-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
    text-align: right;
}
.pta-btn-category-archive {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #056E4F;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pta-btn-category-archive:hover {
    color: #d97706;
    transform: translateX(4px);
}

/* 2. MAKLUMAT RESMI SLIDER */
.pta-maklumat-slider-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pta-maklumat-slider-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.pta-maklumat-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.pta-maklumat-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.pta-maklumat-main-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.2px;
}
.pta-slider-arrows-nav {
    display: flex;
    gap: 0.4rem;
}
.pta-slider-arrow {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}
.pta-slider-arrow:hover {
    background: #056E4F;
    color: #ffffff;
    border-color: #044b36;
    transform: scale(1.05);
}
.pta-maklumat-stage {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.pta-maklumat-slide {
    display: none;
    width: 100%;
    text-align: center;
    animation: ptaSlideFade 0.35s ease;
}
.pta-maklumat-slide.active {
    display: block;
}
@keyframes ptaSlideFade {
    from { opacity: 0; transform: scale(0.98); }
    to   { opacity: 1; transform: scale(1); }
}
.pta-maklumat-slide img {
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}
.pta-maklumat-tabs-nav {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}
.pta-maklumat-tab-btn {
    flex: 1;
    min-width: 120px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}
.pta-maklumat-tab-btn:hover {
    background: #eef2f6;
    border-color: #cbd5e1;
}
.pta-maklumat-tab-btn.active {
    background: #056E4F;
    color: #ffffff;
    border-color: #044b36;
    box-shadow: 0 4px 10px rgba(5, 110, 79, 0.25);
}
.pta-maklumat-tab-btn.active strong, .pta-maklumat-tab-btn.active small, .pta-maklumat-tab-btn.active i {
    color: #ffffff !important;
}
.pta-maklumat-btn-text strong {
    display: block;
    font-size: 0.78rem;
    color: #1e293b;
    line-height: 1.2;
}
.pta-maklumat-btn-text small {
    display: block;
    font-size: 0.68rem;
    color: #64748b;
}

/* 3. PTA TV CHANNEL */
.pta-tv-channel-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pta-tv-channel-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.pta-tv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.pta-tv-title-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.pta-tv-badge {
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.pta-tv-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.2px;
}
.pta-tv-sub-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #b91c1c;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.25);
}
.pta-tv-sub-btn:hover {
    background: #991b1b;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(185, 28, 28, 0.35);
}
.pta-tv-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #000000;
    border-radius: 10px;
    overflow: hidden;
}
.pta-tv-facade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.pta-tv-facade-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.pta-tv-facade:hover .pta-tv-facade-thumb {
    transform: scale(1.05);
}
.pta-tv-play-circle {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(185, 28, 28, 0.92);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    transition: all 0.25s ease;
    padding-left: 4px;
}
.pta-tv-facade:hover .pta-tv-play-circle {
    background: #dc2626;
    transform: scale(1.1);
}
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    margin-bottom: 0.85rem;
}
.pta-tv-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.pta-tv-playlist-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}
@media (max-width: 575.98px) {
    .pta-tv-playlist-bar {
        grid-template-columns: 1fr;
    }
}
.pta-tv-play-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
    transition: all 0.2s ease;
}
.pta-tv-play-btn:hover {
    background: #eef2f6;
    border-color: #cbd5e1;
}
.pta-tv-play-btn.active {
    background: #dc2626;
    color: #ffffff;
    border-color: #b91c1c;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25);
}
.pta-tv-play-btn.active strong, .pta-tv-play-btn.active small, .pta-tv-play-btn.active i {
    color: #ffffff !important;
}
.pta-tv-btn-text strong {
    display: block;
    font-size: 0.78rem;
    color: #1e293b;
    line-height: 1.2;
}
.pta-tv-btn-text small {
    display: block;
    font-size: 0.68rem;
    color: #64748b;
}

/* 4. LAYANAN & APLIKASI DIGITAL UNGGULAN */
.pta-apps-container {
    background: linear-gradient(145deg, #07281f 0%, #0d3d30 100%);
    border-radius: 20px;
    padding: 40px 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-align: center;
    box-sizing: border-box;
    margin: 2rem 0;
    width: 100%;
}
.pta-app-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 125px;
    margin: 14px 10px;
    text-decoration: none !important;
    color: #f1f5f9 !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.pta-app-btn:hover {
    transform: translateY(-4px) scale(1.05);
}
.pta-app-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}
.pta-app-btn:hover .pta-app-icon-wrap {
    box-shadow: 0 10px 25px rgba(255, 153, 0, 0.4);
    transform: scale(1.05);
}
.pta-app-title {
    font-size: 12px;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.3;
    text-align: center;
    display: block;
    max-width: 115px;
}

/* ==========================================================================
   5. RESPONSIVITAS MOBILE & TABLET (NO OVERFLOW)
   ========================================================================== */
@media (max-width: 1199.98px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
        margin-top: 0.5rem;
    }
    .navbar-nav .nav-link {
        padding: 0.6rem 1rem;
        border-bottom: 1px solid #f1f5f9;
    }
}

@media (max-width: 767.98px) {
    #hero-carousel .carousel-item {
        min-height: 320px;
    }
    #hero-carousel h1, #hero-carousel h2 {
        font-size: 1.45rem !important;
        line-height: 1.3 !important;
        overflow-wrap: break-word;
    }
    #hero-carousel p {
        font-size: 0.88rem !important;
        overflow-wrap: break-word;
    }
    #hero-carousel .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    #hero-carousel .btn {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
    }
    .card-shortcut {
        padding: 1.25rem 1rem !important;
    }
}

@media (max-width: 575.98px) {
    #hero-carousel h1, #hero-carousel h2 {
        font-size: 1.3rem !important;
    }
    .font-display.display-5 {
        font-size: 2.2rem !important;
    }
    .a11y-widget {
        bottom: 1rem;
        right: 1rem;
    }
}

/* ==========================================================================
   RESPONSIVE ARTICLE & MEDIA CONTENT (SK DIRJEN BADILAG 2722)
   Otomatis menyesuaikan ukuran gambar dengan lebar layar & kontainer artikel
   Mencegah gambar keluar garis (overflow / outline)
   ========================================================================== */
.entry-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    object-fit: contain;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

.entry-content figure {
    max-width: 100% !important;
    margin: 1.5rem auto !important;
}

.entry-content figure img {
    max-width: 100% !important;
    height: auto !important;
}

.entry-content table {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.entry-content iframe,
.entry-content video,
.entry-content embed {
    max-width: 100% !important;
    border-radius: 8px;
}

/* ==========================================================================
   AKSESIBILITAS KONTRAS TINGGI WCAG AAA & ZERO CLS (SK DIRJEN 2722)
   ========================================================================== */
.bg-pa-primary .text-white-50,
.hero-content .text-white-50,
.bg-success .text-white-50,
.hero-box .text-white-50 {
    color: rgba(255, 255, 255, 0.88) !important;
}

.news-card .card-img-top {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
}
