/*
 * Insight Kedaisosmed — tampilan publik.
 * Diambil dari tema WordPress kedaisosmed-blog v2.1.1 (desain yang sudah disetujui), dipakai apa adanya
 * di versi Laravel. Tambahan khusus Laravel ada di insight-app.css.
 */

/* ===== 1. Token brand ===== */
:root {
  --ks-blue: #1268DC;        /* utama */
  --ks-blue-2: #2D89FD;      /* gradasi terang */
  --ks-blue-3: #0E5ED1;      /* gradasi gelap */
  --ks-sky: #4FC3FF;         /* biru muda: aksen */
  --ks-navy: #0B1B42;        /* teks & footer */
  --ks-orange: #FFB534;      /* SATU sorotan per layar saja */
  --ks-bg: #F5F8FD;
  --ks-card: #FFFFFF;
  --ks-line: #E3EAF5;
  --ks-muted: #5B6B8C;
  --ks-tint: #EAF3FF;
  --ks-radius: 14px;
  --ks-shadow: 0 6px 24px rgba(11, 27, 66, .07);
  --ks-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ks-wrap: 1200px;
}

/* ===== 2. Dasar ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ks-font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ks-navy);
  background: var(--ks-bg);
  overflow-x: hidden;
}
img, video, iframe, embed { max-width: 100%; height: auto; }
a { color: var(--ks-blue); text-decoration: none; }
a:hover { color: var(--ks-blue-3); }
:focus-visible { outline: 3px solid var(--ks-sky); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { overflow-wrap: break-word; line-height: 1.25; letter-spacing: -0.02em; font-weight: 800; color: var(--ks-navy); }
.ks-wrap { max-width: var(--ks-wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text, .ks-sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 10px; left: 10px; z-index: 999; clip: auto; width: auto; height: auto;
  background: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--ks-shadow);
}

/* ===== 3. Top bar ===== */
.ks-topbar { background: var(--ks-navy); color: #C9D6F0; font-size: 13px; }
.ks-topbar .ks-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.ks-topbar__slogan strong { color: #fff; font-weight: 700; }
.ks-topbar__right { display: flex; align-items: center; gap: 16px; }
.ks-social { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.ks-social a { color: #C9D6F0; display: inline-flex; }
.ks-social a:hover { color: var(--ks-sky); }
.ks-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ===== 4. Header ===== */
.ks-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--ks-line);
}
.admin-bar .ks-header { top: 32px; }
.ks-header .ks-wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.ks-brand { display: flex; align-items: center; gap: 10px; color: var(--ks-navy); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.ks-brand img { max-height: 40px; width: auto; }
.ks-brand__mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 18px;
  background: linear-gradient(135deg, var(--ks-blue-2), var(--ks-blue-3));
}
.ks-brand__tag { font-weight: 600; color: var(--ks-blue); }
.ks-brand__icon { height: 40px; width: auto; display: block; }
.ks-brand__box { background: #fff; border-radius: 10px; padding: 5px; display: inline-grid; place-items: center; }
.ks-brand__box .ks-brand__icon { height: 30px; }
.ks-nav { margin-left: auto; }
.ks-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.ks-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--ks-navy); font-weight: 600; font-size: 15px;
}
.ks-nav a:hover, .ks-nav .current-menu-item > a, .ks-nav .current-post-ancestor > a { background: var(--ks-tint); color: var(--ks-blue); }
.ks-nav .sub-menu { display: none; }
.ks-header__actions { display: flex; align-items: center; gap: 8px; }
.ks-icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--ks-line); background: #fff;
  display: inline-grid; place-items: center; cursor: pointer; color: var(--ks-navy);
}
.ks-icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.ks-menu-toggle { display: none; }
.ks-search-panel { display: none; border-top: 1px solid var(--ks-line); padding: 14px 0; background: #fff; }
.ks-search-panel.is-open { display: block; }

/* ===== 5. Tombol ===== */
.ks-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 15px/1.2 var(--ks-font);
  background: linear-gradient(135deg, var(--ks-blue-2), var(--ks-blue-3)); color: #fff;
  box-shadow: 0 6px 18px rgba(18, 104, 220, .28); transition: transform .15s ease, box-shadow .15s ease;
}
.ks-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(18, 104, 220, .35); }
.ks-btn--light { background: #fff; color: var(--ks-blue); box-shadow: none; }
.ks-btn--light:hover { color: var(--ks-blue-3); }
.ks-btn--accent { background: var(--ks-orange); color: var(--ks-navy); box-shadow: 0 6px 18px rgba(255, 181, 52, .35); }
.ks-btn--accent:hover { color: var(--ks-navy); }
.ks-btn--sm { padding: 8px 16px; font-size: 14px; }

/* ===== 6. Form pencarian ===== */
.ks-searchform { display: flex; gap: 8px; }
.ks-searchform input[type="search"] {
  flex: 1; min-width: 0; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--ks-line);
  font: 500 15px var(--ks-font); color: var(--ks-navy); background: #fff;
}
.ks-searchform input[type="search"]:focus { outline: none; border-color: var(--ks-blue); box-shadow: 0 0 0 3px rgba(18, 104, 220, .15); }

/* ===== 7. Layout utama ===== */
.ks-main { padding: 32px 0 56px; }
.ks-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.ks-layout > * { min-width: 0; }
.ks-sidebar { position: sticky; top: 92px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.admin-bar .ks-sidebar { top: 124px; }

/* ===== 8. Kartu & widget ===== */
.ks-box { background: var(--ks-card); border: 1px solid var(--ks-line); border-radius: var(--ks-radius); padding: 22px; }
.ks-box__title, .widget-title {
  margin: 0 0 14px; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px;
}
.ks-box__title::before, .widget-title::before {
  content: ""; width: 4px; height: 18px; border-radius: 4px; background: var(--ks-blue);
}
.ks-cta-card {
  border-radius: var(--ks-radius); padding: 24px; color: #fff; text-align: left; position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--ks-blue-2) 0%, var(--ks-blue) 55%, var(--ks-blue-3) 100%);
}
.ks-cta-card::after {
  content: ""; position: absolute; right: -70px; bottom: -70px; width: 160px; height: 160px; border-radius: 50%;
  background: rgba(79, 195, 255, .30);
}
.ks-cta-card h3 { color: #fff; margin: 0 0 8px; font-size: 19px; position: relative; }
.ks-cta-card p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: #E4EFFF; position: relative; }
.ks-cta-card .ks-btn { position: relative; }
.ks-3t { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; padding: 0; list-style: none; position: relative; }
.ks-3t li { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); }

.ks-mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ks-mini { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; }
.ks-mini__thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--ks-tint); }
.ks-mini__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: 50% 30%; }
.ks-mini__title { overflow-wrap: anywhere; font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--ks-navy); display: block; }
.ks-mini__title:hover { color: var(--ks-blue); }
.ks-mini__date { font-size: 12px; color: var(--ks-muted); }

.ks-cat-list { list-style: none; margin: 0; padding: 0; }
.ks-cat-list li { border-bottom: 1px dashed var(--ks-line); }
.ks-cat-list li:last-child { border-bottom: 0; }
.ks-cat-list a { display: flex; justify-content: space-between; padding: 9px 0; color: var(--ks-navy); font-weight: 600; font-size: 15px; }
.ks-cat-list a:hover { color: var(--ks-blue); }
.ks-cat-list span { color: var(--ks-muted); font-weight: 500; font-size: 13px; }

/* ===== 9. Label kategori & meta ===== */
.ks-cat {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ks-blue); background: var(--ks-tint); padding: 4px 10px; border-radius: 6px;
}
.ks-cat:hover { background: var(--ks-blue); color: #fff; }
.ks-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; color: var(--ks-muted); }
.ks-meta img { width: 30px; height: 30px; border-radius: 50%; }
.ks-meta__author { display: inline-flex; align-items: center; gap: 8px; color: var(--ks-navy); font-weight: 700; }
.ks-meta__dot::before { content: "•"; margin-right: 16px; color: var(--ks-line); }

/* ===== 10. Grid kartu artikel ===== */
.ks-section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.ks-section-head h2 { margin: 0; font-size: 24px; }
.ks-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ks-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ks-card { background: var(--ks-card); border: 1px solid var(--ks-line); border-radius: var(--ks-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.ks-card:hover { box-shadow: var(--ks-shadow); transform: translateY(-2px); }
.ks-card__thumb { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--ks-tint), #D6E7FF); overflow: hidden; }
.ks-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: 50% 30%; }
.ks-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ks-card__title { margin: 0; font-size: 18.5px; line-height: 1.35; }
.ks-card__title a { color: var(--ks-navy); }
.ks-card__title a:hover { color: var(--ks-blue); }
.ks-card__excerpt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ks-muted); }
.ks-card__foot { margin-top: auto; font-size: 13px; color: var(--ks-muted); }

/* Hero home */
.ks-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; overflow: hidden; margin-bottom: 28px;
  background: var(--ks-card); border: 1px solid var(--ks-line); border-radius: 18px;
}
.ks-hero__thumb { display: block; min-height: 320px; background: linear-gradient(135deg, var(--ks-blue-2), var(--ks-blue-3)); }
.ks-hero__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: 50% 30%; }
.ks-hero__body { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.ks-hero__title { margin: 0; font-size: 30px; }
.ks-hero__title a { color: var(--ks-navy); }
.ks-hero__title a:hover { color: var(--ks-blue); }

.ks-blog-intro {
  border-radius: 18px; padding: 34px 32px; margin-bottom: 28px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(79, 195, 255, .45) 0%, transparent 55%), linear-gradient(135deg, var(--ks-blue) 0%, var(--ks-navy) 100%);
}
.ks-blog-intro h1 { color: #fff; margin: 0 0 8px; font-size: 32px; }
.ks-blog-intro p { margin: 0; color: #D7E6FF; max-width: 640px; }
.ks-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; padding: 0; }
.ks-chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 14px; font-weight: 600; }
.ks-chips a:hover { background: #fff; color: var(--ks-blue); }

/* Pagination */
.ks-pagination { margin-top: 32px; }
.ks-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ks-pagination .page-numbers {
  min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--ks-line); background: #fff; color: var(--ks-navy); font-weight: 700;
}
.ks-pagination .page-numbers.current, .ks-pagination .page-numbers:hover { background: var(--ks-blue); border-color: var(--ks-blue); color: #fff; }

/* ===== 11. Artikel ===== */
.ks-breadcrumb { font-size: 13.5px; color: var(--ks-muted); margin: 0 0 16px; }
.ks-breadcrumb a { color: var(--ks-muted); }
.ks-breadcrumb a:hover { color: var(--ks-blue); }
.ks-breadcrumb .sep { margin: 0 6px; opacity: .6; }

.ks-article { background: var(--ks-card); border: 1px solid var(--ks-line); border-radius: 18px; overflow: hidden; }
.ks-article__head { padding: 32px 40px 8px; }
.ks-article__title { font-size: clamp(28px, 3.4vw, 40px); margin: 14px 0 12px; }
.ks-article__lead { font-size: 19px; line-height: 1.6; color: var(--ks-muted); margin: 0 0 18px; }
.ks-article__thumb { margin: 22px 40px 0; border-radius: 14px; overflow: hidden; }
.ks-article__thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; object-position: 50% 30%; }
.ks-article__thumb figcaption { font-size: 13px; color: var(--ks-muted); text-align: center; padding-top: 8px; }
.ks-article__body { padding: 28px 40px 36px; }

/* Daftar isi */
.ks-toc { background: var(--ks-bg); border: 1px solid var(--ks-line); border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
.ks-toc summary { cursor: pointer; font-weight: 800; font-size: 16px; list-style: none; display: flex; justify-content: space-between; }
.ks-toc summary::-webkit-details-marker { display: none; }
.ks-toc summary::after { content: "−"; color: var(--ks-blue); font-size: 20px; line-height: 1; }
.ks-toc:not([open]) summary::after { content: "+"; }
.ks-toc ol { margin: 12px 0 0; padding-left: 22px; }
.ks-toc li { margin: 4px 0; font-size: 15.5px; line-height: 1.5; }
.ks-toc a { color: var(--ks-navy); }
.ks-toc a:hover { color: var(--ks-blue); }

/* Isi artikel */
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2 { font-size: 27px; margin: 1.8em 0 .6em; scroll-margin-top: 100px; }
.entry-content h3 { font-size: 21px; margin: 1.5em 0 .5em; scroll-margin-top: 100px; }
.entry-content h4 { font-size: 18px; margin: 1.3em 0 .4em; }
.entry-content p a, .entry-content li a { text-decoration: underline; text-decoration-color: rgba(18, 104, 220, .35); text-underline-offset: 3px; }
.entry-content p a:hover, .entry-content li a:hover { text-decoration-color: currentColor; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin: .35em 0; }
.entry-content li::marker { color: var(--ks-blue); font-weight: 700; }
.entry-content img { border-radius: 12px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 14px; color: var(--ks-muted); text-align: center; margin-top: 8px; }
.entry-content blockquote {
  margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--ks-blue); background: var(--ks-tint);
  border-radius: 0 12px 12px 0; font-size: 18px; font-weight: 500;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content code { background: var(--ks-tint); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.entry-content pre { background: var(--ks-navy); color: #E4EFFF; padding: 18px; border-radius: 12px; overflow-x: auto; font-size: 14px; }
.entry-content pre code { background: none; padding: 0; }
.entry-content hr { border: 0; height: 1px; background: var(--ks-line); margin: 2em 0; }

/* Tabel: scroll horizontal di HP */
.entry-content table, .ks-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content .wp-block-table, .ks-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--ks-line); border-radius: 12px; }
.entry-content th { background: var(--ks-blue); color: #fff; text-align: left; font-weight: 700; }
.entry-content th, .entry-content td { padding: 11px 14px; border-bottom: 1px solid var(--ks-line); vertical-align: top; }
.entry-content tbody tr:nth-child(even) { background: #F2F6FD; }

/* Kotak info (pakai class "ks-note" di blok Paragraf → Advanced → Additional CSS class) */
.ks-note { background: var(--ks-tint); border: 1px solid #CFE2FF; border-radius: 12px; padding: 16px 20px; }
.ks-note--warn { background: #FFF7E6; border-color: #FFE0A3; }

/* CTA dalam artikel */
.ks-inline-cta {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  margin: 2em 0; padding: 24px 26px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, var(--ks-blue-2), var(--ks-blue-3));
}
.ks-inline-cta__title { color: #fff; margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.ks-inline-cta p { margin: 0; color: #E4EFFF; font-size: 15px; line-height: 1.55; }
.entry-content .ks-inline-cta a.ks-btn { text-decoration: none; }

/* Tags, penulis, navigasi */
.ks-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.ks-tags a { font-size: 13.5px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--ks-line); color: var(--ks-navy); }
.ks-tags a:hover { border-color: var(--ks-blue); color: var(--ks-blue); }
.ks-author { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 24px; margin-top: 24px; background: var(--ks-bg); border-radius: 14px; }
.ks-author img { width: 76px; height: 76px; border-radius: 50%; }
.ks-author__label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ks-blue); }
.ks-author__name { font-size: 18px; font-weight: 800; margin: 2px 0 6px; }
.ks-author__job { font-size: 14px; font-weight: 600; color: var(--ks-blue); margin: -2px 0 6px; }
[data-theme="dark"] .ks-author__job { color: var(--ks-sky); }
.ks-author__social { display: flex; gap: 8px; margin-top: 10px; }
.ks-author__social a { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ks-card); border: 1px solid var(--ks-line); color: var(--ks-navy); font-weight: 800; font-size: 13px; }
.ks-author__social a:hover { border-color: var(--ks-blue); color: var(--ks-blue); }
.ks-author__social svg { width: 16px; height: 16px; fill: currentColor; }
.ks-archive-head .ks-author { max-width: 760px; }
.ks-author p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ks-muted); }
.ks-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.ks-postnav a { display: block; padding: 16px 18px; border: 1px solid var(--ks-line); border-radius: 12px; background: #fff; color: var(--ks-navy); font-weight: 700; line-height: 1.4; }
.ks-postnav a:hover { border-color: var(--ks-blue); }
.ks-postnav small { display: block; font-size: 12px; font-weight: 700; color: var(--ks-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.ks-postnav .next { text-align: right; }
.ks-related { margin-top: 40px; }

/* Komentar */
.ks-comments { margin-top: 32px; }
.ks-comments .comment-list { list-style: none; padding: 0; }
.ks-comments .comment-body { background: #fff; border: 1px solid var(--ks-line); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.ks-comments .children { list-style: none; padding-left: 24px; }
.ks-comments .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.ks-comments input[type="text"], .ks-comments input[type="email"], .ks-comments input[type="url"], .ks-comments textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--ks-line); border-radius: 10px; font: 15px var(--ks-font);
}
.ks-comments .submit { padding: 11px 22px; border-radius: 999px; border: 0; background: var(--ks-blue); color: #fff; font: 700 15px var(--ks-font); cursor: pointer; }

/* ===== 12. Halaman, arsip, 404 ===== */
.ks-archive-head { margin-bottom: 24px; }
.ks-archive-head h1 { margin: 6px 0 6px; font-size: 32px; }
.ks-archive-head p { margin: 0; color: var(--ks-muted); }
.ks-empty { text-align: center; padding: 60px 24px; }
.ks-hash { color: var(--ks-sky); margin-right: 2px; }
.ks-archive-desc { max-width: 760px; color: var(--ks-muted); }
.ks-archive-desc p { margin: 0 0 .6em; }
.ks-topik-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
@media (max-width: 640px) { .ks-topik-list { grid-template-columns: 1fr; } }
.ks-tags--top { margin-top: 14px; }
.ks-tags--top a { background: var(--ks-tint); border-color: transparent; color: var(--ks-blue); font-weight: 600; }
.ks-tags--top a:hover { background: var(--ks-blue); color: #fff; }
.ks-tags__label { font-size: 13.5px; font-weight: 700; color: var(--ks-muted); align-self: center; margin-right: 2px; }
.ks-empty h1 { font-size: 56px; margin: 0; color: var(--ks-blue); }

/* ===== 13. Footer ===== */
.ks-footer { background: var(--ks-navy); color: #B9C7E3; font-size: 15px; }
.ks-footer a { color: #DCE6F8; }
.ks-footer a:hover { color: var(--ks-sky); }
.ks-footer__cta { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ks-footer__cta .ks-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 32px; padding-bottom: 32px; }
.ks-footer__cta h2 { color: #fff; margin: 0 0 4px; font-size: 24px; }
.ks-footer__cta p { margin: 0; }
.ks-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.ks-footer h3 { color: #fff; font-size: 15px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .06em; }
.ks-footer ul { list-style: none; margin: 0; padding: 0; }
.ks-footer li { margin: 0 0 8px; }
.ks-footer .ks-brand { color: #fff; margin-bottom: 12px; }
.ks-footer__3t { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.ks-footer__3t span { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(79, 195, 255, .45); color: var(--ks-sky); }
.ks-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.ks-footer__bottom .ks-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }

/* WhatsApp mengambang */
.ks-wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}
.ks-wa-float svg { width: 28px; height: 28px; fill: #fff; }
.ks-wa-float:hover { color: #fff; transform: scale(1.05); }

/* Gutenberg alignment dasar */
.alignwide { margin-left: 0; margin-right: 0; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.wp-block-button__link { border-radius: 999px; background: var(--ks-blue); color: #fff; padding: 11px 22px; font-weight: 700; text-decoration: none !important; }
.wp-block-image { margin-bottom: 1.4em; }

/* ===== 14. Responsif ===== */
@media (max-width: 1024px) {
  .ks-layout { grid-template-columns: minmax(0, 1fr); }
  .ks-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ks-sidebar > * { min-width: 0; }
  .ks-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ks-menu-toggle { display: inline-grid; }
  .ks-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--ks-line); display: none; margin: 0; }
  .ks-nav.is-open { display: block; }
  .ks-nav ul { flex-direction: column; padding: 10px 20px 16px; }
  .ks-nav a { padding: 12px 10px; min-height: 44px; }
  .ks-header__actions { margin-left: auto; }
  .ks-header__actions .ks-btn { display: none; }
  .ks-hero { grid-template-columns: minmax(0, 1fr); }
  .ks-hero__thumb { min-height: 200px; aspect-ratio: 16 / 9; }
  .ks-hero__body { padding: 22px; }
  .ks-hero__title { font-size: 24px; }
  .ks-footer__cols { grid-template-columns: 1fr 1fr; }
  .ks-footer__cols > :first-child { grid-column: 1 / -1; }
  .ks-footer__cta .ks-wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .ks-wrap { padding: 0 16px; }
  .ks-topbar__slogan { display: none; }
  .ks-topbar .ks-wrap { justify-content: center; }
  .ks-main { padding: 20px 0 40px; }
  .ks-grid, .ks-grid--3, .ks-sidebar { grid-template-columns: minmax(0, 1fr); }
  .ks-article { border-radius: 0; border-left: 0; border-right: 0; margin: 0 -16px; }
  .ks-article__head { padding: 22px 18px 4px; }
  .ks-article__thumb { margin: 16px 0 0; border-radius: 0; }
  .ks-article__body { padding: 18px 18px 28px; }
  .ks-article__lead { font-size: 17px; }
  .entry-content h2 { font-size: 23px; }
  .entry-content h3 { font-size: 19px; }
  .entry-content th, .entry-content td { padding: 9px 12px; font-size: 14px; white-space: nowrap; }
  .ks-inline-cta { grid-template-columns: 1fr; padding: 20px; }
  .ks-postnav { grid-template-columns: 1fr; }
  .ks-postnav .next { text-align: left; }
  .ks-author { grid-template-columns: 56px 1fr; padding: 18px; }
  .ks-author img { width: 56px; height: 56px; }
  .ks-blog-intro { padding: 26px 20px; }
  .ks-blog-intro h1 { font-size: 26px; }
  .ks-footer__cols { grid-template-columns: 1fr; }
  .ks-footer__bottom .ks-wrap { flex-direction: column; }
  .admin-bar .ks-header { top: 0; }
}
/* ===== 15. Carousel sorotan ===== */
.ks-carousel { position: relative; overflow: hidden; border-radius: 18px; margin-bottom: 28px; background: #0B1B42; isolation: isolate; }
.ks-carousel__track { display: flex; transition: transform .55s cubic-bezier(.22, .7, .2, 1); will-change: transform; }
.ks-slide { flex: 0 0 100%; min-width: 100%; position: relative; min-height: 400px; display: flex; align-items: flex-end; color: #fff; }
.ks-slide__img { position: absolute; inset: 0; background: linear-gradient(135deg, var(--ks-blue-2), #0B1B42); }
.ks-slide__img img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: 50% 30%; }
.ks-slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(5, 11, 30, .94) 0%, rgba(5, 11, 30, .55) 45%, rgba(5, 11, 30, .05) 100%); }
.ks-slide__body { position: relative; z-index: 1; padding: 36px 40px 40px; max-width: 760px; display: grid; gap: 10px; justify-items: start; }
.ks-slide .ks-cat { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(4px); }
.ks-slide .ks-cat:hover { background: #fff; color: var(--ks-blue); }
.ks-slide__title { margin: 0; font-size: clamp(22px, 3vw, 34px); color: #fff; }
.ks-slide__title a { color: #fff; }
.ks-slide__title a:hover { color: var(--ks-sky); }
.ks-slide__excerpt { margin: 0; color: #DCE6F8; font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ks-slide__meta { font-size: 13.5px; color: #AFC0E2; }
.ks-carousel__controls { position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(5, 11, 30, .45); backdrop-filter: blur(6px); }
.ks-carousel__btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font: 700 18px/1 var(--ks-font); cursor: pointer; display: grid; place-items: center; }
.ks-carousel__btn:hover { background: #fff; color: var(--ks-blue); }
.ks-carousel__pause { font-size: 11px; letter-spacing: -1px; }
.ks-carousel__dots { display: flex; gap: 6px; padding: 0 4px; }
.ks-carousel__dot { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .25s ease, background .25s ease; }
.ks-carousel__dot.is-active { width: 22px; background: var(--ks-orange); }

/* ===== 16. Video pilihan ===== */
.ks-videos-wrap { margin-top: 36px; }
.ks-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ks-video-card { margin: 0; background: var(--ks-card); border: 1px solid var(--ks-line); border-radius: var(--ks-radius); overflow: hidden; }
.entry-content .ks-video-card { margin: 1.6em 0; }
.ks-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; margin: 0; cursor: pointer; background: #000; overflow: hidden; }
.ks-video img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0 !important; opacity: .92; transition: opacity .2s ease, transform .3s ease; }
.ks-video:hover img { opacity: 1; transform: scale(1.03); }
.ks-video__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(18, 104, 220, .92); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.ks-video__play::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.ks-video--link { display: grid; place-items: center; background: radial-gradient(90% 120% at 85% 10%, rgba(79, 195, 255, .45), transparent 55%), linear-gradient(135deg, #1268DC, #0B1B42); text-decoration: none !important; }
.ks-video--link .ks-video__play { top: 42%; }
.ks-video__site { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; font-size: 14px; }
.ks-video__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.ks-video--brand { display: grid; place-items: center; background: radial-gradient(90% 120% at 85% 10%, rgba(79, 195, 255, .45), transparent 55%), linear-gradient(135deg, #1268DC, #0B1B42); }
.ks-video--brand .ks-video__play { top: 46%; }
.ks-video-card--portrait { max-width: 360px; margin-left: auto !important; margin-right: auto !important; }
.ks-video-card--portrait .ks-video, .ks-video-card--portrait .ks-video__frame { aspect-ratio: 9 / 16; }
.ks-article__video { margin: 0 0 1.4em; }
.ks-article__video .ks-video-card { margin: 0; }
.ks-video-card__title { padding: 12px 16px 14px; font-weight: 700; font-size: 15px; line-height: 1.4; color: var(--ks-navy); text-align: left; margin: 0; }

/* ===== Section niche di beranda ===== */
.ks-niche { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--ks-line); }
.ks-niche .ks-section-head { align-items: flex-end; }
.ks-niche .ks-section-head h2 { margin: 6px 0 4px; }
.ks-niche__desc { margin: 0; color: var(--ks-muted); font-size: 15px; max-width: 560px; }
.ks-niche__all { font-weight: 700; white-space: nowrap; }
.ks-niche .ks-card__excerpt { display: none; }

/* ===== Form daftar penulis ===== */
.ks-form { display: grid; gap: 14px; margin-top: 18px; }
.ks-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.ks-form input[type="text"], .ks-form input[type="email"], .ks-form input[type="tel"], .ks-form input[type="url"], .ks-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--ks-line); border-radius: 10px; font: 400 15px var(--ks-font); color: var(--ks-navy); background: var(--ks-card);
}
.ks-form input:focus, .ks-form textarea:focus { outline: none; border-color: var(--ks-blue); box-shadow: 0 0 0 3px rgba(18, 104, 220, .15); }
.ks-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ks-form__topics { border: 1px solid var(--ks-line); border-radius: 12px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ks-form__topics legend { font-weight: 700; padding: 0 6px; }
.ks-form label.ks-check { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; }
.ks-form label.ks-check input { margin-top: 5px; }
.ks-form .ks-btn { justify-self: start; }
.ks-form__note { margin: 0; font-size: 14px; color: var(--ks-muted); }
.ks-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ks-steps { margin: 18px 0; padding-left: 1.3em; }
.ks-steps li { margin: 6px 0; }
@media (max-width: 640px) { .ks-form__grid { grid-template-columns: minmax(0, 1fr); } }

/* ===== Iklan ===== */
.ks-ad { margin: 2em 0; min-height: 120px; text-align: center; }
.ks-ad__label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ks-muted); margin-bottom: 6px; }
.ks-ad--sidebar { margin: 0; min-height: 250px; }

/* ===== 17. Tombol mode malam ===== */
.ks-theme-toggle .ks-ico-sun { display: none; }
[data-theme="dark"] .ks-theme-toggle .ks-ico-sun { display: inline; }
[data-theme="dark"] .ks-theme-toggle .ks-ico-moon { display: none; }
.ks-theme-toggle span { display: inline-grid; }

/* ===== 18. Mode malam ===== */
[data-theme="dark"] {
  color-scheme: dark;
  --ks-bg: #070F24;
  --ks-card: #0E1A38;
  --ks-line: #1E2D56;
  --ks-muted: #9DAACB;
  --ks-tint: #13254D;
  --ks-navy: #E7EEFB;           /* dipakai sebagai warna teks */
  --ks-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
[data-theme="dark"] a { color: #6FB4FF; }
[data-theme="dark"] a:hover { color: var(--ks-sky); }
[data-theme="dark"] .ks-topbar, [data-theme="dark"] .ks-footer { background: #040A1B; }
[data-theme="dark"] .ks-header { background: rgba(7, 15, 36, .92); }
[data-theme="dark"] .ks-header .ks-brand__icon { background: #fff; border-radius: 10px; padding: 3px; }
[data-theme="dark"] .ks-brand, [data-theme="dark"] .ks-nav a, [data-theme="dark"] .ks-card__title a, [data-theme="dark"] .ks-hero__title a,
[data-theme="dark"] .ks-mini__title, [data-theme="dark"] .ks-cat-list a, [data-theme="dark"] .ks-toc a, [data-theme="dark"] .ks-tags a,
[data-theme="dark"] .ks-postnav a, [data-theme="dark"] .ks-meta__author { color: var(--ks-navy); }
[data-theme="dark"] .ks-nav a:hover, [data-theme="dark"] .ks-nav .current-menu-item > a, [data-theme="dark"] .ks-card__title a:hover,
[data-theme="dark"] .ks-mini__title:hover, [data-theme="dark"] .ks-cat-list a:hover { color: var(--ks-sky); }
[data-theme="dark"] .ks-icon-btn, [data-theme="dark"] .ks-search-panel, [data-theme="dark"] .ks-searchform input[type="search"],
[data-theme="dark"] .ks-pagination .page-numbers, [data-theme="dark"] .ks-postnav a, [data-theme="dark"] .ks-comments .comment-body,
[data-theme="dark"] .ks-comments input[type="text"], [data-theme="dark"] .ks-comments input[type="email"], [data-theme="dark"] .ks-comments input[type="url"],
[data-theme="dark"] .ks-comments textarea, [data-theme="dark"] .skip-link:focus { background: var(--ks-card); color: var(--ks-navy); }
[data-theme="dark"] .ks-pagination .page-numbers.current, [data-theme="dark"] .ks-pagination .page-numbers:hover { background: var(--ks-blue); color: #fff; }
[data-theme="dark"] .ks-cat, [data-theme="dark"] .ks-tags--top a { color: var(--ks-sky); }
[data-theme="dark"] .ks-cat:hover, [data-theme="dark"] .ks-tags--top a:hover { color: #fff; }
[data-theme="dark"] .ks-btn, [data-theme="dark"] .ks-btn:hover { color: #fff; }
[data-theme="dark"] .ks-btn--light, [data-theme="dark"] .ks-btn--light:hover { color: var(--ks-blue); }
[data-theme="dark"] .ks-btn--accent, [data-theme="dark"] .ks-btn--accent:hover { color: #0B1B42; }
[data-theme="dark"] .ks-blog-intro { background: radial-gradient(120% 140% at 100% 0%, rgba(79, 195, 255, .3) 0%, transparent 55%), linear-gradient(135deg, #0E4FAE 0%, #0A1533 100%); }
[data-theme="dark"] .ks-chips a, [data-theme="dark"] .ks-inline-cta a.ks-btn--light { color: #fff; }
[data-theme="dark"] .ks-inline-cta a.ks-btn--light { color: var(--ks-blue); }
[data-theme="dark"] .ks-cta-card a.ks-btn--accent { color: #0B1B42; }
[data-theme="dark"] .ks-slide__title a, [data-theme="dark"] .ks-slide .ks-cat { color: #fff; }
[data-theme="dark"] .ks-footer a { color: #DCE6F8; }
[data-theme="dark"] .entry-content pre { background: #040A1B; }
[data-theme="dark"] .entry-content tbody tr:nth-child(even) { background: rgba(255, 255, 255, .03); }
[data-theme="dark"] .entry-content p a, [data-theme="dark"] .entry-content li a { text-decoration-color: rgba(111, 180, 255, .45); }
[data-theme="dark"] .ks-note { border-color: #23407A; }
[data-theme="dark"] .ks-note--warn { background: #2A2213; border-color: #5C4716; }
[data-theme="dark"] .ks-card__thumb { background: linear-gradient(135deg, #13254D, #1A3366); }
[data-theme="dark"] img { filter: brightness(.94); }
[data-theme="dark"] .ks-brand__icon, [data-theme="dark"] .ks-video img { filter: none; }
@media (max-width: 860px) {
  [data-theme="dark"] .ks-nav { background: var(--ks-card); }
}

@media (max-width: 860px) {
  .ks-slide { min-height: 380px; }
  .ks-slide__body { padding: 24px 22px 28px; }
  .ks-carousel__controls { top: 12px; right: 12px; }
}
@media (max-width: 640px) {
  .ks-carousel { border-radius: 14px; margin-left: -4px; margin-right: -4px; }
  .ks-slide { min-height: 420px; }
  .ks-slide__excerpt { font-size: 15px; }
  .ks-brand { font-size: 17px; white-space: nowrap; gap: 8px; }
  .ks-brand__icon { height: 34px; }
  .ks-header__actions { gap: 6px; }
  .ks-videos { grid-template-columns: minmax(0, 1fr); }
  .ks-carousel__btn { width: 32px; height: 32px; }
}

@media (max-width: 374px) {
  .ks-brand__tag { display: none; }
}

/* ===== 15. Layout portal (gaya portal berita): banner & header gelap ===== */
.ks-topbar { background: #060F26; }
.ks-header { background: #0B1B42; border-bottom: 0; backdrop-filter: none; box-shadow: 0 2px 10px rgba(5, 11, 30, .18); }
.ks-header .ks-brand { color: #fff; }
.ks-header .ks-brand__tag { color: var(--ks-sky); }
.ks-header .ks-brand__icon { background: #fff; border-radius: 10px; padding: 3px; }
.ks-header .ks-nav a { color: #E6EDFA; }
.ks-header .ks-nav a:hover, .ks-header .ks-nav .current-menu-item > a, .ks-header .ks-nav .current-post-ancestor > a, .ks-header .ks-nav .current-cat > a { background: rgba(255, 255, 255, .12); color: #fff; }
.ks-header .ks-icon-btn { background: transparent; border-color: rgba(255, 255, 255, .22); color: #fff; }
.ks-header .ks-icon-btn:hover { background: rgba(255, 255, 255, .12); }
.ks-header .ks-search-panel { background: #0B1B42; border-top-color: rgba(255, 255, 255, .12); }
[data-theme="dark"] .ks-header { background: #040A1B; }
[data-theme="dark"] .ks-header .ks-brand, [data-theme="dark"] .ks-header .ks-nav a { color: #E6EDFA; }
[data-theme="dark"] .ks-header .ks-icon-btn { color: #E6EDFA; background-color: transparent; }
[data-theme="dark"] .ks-header .ks-search-panel { background: #040A1B; }
@media (max-width: 860px) {
  .ks-header .ks-nav, [data-theme="dark"] .ks-header .ks-nav { background: #0B1B42; border-bottom-color: rgba(255, 255, 255, .12); }
}

/* Header gaya portal: kotak logo menjorok, menu putih, tombol order bergaris */
.ks-header { background: #0B1B42; }
.ks-header .ks-wrap { position: relative; min-height: 74px; gap: 20px; padding-left: 164px; }
.ks-brand--block {
  position: absolute; left: 20px; top: 0; z-index: 3; width: 124px; height: 116px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: #fff; color: #0B1B42; border-bottom: 3px solid var(--ks-blue);
  box-shadow: 0 6px 16px rgba(5, 11, 30, .22); text-align: center; line-height: 1.1; overflow: hidden;
}
.ks-brand--block:hover { color: #0B1B42; }
.ks-header .ks-brand--block .ks-brand__icon { height: 98px; max-height: none; width: auto; max-width: 110px; object-fit: contain; }
.ks-header .ks-brand--block .ks-brand__icon, [data-theme="dark"] .ks-header .ks-brand--block .ks-brand__icon { background: none; border-radius: 0; padding: 0; filter: none; }
.ks-brand--block .ks-brand__name { font-size: 14px; font-weight: 800; letter-spacing: -.01em; color: #0B1B42; }
.ks-header .ks-brand--block .ks-brand__tag { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ks-blue); }
[data-theme="dark"] .ks-header .ks-brand--block { color: #0B1B42; background: #fff; }
[data-theme="dark"] .ks-header .ks-brand--block .ks-brand__name { color: #0B1B42; }
.ks-header .ks-nav { margin-left: 0; flex: 1; min-width: 0; }
.ks-header .ks-nav ul { gap: 2px; }
.ks-header .ks-nav a { color: #fff; font-weight: 500; font-size: 16px; padding: 7px 12px; border-radius: 4px; }
.ks-header .ks-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.ks-header .ks-nav .current-menu-item > a, .ks-header .ks-nav .current-post-ancestor > a, .ks-header .ks-nav .current-cat > a, .ks-header .ks-nav .current_page_item > a { background: #2A3552; color: #fff; }
.ks-header .ks-icon-btn { border: 0; width: 42px; height: 42px; border-radius: 50%; }
.ks-header .ks-icon-btn svg { width: 22px; height: 22px; }
.ks-hot { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1.5px solid var(--ks-orange); border-radius: 4px; color: #fff; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.ks-hot:hover { background: var(--ks-orange); color: #0B1B42; }
[data-theme="dark"] .ks-hot { color: #fff; }
[data-theme="dark"] .ks-hot:hover { color: #0B1B42; }
.ks-hot__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ks-orange); animation: ks-pulse 1.6s ease-in-out infinite; }
.ks-hot:hover .ks-hot__dot { background: #0B1B42; }
@keyframes ks-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.ks-trending .ks-wrap { padding-left: 164px; min-height: 54px; }
.ks-trending__label { font-size: 16px; }
.ks-trending a { font-size: 15.5px; font-weight: 500; padding: 4px 20px; }
.ks-trending li:first-child a { color: var(--ks-blue); font-weight: 600; }
@media (max-width: 1100px) {
  .ks-header .ks-nav a { font-size: 15px; padding: 7px 9px; }
  .ks-hot { padding: 6px 10px; font-size: 13.5px; }
}
@media (max-width: 860px) {
  .ks-header .ks-wrap { min-height: 62px; padding-left: 108px; }
  .ks-brand--block { left: 16px; width: 80px; height: 84px; gap: 0; }
  .ks-header .ks-brand--block .ks-brand__icon { height: 70px; max-width: 70px; }
  .ks-header .ks-brand--block .ks-brand__tag { display: none; }
  .ks-brand--block .ks-brand__name { font-size: 10px; letter-spacing: 0; }
  .ks-brand--block .ks-brand__tag { display: none; }
  .ks-header .ks-nav { z-index: 4; flex: none; }
  .ks-header .ks-nav ul { padding-top: 22px; }
  .ks-header .ks-nav a { font-size: 16px; padding: 12px 10px; }
  .ks-header__actions .ks-hot { display: none; }
  .ks-trending .ks-wrap { padding-left: 108px; min-height: 48px; }
  .ks-trending__label { font-size: 13px; }
  .ks-trending a { font-size: 14.5px; padding: 4px 14px; }
}
@media (prefers-reduced-motion: reduce) { .ks-hot__dot { animation: none; } }

.ks-footer__logo { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.ks-footer__logo img { display: block; height: 76px; width: auto; }

/* Logo header: ukuran dikunci (lebar & tinggi tetap) supaya sama di semua browser & mode */
html .ks-header a.ks-brand--block { padding: 8px; box-sizing: border-box; }
html .ks-header a.ks-brand--block img.ks-brand__icon,
html[data-theme] .ks-header a.ks-brand--block img.ks-brand__icon {
  display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0;
  flex: 1 1 auto; object-fit: contain; object-position: center; background: none; border-radius: 0; padding: 0; filter: none;
}
@media (max-width: 860px) {
  html .ks-header a.ks-brand--block { width: 78px; height: 84px; padding: 6px; }
}

/* Strip kategori yang bisa digeser (khusus HP, seperti portal berita) */
.ks-catbar { display: none; }
@media (max-width: 860px) {
  .ks-catbar { display: block; background: #16264F; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ks-catbar::-webkit-scrollbar { display: none; }
  .ks-catbar ul { list-style: none; margin: 0; padding: 0 16px 0 108px; display: flex; white-space: nowrap; }
  .ks-catbar li { flex: none; }
  .ks-catbar a { display: block; padding: 12px 12px; color: #E6EDFA; font-weight: 600; font-size: 15px; }
  .ks-catbar .current-menu-item > a, .ks-catbar .current-cat > a { color: #fff; box-shadow: inset 0 -3px 0 var(--ks-sky); }
  .ks-trending .ks-wrap { padding-left: 16px; }
  [data-theme="dark"] .ks-catbar { background: #0B1430; }
}
.ks-main > .ks-wrap > .ks-carousel:first-child, .ks-main > .ks-wrap > h1.screen-reader-text + .ks-carousel { margin-top: 0; }

.ks-footer__mail { margin: 12px 0 0; font-size: 14.5px; }
.ks-footer__mail a { color: #fff; font-weight: 600; }

/* Logo "Insight Kedaisosmed" (tulisan saja): kotak putih lebar */
.ks-header .ks-wrap { padding-left: 212px; }
.ks-trending .ks-wrap { padding-left: 212px; }
html .ks-header a.ks-brand--block { width: 172px; height: 92px; padding: 10px 12px; }
.ks-footer__logo { background: none; padding: 0; border-radius: 0; }
.ks-footer__logo img { height: 62px; width: auto; }
@media (max-width: 1100px) {
  .ks-header .ks-wrap, .ks-trending .ks-wrap { padding-left: 196px; }
  html .ks-header a.ks-brand--block { width: 156px; height: 86px; }
}
@media (max-width: 860px) {
  .ks-header .ks-wrap { padding-left: 150px; }
  html .ks-header a.ks-brand--block { width: 122px; height: 66px; padding: 6px 8px; }
  .ks-catbar ul { padding-left: 16px; }
  .ks-trending .ks-wrap { padding-left: 16px; }
}

/* Menu header selalu satu baris */
.ks-header .ks-nav a { white-space: nowrap; }
.ks-hot__short { display: none; }
@media (max-width: 1320px) and (min-width: 861px) {
  .ks-header .ks-nav a { font-size: 15px; padding: 7px 9px; }
  .ks-header .ks-nav ul { gap: 0; }
  .ks-hot__txt { display: none; }
  .ks-hot__short { display: inline; }
  .ks-header .ks-wrap { gap: 12px; }
}
@media (max-width: 1060px) and (min-width: 861px) {
  .ks-header .ks-nav a { font-size: 14px; padding: 7px 7px; }
  .ks-header .ks-icon-btn { width: 36px; height: 36px; }
}

/* Area Penulis (sidebar) */
.ks-penulis-box p { margin: 0 0 12px; font-size: 14.5px; color: var(--ks-muted); }
.ks-penulis-box p strong { color: var(--ks-navy); }
.ks-penulis-box__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ks-penulis-box__btns .ks-btn { flex: 1; }
.ks-btn--ghost { background: transparent; color: var(--ks-blue); border: 1px solid var(--ks-line); box-shadow: none; }
.ks-btn--ghost:hover { color: var(--ks-blue-3); background: var(--ks-tint); }
.ks-penulis-box .ks-penulis-box__note { margin: 12px 0 0; font-size: 13.5px; }

/* Banner atas */
.ks-bn-top { background: var(--ks-bg); padding: 10px 12px; }
.ks-bn-top__in { max-width: 970px; margin: 0 auto; position: relative; text-align: center; }
.ks-bn-top img { display: block; width: 100%; height: auto; margin: 0 auto; border-radius: 6px; }
.ks-bn-top .ks-ad__label, .ks-bslide .ks-ad__label { position: absolute; top: 6px; left: 6px; z-index: 2; margin: 0; background: rgba(255, 255, 255, .9); color: #5B6B8C; padding: 1px 7px; border-radius: 4px; }

/* Banner samping kiri & kanan (hanya layar sangat lebar) */
.ks-bn-side { display: none; }
@media (min-width: 1600px) {
  .ks-bn-side { display: block; position: fixed; top: 130px; width: 160px; z-index: 60; }
  .ks-bn-side--left { left: calc(50% - 600px - 184px); }
  .ks-bn-side--right { right: calc(50% - 600px - 184px); }
  .admin-bar .ks-bn-side { top: 162px; }
  .ks-bn-side img { display: block; width: 160px; height: auto; border-radius: 6px; box-shadow: 0 4px 16px rgba(11, 27, 66, .12); }
}

/* Bar trending */
.ks-trending { background: var(--ks-card); border-bottom: 1px solid var(--ks-line); }
.ks-trending .ks-wrap { display: flex; align-items: center; gap: 18px; min-height: 46px; overflow-x: auto; scrollbar-width: none; }
.ks-trending .ks-wrap::-webkit-scrollbar { display: none; }
.ks-trending__label { color: var(--ks-blue); font-size: 13px; font-weight: 800; letter-spacing: .06em; flex: none; }
.ks-trending ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.ks-trending li { flex: none; }
.ks-trending li + li { border-left: 1px solid var(--ks-line); }
.ks-trending a { display: block; padding: 4px 16px; color: var(--ks-navy); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.ks-trending li:first-child a { padding-left: 0; }
.ks-trending a:hover { color: var(--ks-blue); }

/* Bar pengumuman */
.ks-announce { background: linear-gradient(90deg, #16264F, #2A3C6B); color: #fff; }
.ks-announce .ks-wrap { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.ks-announce p { margin: 0; flex: 1; min-width: 0; font-size: 15px; line-height: 1.45; padding: 8px 0; }
.ks-announce a { color: #fff; text-decoration: underline; font-weight: 600; }
.ks-announce__close { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.ks-announce__close:hover { background: rgba(255, 255, 255, .14); }
.ks-announce.is-hidden { display: none; }

/* Carousel 4 banner di atas footer */
.ks-bnc { padding: 8px 0 36px; }
.ks-carousel--banner { margin: 0; border-radius: 0; background: transparent; }
.ks-carousel--banner .ks-bslide { min-height: 0; aspect-ratio: 4 / 1; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: var(--ks-tint); }
.ks-carousel--banner .ks-bslide::after { display: none; }
.ks-carousel--banner .ks-bslide > a, .ks-carousel--banner .ks-bslide > img { display: block; width: 100%; height: 100%; }
.ks-carousel--banner .ks-bslide img { width: 100%; height: 100%; object-fit: cover; }
.ks-carousel--banner .ks-bslide .adsbygoogle { width: 100%; }
.ks-carousel--banner .ks-carousel__controls { position: static; justify-content: center; width: max-content; margin: 12px auto 0; padding: 4px; background: var(--ks-card); border: 1px solid var(--ks-line); backdrop-filter: none; }
.ks-carousel--banner .ks-carousel__btn { width: 30px; height: 30px; font-size: 15px; background: var(--ks-tint); color: var(--ks-blue); }
.ks-carousel--banner .ks-carousel__btn:hover { background: var(--ks-blue); color: #fff; }
.ks-carousel--banner .ks-carousel__dot { background: #C3D3EC; }
.ks-carousel--banner .ks-carousel__dot.is-active { background: var(--ks-blue); }
@media (max-width: 640px) {
  .ks-carousel--banner .ks-bslide { aspect-ratio: 3 / 1; min-height: 0; }
  .ks-carousel--banner .ks-bslide { border-radius: 10px; }
  .ks-announce p { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
html[data-theme="dark"] .is-style-kotak-info { background: rgba(52,120,246,.14); border-color: rgba(52,120,246,.35); }
html[data-theme="dark"] .is-style-kotak-peringatan { background: rgba(255,181,52,.12); border-color: rgba(255,181,52,.35); }
