/* Dinkes v3 - modern layer. Loaded after style.css; overrides it via tokens. */

:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --border: #e3e8ef;
  --text: #475467;
  --heading: #101828;
  --muted: #7a8699;
  --primary: #0b5fa5;
  --primary-ink: #ffffff;
  --accent: #0e9f8e;
  --topbar: #0f1a33;
  --link-hover: #0b5fa5;
  --ticker: #0b5fa5;
  --danger: #e5484d;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --radius: 12px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0c111b;
  --surface: #151c2b;
  --surface-2: #1b2437;
  --border: #263249;
  --text: #b6c0d1;
  --heading: #eef2f8;
  --muted: #8493ab;
  --primary: #4aa3ee;
  --primary-ink: #06101f;
  --accent: #35c9b6;
  --topbar: #070b14;
  --link-hover: #7cc0ff;
  --ticker: #123a63;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ---------- base ---------- */
html, body { height: auto; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Source Sans Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  transition: background-color .25s ease, color .25s ease;
}
a { color: var(--primary); }
a:hover { color: var(--link-hover); }
b, strong, h1, h2, h3, h4, h5, h6 { color: var(--heading); }
.text-muted { color: var(--muted) !important; }
hr { border-top-color: var(--border); }
::selection { background: var(--primary); color: var(--primary-ink); }

/* ---------- top bar ---------- */
.header { background: transparent; }
.header .header-top {
  background: var(--topbar);
  height: auto;
  min-height: 38px;
  display: flex;
  align-items: center;
}
.header-top .container, .header-top .row { width: 100%; }
.header-top .row { align-items: center; }
.header-top .top-social { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.header-top .top-social a {
  font-size: 16px; width: 32px; height: 32px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; opacity: .85;
}
.header-top .top-social a:hover { background: rgba(255, 255, 255, .1); color: #fff; opacity: 1; }

/* ---------- theme toggle ---------- */
.theme-toggle {
  position: relative;
  width: 32px; height: 32px; margin-left: 8px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff; font-size: 15px; cursor: pointer;
  transition: background .2s, transform .2s;
}
.theme-toggle:hover { background: rgba(255, 255, 255, .2); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle .icon-sun { display: none; color: #ffd166; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: inline-block; }
.theme-toggle-mobile {
  border-color: var(--border); background: var(--surface-2); color: var(--heading);
  margin: 0 0 0 auto;
}
.theme-toggle-mobile:hover { background: var(--border); }

/* ---------- slim header banner ---------- */
.header .header-inner {
  display: block;
  padding: 10px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header .header-inner .logo { text-align: center; align-items: center; }
.header .header-inner .logo a { display: inline-flex; height: auto; }
.header .header-inner .logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 150px;
  object-fit: contain;
  object-position: left center;
}
/* logos usually have a light background; keep them readable in dark mode */
:root[data-theme="dark"] .header .header-inner .logo a {
  background: #fff; border-radius: 10px; padding: 4px 10px;
}
:root[data-theme="dark"] .header .header-inner .logo img { height: 146px; }

/* ---------- nav ---------- */
.top-menu.navbar, .navbar.bg-white { background: var(--surface) !important; }
.top-menu {
  border-top: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: var(--shadow);
}
.top-menu .navbar-nav li,
.top-menu .navbar-nav li:last-child { border: 0; }
.top-menu a.nav-link,
.top-menu .dropdown .dropdown-menu li a,
#topMenu a, #topMenu .navbar-default .navbar-nav > li > a, #topMenu ul li a {
  color: var(--heading) !important;
  font-family: inherit;
  font-weight: 600;
}
.top-menu a.nav-link {
  border-radius: 8px;
  margin: 6px 1px;
  padding: 8px 10px !important;
  letter-spacing: .3px;
}
.top-menu a.nav-link:hover,
#topMenu .active a, #topMenu li a:hover, #topMenu li a:focus {
  background: color-mix(in srgb, var(--primary) 12%, transparent) !important;
  color: var(--primary) !important;
}
#topMenu, #topMenu.collapse ul ul a { background: transparent; }
#topMenu.collapse ul ul,
#topMenu.collapse ul ul ul,
#topMenu.collapse ul ul ul ul,
#topMenu.collapse ul ul.dropdown-menu,
#topMenu.collapse ul ul ul.dropdown-menu,
#topMenu.collapse ul ul ul ul.dropdown-menu,
.top-menu .dropdown-menu {
  background: var(--surface) !important;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow) !important;
  overflow: visible;
  padding: 6px;
}
#topMenu.collapse ul ul > li:hover > a,
#topMenu.collapse ul ul ul > li:hover > a,
#topMenu.collapse ul > li:hover > a {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary) !important;
}
.top-menu .dropdown-menu li { border: 0 !important; }
.top-menu .dropdown-menu a { border-radius: 6px; }
.top-menu .dropdown-menu a, #topMenu a { text-transform: none; }
.top-menu .navbar-nav li ul li ul { background: var(--surface); border-color: var(--border); }
.top-seach-link a, .top-seach-link a:hover { color: var(--heading) !important; }
.navbar-toggler { color: var(--heading); border-color: var(--border); }
.top-search-warper { background: var(--surface); border-color: var(--border); }
.search-form { border-color: var(--border); }
.search-form input, .search-form input::placeholder { color: var(--heading); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn-primary:hover, .btn-primary:focus { background: var(--primary); border-color: var(--primary); filter: brightness(1.1); color: var(--primary-ink); }

@media (max-width: 767px) {
  .header .header-inner { padding: 8px 0; }
  .header .header-inner .logo img { height: 44px; }
  .top-menu .navbar-collapse.show, #topMenu { background: var(--surface) !important; }
  .top-menu .navbar-collapse.show { box-shadow: var(--shadow); }
  #topMenu.collapse ul ul.dropdown-menu { box-shadow: none !important; border: 0; }
}

/* ---------- ticker ---------- */
.ticker-label {
  float: left; padding: 4px 14px; line-height: 22px; text-align: center;
  background: var(--danger); color: #fff; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .5px;
  border-radius: 0 0 0 var(--radius);
}
.ticker { display: block; background: var(--ticker); color: #fff; padding: 4px 0; }
.amarquee { color: #fff; font-size: 1rem; }
.amarquee:hover { color: #ffd166; text-decoration: none; }

/* ---------- content surfaces ---------- */
.main-content { padding-top: 0; }
.left-content .post-inner,
.left-content .post-head,
.left-content .post-footer,
.sidebar .sidebar-widgets,
.sidebar .widget-title,
.sidebar-widgets .nav-tabs .nav-link,
.card, .list-group-item, .modal-content, .jumbotron,
.detail-content blockquote {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.left-content .post-head, .sidebar .widget-title {
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--border);
}
.left-content .post-inner, .left-content .post-footer {
  box-shadow: var(--shadow);
}
.left-content .post-inner { border-radius: 0 0 var(--radius) var(--radius); }
.left-content .post-head h4,
.sidebar .widget-title h4 {
  color: var(--heading);
  font-family: inherit; font-weight: 700;
  border-left: 4px solid var(--accent); padding-left: 10px;
}
.sidebar .sidebar-widgets { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sidebar-widgets .nav-tabs .nav-link { color: var(--primary); }
.sidebar-widgets .nav-tabs .nav-link.active { background: var(--primary); color: var(--primary-ink); }
.sidebar-widgets .tab-content .media .media-body h5 a,
.post-info-1 h5 a, .post-info-2 h5 a, .box-category .post-info h5 a,
.related-posts a, .comment-name { color: var(--heading); }
.post-info-1 h5 a:hover, .post-info-2 h5 a:hover, .box-category .post-info h5 a:hover { color: var(--primary); text-decoration: none; }
.post-lists, .sidebar-widgets .tab-content .list-item,
.sidebar-widgets .widget-category .widget-body ul.nav li.nav-item,
.box-content-2 .post-lists:first-child { border-color: var(--border) !important; }
.sidebar-widgets .widget-category .nav-link { color: var(--text); }
.sidebar-widgets .widget-category .nav-link:hover { color: var(--primary) !important; }
.entry-title h2, .detail-content h1, .detail-content h2, .detail-content h3,
.detail-content h4, .detail-content h5, .detail-content h6 { color: var(--heading); }
.detail-content blockquote { background: var(--surface-2); color: var(--text); border-radius: 8px; }
.detail-content blockquote::before { color: var(--accent); }
.entry-meta li, .entry-meta li a, .entry-meta li a:hover i { color: var(--muted); }
.breadcrumb { background: var(--surface); border-radius: var(--radius); }
.breadcrumb a { color: var(--muted); }
.breadcrumb-item.active { color: var(--text); }

/* images, buttons, tags */
.post-lists .image-warper img, .box-left .image-warper img, .box-category .image-warper img,
.detail-content img, .g-item img, .entry-image img { border-radius: 8px; }
.headlines { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.carousel-inner { height: 800px; }
@media (max-width: 768px) { .carousel-inner { height: 300px; } }
.headlines .carousel-item img { object-fit: cover; height: 100%; }
.headlines .tagcloud a { background: var(--danger); border-radius: 999px; padding: 2px 12px; }
.tagcloud a { background: var(--primary); color: var(--primary-ink); border-radius: 999px; }
.tagcloud a:hover { color: var(--primary-ink) !important; filter: brightness(1.1); }
.sidebar-widgets .widget-tags .tagcloud a { background: var(--surface-2); color: var(--text); }
.sidebar-widgets .widget-tags .tagcloud a::after { background-color: var(--surface) !important; }
.box-category .readmore, .btn-send, .btn-send:active, .btn-send:focus, .btn-send:hover {
  background-color: var(--primary) !important; border-color: var(--primary) !important;
  color: var(--primary-ink) !important; border-radius: 8px;
}
.post-footer .pagination .active.page-item a { border-color: var(--primary); background-color: var(--primary); color: var(--primary-ink) !important; }
.page-link { background: var(--surface); border-color: var(--border); color: var(--text) !important; }
.page-link:hover { background: var(--surface-2) !important; }
.box-category .pagination .page-link, .content-pagination .pagination li a { color: var(--text); }

/* forms & tables */
.form-control, .custom-select, select, textarea, input[type=text], input[type=email], input[type=search] {
  background-color: var(--surface); color: var(--text); border-color: var(--border); border-radius: 8px;
}
.form-control:focus { background-color: var(--surface); color: var(--text); border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.form-group label { color: var(--heading); }
.table { color: var(--text); }
.table td, .table th, .table thead th { border-color: var(--border); }
.table-striped tbody tr:nth-of-type(odd) { background: var(--surface-2); }
.card-header { background: var(--surface-2); border-color: var(--border); }

/* calendar */
.kalender table { border-color: var(--accent); }
.kalender td { border-color: var(--border); color: var(--text); }
.kalender th, .highlight { background: var(--accent); }
.kalender tr.week_name { background: var(--surface-2); color: var(--accent); }

/* ---------- footer ---------- */
#footer footer.bg-dark { background: var(--topbar) !important; margin-top: 24px; }
#footer footer a { color: #9cc9f5; }
#footer footer a:hover { color: #fff; }
#footer #map { border-radius: var(--radius); overflow: hidden; }
:root[data-theme="dark"] #map .ol-viewport { filter: invert(.9) hue-rotate(180deg) brightness(.9) contrast(.9); }

/* misc */
.file-image a { color: var(--primary); }
.gbrSide { border-color: var(--border); }
:root[data-theme="dark"] .detail-content img,
:root[data-theme="dark"] .post-lists img { filter: brightness(.92); }
:root[data-theme="dark"] .detail-content { color: var(--text); }
:root[data-theme="dark"] .detail-content table { color: var(--text); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }


/* ================= v3.1 adjustments ================= */

/* --- top menu: one baseline for every item, caret inline --- */
.top-menu .navbar-nav { align-items: center; }
.top-menu .navbar-nav > li > a.nav-link {
  display: flex !important;
  align-items: center;
  padding: 8px 12px !important;
  margin: 6px 1px;
  line-height: 1.4;
  font-size: 15px;
  text-transform: none;
}
/* the CMS menu puts .dropdown-toggle on every link; only show the caret when there is a submenu */
.top-menu .navbar-nav > li > a.nav-link.dropdown-toggle::after { display: none; }
.top-menu .navbar-nav > li.has-sub > a.nav-link.dropdown-toggle::after {
  position: static; transform: none; display: inline-block;
  margin: 0 0 0 7px; vertical-align: middle;
}
@media (max-width: 767px) {
  .top-menu .navbar-nav > li > a.nav-link { padding: 12px 14px !important; margin: 0; }
}

/* --- ticker: bigger, high contrast --- */
.ticker-label { font-size: 16px; line-height: 30px; padding: 4px 18px; }
.ticker { padding: 4px 0; background: #0a3d6b; }
:root[data-theme="dark"] .ticker { background: #0a2a4a; }
.amarquee { font-size: 1.35rem; font-weight: 600; line-height: 30px; color: #fff; letter-spacing: .2px; }
.amarquee:hover { color: #ffd166; }
@media (max-width: 767px) { .amarquee { font-size: 1.15rem; } }

/* --- headline: taller, big centered title --- */
.headlines .carousel-caption {
  text-align: center;
  padding: 90px 8% 30px;
}
.headlines .carousel-caption h5 {
  font-size: 38px; line-height: 1.25; font-weight: 700; text-align: center; margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .55);
}
.headlines .carousel-caption .tagcloud { display: flex; justify-content: center; }
.headlines .carousel-caption .tagcloud a { float: none; font-size: 13px; }
.headlines .carousel-caption .entry-meta { display: flex; justify-content: center; margin: 0; }
.headlines .carousel-caption .entry-meta li { float: none; font-size: 15px; color: #eee; }
@media (max-width: 991px) { .headlines .carousel-caption h5 { font-size: 28px; } }
@media (max-width: 768px) {
  .headlines .carousel-caption { padding: 40px 12px 14px; }
  .headlines .carousel-caption h5 { font-size: 17px; }
  .headlines .carousel-caption .entry-meta { display: none; }
}

/* --- slimmer sidebar --- */
.sidebar { font-size: 14px; }
.sidebar .widget { padding: 10px 12px; }
.sidebar .widget-title { padding: 10px 12px; }
.sidebar .widget-title h4 { font-size: 15px; }
.sidebar-widgets .nav-tabs .nav-item .nav-link { padding: 8px; font-size: 13px; }
.sidebar-widgets .widget-category .nav-link { padding: 6px 0; font-size: 13.5px; line-height: 1.35; }
.sidebar-widgets .widget-tags .tagcloud a { font-size: 12px; padding: .5em 1.1em; }

/* --- Berita Utama: 2 lead stories, each with 2 tag-related items --- */
.box-content-1 .post-inner { padding: 20px; }
.box-content-1 .lead-story .image-warper { width: 100%; max-width: 100%; margin-bottom: 14px; }
.box-content-1 .lead-story .image-warper img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.box-content-1 .lead-story .post-info-1 h5 { margin: 0 0 8px; font-size: 21px; line-height: 1.3; }
.box-content-1 .lead-story .box-content p { font-size: 14.5px; margin-bottom: 14px; }
.box-content-1 .lead-story .post-lists { padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 0; }
.box-content-1 .lead-story .post-lists:last-child { padding-bottom: 0; }
.box-content-1 .lead-story .post-lists .media { align-items: center; }
.box-content-1 .lead-story .post-lists .post-info-2 { flex: 1; padding: 0 14px 0 0; display: block; }
.box-content-1 .lead-story .post-lists .post-info-2 h5 { font-size: 15px; line-height: 1.35; margin-bottom: 4px; }
.box-content-1 .lead-story .post-lists .image-warper { flex: 0 0 150px; width: 150px; max-width: 150px; margin: 0; }
.box-content-1 .lead-story .post-lists .image-warper img { width: 150px; height: 110px; object-fit: cover; }
@media (min-width: 768px) {
  .box-content-1 .lead-story:first-child { padding-right: 20px; border-right: 1px solid var(--border); }
  .box-content-1 .lead-story:last-child { padding-left: 20px; }
}
@media (max-width: 767px) { .box-content-1 .lead-story + .lead-story { margin-top: 24px; } }

/* --- footer --- */
#footer footer { font-size: 14px; line-height: 1.7; }
#footer footer .container { padding-top: 40px !important; padding-bottom: 20px !important; }
#footer footer h5, #footer footer h6, #footer footer .footer-title {
  color: #fff; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); display: inline-block;
}
#footer footer ul { list-style: none; padding: 0; margin: 0; }
#footer footer ul li { padding: 3px 0; }
#footer footer p { margin-bottom: 0; color: #cbd5e1; }
#footer footer .footer-about i { width: 18px; color: var(--accent); }
#footer footer .row > [class*="col-"] { margin-bottom: 24px; }
#footer #map { width: 100%; border: 1px solid rgba(255, 255, 255, .15); }
#footer footer .text-center { font-size: 13px; color: #94a3b8; }
.entry-meta { overflow: hidden; }


/* ================= v3.2 ================= */

/* --- 4 lead stories: 2 rows x 2 cols --- */
.box-content-1 .lead-story { margin-bottom: 28px; }
.box-content-1 .lead-story:nth-last-child(-n+2) { margin-bottom: 0; }
@media (min-width: 768px) {
  .box-content-1 .lead-story:first-child { padding-right: 20px; border-right: 0; }
  .box-content-1 .lead-story:last-child { padding-left: 20px; }
  .box-content-1 .lead-story:nth-child(odd) { padding-left: 15px; padding-right: 20px; border-right: 1px solid var(--border); }
  .box-content-1 .lead-story:nth-child(even) { padding-left: 20px; padding-right: 15px; border-right: 0; }
  .box-content-1 .lead-story:nth-child(n+3) { padding-top: 28px; border-top: 1px solid var(--border); }
}
@media (max-width: 767px) {
  .box-content-1 .lead-story:nth-last-child(-n+2) { margin-bottom: 28px; }
  .box-content-1 .lead-story:last-child { margin-bottom: 0; }
}

/* --- newsticker --- */
.newsticker {
  display: flex;
  align-items: stretch;
  background: #1f2a6b;
  margin-top: 5px;
  min-height: 52px;
  border-radius: 10px;
  margin-bottom: 5px;
}
:root[data-theme="dark"] .newsticker { background: #121a45; }
.newsticker-label {
  position: relative; flex: 0 0 auto;
  display: flex; align-items: center;
  padding: 0 34px 0 22px;
  background: var(--danger);
  color: #fff; font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .6px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%);
  margin: 6px 0 6px 8px;
  border-radius: 6px 0 0 6px;
  white-space: nowrap;
}
.newsticker .ticker {
  flex: 1; min-width: 0; align-self: center;
  background: transparent !important; padding: 0 12px 0 14px;
  margin-left: 10px;
}
.newsticker .amarquee { display: inline-block; vertical-align: middle; }
@media (max-width: 575px) {
  .newsticker-label { padding: 0 26px 0 12px; font-size: 13px; }
}

/* --- berita (detail) page: boxed, larger type --- */
#main.main-boxed { max-width: 1240px; margin-left: auto; margin-right: auto; }
.detail-content { font-size: 18px; line-height: 1.8; }
.detail-content p { margin-bottom: 1.1em; }
.entry-title h2 { font-size: 34px; line-height: 1.25; }
@media (max-width: 767px) { .entry-title h2 { font-size: 26px; } }

/* --- font size controls --- */
.font-tools { display: flex; align-items: center; gap: 6px; margin: 4px 0 14px; }
.font-tools-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.font-btn {
  min-width: 40px; height: 34px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface-2); color: var(--heading);
  font-weight: 700; font-size: 14px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.font-btn:hover { border-color: var(--primary); color: var(--primary); }
.font-btn:active { transform: scale(.95); }
.font-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
