/* =====================================================================
   KTP2JB - Formal Government Polish Layer
   Dimuat SETELAH style.css & style-dark.css. Tidak mengubah struktur HTML,
   hanya merapikan tampilan agar formal, konsisten, dan nyaman dibaca.
   ===================================================================== */
:root {
  --kt-navy: #083D62;
  --kt-blue: #0064d2;
  --kt-gold: #B8963E;
  --kt-ink: #1c2b3a;
  --kt-line: #dfe6ee;
  --kt-shadow: 0 10px 30px rgba(8, 61, 98, .10);
  --kt-shadow-lg: 0 18px 44px rgba(1, 28, 56, .20);
}

html { scroll-behavior: smooth; }
::selection { background: var(--kt-blue); color: #fff; }

/* Garis identitas resmi di puncak halaman */
body::before {
  content: "";
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 2000;
  background: linear-gradient(90deg, var(--kt-navy) 0 55%, var(--kt-gold) 55% 70%, var(--kt-blue) 70% 100%);
  pointer-events: none;
}

/* Aksesibilitas: fokus keyboard jelas */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--kt-gold); outline-offset: 2px; border-radius: 4px;
}

/* ---------- Tipografi & judul seksi ---------- */
.heading_text.font-2 { letter-spacing: -.2px; }
.heading_block.text-center .heading_text.font-2::after,
.about_section .heading_text::after {
  content: ""; display: block; width: 56px; height: 3px; margin: 14px auto 0;
  background: var(--kt-gold); border-radius: 2px;
}
.about_section .heading_text::after { margin-left: 0; }
@media (max-width: 991.98px) { .about_section .heading_text::after { margin-left: auto; } }
.sosmed_section .heading_text::after { background: #fff !important; opacity: .85; }

/* ---------- Navigasi ---------- */
.site_header .main_menu_list > li > a,
.site_header .nav-link { font-weight: 500; letter-spacing: .1px; }
.site_header .dropdown-menu {
  border: 1px solid var(--kt-line); border-top: 3px solid var(--kt-gold);
  border-radius: 0 0 10px 10px; box-shadow: var(--kt-shadow);
}

/* ---------- Hero / banner ---------- */
.carousel_section .carousel-caption-wrapper,
.carousel_section .carousel-caption { text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.carousel_section .carousel-indicators [data-bs-target] { height: 3px; border-radius: 2px; }

/* ---------- Tombol ---------- */
.btn.btn-main, .btn.bg-primary, .btn.bg-white {
  border-radius: 6px !important; font-weight: 600; letter-spacing: .2px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn.btn-main:hover, .btn.bg-primary:hover, .btn.bg-white:hover {
  transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 100, 210, .25);
}

/* ---------- Tentang kami ---------- */
.about_image img, .about_image .rounded { box-shadow: var(--kt-shadow); }
.heading_description { line-height: 1.75; color: var(--kt-ink); }

/* ---------- Testimoni ---------- */
.review_block {
  border: 1px solid rgba(8, 61, 98, .06); border-radius: 16px !important;
  box-shadow: var(--kt-shadow);
}
.review_author_name { font-weight: 700; }

/* ---------- Publikasi ---------- */
.publikasi_wrapper {
  border: 1px solid var(--kt-line); box-shadow: var(--kt-shadow); background: #fff;
}
.filter_elements_nav li a { border-radius: 8px; font-weight: 600; letter-spacing: .2px; }
.career_block .publikasi-img img,
.career_block .img-fluid { transition: transform .45s ease; }
.career_block:hover .publikasi-img img,
.career_block:hover .img-fluid { transform: scale(1.04); }
.career_block .publikasi-img { overflow: hidden; border-radius: 14px; }
.career_block .block_title { line-height: 1.35; }
.career_block .news-desc { color: #5b6773; }

/* ---------- Time Line: Instagram + Kalender ---------- */
.sosmed_section { position: relative; }
.sosmed_section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 61, 98, .35), rgba(0, 100, 210, 0) 45%);
}
.sosmed_section .container { position: relative; }

.ig-card, .cal-card {
  background: #fff; border-radius: 16px; box-shadow: var(--kt-shadow-lg);
  border-top: 4px solid var(--kt-gold); padding: 22px;
}
.cal-card { min-height: 500px; padding: 18px; }

.ig-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ig-title { display: flex; align-items: center; gap: 12px; }
.ig-title > i { font-size: 30px; color: var(--kt-navy); }
.ig-title h3 { margin: 0; font-family: 'Noto Serif', serif; font-size: 22px; font-weight: 700; color: var(--kt-navy); line-height: 1.1; }
.ig-title a { font-size: 13px; color: var(--kt-blue); text-decoration: none; font-weight: 600; }
.ig-title a:hover { text-decoration: underline; }

.ig-status {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600;
  color: #4b5a68; background: #f1f5f9; border: 1px solid var(--kt-line);
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.ig-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa7b4; }
.ig-status.ig-live { color: #0b6b3a; background: #ecf9f1; border-color: #bfe8cf; }
.ig-status.ig-live .ig-dot { background: #1ea35b; animation: ig-pulse 1.8s infinite; }
.ig-status.ig-stale .ig-dot { background: #d9a21b; }
@keyframes ig-pulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 163, 91, .55); }
  70% { box-shadow: 0 0 0 8px rgba(30, 163, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 163, 91, 0); }
}

.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; min-height: 120px; }
.ig-tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; background: #e9eef4; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.ig-tile:hover img { transform: scale(1.07); }
.ig-badge {
  position: absolute; top: 8px; right: 8px; color: #fff; font-size: 12px;
  background: rgba(0, 0, 0, .45); width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.ig-cap {
  position: absolute; inset: auto 0 0 0; padding: 26px 10px 9px; color: #fff; font-size: 11.5px; line-height: 1.35;
  background: linear-gradient(0deg, rgba(5, 26, 48, .92), rgba(5, 26, 48, 0));
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease;
}
.ig-tile:hover .ig-cap, .ig-tile:focus-visible .ig-cap { opacity: 1; transform: none; }
.ig-empty { grid-column: 1 / -1; text-align: center; color: #5b6773; padding: 36px 8px; margin: 0; }

.ig-follow {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px;
  padding: 11px 16px; border-radius: 8px; background: var(--kt-navy); color: #fff !important;
  font-weight: 600; font-size: 14px; text-decoration: none; transition: background .2s ease;
}
.ig-follow:hover { background: var(--kt-blue); }

/* Kalender (FullCalendar) */
.fc .fc-toolbar-title { font-family: 'Noto Serif', serif; font-weight: 700; }
.fc .fc-button { border-radius: 8px !important; }
.fc .fc-day-today { background: #fff7e0 !important; }
.fc .fc-event { border-radius: 4px; border: 0; }

/* ---------- Footer ---------- */
.site_footer { border-top: 4px solid var(--kt-gold); }
.site_footer a { transition: color .2s ease; }
.site_footer .footer_info_title { color: var(--kt-navy); letter-spacing: .2px; }
.footer_bottom { border-top: 1px solid var(--kt-line); }

/* ---------- Responsif ---------- */
@media (max-width: 575.98px) {
  .ig-card, .cal-card { padding: 16px; border-radius: 14px; }
  .ig-head { flex-direction: column; align-items: flex-start; }
  .ig-grid { gap: 4px; }
}

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

/* =====================================================================
   TAHAP 2 - Tampilan lebih terkini (tetap formal)
   ===================================================================== */
[hidden] { display: none !important; }
.ig-widget { min-height: 120px; }
.ig-widget .eapps-instagram-feed-container { padding: 0 !important; }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Header kaca (glass) saat di-scroll */
.xb-header.stricky {
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}
body:not(.dark) .xb-header.stricky.sticky,
body:not(.dark) .xb-header.stricky.sticky_nav,
body:not(.dark) .site_header.sticky .xb-header {
  box-shadow: 0 6px 24px rgba(8, 61, 98, .10);
  border-bottom: 1px solid rgba(8, 61, 98, .08);
}

/* Hero: gradasi formal agar teks selalu terbaca */
.carousel_section .carousel-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 22, 40, .62) 0%, rgba(4, 22, 40, .22) 55%, rgba(4, 22, 40, 0) 100%);
}
.carousel_section .carousel-caption, .carousel_section .carousel-caption-wrapper { z-index: 3; }
.hero_title { line-height: 1.18; }

/* Irama seksi: latar bergantian yang tenang */
.about_section { background: #fff; }
.review_section { position: relative; }
.career_section.section_space { background: linear-gradient(180deg, #f6f9fd 0%, #fff 60%) !important; }
.section_space { padding-top: 84px; padding-bottom: 84px; }
@media (max-width: 767.98px) { .section_space { padding-top: 56px; padding-bottom: 56px; } }

/* Gambar tentang kami: bingkai formal */
.about_image img { border-radius: 18px; border: 6px solid #fff; box-shadow: var(--kt-shadow-lg); }

/* Tautan: garis bawah animasi halus */
.block_title a, .career_info a { background: linear-gradient(var(--kt-gold), var(--kt-gold)) 0 100% / 0 2px no-repeat; transition: background-size .3s ease, color .2s ease; }
.block_title a:hover, .career_info a:hover { background-size: 100% 2px; color: var(--kt-blue); }

/* Kartu publikasi: tanggal & judul lebih tegas */
.career_block { border-radius: 14px; transition: transform .25s ease, box-shadow .25s ease; }
.career_block:hover { transform: translateY(-4px); }
.news-desc small, .career_info small { letter-spacing: .3px; text-transform: uppercase; font-size: 11.5px; font-weight: 600; color: var(--kt-blue); }

/* Tombol kembali ke atas & saklar tema */
.backtotop a { border-radius: 50%; box-shadow: 0 8px 22px rgba(0, 100, 210, .35); }
.switch-theme a { box-shadow: 0 8px 22px rgba(8, 61, 98, .35); }

/* Kartu Time Line */
.ig-card, .cal-card { transition: transform .25s ease; }
.ig-card:hover, .cal-card:hover { transform: translateY(-3px); }
.ig-tile { box-shadow: 0 2px 8px rgba(8, 61, 98, .12); }

/* Mode gelap: tetap kontras & konsisten */
body.dark .ig-card, body.dark .cal-card { background: #fff; }
body.dark .career_section.section_space { background: transparent !important; }
body.dark .about_image img { border-color: #0e2236; }
