/* ==========================================================================
   TEMA PANCACITA - ACEHCMS (INA DIGITAL DESIGN SYSTEM)
   Official Aceh Government Portal & Public Service Style (Emerald & Amber Palette)
   ========================================================================== */

/* Core Custom Elements Display Control */
cms\:render {
    display: contents;
}

cms\:render:empty {
    display: none !important;
}

cms\:widgets:empty {
    display: none !important;
}

:root {
  --color-primary: #e95108;
  --color-primary-dark: #c2410c;
  --color-accent: #d97706;
  --color-content-primary: #0f172a;
  --color-content-secondary: #475569;
  --color-background-primary: #ffffff;
  --color-background-secondary: #f8fafc;
  --color-stroke-primary: #e2e8f0;
}

/* Universal Text Overflow Safety */
h1, h2, h3, h4, h5, h6, p, a, span {
    overflow-wrap: break-word;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Motif Background Khas Aceh */
.pnc-motif-pattern {
  background-color: #e95108;
  background-image: url('/themes/_pna/assets/images/motif.svg');
  background-repeat: repeat;
  background-size: 32px 32px;
}

.pnc-motif-light {
  background-color: #f8fafc;
  background-image: url('/themes/_pna/assets/images/motif.svg');
  background-repeat: repeat;
  background-size: 36px 36px;
  background-blend-mode: soft-light;
}

/* Multi-level Navigation */
.pnc-nav-item {
  position: relative;
}

.pnc-sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  z-index: 50;
}

.pnc-has-sub:hover > .pnc-sub-menu {
  display: block;
}

.pnc-sub-menu .pnc-has-sub:hover > .pnc-sub-menu {
  top: 0;
  left: 100%;
}

/* Swiper custom navigation & pagination */
.swiper-button-next,
.swiper-button-prev {
  color: #ffffff !important;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  width: 44px !important;
  height: 44px !important;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(4, 120, 87, 0.9);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px !important;
  font-weight: bold;
}

.swiper-pagination-bullet-active {
  background: #e95108 !important;
  width: 24px !important;
  border-radius: 9999px !important;
}

/* DataTables Styling */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 0.375rem !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #334155 !important;
  padding: 0.375rem 0.75rem !important;
  margin: 0 2px !important;
  font-size: 0.875rem !important;
  cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #e95108 !important;
  color: #ffffff !important;
  border-color: #e95108 !important;
}

/* Editorial Content Prose */
.pnc-prose {
  color: #1e293b;
  line-height: 1.8;
  font-size: 1.0625rem;
  overflow-wrap: break-word;
}

.pnc-prose p {
  margin-bottom: 1.25rem;
}

.pnc-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.pnc-prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.pnc-prose img {
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

.pnc-prose ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.pnc-prose ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.pnc-prose a {
  color: #e95108;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pnc-prose a:hover {
  color: #c2410c;
}

.pnc-prose blockquote {
  border-left: 4px solid #e95108;
  background: #f8fafc;
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  margin: 1.5rem 0;
}

/* ---------- Widget Container & Heading Overrides ---------- */
.cms-berita-col {
    margin-bottom: 0 !important;
}

.cms-berita-judul,
.cms-media-card-header h6 {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    margin: 0 0 0.875rem;
    padding: 0 0 0.5rem;
    border-bottom: 2px solid #e95108; /* emerald-700 */
    letter-spacing: -0.01em;
}

.cms-media-card-header {
    padding: 0;
    margin: 0;
}

.cms-media-card {
    margin-bottom: 0 !important;
}

.cms-berita-element {
    min-height: 0 !important;
}

.cms-berita-element ul,
.cms-media-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ---------- Berita Terkini Widget ---------- */
.widget-berita-terkini-li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.widget-berita-terkini-li:last-child {
    border-bottom: none;
}

.widget-berita-terkini-li > div[style*="clear"] {
    display: none;
}

.widget-berita-terkini-thumb {
    float: none !important;
    flex: none;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 !important;
    border-radius: 0.5rem;
    object-fit: cover;
}

.widget-berita-terkini-has-thumb {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.widget-berita-terkini-li-big {
    padding: 0 0 0.875rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.widget-berita-terkini-big-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 0 0 0.75rem !important;
    border-radius: 0.75rem;
    object-fit: cover;
}

.widget-berita-terkini-judul {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    word-break: normal;
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: color 0.15s ease;
}

.widget-berita-terkini-li-big .widget-berita-terkini-judul {
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.35;
}

.widget-berita-terkini-judul:hover {
    color: #e95108;
}

.widget-berita-terkini-tanggal {
    margin: 0.25rem 0 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #e95108;
}

.widget-berita-terkini-deskripsi {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #64748b;
    word-break: normal;
    overflow-wrap: break-word;
}

/* ---------- Agenda Widget ---------- */
.cms-list-agenda {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cms-list-agenda:last-child {
    border-bottom: none;
}

.cms-agenda-tanggal {
    flex: none;
    width: 3.25rem;
    padding: 0.375rem 0;
    text-align: center;
    border-radius: 0.5rem;
    background: #e95108;
    color: #ffffff;
}

.cms-agenda-big-tanggal {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
}

.cms-agenda-big-bulan {
    margin: 0.125rem 0 0;
    font-size: 0.625rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
}

.cms-list-body-agenda {
    position: static !important;
    flex: 1;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

.cms-list-body-agenda a {
    text-decoration: none;
}

.cms-list-body-agenda .cms-list-judul {
    margin: 0 0 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    word-break: normal;
    overflow-wrap: anywhere;
}

.cms-list-body-agenda a:hover .cms-list-judul {
    color: #e95108;
}

.cms-list-body-agenda .cms-detail {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #64748b;
    word-break: normal;
    overflow-wrap: anywhere;
}

.cms-agenda-hari {
    margin: 0.25rem 0 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #d97706; /* amber-600 */
}

/* ---------- Daftar Pejabat Widget ---------- */
.cms-list-pejabat {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cms-list-pejabat:last-child {
    border-bottom: none;
}

.cms-list-pejabat a {
    text-decoration: none;
}

.cms-list-pejabat .cms-list {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cms-list-pejabat figure {
    margin: 0 !important;
    flex: none;
    width: 3.5rem !important;
    height: 3.5rem !important;
    border-radius: 9999px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.cms-list-pejabat figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cms-list-pejabat .cms-list-body {
    flex: 1;
    min-width: 0;
}

.cms-list-pejabat .cms-list-judul {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: anywhere;
}

.cms-list-pejabat a:hover .cms-list-judul {
    color: #e95108;
}

.cms-list-pejabat .cms-detail {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
    word-break: normal;
    overflow-wrap: anywhere;
}

/* ---------- Link & Menu Widgets ---------- */
.cms-menu ul,
.cms-daftar-halaman ul,
.cms-daftar-kategori ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cms-menu li,
.cms-daftar-halaman li,
.cms-daftar-kategori li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
}

.cms-menu li:last-child,
.cms-daftar-halaman li:last-child,
.cms-daftar-kategori li:last-child {
    border-bottom: none;
}

.cms-menu a,
.cms-daftar-halaman a,
.cms-daftar-kategori a {
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    word-break: normal;
    overflow-wrap: anywhere;
}

.cms-menu a:hover,
.cms-daftar-halaman a:hover,
.cms-daftar-kategori a:hover {
    color: #e95108;
    padding-left: 0.25rem;
}

/* ---------- Search Form Widgets ---------- */
.cms-search-widget form,
.widget-search form {
    position: relative;
    display: flex;
    align-items: center;
}

.cms-search-widget input[type="text"],
.cms-search-widget input[type="search"],
.widget-search input[type="text"],
.widget-search input[type="search"] {
    width: 100%;
    padding: 0.5rem 2.25rem 0.5rem 0.875rem;
    font-size: 0.8125rem;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    color: #0f172a;
    transition: all 0.2s ease;
}

.cms-search-widget input:focus,
.widget-search input:focus {
    outline: none;
    border-color: #e95108;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.15);
}

.cms-search-widget button,
.widget-search button {
    position: absolute;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.15s ease;
}

.cms-search-widget button:hover,
.widget-search button:hover {
    color: #e95108;
}

/* ---------- Footer Widget Overrides ---------- */
footer .cms-menu h5,
footer .cms-daftar-halaman h5,
footer .cms-daftar-kategori h5 {
    display: none;
}

footer .cms-menu ul,
footer .cms-daftar-halaman ul,
footer .cms-daftar-kategori ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .cms-menu li,
footer .cms-daftar-halaman li,
footer .cms-daftar-kategori li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

footer .cms-menu li:last-child,
footer .cms-daftar-halaman li:last-child,
footer .cms-daftar-kategori li:last-child {
    border-bottom: none;
}

footer .cms-menu a,
footer .cms-daftar-halaman a,
footer .cms-daftar-kategori a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.15s ease;
}

footer .cms-menu a:hover,
footer .cms-daftar-halaman a:hover,
footer .cms-daftar-kategori a:hover {
    color: #34d399; /* emerald-400 */
}

footer .cms-widget-html h5,
footer .custom-html h5 {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

footer .cms-widget-html p,
footer .custom-html p {
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* Embedded iframe in widgets */
.cms-media-card iframe,
.bg-white iframe,
iframe {
    max-width: 100%;
    border-radius: 0.5rem;
}

/* ---------- Specificity Overrides Against acehcms.css ---------- */
.cms-berita-col .cms-berita-judul::after,
.cms-berita-col .cms-berita-judul::before {
    display: none !important;
    content: none !important;
}

.cms-berita-element li {
    margin: 0 !important;
    min-height: 0 !important;
}

.cms-berita-element .widget-berita-terkini-tanggal {
    color: #e95108;
    font-size: 0.6875rem;
}

.cms-berita-element .widget-berita-terkini-deskripsi {
    word-break: normal !important;
    overflow-wrap: break-word;
    text-align: left;
    margin-bottom: 0 !important;
}

.cms-berita-element .widget-berita-terkini-judul {
    text-transform: none;
}

.cms-berita-element .widget-berita-terkini-has-thumb {
    min-height: 0 !important;
    padding: 0 !important;
}

/* Hero Swiper Slide Aspect Ratio & Fallback Background */
.pnc-hero-swiper .swiper-slide {
    position: relative;
    background-color: #0f172a;
    min-height: 240px;
    aspect-ratio: 16 / 9;
    max-height: 520px;
    overflow: hidden;
}

@media (min-width: 640px) {
    .pnc-hero-swiper .swiper-slide {
        min-height: 320px;
        aspect-ratio: 21 / 9;
    }
}

/* ==========================================================================
   PNA — gaya dari desain pna-portal.html
   ========================================================================== */
body{color:#171717;background:#faf9f8}
.orange-gradient{background:linear-gradient(110deg,#ef740b,#d93a00)}
.shell{max-width:1440px;margin:auto;padding-inline:clamp(16px,4vw,64px)}
.panel{background:linear-gradient(145deg,#fff,#f5f5f5);box-shadow:0 3px 9px #0002;border:1px solid #fff;border-radius:14px}
.panel:hover{box-shadow:0 5px 14px #0002}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:9px;padding:7px 20px;font-weight:700;color:#fff;background:linear-gradient(#f87510,#db4100)}
.outline-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #df500b;color:#c34409;border-radius:8px;padding:4px 15px;font-weight:700}
.kicker{font-weight:800;color:#c9470b;text-transform:uppercase}
.hero{background:linear-gradient(145deg,#fff 25%,#fff2e9 65%,#fa9c50)}
.hero-art{display:block;width:100%;height:auto;object-fit:contain}
.section-mark{border-left:8px solid #ed650d;padding-left:13px;border-radius:5px}
.news-img{width:100%;height:clamp(125px,11vw,180px);object-fit:cover;border-radius:10px}
.video-img{width:48%;height:92px;object-fit:cover;border-radius:9px}
:focus-visible{outline:3px solid #fb923c;outline-offset:3px}
.pna-hero-swiper .swiper-slide{display:flex;align-items:center}
.pna-hero-swiper{--swiper-theme-color:#fff}
.pna-footer-widget a{color:#fff !important;opacity:.92;text-decoration:none}
.pna-footer-widget a:hover{opacity:1;text-decoration:underline;text-underline-offset:3px}
.pna-footer-widget li{border-color:rgb(255 255 255 / .2) !important}
.pna-footer-widget ul{max-height:22rem;overflow:auto}
.pna-footer-widget h1,.pna-footer-widget h2,.pna-footer-widget h3,.pna-footer-widget h4,.pna-footer-widget h5,.pna-footer-widget h6{color:#fff;font-weight:800;margin-bottom:.5rem}
.pna-footer-widget li{margin:.25rem 0}
.pnc-navbar-menu > ul{flex-wrap:wrap}
