/* ==============================================================================
   PTA CLASSIC PLUS - LAYOUT & MODERN NEWS TABS
   Pengadilan Tinggi Agama Samarinda
   Catatan: Warna menu & header mengikuti abana_j3 / web_pa.
   Layout 4 Tab (Pengumuman, Artikel, Berita PTA, Berita PA) bergaya PTA_MODERN.
   ============================================================================== */

/* --------------------------------------------------------------------------
   1. CONTAINER LEBAR (MENGATASI KOSONG KANAN-KIRI)
   -------------------------------------------------------------------------- */
html, body {
    overflow-x: hidden;
}

.wrapper,
#page .wrapper {
    max-width: 1360px !important;
    width: 96% !important;
    margin: 0 auto !important;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   2. BANNER "MAHKAMAH AGUNG RI - PTA SAMARINDA" DI UJUNG KIRI
   -------------------------------------------------------------------------- */
#toolbar {
    position: relative;
}

#toolbar .float-left {
    float: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
}

/* tanggal dipindah ke kanan agar banner di ujung kiri */
#toolbar .float-left > time {
    position: absolute !important;
    right: 0;
    top: 6px;
    float: none !important;
    margin: 0 !important;
}

#toolbar .float-left .module {
    float: left !important;
    margin: 5px 0 0 0 !important;
    padding: 0 !important;
}

#toolbar .float-left .module p {
    margin: 0 !important;
    text-align: left !important;
}

#toolbar .float-left .module img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* kotak pencarian sedikit di bawah tanggal */
#toolbar .search-box {
    margin-top: 40px !important;
}

/* --------------------------------------------------------------------------
   3. DESKTOP MENU STYLING (>= 960px) - RATA KIRI, ELEGAN, SESUAI IDENTITAS PTA
   -------------------------------------------------------------------------- */
@media (min-width: 960px) {
    /* Sembunyikan semua elemen drawer & hamburger mobile di desktop */
    .pta-mobile-menu-btn,
    .pta-mobile-caret,
    .pta-mobile-caret-sub,
    .pta-mobile-drawer-backdrop,
    #pta-mobile-toggle,
    .pta-hamburger-btn,
    .pta-mobile-drawer-header,
    .pta-mobile-drawer-footer {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        pointer-events: none !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }

    #menubar {
        display: block !important;
        width: 100% !important;
        margin: 6px 0 0 0 !important;
        padding: 0 !important;
        background: #056E4F !important;
        border-top: 2px solid #fff000 !important;
        border-bottom: 2px solid #fff000 !important;
        border-radius: 4px 4px 0 0 !important;
        box-shadow: 0 4px 12px rgba(5, 110, 79, 0.25) !important;
        overflow: visible !important;
        clear: both !important;
    }

    #menu {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }

    #menu .menu-dropdown {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        align-items: stretch !important;
        justify-content: space-between !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    #menu .menu-dropdown > li.level1 {
        flex: 1 1 auto !important;
        float: none !important;
        text-align: left !important;
        display: flex !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        position: relative !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
    }

    #menu .menu-dropdown > li.level1:last-child {
        border-right: none !important;
    }

    #menu .menu-dropdown > li.level1:before,
    #menu .menu-dropdown > li.level1:after {
        display: none !important;
        content: "" !important;
    }

    #menu .menu-dropdown a.level1,
    #menu .menu-dropdown span.level1 {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        width: 100% !important;
        min-height: 50px !important;
        padding: 8px 10px !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
        background: transparent !important;
        color: #ffffff !important;
        transition: background-color 0.2s ease !important;
    }

    #menu .menu-dropdown > li.level1:hover > a.level1,
    #menu .menu-dropdown > li.level1:hover > span.level1,
    #menu .menu-dropdown > li.level1.active > a.level1,
    #menu .menu-dropdown > li.level1.remain > a.level1 {
        background-color: rgba(255, 255, 255, 0.18) !important;
        box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2) !important;
    }

    #menu .menu-dropdown a.level1 > span,
    #menu .menu-dropdown span.level1 > span {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        width: 100% !important;
        text-align: left !important;
        padding: 0 !important;
        height: auto !important;
        line-height: 1.2 !important;
        box-sizing: border-box !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }

    #menu .menu-dropdown a.level1 .title,
    #menu .menu-dropdown span.level1 .title {
        display: block !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        text-align: left !important;
        white-space: normal !important;
        line-height: 1.25 !important;
        word-break: normal !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
    }

    #menu .menu-dropdown a.level1 .subtitle,
    #menu .menu-dropdown span.level1 .subtitle {
        display: block !important;
        font-size: 9.5px !important;
        color: #fff000 !important;
        font-weight: 500 !important;
        text-align: left !important;
        white-space: normal !important;
        line-height: 1.15 !important;
        margin-top: 3px !important;
        word-break: normal !important;
        opacity: 0.95 !important;
        text-shadow: none !important;
    }

    /* Submenu Desktop Dropdown - Mengikuti Warna Template Asli (Hijau & Emas) */
    .menu-dropdown .dropdown {
        top: 50px !important;
        z-index: 99999 !important;
    }

    /* Hilangkan lag desktop hover dengan display CSS langsung */
    #menu .menu-dropdown > li.level1:hover > div.dropdown {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .menu-dropdown .dropdown-bg > div {
        min-width: 250px !important;
        padding: 4px 0 !important;
        background: #ffffff !important;
        border: 3px solid #056E4F !important;
        border-top: 4px solid #fff000 !important;
        border-radius: 0 0 6px 6px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    }

    .menu-dropdown ul.level2 {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .menu-dropdown li.level2 {
        background: #ffffff !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.8) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .menu-dropdown li.level2:first-child {
        border-top: none !important;
    }

    .menu-dropdown li.level2:last-child {
        border-bottom: none !important;
    }

    .menu-dropdown a.level2,
    .menu-dropdown span.level2 {
        display: flex !important;
        align-items: center !important;
        padding: 9px 16px !important;
        color: #006600 !important;
        font-size: 12.5px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        transition: all 0.15s ease !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }

    .menu-dropdown a.level2:hover,
    .menu-dropdown li.level2.active > a.level2 {
        color: #ffffff !important;
        background: #056E4F !important;
        border-left: 4px solid #fff000 !important;
        padding-left: 18px !important;
    }

    .menu-dropdown a.level2:hover .subtitle {
        color: #fff000 !important;
    }

    /* Header Group Level 2 / Parent */
    .menu-dropdown span.level2 > span {
        background: #056E4F !important;
        color: #ffffff !important;
        border-bottom: 2px solid #fff000 !important;
        padding: 6px 14px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        display: block !important;
    }

    .menu-dropdown a.level2 > span,
    .menu-dropdown span.level2 > span {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
    }

    /* Sub-submenu Level 3 (Anak dari Submenu) - Wajib Terbaca Jelas & Tidak Putih */
    .menu-dropdown ul.level3 {
        list-style: none !important;
        padding: 2px 0 6px 0 !important;
        margin: 0 !important;
        background: #f8fafc !important;
        border-left: 3px solid #056E4F !important;
        margin-left: 12px !important;
        margin-bottom: 4px !important;
    }

    .menu-dropdown li.level3 {
        background: transparent !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .menu-dropdown a.level3,
    .menu-dropdown span.level3,
    .menu-dropdown li.level3 a,
    .menu-dropdown li.level3 span {
        display: flex !important;
        align-items: center !important;
        padding: 6px 14px 6px 16px !important;
        color: #006600 !important;
        font-size: 11.5px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        text-shadow: none !important;
        background: transparent !important;
        transition: all 0.15s ease !important;
        border: none !important;
    }

    .menu-dropdown a.level3:before,
    .menu-dropdown li.level3 a:before {
        content: "▸ " !important;
        color: #056E4F !important;
        font-size: 11px !important;
        margin-right: 4px !important;
    }

    .menu-dropdown a.level3:hover,
    .menu-dropdown li.level3 a:hover,
    .menu-dropdown li.level3.active > a.level3 {
        color: #ffffff !important;
        background: #056E4F !important;
        padding-left: 20px !important;
    }

    .menu-dropdown a.level3:hover:before,
    .menu-dropdown li.level3 a:hover:before {
        color: #fff000 !important;
    }
}

/* --------------------------------------------------------------------------
   4. UNIFIED 4-TAB PORTAL SECTION (BERITA PTA, BERITA PA, PENGUMUMAN, ARTIKEL)
      LAYOUT & DESAIN IDENTIK PTA_MODERN
   -------------------------------------------------------------------------- */
.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); }
}

/* Layout: 1 Hero Besar di Kiri (58%) + 4 Ringkas di Kanan (42%) */
.pta-tab-articles-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media (max-width: 991px) {
    .pta-tab-articles-layout {
        grid-template-columns: 1fr;
    }
}

/* Card Hero Utama */
.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: #94a3b8;
    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);
}

/* Compact Subgrid List (Kanan) */
.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;
    position: relative;
    background: #0f172a;
    flex-shrink: 0;
}

.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.3rem;
}

.pta-compact-body {
    flex: 1;
    min-width: 0;
}

.pta-compact-meta {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.pta-compact-headline {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pta-compact-headline a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s 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.45rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: #056E4F;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.pta-btn-category-archive:hover {
    background: #d97706;
    color: #ffffff !important;
    border-color: #d97706;
}

/* --------------------------------------------------------------------------
   5. TICKER ANNOUNCEMENT STRIP TERPADU (RUNNING TEXT MODERN)
   -------------------------------------------------------------------------- */
.pta-modern-ticker-strip {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #fed7aa;
    border-left: 4px solid #ea580c;
    border-radius: 10px;
    padding: 6px 14px;
    margin: 15px 0;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.08);
    gap: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.pta-ticker-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 9999px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
    flex-shrink: 0;
}

.pta-pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: ptaPulse 1.5s infinite;
}

@keyframes ptaPulse {
    0%   { transform: scale(0.9); opacity: 0.8; }
    50%  { transform: scale(1.4); opacity: 1; box-shadow: 0 0 6px #ffffff; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.pta-ticker-marquee-holder {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.pta-modern-marquee {
    font-size: 13.5px;
    line-height: 1.4;
    color: #1e293b;
    display: flex;
    align-items: center;
}

.pta-ticker-item {
    font-weight: 500;
}

.pta-ticker-item.text-green {
    color: #065f46;
}

.pta-ticker-item.text-amber {
    color: #9a3412;
}

.pta-ticker-item i {
    margin-right: 4px;
}

.pta-ticker-sep {
    display: inline-block;
    margin: 0 16px;
    color: #cbd5e1;
    font-weight: 900;
}

/* --------------------------------------------------------------------------
   6. BANNER ZONA INTEGRITAS MODERN (6 AREA CARDS GRID)
   -------------------------------------------------------------------------- */
.pta-modern-zi-strip {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    padding: 16px 20px;
    margin: 15px 0 25px 0;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
}

.pta-zi-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.pta-zi-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pta-zi-badge-pill {
    background: linear-gradient(135deg, #056E4F 0%, #0d9488 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 3px 9px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(5, 110, 79, 0.25);
}

.pta-zi-title-text {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.pta-zi-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.pta-zi-card-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    text-decoration: none !important;
}

.pta-zi-card-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.pta-zi-card-item:hover {
    background: #ffffff;
    border-color: #056E4F;
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(5, 110, 79, 0.15);
}

.pta-zi-card-item:hover img {
    transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   6.5. BANNER LAYANAN UTAMA (6 SERVICE CARDS) MODERN
   -------------------------------------------------------------------------- */
.pta-modern-services-section {
    margin: 12px 0 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.pta-services-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    align-items: stretch;
}

.pta-service-card-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.pta-service-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height 0.2s ease;
}

.pta-service-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.09);
    border-color: #cbd5e1;
}

.pta-service-card-item:hover::before {
    height: 6px;
}

/* Service color themes */
.pta-service-card-item.service-green::before { background: linear-gradient(90deg, #056E4F, #10b981); }
.pta-service-card-item.service-green .pta-service-category-pill { background: rgba(5, 110, 79, 0.1); color: #056E4F; }
.pta-service-card-item.service-green:hover .pta-service-card-title { color: #056E4F; }

.pta-service-card-item.service-blue::before { background: linear-gradient(90deg, #1d4ed8, #3b82f6); }
.pta-service-card-item.service-blue .pta-service-category-pill { background: rgba(29, 78, 216, 0.1); color: #1d4ed8; }
.pta-service-card-item.service-blue:hover .pta-service-card-title { color: #1d4ed8; }

.pta-service-card-item.service-teal::before { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.pta-service-card-item.service-teal .pta-service-category-pill { background: rgba(2, 132, 199, 0.1); color: #0284c7; }
.pta-service-card-item.service-teal:hover .pta-service-card-title { color: #0284c7; }

.pta-service-card-item.service-red::before { background: linear-gradient(90deg, #dc2626, #f87171); }
.pta-service-card-item.service-red .pta-service-category-pill { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.pta-service-card-item.service-red:hover .pta-service-card-title { color: #dc2626; }

.pta-service-card-item.service-amber::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.pta-service-card-item.service-amber .pta-service-category-pill { background: rgba(217, 119, 6, 0.12); color: #b45309; }
.pta-service-card-item.service-amber:hover .pta-service-card-title { color: #d97706; }

.pta-service-card-item.service-purple::before { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.pta-service-card-item.service-purple .pta-service-category-pill { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.pta-service-card-item.service-purple:hover .pta-service-card-title { color: #7c3aed; }

/* Card internal parts */
.pta-service-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 8px;
}

.pta-service-card-logo-wrap {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    width: 100%;
}

.pta-service-logo-img {
    max-height: 44px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.05));
    transition: transform 0.25s ease;
}

.pta-service-card-item:hover .pta-service-logo-img {
    transform: scale(1.05);
}

.pta-service-category-pill {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 999px;
    display: inline-block;
}

.pta-service-card-body {
    flex: 1 1 auto;
    text-align: center;
    margin-bottom: 10px;
}

.pta-service-card-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px 0;
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.pta-service-card-desc {
    font-size: 0.74rem;
    line-height: 1.45;
    color: #64748b;
    margin: 0;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pta-service-card-action {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #056E4F;
    transition: all 0.2s ease;
}

.pta-service-card-action i {
    transition: transform 0.2s ease;
    font-size: 0.68rem;
}

.pta-service-card-item:hover .pta-service-card-action {
    color: #044b36;
}

.pta-service-card-item:hover .pta-service-card-action i {
    transform: translateX(4px);
}

@media (max-width: 1199px) {
    .pta-services-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 680px) {
    .pta-services-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 440px) {
    .pta-services-grid-6 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .pta-zi-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --------------------------------------------------------------------------
   6.6. MAKLUMAT SLIDER & PTA SAMARINDA TV CHANNEL MODERN
   -------------------------------------------------------------------------- */
.pta-central-media-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 25px;
}

/* --- MAKLUMAT & KOMITMEN 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%;
}

.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;
    width: 100%;
    min-height: 260px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pta-maklumat-slide {
    display: none;
    width: 100%;
    text-align: center;
    animation: ptaFadeIn 0.35s ease;
}

.pta-maklumat-slide.active {
    display: block;
}

.pta-maklumat-slide img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.pta-maklumat-tabs-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.pta-maklumat-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.22s ease;
}

.pta-maklumat-tab-btn i {
    font-size: 1.25rem;
    color: #056E4F;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.pta-maklumat-btn-text strong {
    display: block;
    font-size: 0.82rem;
    color: #1e293b;
    margin-bottom: 0.1rem;
    line-height: 1.25;
}

.pta-maklumat-btn-text small {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.2;
}

.pta-maklumat-tab-btn:hover {
    background: #ffffff;
    border-color: #056E4F;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(5, 110, 79, 0.08);
}

.pta-maklumat-tab-btn:hover i {
    transform: scale(1.1);
}

.pta-maklumat-tab-btn.active {
    background: linear-gradient(135deg, #056E4F, #0b8a64);
    border-color: #044b36;
    box-shadow: 0 4px 12px rgba(5, 110, 79, 0.22);
}

.pta-maklumat-tab-btn.active i {
    color: #fff000;
}

.pta-maklumat-tab-btn.active .pta-maklumat-btn-text strong {
    color: #ffffff;
}

.pta-maklumat-tab-btn.active .pta-maklumat-btn-text small {
    color: #d1fae5;
}

/* --- PTA SAMARINDA 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%;
}

.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: #dc2626;
    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: #ff0000;
    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(255, 0, 0, 0.2);
}

.pta-tv-sub-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(255, 0, 0, 0.3);
}

.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;
    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(4, 1fr);
    gap: 0.65rem;
}

.pta-tv-play-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.22s ease;
}

.pta-tv-play-btn i {
    font-size: 1.25rem;
    color: #dc2626;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.pta-tv-btn-text strong {
    display: block;
    font-size: 0.8rem;
    color: #1e293b;
    margin-bottom: 0.1rem;
    line-height: 1.2;
}

.pta-tv-btn-text small {
    display: block;
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.2;
}

.pta-tv-play-btn:hover {
    background: #ffffff;
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.08);
}

.pta-tv-play-btn:hover i {
    transform: scale(1.1);
}

.pta-tv-play-btn.active {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    border-color: #991b1b;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.24);
}

.pta-tv-play-btn.active i {
    color: #ffffff;
}

.pta-tv-play-btn.active .pta-tv-btn-text strong {
    color: #ffffff;
}

.pta-tv-play-btn.active .pta-tv-btn-text small {
    color: #fca5a5;
}

@media (max-width: 860px) {
    .pta-maklumat-tabs-nav {
        grid-template-columns: 1fr;
    }
    .pta-tv-playlist-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pta-tv-playlist-bar {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   6.7. SIDEBAR WIDGETS MODERN (INFORMASI CEPAT, SURVEY, LAPORKAN, STATISTIK)
   -------------------------------------------------------------------------- */
.pta-modern-sidebar-card,
.pta-modern-quickinfo-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    width: 100%;
    transition: all 0.25s ease;
}

.pta-modern-sidebar-card:hover,
.pta-modern-quickinfo-box:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.pta-sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid #f1f5f9;
}

.pta-sidebar-card-header i {
    font-size: 1.15rem;
}

.pta-sidebar-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.2px;
    text-transform: uppercase;
}

/* --- INFORMASI CEPAT MENU --- */
.pta-quickinfo-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pta-quickinfo-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #056E4F;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.82rem;
    color: #1e293b !important;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.pta-quickinfo-link .pta-qi-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.pta-quickinfo-link .pta-qi-icon {
    font-size: 0.95rem;
    width: 20px;
    display: inline-flex;
    justify-content: center;
    color: #056E4F;
    transition: transform 0.2s ease;
}

.pta-quickinfo-link .pta-qi-arrow {
    font-size: 0.72rem;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.pta-quickinfo-link:hover {
    background: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.pta-quickinfo-link:hover .pta-qi-icon {
    transform: scale(1.15);
}

.pta-quickinfo-link:hover .pta-qi-arrow {
    transform: translateX(3px);
    color: #056E4F;
}

/* Color variations for Informasi Cepat */
.pta-quickinfo-link.accent-blue { border-left-color: #2563eb; }
.pta-quickinfo-link.accent-blue .pta-qi-icon { color: #2563eb; }
.pta-quickinfo-link.accent-blue:hover .pta-qi-arrow { color: #2563eb; }

.pta-quickinfo-link.accent-green { border-left-color: #059669; }
.pta-quickinfo-link.accent-green .pta-qi-icon { color: #059669; }
.pta-quickinfo-link.accent-green:hover .pta-qi-arrow { color: #059669; }

.pta-quickinfo-link.accent-amber { border-left-color: #d97706; }
.pta-quickinfo-link.accent-amber .pta-qi-icon { color: #d97706; }
.pta-quickinfo-link.accent-amber:hover .pta-qi-arrow { color: #d97706; }

.pta-quickinfo-link.accent-purple { border-left-color: #7c3aed; }
.pta-quickinfo-link.accent-purple .pta-qi-icon { color: #7c3aed; }
.pta-quickinfo-link.accent-purple:hover .pta-qi-arrow { color: #7c3aed; }

.pta-quickinfo-link.accent-teal { border-left-color: #0d9488; }
.pta-quickinfo-link.accent-teal .pta-qi-icon { color: #0d9488; }
.pta-quickinfo-link.accent-teal:hover .pta-qi-arrow { color: #0d9488; }

.pta-quickinfo-link.accent-emerald { border-left-color: #16a34a; }
.pta-quickinfo-link.accent-emerald .pta-qi-icon { color: #16a34a; }
.pta-quickinfo-link.accent-emerald:hover .pta-qi-arrow { color: #16a34a; }

.pta-quickinfo-link.accent-orange { border-left-color: #ea580c; }
.pta-quickinfo-link.accent-orange .pta-qi-icon { color: #ea580c; }
.pta-quickinfo-link.accent-orange:hover .pta-qi-arrow { color: #ea580c; }

.pta-quickinfo-link.accent-red { border-left-color: #dc2626; }
.pta-quickinfo-link.accent-red .pta-qi-icon { color: #dc2626; }
.pta-quickinfo-link.accent-red:hover .pta-qi-arrow { color: #dc2626; }

/* Legacy sidebar menu fallback override */
#sidebar-a .menu-sidebar,
#sidebar-a .vertical-menu,
#sidebar-b .menu-sidebar,
#sidebar-b .vertical-menu,
.menu-sidebar {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

#sidebar-a .menu-sidebar li a,
#sidebar-a .vertical-menu li a,
#sidebar-b .menu-sidebar li a,
#sidebar-b .vertical-menu li a,
.menu-sidebar li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #056E4F;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.82rem;
    color: #1e293b !important;
    text-decoration: none !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 5 !important;
    pointer-events: auto !important;
    transition: all 0.22s ease;
}

#sidebar-a .menu-sidebar li a:hover,
#sidebar-a .vertical-menu li a:hover,
#sidebar-b .menu-sidebar li a:hover,
#sidebar-b .vertical-menu li a:hover,
.menu-sidebar li a:hover {
    background: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    color: #056E4F !important;
}

/* --- SIDEBAR TAB WIDGETS (SURVEY, LAPORKAN, LAYANAN DIGITAL) --- */
.pta-widget-tabs-nav {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.pta-widget-tab-btn {
    flex: 1 1 0;
    min-width: 50px;
    text-align: center;
    background: transparent;
    border: none;
    padding: 0.45rem 0.35rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: normal;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pta-widget-tab-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    color: #1e293b;
}

.pta-widget-tab-btn.active {
    background: #056E4F;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(5, 110, 79, 0.25);
}

.pta-widget-laporkan .pta-widget-tab-btn.active {
    background: #dc2626;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.pta-widget-layanan-digital .pta-widget-tab-btn.active {
    background: #0d9488;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
}

.pta-widget-pane {
    display: none;
    text-align: center;
    animation: ptaFadeIn 0.3s ease;
}

.pta-widget-pane.active {
    display: block;
}

.pta-widget-img-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.65rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
}

.pta-widget-img-box img {
    max-height: 230px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease;
}

.pta-widget-img-box:hover img {
    transform: scale(1.03);
}

.pta-widget-desc-box {
    padding: 0.25rem 0;
}

.pta-widget-item-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
    line-height: 1.25;
}

.pta-widget-item-sub {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
}

.pta-widget-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #056E4F;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.5rem 1.15rem;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(5, 110, 79, 0.2);
}

.pta-widget-cta-btn:hover {
    background: #044b36;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 110, 79, 0.3);
}

.pta-widget-cta-btn.btn-danger {
    background: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.pta-widget-cta-btn.btn-danger:hover {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.pta-widget-cta-btn.btn-teal {
    background: #0d9488;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
}

.pta-widget-cta-btn.btn-teal:hover {
    background: #0f766e;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* --- STATISTIK PENGUNJUNG --- */
.pta-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.pta-stat-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.pta-stat-item.pta-stat-total {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(5, 110, 79, 0.06));
    border-color: #cbd5e1;
}

.pta-stat-icon {
    font-size: 1.15rem;
}

.pta-stat-info {
    display: flex;
    flex-direction: column;
}

.pta-stat-label {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 600;
}

.pta-stat-value {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

.pta-flag-counter-box {
    text-align: center;
    padding: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.pta-flag-counter-box img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: inline-block;
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE / MOBILE
   -------------------------------------------------------------------------- */
.pta-hamburger-btn {
    display: none;
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE / MOBILE MENU & HAMBURGER
   -------------------------------------------------------------------------- */
.pta-mobile-menu-btn,
.pta-mobile-caret,
.pta-mobile-caret-sub,
.pta-mobile-drawer-backdrop {
    display: none;
}

@media (max-width: 959px) {
    .wrapper, #page .wrapper {
        width: 100% !important;
        padding: 0 8px !important;
    }

    #maininner, #sidebar-a, #sidebar-b {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
    }

    /* Force Header & Menubar to be visible on all mobile screen sizes */
    #headerbar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        visibility: visible !important;
        width: 100% !important;
        padding: 6px 0 !important;
    }

    /* 1. Header & Logo Responsive */
    #headerbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        float: none !important;
        margin: 0 auto !important;
        padding: 6px 0 !important;
    }

    #logo,
    #headerbar .left {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        margin: 0 auto 6px auto !important;
    }

    #logo img,
    #headerbar img {
        max-width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }

    #toolbar {
        padding: 6px 10px !important;
    }

    #toolbar .float-left > time {
        position: static !important;
        display: block !important;
        margin-bottom: 4px !important;
    }

    #toolbar .search-box {
        margin-top: 6px !important;
        width: 100% !important;
    }

    /* Lock body scroll when mobile menu is active */
    body.pta-mobile-menu-active {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* Mobile Drawer Backdrop */
    .pta-mobile-drawer-backdrop {
        display: none;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(15, 23, 42, 0.6) !important;
        z-index: 999998 !important;
        backdrop-filter: blur(3px) !important;
        -webkit-backdrop-filter: blur(3px) !important;
    }

    .pta-mobile-drawer-backdrop.is-open {
        display: block !important;
    }

    /* 2. Menubar & Hamburger Button */
    #menubar {
        display: block !important;
        width: 100% !important;
        margin: 6px 0 10px 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        overflow: visible !important;
        position: relative !important;
    }

    .pta-mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: 48px !important;
        padding: 0 16px !important;
        background: linear-gradient(135deg, #056E4F, #034b36) !important;
        color: #ffffff !important;
        border: 1px solid #033c2b !important;
        border-bottom: 3px solid #fff000 !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        letter-spacing: 0.5px !important;
        cursor: pointer !important;
        box-shadow: 0 4px 12px rgba(5, 110, 79, 0.25) !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        transition: all 0.2s ease !important;
        outline: none !important;
        position: relative !important;
        z-index: 99999 !important;
        pointer-events: auto !important;
        user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .pta-mobile-menu-btn:hover {
        background: linear-gradient(135deg, #06815d, #044b36) !important;
    }

    .pta-hamburger-icon-wrap {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 24px !important;
        height: 24px !important;
        font-size: 16px !important;
        color: #fff000 !important;
        pointer-events: none !important;
    }

    .pta-icon-close {
        display: none !important;
    }

    .pta-mobile-menu-btn.is-open .pta-icon-open {
        display: none !important;
    }

    .pta-mobile-menu-btn.is-open .pta-icon-close {
        display: inline-block !important;
    }

    .pta-mobile-btn-text {
        flex: 1 1 auto !important;
        text-align: left !important;
        padding-left: 12px !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        pointer-events: none !important;
    }

    .pta-mobile-btn-hint {
        font-size: 13px !important;
        color: #fff000 !important;
        pointer-events: none !important;
    }

    /* 3. Fullscreen Modern Mobile Drawer */
    #menu {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #ffffff !important;
        z-index: 9999999 !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    #menu.is-open {
        display: flex !important;
        animation: ptaDrawerSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    @keyframes ptaDrawerSlide {
        from { opacity: 0; transform: translateY(-10px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Drawer Header */
    .pta-mobile-drawer-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px 18px !important;
        background: linear-gradient(135deg, #056E4F 0%, #034b36 100%) !important;
        color: #ffffff !important;
        border-bottom: 3px solid #fff000 !important;
        box-shadow: 0 4px 12px rgba(5, 110, 79, 0.25) !important;
        flex-shrink: 0 !important;
        z-index: 10 !important;
    }

    .pta-drawer-logo-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .pta-drawer-icon {
        font-size: 22px !important;
        color: #fff000 !important;
    }

    .pta-drawer-title {
        display: flex !important;
        flex-direction: column !important;
        line-height: 1.25 !important;
    }

    .pta-drawer-title strong {
        font-size: 15px !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        letter-spacing: 0.5px !important;
    }

    .pta-drawer-title span {
        font-size: 11px !important;
        color: rgba(255, 255, 255, 0.85) !important;
        font-weight: 400 !important;
    }

    .pta-drawer-close-btn {
        background: rgba(255, 255, 255, 0.18) !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
        color: #ffffff !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 18px !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        outline: none !important;
        flex-shrink: 0 !important;
    }

    .pta-drawer-close-btn:hover {
        background: #ea580c !important;
        border-color: #ea580c !important;
        transform: rotate(90deg) !important;
    }

    /* Drawer Scrollable Content */
    .pta-mobile-drawer-content {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 12px 14px 20px 14px !important;
        background: #f8fafc !important;
    }

    /* Menu Dropdown inside drawer */
    #menu .menu-dropdown {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
        padding: 4px 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    /* Drawer Footer */
    .pta-mobile-drawer-footer {
        flex-shrink: 0 !important;
        padding: 12px 18px 16px 18px !important;
        background: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04) !important;
        z-index: 10 !important;
    }

    .pta-drawer-info-box {
        font-size: 11.5px !important;
        color: #64748b !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }

    .pta-drawer-info-box p {
        margin: 2px 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .pta-drawer-info-box i {
        color: #056E4F !important;
    }

    .pta-drawer-footer-actions {
        display: flex !important;
        gap: 8px !important;
    }

    .pta-drawer-action-btn {
        flex: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 9px 12px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        color: #056E4F !important;
        background: #ecfdf5 !important;
        border: 1px solid #a7f3d0 !important;
        transition: all 0.2s ease !important;
    }

    .pta-drawer-action-btn.highlight {
        background: linear-gradient(135deg, #056E4F, #034b36) !important;
        color: #ffffff !important;
        border-color: #034b36 !important;
    }

    /* Menu Items Level 1 */
    #menu .menu-dropdown > li.level1 {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        border-bottom: 1px solid #f1f5f9 !important;
        position: relative !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #menu .menu-dropdown > li.level1:last-child {
        border-bottom: none !important;
    }

    #menu .menu-dropdown > li.level1:before,
    #menu .menu-dropdown > li.level1:after {
        display: none !important;
        content: "" !important;
    }

    #menu .menu-dropdown > li.level1 > a.level1,
    #menu .menu-dropdown > li.level1 > span.level1 {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 11px 16px !important;
        color: #1e293b !important;
        font-weight: 700 !important;
        font-size: 13.5px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        text-decoration: none !important;
        background: transparent !important;
        box-sizing: border-box !important;
        min-height: 46px !important;
        border: none !important;
        box-shadow: none !important;
    }

    #menu .menu-dropdown > li.level1 > a.level1 > span,
    #menu .menu-dropdown > li.level1 > span.level1 > span {
        height: auto !important;
        line-height: 1.25 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
    }

    #menu .menu-dropdown a.level1 .title,
    #menu .menu-dropdown span.level1 .title {
        color: #1e293b !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        white-space: normal !important;
    }

    #menu .menu-dropdown a.level1 .subtitle,
    #menu .menu-dropdown span.level1 .subtitle {
        color: #64748b !important;
        font-size: 11px !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
        margin-top: 2px !important;
        white-space: normal !important;
    }

    #menu .menu-dropdown > li.level1:hover > a.level1,
    #menu .menu-dropdown > li.level1.active > a.level1 {
        color: #056E4F !important;
        background: #f0fdf4 !important;
    }

    #menu .menu-dropdown > li.level1:hover .title,
    #menu .menu-dropdown > li.level1.active .title {
        color: #056E4F !important;
    }

    /* Submenu toggle caret button on mobile */
    .pta-mobile-caret {
        flex: 0 0 50px !important;
        width: 50px !important;
        height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        color: #056E4F !important;
        font-size: 15px !important;
        transition: background 0.2s ease, transform 0.2s ease !important;
        border-left: 1px solid #f1f5f9 !important;
        box-sizing: border-box !important;
        background: #f8fafc !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .pta-mobile-caret:hover,
    .pta-mobile-caret:active {
        background: #ecfdf5 !important;
        color: #044b36 !important;
    }

    #menu .menu-dropdown > li.parent.submenu-open > .pta-mobile-caret {
        background: #ecfdf5 !important;
        color: #044b36 !important;
    }

    #menu .menu-dropdown > li.parent.submenu-open > .pta-mobile-caret i {
        transform: rotate(180deg) !important;
    }

    /* Mobile Submenu accordion */
    #menu .menu-dropdown > li.parent > div.dropdown,
    #menu .menu-dropdown > li.parent .dropdown {
        display: none !important;
        position: static !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        box-shadow: none !important;
        background: #f8fafc !important;
        border-top: 1px solid #e2e8f0 !important;
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }

    #menu .menu-dropdown > li.parent.submenu-open > div.dropdown,
    #menu .menu-dropdown > li.parent.submenu-open .dropdown,
    #menu .menu-dropdown > li.parent.submenu-open div.dropdown > div,
    #menu .menu-dropdown > li.parent.submenu-open div.dropdown > div > div,
    #menu .menu-dropdown > li.parent.submenu-open .dropdown-bg,
    #menu .menu-dropdown > li.parent.submenu-open .dropdown-bg > div,
    #menu .menu-dropdown > li.parent.submenu-open .column,
    #menu .menu-dropdown > li.parent.submenu-open ul.level2 {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: visible !important;
        position: static !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        transform: none !important;
        float: none !important;
    }

    #menu .menu-dropdown a.level2, 
    #menu .menu-dropdown span.level2,
    #menu .menu-dropdown a.level3,
    #menu .menu-dropdown span.level3,
    #menu .menu-dropdown a.level2 span,
    #menu .menu-dropdown span.level2 span,
    #menu .menu-dropdown a.level3 span,
    #menu .menu-dropdown span.level3 span {
        color: #006600 !important;
        background: transparent !important;
        text-shadow: none !important;
        border: none !important;
    }

    /* Level 2 Submenu List */
    #menu .menu-dropdown ul.level2 {
        display: flex !important;
        flex-direction: column !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        background: #f8fafc !important;
    }

    #menu .menu-dropdown ul.level2 > li.level2 {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border-bottom: 1px dashed #e2e8f0 !important;
        position: relative !important;
    }

    #menu .menu-dropdown ul.level2 > li.level2:last-child {
        border-bottom: none !important;
    }

    #menu .menu-dropdown ul.level2 > li.level2 > a.level2,
    #menu .menu-dropdown ul.level2 > li.level2 > span.level2 {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 11px 16px 11px 24px !important;
        color: #065f46 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        background: transparent !important;
        box-shadow: none !important;
        min-height: 44px !important;
        box-sizing: border-box !important;
    }

    #menu .menu-dropdown ul.level2 > li.level2:hover > a.level2,
    #menu .menu-dropdown ul.level2 > li.level2.active > a.level2 {
        color: #ffffff !important;
        background: #056E4F !important;
        border-left: 4px solid #fff000 !important;
        padding-left: 28px !important;
    }

    /* Sub-submenu toggle caret (Level 2 -> Level 3) */
    .pta-mobile-caret-sub {
        flex: 0 0 46px !important;
        width: 46px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        color: #056E4F !important;
        font-size: 13px !important;
        border-left: 1px dashed #cbd5e1 !important;
        box-sizing: border-box !important;
        background: transparent !important;
        transition: all 0.2s ease !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .pta-mobile-caret-sub:hover,
    .pta-mobile-caret-sub:active {
        background: #e2e8f0 !important;
        color: #044b36 !important;
    }

    #menu .menu-dropdown li.level2.parent.submenu-open > .pta-mobile-caret-sub {
        background: #e2e8f0 !important;
        color: #044b36 !important;
    }

    #menu .menu-dropdown li.level2.parent.submenu-open > .pta-mobile-caret-sub i {
        transform: rotate(180deg) !important;
    }

    /* Level 3 Sub-Submenu accordion */
    #menu .menu-dropdown ul.level3,
    #menu .menu-dropdown li.level2 > ul.level3 {
        display: none !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #f1f5f9 !important;
        border-top: 1px solid #e2e8f0 !important;
    }

    #menu .menu-dropdown li.level2.parent.submenu-open > ul.level3 {
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    #menu .menu-dropdown ul.level3 > li.level3 {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    #menu .menu-dropdown ul.level3 > li.level3:last-child {
        border-bottom: none !important;
    }

    #menu .menu-dropdown ul.level3 > li.level3 > a.level3,
    #menu .menu-dropdown ul.level3 > li.level3 > span.level3 {
        display: flex !important;
        align-items: center !important;
        padding: 10px 16px 10px 36px !important;
        font-size: 12.5px !important;
        color: #044b36 !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        min-height: 40px !important;
        box-sizing: border-box !important;
    }

    #menu .menu-dropdown ul.level3 > li.level3 > a.level3:hover,
    #menu .menu-dropdown ul.level3 > li.level3.active > a.level3 {
        color: #ffffff !important;
        background: #056E4F !important;
        padding-left: 40px !important;
    }
}

@media (max-width: 768px) {
    #toolbar .float-left > time {
        position: static !important;
        display: block;
    }

    #toolbar .search-box {
        margin-top: 8px !important;
    }

    .pta-tabs-header-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .pta-tabs-nav-buttons {
        width: 100%;
    }

    .pta-tab-nav-btn {
        flex: 1;
        justify-content: center;
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
    }

    #bottom-b .grid-box {
        width: 100% !important;
    }
}
