/* ==========================================================================
   Template Website PTA Maluku Utara — Joomla 6
   Standar SK Dirjen Badilag No. 2722/DJA/SK.TI1/X/2026
   Warna utama #056e4f, warna sekunder #ff9900 (Bab III huruf B)
   ========================================================================== */

:root {
    --pa-primary: #056e4f;
    --pa-primary-rgb: 5, 110, 79;
    --pa-primary-dark: #034d37;
    --pa-primary-light: #e6f3ef;
    --pa-secondary: #ff9900;
    --pa-secondary-hover: #e68a00;
    --base-font-size: 16px;

    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-bg: #f8f9fa;
    --bs-body-color: #1f2937;
    --bs-primary: #056e4f;
    --bs-primary-rgb: 5, 110, 79;
    --bs-link-color: #056e4f;
    --bs-link-color-rgb: 5, 110, 79;
    --bs-link-hover-color: #034d37;
    --bs-link-hover-color-rgb: 3, 77, 55;
    --bs-focus-ring-color: rgba(5, 110, 79, .35);
}

html { font-size: var(--base-font-size); scroll-padding-top: 7rem; }
body { font-family: var(--bs-body-font-family); background-color: var(--bs-body-bg); color: var(--bs-body-color); }
.font-display, h1, h2, h3, .h1, .h2, .h3 { font-family: 'Montserrat', var(--bs-font-sans-serif); }
.mw-40 { max-width: 40rem; }
.mw-32 { max-width: 32rem; }

/* Utilitas warna */
.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; }

/* Tombol */
.btn-pa-secondary { background-color: var(--pa-secondary); color: #111827; border-color: var(--pa-secondary); font-weight: 700; transition: all .2s ease; }
.btn-pa-secondary:hover, .btn-pa-secondary:focus { background-color: var(--pa-secondary-hover); border-color: var(--pa-secondary-hover); color: #000; transform: translateY(-1px); }
.btn-pa-primary { background-color: var(--pa-primary); color: #fff; border-color: var(--pa-primary); font-weight: 600; transition: all .2s ease; }
.btn-pa-primary:hover, .btn-pa-primary:focus { background-color: var(--pa-primary-dark); border-color: var(--pa-primary-dark); color: #fff; }

/* Tombol & komponen bawaan Joomla/Bootstrap ikut warna identitas */
.btn-primary {
    --bs-btn-bg: var(--pa-primary); --bs-btn-border-color: var(--pa-primary);
    --bs-btn-hover-bg: var(--pa-primary-dark); --bs-btn-hover-border-color: var(--pa-primary-dark);
    --bs-btn-active-bg: var(--pa-primary-dark); --bs-btn-active-border-color: var(--pa-primary-dark);
    --bs-btn-disabled-bg: var(--pa-primary); --bs-btn-disabled-border-color: var(--pa-primary);
}
.btn-outline-primary {
    --bs-btn-color: var(--pa-primary); --bs-btn-border-color: var(--pa-primary);
    --bs-btn-hover-bg: var(--pa-primary); --bs-btn-hover-border-color: var(--pa-primary);
    --bs-btn-active-bg: var(--pa-primary-dark); --bs-btn-active-border-color: var(--pa-primary-dark);
}
.btn-outline-success {
    --bs-btn-color: var(--pa-primary); --bs-btn-border-color: var(--pa-primary);
    --bs-btn-hover-bg: var(--pa-primary); --bs-btn-hover-border-color: var(--pa-primary);
    --bs-btn-active-bg: var(--pa-primary-dark); --bs-btn-active-border-color: var(--pa-primary-dark);
}
.pagination { --bs-pagination-color: var(--pa-primary); --bs-pagination-hover-color: var(--pa-primary-dark); --bs-pagination-active-bg: var(--pa-primary); --bs-pagination-active-border-color: var(--pa-primary); --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(5,110,79,.25); }
.form-control:focus, .form-select:focus { border-color: #4fa58a; box-shadow: 0 0 0 .25rem rgba(5,110,79,.2); }
.form-check-input:checked { background-color: var(--pa-primary); border-color: var(--pa-primary); }
a { color: var(--pa-primary); }
a:hover { color: var(--pa-primary-dark); }
:focus-visible { outline: 3px solid var(--pa-secondary); outline-offset: 2px; }

/* 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); }

/* Tautan lewati */
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: var(--pa-secondary); color: #000; padding: .5rem 1rem; border-radius: .375rem; font-weight: 700; }

/* ==========================================================================
   Header & navigasi 6 menu utama (Bab III huruf F)
   ========================================================================== */
.site-header { z-index: 1030; }
.topbar { font-size: .85rem; background-color: var(--tb-bg, #056e4f); color: var(--tb-text, #fff); }
.topbar .tb-item { color: var(--tb-text, #fff); }
.topbar a.tb-item:hover, .topbar a.tb-item:focus { color: var(--tb-icon, #ff9900); }
.topbar .tb-icon { color: var(--tb-icon, #ff9900); }
.topbar .tb-sep { color: var(--tb-text, #fff); opacity: .5; }
.brand-logo { height: 3.2rem; width: auto; }
.brand-name { font-size: 1.15rem; letter-spacing: .01em; }
.brand-emblem { display: inline-flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--pa-primary); color: var(--pa-secondary); font-size: 1.6rem; flex-shrink: 0; }
.brand-emblem-sm { width: 3rem; height: 3rem; font-size: 1.4rem; }
.navbar-brand { white-space: normal; max-width: calc(100% - 4rem); margin-right: .5rem; flex-shrink: 0; overflow: hidden; }
@media (min-width: 1200px) { .navbar-brand { margin-right: 1rem; } }
.brand-text .small { font-size: .8rem; }
@media (min-width: 1200px) {
    .navbar-brand { max-width: 19rem; }
    .brand-name { font-size: 1rem; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar-nav { gap: 0 !important; }
    .navbar-nav .nav-link { font-size: .8rem; padding-left: .32rem !important; padding-right: .32rem !important; }
    .navbar-brand { max-width: 14.5rem; gap: .5rem !important; margin-right: .5rem; }
    .brand-name { font-size: .82rem; }
    .brand-text .small { font-size: .7rem; }
    .brand-logo, .brand-emblem { height: 2.6rem; }
    .brand-emblem { width: 2.6rem; font-size: 1.3rem; }
}
@media (max-width: 575.98px) {
    .brand-name { font-size: .9rem; }
    .brand-text .small { font-size: .72rem; }
    .brand-logo, .brand-emblem { height: 2.6rem; }
    .brand-emblem { width: 2.6rem; }
}
.navbar-nav .nav-link { color: #374151; font-weight: 600; font-size: .925rem; padding: .5rem .75rem; border-bottom: 3px solid transparent; transition: all .2s ease; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus { color: var(--pa-primary); }
.navbar-nav .nav-link.active, .navbar-nav .nav-item.active > .nav-link { color: var(--pa-primary) !important; font-weight: 700; border-bottom-color: var(--pa-secondary); }
.navbar .dropdown-menu { border-top: 3px solid var(--pa-secondary) !important; border-radius: 0 0 .5rem .5rem; min-width: 17rem; padding: .35rem 0; }
.dropdown-item { font-size: .9rem; font-weight: 500; }
@media (max-width: 1199.98px) { .dropdown-item { white-space: normal; } }
.dropdown-item:hover, .dropdown-item:focus { background-color: var(--pa-primary-light); color: var(--pa-primary); }
.dropdown-item.active, .dropdown-item:active { background-color: var(--pa-primary); color: #fff; }
.dropdown-header { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--pa-primary); font-weight: 700; margin: 0; }
@media (min-width: 1200px) {
    .navbar .dropdown-menu { margin-top: .6rem; }
    .navbar-nav .nav-link { white-space: nowrap; }
}
@media (max-width: 1199.98px) {
    .navbar-collapse { max-height: calc(100vh - 8rem); overflow-y: auto; padding-bottom: .5rem; }
    .navbar .dropdown-menu { box-shadow: none !important; border-top-width: 2px !important; background: #f8faf9; }
    .navbar-nav .nav-link { border-bottom: 1px solid #eef0f2; }
    .navbar-nav .nav-link.active, .navbar-nav .nav-item.active > .nav-link { border-bottom-color: var(--pa-secondary); }
}

/* ==========================================================================
   Hero slider ekonomis (maksimal 3 slide — Bab III huruf C)
   ========================================================================== */
#hero-carousel .carousel-item { min-height: 55vh; background-position: center; background-size: cover; background-color: var(--pa-primary); position: relative; }
#hero-carousel .carousel-item.no-image { background-image: radial-gradient(circle at 85% 20%, rgba(255,153,0,.25) 0, transparent 35%), linear-gradient(135deg, #056e4f 0%, #034d37 100%); }
#hero-carousel .carousel-item::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,110,79,.92) 0%, rgba(5,110,79,.75) 60%, rgba(3,77,55,.6) 100%); }
#hero-carousel .carousel-item.no-image::before { background: none; }
#hero-carousel .hero-content { position: relative; z-index: 10; min-height: 55vh; }
#hero-carousel .hero-title { max-width: 52rem; }
#hero-carousel .hero-text { max-width: 42rem; color: rgba(255,255,255,.85); }
#hero-carousel .carousel-indicators { z-index: 11; }
#hero-carousel .carousel-control-prev, #hero-carousel .carousel-control-next { z-index: 11; width: 6%; }
@media (max-width: 767.98px) {
    #hero-carousel .carousel-item, #hero-carousel .hero-content { min-height: 0; }
    #hero-carousel .hero-content { padding-bottom: 4rem !important; }
    #hero-carousel .hero-title { font-size: 1.75rem; }
    #hero-carousel .hero-text { font-size: 1rem !important; }
}

/* Kartu pintasan layanan (akses ≤ 2 klik) */
.card-shortcut { transition: all .25s ease-in-out; border: 1px solid #e5e7eb; color: #1f2937; }
.card-shortcut:hover, .card-shortcut:focus { background-color: var(--pa-primary) !important; border-color: var(--pa-primary); color: #fff; transform: translateY(-4px); box-shadow: 0 10px 20px rgba(5,110,79,.15) !important; }
.card-shortcut .bi { color: var(--pa-primary); transition: color .25s ease; }
.card-shortcut:hover .bi, .card-shortcut:focus .bi { color: var(--pa-secondary); }
.card-shortcut:hover h3, .card-shortcut:focus h3 { color: #fff !important; }
.card-shortcut:hover p, .card-shortcut:focus p { color: #e5e7eb !important; }

/* ==========================================================================
   Panel beranda & modul
   ========================================================================== */
.panel-box { background: #fff; border-radius: .5rem; box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); border-top: 4px solid var(--pa-primary); padding: 1.5rem; }
.panel-box + .panel-box { margin-top: 1.5rem; }
.d-grid > .panel-box + .panel-box { margin-top: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .5rem; margin-bottom: 1rem; border-bottom: 1px solid #dee2e6; }
.panel-body > :last-child { margin-bottom: 0; }

/* Daftar artikel modul (mod_articles / mod_articles_latest) di panel */
.panel-body ul.mod-articles, .panel-body ul.mod-list, .panel-body ul.latestnews, .panel-body .mod-articles-items { list-style: none; padding: 0; margin: 0; }
.panel-body ul.mod-articles > li, .panel-body ul.mod-list > li, .panel-body ul.latestnews > li, .panel-body .mod-articles-items > li { padding: .75rem 0; border-bottom: 1px solid #eef0f2; }
.panel-body ul > li:last-child { border-bottom: 0; }
.panel-body ul.mod-articles a, .panel-body ul.mod-list a, .panel-body ul.latestnews a, .panel-body .mod-articles-items a { color: #1f2937; font-weight: 600; text-decoration: none; }
.panel-body ul.mod-articles a:hover, .panel-body ul.mod-list a:hover, .panel-body ul.latestnews a:hover, .panel-body .mod-articles-items a:hover { color: var(--pa-primary); }

/* ==========================================================================
   Berita (blog/featured com_content) — kartu
   ========================================================================== */
.blog-items { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-bottom: 1.5rem; }
@media (min-width: 768px) {
    .blog-items.columns-2, .blog-items.masonry-2 { grid-template-columns: repeat(2, 1fr); }
    .blog-items.columns-3, .blog-items.masonry-3 { grid-template-columns: repeat(2, 1fr); }
    .blog-items.columns-4, .blog-items.masonry-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .blog-items.columns-3, .blog-items.masonry-3 { grid-template-columns: repeat(3, 1fr); }
    .blog-items.columns-4, .blog-items.masonry-4 { grid-template-columns: repeat(4, 1fr); }
    .home-component .blog-items.columns-3, .home-component .blog-items.columns-4,
    .home-component .blog-items.masonry-3, .home-component .blog-items.masonry-4 { grid-template-columns: repeat(2, 1fr); }
}
.blog-item { background: #fff; border: 1px solid #e5e7eb; border-radius: .5rem; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.blog-item:hover { box-shadow: 0 10px 20px rgba(5,110,79,.12); transform: translateY(-2px); }
.blog-item .item-image { margin: 0 !important; float: none !important; }
.blog-item .item-image img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; display: block; }
.blog-item .item-content { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.blog-item .item-title, .blog-item .page-header h2 { font-size: 1rem; font-weight: 700; line-height: 1.35; margin: 0 0 .5rem; }
.blog-item .item-title a, .blog-item .page-header h2 a { color: var(--pa-primary); text-decoration: none; }
.blog-item .item-title a:hover { color: var(--pa-primary-dark); text-decoration: underline; }
.blog-item .page-header { margin: 0; padding: 0; border: 0; }
.blog-item .article-info { font-size: .8rem; color: #6b7280; margin-bottom: .5rem; display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.blog-item .article-info dt { display: none; }
.blog-item .article-info dd { margin: 0; }
.blog-item p { color: #4b5563; font-size: .925rem; }
.blog-item .readmore { margin-top: auto; }
.blog-item .readmore .btn { background: none; border: 0; padding: 0; color: var(--pa-primary); font-weight: 700; font-size: .875rem; }
.blog-item .readmore .btn:hover { color: var(--pa-primary-dark); text-decoration: underline; }
.blog-item .readmore .btn::after { content: ' \2192'; }
.blog-item .readmore .btn .icon-chevron-right, .blog-item .readmore .btn .icon-chevron-left { display: none; }
.blog-items.items-leading .blog-item .item-image img { aspect-ratio: 16 / 7; }
.items-more ol { padding-left: 1.2rem; }
.com-content-category-blog__navigation, .blog-featured .w-100 { margin-top: 1rem; }
.home-component .page-header h1 { display: none; }
.home-component .blog-item .createdby, .home-component .blog-item .hits, .home-component .blog-item .category-name { display: none; }
.home-component .blog-item .readmore .btn { font-size: 0; }
.home-component .blog-item .readmore .btn::after { content: 'Baca selengkapnya \2192'; font-size: .875rem; }

/* Halaman artikel */
.content-card { background: #fff; border-radius: .5rem; box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); padding: 1.5rem; }
@media (min-width: 768px) { .content-card { padding: 2.5rem; } }
.content-card > :last-child { margin-bottom: 0; }
.content-card .page-header h1, .content-card .page-header h2, .content-card > h1, .content-card .com-content-article h1 {
    font-size: 1.6rem; font-weight: 700; color: var(--pa-primary); border-bottom: 2px solid var(--pa-secondary); padding-bottom: .5rem; margin-bottom: 1.25rem;
}
.content-card .blog-item .page-header h2 { font-size: 1rem; border: 0; padding: 0; margin: 0 0 .5rem; }
.com-content-article .article-info { font-size: .85rem; color: #6b7280; display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid #eef0f2; }
.com-content-article .article-info dt { display: none; }
.com-content-article .article-info dd { margin: 0; }
.com-content-article__body, .item-page [itemprop="articleBody"] { line-height: 1.8; color: #374151; }
.content-card img { max-width: 100%; height: auto; border-radius: .375rem; }
.content-card table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.content-card table:not(.table) td, .content-card table:not(.table) th { border: 1px solid #dee2e6; padding: .5rem .75rem; vertical-align: top; }
.content-card table:not(.table) th, .content-card table:not(.table) thead td { background: var(--pa-primary-light); color: var(--pa-primary-dark); font-weight: 700; }
.content-card blockquote { background: #f8f9fa; border-left: 4px solid var(--pa-secondary); padding: 1rem 1.25rem; border-radius: .375rem; color: var(--pa-primary); font-weight: 600; }
.content-card h2 { font-size: 1.35rem; font-weight: 700; color: var(--pa-primary); margin-top: 1.75rem; }
.content-card h3 { font-size: 1.1rem; font-weight: 700; margin-top: 1.5rem; }
.content-card iframe { max-width: 100%; border: 0; border-radius: .375rem; }
.content-card .pagenavigation { margin-top: 2rem; }
.pagenavigation .btn, .pagination .btn { --bs-btn-color: var(--pa-primary); --bs-btn-bg: #fff; --bs-btn-border-color: var(--pa-primary); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--pa-primary); --bs-btn-hover-border-color: var(--pa-primary); }
.pagenavigation .pagination { gap: .5rem; }
.tags .btn, .tags a { --bs-btn-bg: var(--pa-primary-light); }

/* ==========================================================================
   Halaman dalam: banner, breadcrumb, sidebar sub-navigasi
   ========================================================================== */
.page-banner { background: linear-gradient(135deg, var(--pa-primary) 0%, var(--pa-primary-dark) 100%); color: #fff; padding: 1.75rem 0 1.25rem; border-bottom: 4px solid var(--pa-secondary); }
.page-banner-title { font-size: 1.6rem; font-weight: 800; letter-spacing: .01em; }
.page-banner .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.6); --bs-breadcrumb-item-active-color: rgba(255,255,255,.85); margin: 0; font-size: .875rem; background: none !important; padding: 0 !important; }
.page-banner .breadcrumb a { color: #fff; text-decoration: none; }
.page-banner .breadcrumb a:hover { color: var(--pa-secondary); }
.page-banner .breadcrumb .icon-location, .page-banner .breadcrumb .divider { display: none; }
.page-banner .mod-breadcrumbs__here { display: none; }

.sidebar-sticky { position: sticky; top: 8.5rem; }
@media (max-width: 991.98px) { .sidebar-sticky { position: static; } }
.sidebar-box { background: #fff; border-radius: .5rem; box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); padding: 1rem; }
.sidebar-title { font-size: .95rem; font-weight: 700; color: var(--pa-primary); text-transform: uppercase; letter-spacing: .04em; padding: .25rem .75rem .75rem; margin: 0 0 .5rem; border-bottom: 2px solid var(--pa-secondary); }
.sidebar-nav-link { display: flex; align-items: baseline; color: #374151; border-left: 4px solid transparent; border-radius: .375rem; transition: all .2s ease; }
.sidebar-nav-link:hover, .sidebar-nav-link:focus { background-color: var(--pa-primary-light); color: var(--pa-primary); }
.sidebar-nav-link.active { background-color: var(--pa-primary); color: #fff !important; border-left-color: var(--pa-secondary); }
.sidebar-nav-link.active .bi, .sidebar-nav-link.active [class*="icon-"] { color: var(--pa-secondary) !important; }
.sidebar-heading { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: #6b7280; padding: .75rem .75rem .25rem; }

/* ==========================================================================
   Seksi survei & footer
   ========================================================================== */
.survey-card { background-color: rgba(255,255,255,.1); }
.site-footer a:hover { color: #fff !important; }
.site-footer address { font-style: normal; }
.footer-logo { object-fit: contain; }
.footer-social { display: inline-flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.footer-social:hover { background: var(--pa-secondary); color: #000 !important; }
.footer-stats .list-group { --bs-list-group-bg: transparent; --bs-list-group-color: rgba(255,255,255,.75); --bs-list-group-border-color: rgba(255,255,255,.12); }
.footer-stats .list-group-item { padding: .4rem 0; border-width: 0 0 1px; background: transparent; color: rgba(255,255,255,.75); }
.footer-stats .list-group-item:last-child { border-bottom: 0; }
.footer-stats .badge { background: var(--pa-secondary) !important; color: #000; }
.footer-stats ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-stats li, .footer-stats .mod-stats li { display: flex; justify-content: space-between; gap: .5rem; }
.footer-stats strong { color: #fff; }
.footer-module a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-module ul { list-style: none; padding: 0; display: grid; gap: .5rem; }

/* Kembali ke atas */
.back-to-top { position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 1050; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--pa-primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 .5rem 1rem rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .2s ease; text-decoration: none; }
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--pa-primary-dark); color: var(--pa-secondary); }

/* ==========================================================================
   Widget aksesibilitas disabilitas / WCAG (Lampiran II huruf B)
   ========================================================================== */
.a11y-widget { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1055; max-width: calc(100vw - 3rem); }
.a11y-panel { width: 290px; max-width: 100%; }
.a11y-panel[hidden] { display: none !important; }
@media (max-width: 575.98px) {
    .a11y-widget { right: .75rem; bottom: .75rem; }
    .a11y-widget [data-a11y="toggle"] { width: 3.25rem; height: 3.25rem; padding: 0 !important; font-size: 0; display: flex; align-items: center; justify-content: center; }
    .a11y-widget [data-a11y="toggle"] .bi { font-size: 1.6rem !important; margin: 0 !important; }
    .back-to-top { left: .75rem; bottom: .75rem; }
}
.a11y-widget .btn[aria-pressed="true"] { background-color: var(--pa-primary); border-color: var(--pa-primary); color: #fff; }

html.a11y-grayscale { filter: grayscale(100%); }
body.a11y-underline a { text-decoration: underline !important; }
body.a11y-readable, body.a11y-readable * { font-family: Verdana, Tahoma, Arial, sans-serif !important; letter-spacing: .02em; word-spacing: .08em; }
body.a11y-readable p, body.a11y-readable li { line-height: 1.9 !important; }
body.a11y-readable .bi, body.a11y-readable [class^="icon-"], body.a11y-readable [class*=" icon-"], body.a11y-readable .fa, body.a11y-readable [class*="fa-"] { font-family: inherit; }
body.a11y-readable .bi::before { font-family: 'bootstrap-icons' !important; }

/* Ikon tambahan: CCTV (pakai nama ikon "bi-cctv") */
.bi-cctv::before { content: "" !important; display: inline-block; width: 1.25em; height: 1em; vertical-align: -.125em; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0.4 3 15.9 11.6'%3E%3Cg transform='translate%28.3 2.4%29'%3E%3Cg transform='rotate%28-22 7 6.5%29'%3E%3Crect x='1.4' y='3.5' width='11' height='1.4' rx='.6'/%3E%3Crect x='2.4' y='5.3' width='9.8' height='4.6' rx='1'/%3E%3Crect x='1.1' y='6' width='1.9' height='3.2' rx='.5'/%3E%3C/g%3E%3Cpath d='M11.1 4.5h3v1.7h-3z'/%3E%3Crect x='13.8' y='1' width='1.9' height='8.4' rx='.7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0.4 3 15.9 11.6'%3E%3Cg transform='translate%28.3 2.4%29'%3E%3Cg transform='rotate%28-22 7 6.5%29'%3E%3Crect x='1.4' y='3.5' width='11' height='1.4' rx='.6'/%3E%3Crect x='2.4' y='5.3' width='9.8' height='4.6' rx='1'/%3E%3Crect x='1.1' y='6' width='1.9' height='3.2' rx='.5'/%3E%3C/g%3E%3Cpath d='M11.1 4.5h3v1.7h-3z'/%3E%3Crect x='13.8' y='1' width='1.9' height='8.4' rx='.7'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }

/* Ikon tambahan: Akta Cerai elektronik (pakai nama ikon "bi-akta-cerai") */
.bi-akta-cerai::before { content: "" !important; display: inline-block; width: 1em; height: 1em; vertical-align: -.125em; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cdefs%3E%3Cmask id='d'%3E%3Crect width='16' height='16' fill='%23fff'/%3E%3Ccircle cx='11.3' cy='10.9' r='3.55' fill='%23000'/%3E%3C/mask%3E%3Cmask id='s'%3E%3Crect width='16' height='16' fill='%23fff'/%3E%3Cpath d='M9.9 10.9l1 1 1.9-2' fill='none' stroke='%23000' stroke-width='1.05' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3C/defs%3E%3Cg mask='url%28%23d%29' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.4 .9h6.3l3.4 3.4v9.5a1.1 1.1 0 0 1-1.1 1.1H3.4a1.1 1.1 0 0 1-1.1-1.1V2a1.1 1.1 0 0 1 1.1-1.1z'/%3E%3Cpath d='M9.6 .9v3.5h3.5M4.7 6.4h5.4M4.7 8.7h4M4.7 11h2.6'/%3E%3C/g%3E%3Cg mask='url%28%23s%29'%3E%3Ccircle cx='11.3' cy='10.9' r='2.65'/%3E%3Cpath d='M9.7 12.9l-.85 2.8 1.45-.55.85 1.15.75-2.7zM12.9 12.9l.85 2.8-1.45-.55-.85 1.15-.75-2.7z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cdefs%3E%3Cmask id='d'%3E%3Crect width='16' height='16' fill='%23fff'/%3E%3Ccircle cx='11.3' cy='10.9' r='3.55' fill='%23000'/%3E%3C/mask%3E%3Cmask id='s'%3E%3Crect width='16' height='16' fill='%23fff'/%3E%3Cpath d='M9.9 10.9l1 1 1.9-2' fill='none' stroke='%23000' stroke-width='1.05' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3C/defs%3E%3Cg mask='url%28%23d%29' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.4 .9h6.3l3.4 3.4v9.5a1.1 1.1 0 0 1-1.1 1.1H3.4a1.1 1.1 0 0 1-1.1-1.1V2a1.1 1.1 0 0 1 1.1-1.1z'/%3E%3Cpath d='M9.6 .9v3.5h3.5M4.7 6.4h5.4M4.7 8.7h4M4.7 11h2.6'/%3E%3C/g%3E%3Cg mask='url%28%23s%29'%3E%3Ccircle cx='11.3' cy='10.9' r='2.65'/%3E%3Cpath d='M9.7 12.9l-.85 2.8 1.45-.55.85 1.15.75-2.7zM12.9 12.9l.85 2.8-1.45-.55-.85 1.15-.75-2.7z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }

/* Portal unggulan (kartu besar berwarna di atas pintasan) */
.card-portal { position: relative; overflow: hidden; isolation: isolate; color: #fff; box-shadow: 0 10px 24px rgba(3,77,55,.18); transition: transform .25s ease, box-shadow .25s ease; min-height: 150px; }
.card-portal::before, .card-portal::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; pointer-events: none; }
.card-portal::before { width: 220px; height: 220px; right: -60px; top: -80px; background: rgba(255,255,255,.12); }
.card-portal::after { width: 140px; height: 140px; right: 70px; bottom: -90px; background: rgba(255,255,255,.08); }
.card-portal:hover, .card-portal:focus { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(3,77,55,.28); }
.card-portal:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
.portal-icon { width: 76px; height: 76px; border-radius: 1.1rem; display: inline-flex; align-items: center; justify-content: center; font-size: 2.3rem; }
.portal-title { font-size: 1.3rem; font-weight: 800; line-height: 1.25; margin: 0 0 .35rem; color: inherit; }
.portal-desc { font-size: .9rem; line-height: 1.5; opacity: .92; margin-bottom: .85rem; }
.portal-btn { font-size: .85rem; font-weight: 700; padding: .45rem 1rem; border-radius: 999px; transition: gap .2s ease; }
.card-portal:hover .portal-btn, .card-portal:focus .portal-btn { gap: .75rem !important; }
/* Oranye */
.portal-oranye { background: linear-gradient(135deg, #ffb33b 0%, #ff9900 55%, #f08400 100%); color: #033d2c; }
.portal-oranye .portal-icon { background: #034d37; color: #ffb33b; }
.portal-oranye .portal-btn { background: #034d37; color: #fff; }
/* Hijau tua */
.portal-hijau { background: linear-gradient(135deg, #034d37 0%, #056e4f 60%, #0a8a63 100%); color: #fff; }
.portal-hijau .portal-icon { background: #ff9900; color: #034d37; }
.portal-hijau .portal-btn { background: #ff9900; color: #033d2c; }
/* Biru */
.portal-biru { background: linear-gradient(135deg, #12306b 0%, #1d4ed8 100%); color: #fff; }
.portal-biru .portal-icon { background: #fff; color: #1d4ed8; }
.portal-biru .portal-btn { background: #fff; color: #12306b; }
@media (max-width: 575.98px) {
    .card-portal { padding: 1.1rem !important; min-height: 0; }
    .portal-icon { width: 56px; height: 56px; font-size: 1.7rem; border-radius: .9rem; }
    .portal-title { font-size: 1.05rem; }
    .portal-desc { font-size: .82rem; margin-bottom: .6rem; }
}
body.high-contrast .card-portal { background: #000 !important; color: #ff0 !important; border: 2px solid #ff0; box-shadow: none; }
body.high-contrast .card-portal .portal-icon, body.high-contrast .card-portal .portal-btn { background: #ff0 !important; color: #000 !important; }

/* Mode kontras tinggi */
body.high-contrast { background-color: #000 !important; color: #ff0 !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 .panel-box,
body.high-contrast .content-card, body.high-contrast .sidebar-box, body.high-contrast .blog-item, body.high-contrast .dropdown-menu,
body.high-contrast .page-banner, body.high-contrast .topbar, body.high-contrast .card-header, body.high-contrast .list-group-item,
body.high-contrast .carousel-item, body.high-contrast table, body.high-contrast td, body.high-contrast th, body.high-contrast blockquote {
    background: #000 !important; color: #ff0 !important; border-color: #ff0 !important;
}
body.high-contrast .carousel-item::before { display: none; }
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 h5, body.high-contrast h6, body.high-contrast p, body.high-contrast span, body.high-contrast td, body.high-contrast th,
body.high-contrast li, body.high-contrast dd, body.high-contrast small, body.high-contrast label, body.high-contrast .bi, body.high-contrast .text-secondary {
    color: #ff0 !important;
}
body.high-contrast a { text-decoration: underline !important; }
body.high-contrast .navbar-nav .nav-link.active, body.high-contrast .navbar-nav .nav-item.active > .nav-link, body.high-contrast .text-pa-primary { color: #ff0 !important; }
body.high-contrast .brand-emblem { background: #000; border: 2px solid #ff0; color: #ff0; }
body.high-contrast .btn-pa-secondary, body.high-contrast .btn-pa-primary, body.high-contrast .btn-primary, body.high-contrast .sidebar-nav-link.active,
body.high-contrast .badge, body.high-contrast .dropdown-item.active {
    background-color: #ff0 !important; color: #000 !important; border: 2px solid #fff !important;
}
body.high-contrast .btn-pa-secondary *, body.high-contrast .btn-pa-primary *, body.high-contrast .badge *, body.high-contrast .sidebar-nav-link.active * { color: #000 !important; }
body.high-contrast input, body.high-contrast select, body.high-contrast textarea { background: #000 !important; color: #ff0 !important; border: 2px solid #ff0 !important; }

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

/* Offline */
.offline-page { background: var(--pa-primary-light); }
.offline-card { max-width: 28rem; }

/* Cetak */
@media print {
    .site-header, .site-footer, .a11y-widget, .back-to-top, .survey-section, .page-banner, aside { display: none !important; }
    .content-card { box-shadow: none; padding: 0; }
    [class*="col-lg-"] { width: 100% !important; }
}

/* Hormati preferensi kurangi animasi */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Pintasan di layar kecil: dua kolom ringkas */
@media (max-width: 575.98px) {
    .shortcut-grid { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
    .shortcut-grid .card-shortcut { padding: 1rem .5rem !important; }
    .shortcut-grid .card-shortcut .bi { font-size: 2rem; }
    .shortcut-grid .card-shortcut h3 { font-size: .9rem !important; margin-top: .5rem !important; }
    .shortcut-grid .card-shortcut p { display: none; }
}

/* ==========================================================================
   Kartu berita (override com_content) & daftar pengumuman (mod_articles: pengumuman)
   ========================================================================== */
.bg-pa-dark { background-color: var(--pa-primary-dark) !important; color: #fff; }
.blog-item .news-media { display: block; text-decoration: none; }
.blog-item .news-media img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; display: block; }
.news-placeholder { display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 3; padding: 1rem; text-align: center; font-family: 'Montserrat', var(--bs-font-sans-serif); font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.6rem); line-height: 1.25; }
.news-placeholder.ph-hijau { background: var(--pa-primary); color: #fff; }
.news-placeholder.ph-oranye { background: var(--pa-secondary); color: #111827; }
.news-placeholder.ph-hijau-tua { background: linear-gradient(135deg, var(--pa-primary-dark), var(--pa-primary)); color: #fff; }
.blog-item .item-content { background: #f8f9fa; }
.blog-item .news-badge { font-size: .72rem; }
.blog-item .item-title { font-size: 1rem; margin: 0 0 .35rem; }
.blog-item .news-excerpt { color: #4b5563; font-size: .9rem; margin-bottom: .75rem; }
.blog-item .news-more { margin-top: auto; font-weight: 700; font-size: .875rem; color: var(--pa-primary); text-decoration: none; }
.blog-item .news-more:hover { color: var(--pa-primary-dark); text-decoration: underline; }
.content-card .blog-item .item-title { border: 0; padding: 0; color: inherit; }
.panel-body .pengumuman-list .list-group-item { background: transparent; border-color: #eef0f2; }
.panel-body .pengumuman-list .list-group-item:hover { background: var(--pa-primary-light); }
.panel-body .pengumuman-list .list-group-item:last-child { border-bottom: 0; }
.panel-body .pengumuman-list .badge { font-size: .72rem; }
body.high-contrast .news-placeholder, body.high-contrast .blog-item .item-content { background: #000 !important; color: #ff0 !important; border: 1px solid #ff0; }

.panel-head > a { white-space: nowrap; flex-shrink: 0; }
