/* ============================================
   DARIKABAR NEWS TEMPLATE - CSS DESIGN SYSTEM
   ============================================ */

/* ---- CSS RESET & NORMALIZE ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  -webkit-text-size-adjust: 100%;
  line-height: 1.15;
  scroll-behavior: smooth
}

body {
  margin: 0;
  padding-top: 50px;
  font-family: Helvetica-FF, Arial, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .3s, color .3s
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s
}

a:hover {
  color: var(--primary)
}

ul,
ol {
  list-style: none
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit
}

input,
button,
textarea {
  font-family: inherit;
  font-size: inherit
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Montserrat-FF, Arial, Tahoma, sans-serif;
  font-weight: 700;
  line-height: 1.3
}

figure {
  margin: 0
}

/* ---- DESIGN TOKENS ---- */
:root {
  /* Colors — Orange + Charcoal Minimalis */
  --primary: #E8720C;
  --primary-dark: #C45A00;
  --secondary: #FF9F43;
  --gradient1: #E8720C;
  --gradient2: #FF9F43;
  --accent: #FFD093;
  --linkhover: #E8720C;
  /* Surfaces */
  --bg: #F7F7F7;
  --bg-card: #fff;
  --bg-sidebar: #fff;
  --bg-nav: #2D2D2D;
  --bg-nav-second: #1A1A1A;
  --bg-footer: #1A1A1A;
  --bg-frame: #E8720C;
  --bg-header: #fff;
  /* Text */
  --text: #1A1A1A;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-nav: #fff;
  --text-footer: #cbd5e1;
  /* Borders */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  /* Spacing */
  --container-width: 1220px;
  --gap: 20px;
  --radius: 6px;
  --radius-sm: 4px;
  /* Shadows */
  --shadow: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, .08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, .1);
  /* Category Colors */
  --cat-foto: #c72026;
  --cat-politik: #007cbd;
  --cat-video: #562b77;
  --cat-koleksi: #068c45;
  --cat-headline: #E8720C;
  --cat-nasional: #e65100;
  --cat-ekonomi: #2e7d32;
  --cat-olahraga: #1565c0;
  --cat-teknologi: #6a1b9a;
  --cat-hiburan: #c2185b;
  /* Dark mode overrides (will be toggled via .dark-mode class) */
}

/* ---- DARK MODE ---- */
body.dark-mode {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-sidebar: #1e293b;
  --bg-header: #1e293b;
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --border-light: #1e293b;
  --shadow: 0 1px 3px rgba(0, 0, 0, .3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .3);
}

/* ---- TYPOGRAPHY ---- */
.text-xs {
  font-size: 11px
}

.text-sm {
  font-size: 12px
}

.text-base {
  font-size: 14px
}

.text-md {
  font-size: 16px
}

.text-lg {
  font-size: 18px
}

.text-xl {
  font-size: 22px
}

.text-2xl {
  font-size: 28px
}

.text-3xl {
  font-size: 36px
}

.fw-400 {
  font-weight: 400
}

.fw-500 {
  font-weight: 500
}

.fw-600 {
  font-weight: 600
}

.fw-700 {
  font-weight: 700
}

/* ---- LAYOUT ---- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
  width: 100%
}

.grid-row {
  display: flex;
  gap: var(--gap);
  flex-wrap: wrap
}

.column3 {
  flex: 0 0 calc(25% - 15px);
  max-width: calc(25% - 15px)
}

.column4 {
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px)
}

.column5 {
  flex: 0 0 calc(41.666% - 12px);
  max-width: calc(41.666% - 12px)
}

.column6 {
  flex: 0 0 calc(50% - 10px);
  max-width: calc(50% - 10px)
}

.column7 {
  flex: 0 0 calc(58.333% - 8px);
  max-width: calc(58.333% - 8px)
}

.column8 {
  flex: 0 0 calc(66.666% - 7px);
  max-width: calc(66.666% - 7px)
}

.column9 {
  flex: 0 0 calc(75% - 5px);
  max-width: calc(75% - 5px)
}

.column12 {
  flex: 0 0 100%;
  max-width: 100%
}

/* ---- FRAME / OFF-CANVAS SIDE MENU ---- */
.frame {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  height: 50px;
  display: flex;
  align-items: center
}

.frame .frame-wrapper {
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px
}

.frame .frame-box {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  background: var(--bg-frame);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 0 14px;
  height: 50px
}

.frame-item.menu {
  display: flex;
  align-items: center;
  gap: 8px
}

.menubar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
  cursor: pointer;
  padding: 4px 0
}

.menubar span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .3s
}

.menubar-title,
.menubar-close {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer
}

.menubar-close {
  display: none
}

.frame-item.search {
  flex: 1;
  max-width: 380px;
  margin: 0 auto
}

.frame-search-form {
  display: flex
}

.frame-search-wrapper {
  display: flex;
  width: 100%;
  background: rgba(255, 255, 255, .12);
  border-radius: 20px;
  overflow: hidden;
  transition: background .3s
}

.frame-search-wrapper:focus-within {
  background: rgba(255, 255, 255, .2)
}

.frame-input-search {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  padding: 6px 14px;
  font-size: 13px
}

.frame-input-search::placeholder {
  color: rgba(255, 255, 255, .5)
}

.search-icon {
  width: 36px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative
}

.search-icon::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.6)' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat
}

.frame-item.userbutton {
  display: flex;
  align-items: center;
  gap: 10px
}

.mode {
  color: #fff;
  padding: 4px;
  border-radius: 50%;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mode:hover {
  background: rgba(255, 255, 255, .1);
}

body.dark-mode .mode .icon-moon {
  display: none;
}

body.dark-mode .mode .icon-sun {
  display: block !important;
}

/* ---- SIDEBAR MENU (Off-Canvas) ---- */
.frame-widget {
  display: none;
  position: fixed;
  top: 50px;
  left: 0;
  width: 300px;
  height: calc(100vh - 50px);
  background: var(--bg-card);
  overflow-y: auto;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  padding: 20px
}

.frame-widget.active {
  display: block;
  animation: slideIn .3s ease
}

@keyframes slideIn {
  from {
    transform: translateX(-100%)
  }

  to {
    transform: translateX(0)
  }
}

.frame-inner {
  display: none;
  position: fixed;
  top: 50px;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .5);
  z-index: 998
}

.frame-inner.active {
  display: block
}

/* Sidebar Menu Items */
.frame-widget .widget {
  margin-bottom: 20px
}

.frame-widget .widget-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 700
}

.frame-widget .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.frame-widget .menu.col2 li {
  flex: 0 0 calc(50% - 3px)
}

.frame-widget .menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: background .2s
}

.frame-widget .menu li a:hover {
  background: var(--border-light);
  color: var(--primary)
}

.frame-widget .menu li a .menu-image {
  width: 24px;
  height: 24px;
  border-radius: 4px
}

/* ---- BILLBOARD / AD SPACE ---- */
.billboard {
  padding: 10px 0;
  background: var(--bg)
}

.billboard.parallax {
  background: var(--bg-card)
}

.billboard.custombillboard {
  padding: 8px 0
}

.banner {
  background: var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  min-height: 90px;
  border: 1px dashed var(--border)
}

.banner::after {
  content: "Iklan";
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px
}

.banner.ads970250 {
  min-height: 90px
}

.banner.ads72890 {
  min-height: 90px
}

.banner.ads300300 {
  min-height: 250px
}

.banner.ads300600 {
  min-height: 300px
}

.banner.ads160600 {
  min-height: 300px;
  width: 160px
}

/* ---- HEADER ---- */
.header {
  background: transparent;
  padding: 6px 0;
  border-bottom: none
}

.header-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-header);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 0 10px
}

.header-brand {
  display: flex;
  align-items: center
}

.brand-link,
.custom-logo-link {
  display: flex;
  align-items: center
}

.brand-logo,
.custom-logo,
.brand-link img {
  height: 80px;
  width: auto;
  max-width: 100%;
  display: block
}

.brand-title,
.brand-description {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden
}

/* ---- NAVIGATION ---- */
.nav {
  position: sticky;
  top: 50px;
  z-index: 100;
  background: transparent
}

.mobile-nav-scroll {
  display: none;
}

.navigation {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--gradient1), var(--gradient2));
  border-radius: var(--radius);
  overflow: hidden
}

.navigation-primary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0
}

.nav-secondary {
  position: relative;
  z-index: 99
}

.navigation-secondary {
  border-top-left-radius: 0;
  border-top-right-radius: 0
}

.primary-menu {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none
}

.primary-menu::-webkit-scrollbar {
  display: none
}

.primary-menu nav ul {
  display: flex;
  gap: 0;
  white-space: nowrap
}

.primary-menu nav ul li a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s;
  position: relative
}

.primary-menu nav ul li a:hover,
.primary-menu nav ul li.current-menu-item a {
  background: rgba(255, 255, 255, .12)
}

.primary-menu nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all .3s;
  transform: translateX(-50%)
}

.primary-menu nav ul li a:hover::after,
.primary-menu nav ul li.current-menu-item a::after {
  width: 100%
}

/* Sub menu */
.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 10;
  min-width: 180px
}

.primary-menu li:hover>.sub-menu {
  display: block
}

.primary-menu .sub-menu li a {
  color: var(--text);
  padding: 8px 16px;
  font-size: 13px
}

.primary-menu .sub-menu li a:hover {
  background: var(--border-light);
  color: var(--primary)
}

/* Second Menu Bar */
.second-menu {
  display: flex;
  background: rgba(0, 0, 0, .15);
  overflow-x: auto;
  scrollbar-width: none
}

.second-menu::-webkit-scrollbar {
  display: none
}

.second-menu nav ul {
  display: flex;
  gap: 0
}

.second-menu nav ul li a {
  display: flex;
  align-items: center;
  padding: 6px 14px;
  color: rgba(255, 255, 255, .85);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s
}

.second-menu nav ul li a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff
}

.second-menu .new a::before {
  content: "🔥";
  margin-right: 4px;
  font-size: 10px
}

.second-menu .color2 a {
  background: rgba(255, 255, 255, .08)
}

.second-menu .color3 a {
  background: rgba(255, 193, 7, .15)
}

.second-menu .color4 a {
  background: rgba(244, 67, 54, .15)
}

/* ---- WIDGET SYSTEM ---- */
.widget {
  margin-bottom: 20px
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary)
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  position: relative
}

.header-more a {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap
}

.header-more a svg {
  width: 10px;
  height: 10px
}

.header-more a:hover {
  color: var(--secondary)
}

.widget-content {
  position: relative
}

/* ---- GRID SYSTEM ---- */
.grid-box {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap)
}

.grid-item {
  position: relative
}

.grid-item.column20 {
  flex: 0 0 calc(20% - 16px)
}

.grid-item.column4 {
  flex: 0 0 calc(33.333% - 14px)
}

.grid-item.column6 {
  flex: 0 0 calc(50% - 10px)
}

.grid-item-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .3s, transform .3s
}

.grid-item-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px)
}

.grid-item-box .media {
  flex-direction: column
}

.grid-item-box .media-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9
}

.grid-item-box .media-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s
}

.grid-item-box:hover .media-image img {
  transform: scale(1.05)
}

.grid-item-box .media-text {
  padding: 10px 12px
}

/* ---- MEDIA COMPONENT ---- */
.media {
  display: flex;
  gap: 12px
}

.media-image {
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative
}

.media-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s
}

.media:hover .media-image img {
  transform: scale(1.05)
}

.media-text {
  flex: 1;
  min-width: 0
}

.media-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.media-title a {
  color: var(--text);
  transition: color .2s
}

.media-title a:hover {
  color: var(--primary)
}

.media-link {
  color: var(--text)
}

.media-link:hover {
  color: var(--primary)
}

.media-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px
}

.media-date::before {
  content: "🕐";
  font-size: 10px
}

.media-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px
}

.media-icon {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  z-index: 2
}

.media-icon i {
  font-style: normal
}

.media-more {
  margin-top: 12px;
  text-align: center
}

.media-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  transition: background .2s
}

.media-more a svg {
  width: 12px;
  height: 12px
}

.media-more a:hover {
  background: var(--primary-dark);
  color: #fff
}

/* ---- HEADLINE SLIDER WIDGET ---- */
.widget.headline-slider {
  margin-bottom: 20px
}

.headline-slider-wrapper {
  position: relative;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: linear-gradient(-50deg, #ced4da, #fff, #ced4da)
}

/* Badge */
.headline-slider-badge {
  position: absolute;
  z-index: 8;
  top: 12px;
  left: 16px;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
  text-transform: uppercase;
  transform: skewX(-12deg)
}

.headline-slider-badge span {
  background: #e53935;
  padding: 2px 8px;
  display: inline-block
}

.headline-slider-badge em {
  background: rgba(0, 0, 0, .6);
  padding: 2px 8px;
  font-style: normal;
  display: inline-block
}

/* Carousel track */
.headline-slider-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform
}

.headline-slide {
  flex: 0 0 100%;
  position: relative
}

.headline-slide a.slide-image {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden
}

.headline-slide a.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s
}

.headline-slide:hover a.slide-image img {
  transform: scale(1.04)
}

/* Text overlay */
.headline-slide .slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 12px 16px 36px;
  background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .85) 45%, rgba(0, 0, 0, 0) 100%)
}

.headline-slide .slide-cat {
  display: inline-block;
  color: #ffd200;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px
}

.headline-slide .slide-cat:hover {
  color: #fff
}

.headline-slide .slide-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.headline-slide .slide-title a {
  color: #fff
}

.headline-slide .slide-title a:hover {
  color: var(--accent)
}

/* Dots */
.headline-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 5px
}

.headline-slider-dots button {
  width: 20px;
  height: 3px;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  padding: 0;
  transition: all .3s
}

.headline-slider-dots button.active {
  background: #21409a;
  width: 28px
}

.headline-slider-dots button:hover {
  background: rgba(255, 255, 255, .8)
}

/* Bottom bar */
.headline-slider-bottom {
  background: linear-gradient(100deg, #21409a 50%, var(--primary) 100%);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.headline-slider-bottom .bottom-label {
  width: 100%;
  color: #ebd169;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 12px;
  margin-bottom: 2px;
}

.headline-slider-bottom .bottom-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
}

.headline-slider-bottom .bottom-links a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  display: block;
  transition: color .2s;
}

.headline-slider-bottom .bottom-links a:hover {
  color: var(--accent);
}

.headline-slider-bottom .bottom-links a::before {
  display: none;
}

.separator {
  height: 1px;
  background: var(--border);
  margin: 16px 0
}

/* ---- ARTICLE ITEM ---- */
.article-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light)
}

.article-item:first-child {
  padding-top: 0
}

.article-item:last-child {
  border-bottom: none
}

.article-item .media {
  align-items: flex-start
}

.article-item .media-image {
  width: 200px;
  min-width: 200px;
  aspect-ratio: 4/3;
  border-radius: var(--radius)
}

.article-item .media-title {
  font-size: 18px;
  font-weight: 600
}

/* ---- SIDEBAR ---- */
aside.sidebar {
  position: relative
}

aside.sidebar .widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow)
}

/* ---- POPULAR POSTS WIDGET ---- */
.popular-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light)
}

.popular-item:last-child {
  border-bottom: none
}

.hastagnumber {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient1), var(--gradient2));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%
}

.popular-text .media-title {
  font-size: 13px;
  font-weight: 600
}

/* ---- COMMENT POPULAR WIDGET ---- */
.comment-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light)
}

.comment-item:last-child {
  border-bottom: none
}

.comment-num {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px
}

.com-number {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary)
}

.com-label {
  font-size: 11px;
  color: var(--text-muted)
}

.comment-item .media-title {
  font-size: 13px
}

/* ---- INDEKS PAGE ---- */
.archive-main {
  padding: 20px 0;
  max-width: 1190px;
  margin: 0 auto;
}

.menu-indeks {
  position: relative
}

.menu-indeks-sticky {
  position: sticky;
  top: 110px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow)
}

.menu-indeks ul {
  display: flex;
  flex-direction: column
}

.menu-indeks ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  transition: all .2s
}

.menu-indeks ul li a svg {
  width: 10px;
  height: 10px;
  color: var(--text-muted);
  transition: transform .2s
}

.menu-indeks ul li a:hover,
.menu-indeks ul li.current-menu-item a {
  background: linear-gradient(135deg, var(--gradient1), var(--gradient2));
  color: #fff
}

.menu-indeks ul li a:hover svg,
.menu-indeks ul li.current-menu-item a svg {
  color: #fff;
  transform: translateX(3px)
}

.menu-indeks ul li:last-child a {
  border-bottom: none
}

/* Indeks Header */
.header-data {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted)
}

.header-data span {
  white-space: nowrap
}

#boxDate {
  position: relative
}

#boxDate input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 12px;
  width: 130px;
  background: var(--bg-card);
  color: var(--text)
}

/* Status & Pagination */
.status {
  text-align: center;
  padding: 20px 0
}

.trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  background: linear-gradient(135deg, var(--gradient1), var(--gradient2));
  color: #fff;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  transition: all .3s;
  border: none;
  cursor: pointer
}

.trigger svg {
  width: 14px;
  height: 14px
}

.trigger:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md)
}

.loading {
  display: none
}

.no-more {
  display: none;
  color: var(--text-muted);
  font-size: 13px
}

.pagination {
  display: none
}

/* ---- SINGLE POST ---- */
.entry {
  max-width: 100%
}

.entry-header {
  margin-bottom: 20px
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px
}

.entry-category {
  display: inline-flex;
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--gradient1), var(--gradient2));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: 4px
}

.entry-title {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.35;
  color: #21409a;
  margin: 0 0 8px;
}

body.dark-mode .entry-title {
  color: #fff;
}

.entry-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted)
}

.entry-info .author {
  font-weight: 600;
  color: var(--text)
}

.entry-image {
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden
}

.entry-image img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-image figcaption,
.wp-caption-text,
.entry-content figcaption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  padding: 10px 0;
  font-style: italic;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
  display: block;
}

body.dark-mode .wp-caption-text,
body.dark-mode .entry-content figcaption,
body.dark-mode .entry-image figcaption {
  border-bottom-color: var(--border);
}

.wp-caption {
  max-width: 100% !important;
  margin-bottom: 24px;
}

.wp-caption img {
  display: block;
  margin: 0 auto;
}

/* WordPress Alignment */
.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.aligncenter {
  display: block;
  margin: 20px auto;
  clear: both;
}

.alignnone {
  margin: 5px 0 20px 0;
}

.entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: #000000
}

body.dark-mode .entry-content {
  color: var(--text);
}

.entry-content p {
  margin-bottom: 16px
}

.entry-content h2,
.entry-content h3 {
  margin: 24px 0 12px;
  font-size: 20px
}

.entry-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 20px;
  margin: 16px 0;
  background: var(--border-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border)
}

.entry-tags a {
  display: inline-flex;
  padding: 4px 12px;
  background: var(--border-light);
  color: var(--text-secondary);
  font-size: 12px;
  border-radius: 16px;
  transition: all .2s
}

.entry-tags a:hover {
  background: var(--primary);
  color: #fff
}

/* Share Buttons */
.share-box {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border)
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  transition: opacity .2s
}

.share-btn:hover {
  opacity: .85;
  color: #fff
}

.share-btn.facebook {
  background: #1877f2
}

.share-btn.twitter {
  background: #1da1f2
}

.share-btn.whatsapp {
  background: #25d366
}

.share-btn.telegram {
  background: #0088cc
}

.share-btn.copy-link {
  background: var(--text-muted)
}

.share-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  padding: 10px 0;
  font-size: 12px;
  color: var(--text-muted)
}

.breadcrumb a {
  color: var(--text-secondary)
}

.breadcrumb a:hover {
  color: var(--primary)
}

.breadcrumb span {
  margin: 0 6px
}

/* ---- ARCHIVE HEADER ---- */
.archive-head {
  padding: 16px 0;
  margin-bottom: 16px
}

.archive-head h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text)
}

.archive-head p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px
}

/* ---- FOOTER ---- */
.footer {
  background: #f2f2f2;
  color: #333;
  padding: 36px 0 0;
  margin-top: 40px;
  border-top: 3px solid var(--primary)
}

/* Dark mode footer overrides */
body.dark-mode .footer {
  background: var(--bg-card);
  color: var(--text);
  border-top-color: var(--border);
}

body.dark-mode .footer-nav .widget-title,
body.dark-mode .footer .social-title h3 {
  color: var(--text);
}

body.dark-mode .footer-nav .menu li a,
body.dark-mode .footer-nav ul li a,
body.dark-mode .footer .textwidget {
  color: var(--text-muted);
}

body.dark-mode .footer-copy {
  background: var(--bg);
  color: var(--text-muted);
}

.footer-border {
  display: none
}

/* Footer row layout — semua kolom sejajar 1 baris */
.footer .grid-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 30px
}

/* Override column sizing di dalam footer agar tidak wrap */
.footer .footer-brand.column4 {
  flex: 0 0 220px;
  max-width: 220px
}

.footer .footer-nav.column8 {
  flex: 1;
  max-width: none;
  min-width: 0
}

/* ---- FOOTER BRAND (kolom kiri) ---- */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0
}

.footer-brand img {
  height: 45px;
  width: auto;
  margin-bottom: 12px;
  filter: none
}

.footer .social-title h3 {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 10px;
  text-transform: none;
  letter-spacing: 0
}

/* Social icons — berwarna di footer terang */
.social-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.social-box a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ddd;
  color: #555;
  transition: all .2s
}

.social-box a svg {
  width: 16px;
  height: 16px;
  fill: currentColor
}

.social-box a:hover {
  transform: translateY(-2px)
}

.social-box .facebook {
  background: #1877f2;
  color: #fff
}

.social-box .twitter {
  background: #1da1f2;
  color: #fff
}

.social-box .instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff
}

.social-box .youtube {
  background: #ff0000;
  color: #fff
}

.social-box .whatsapp {
  background: #25d366;
  color: #fff
}

.social-box .telegram {
  background: #0088cc;
  color: #fff
}

.social-box .tiktok {
  background: #010101;
  color: #fff
}

.social-box .pinterest {
  background: #e60023;
  color: #fff
}

.social-box a:hover {
  opacity: .85;
  transform: translateY(-2px)
}

/* ---- FOOTER NAV WIDGET TITLE ---- */
/* Widget title & header untuk kolom navigasi — tanpa garis */
.footer-nav .widget-header {
  margin-bottom: 12px;
  padding-bottom: 0;
  border-bottom: none
}

.footer-nav .widget-title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none
}

/* Grid footer nav */
.footer-nav .grid-footer {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: nowrap
}

.footer-nav .grid-footer .widget {
  flex: 1;
  min-width: 0
}

/* Widget kategori — tampilkan dalam 2 kolom */
.footer-nav .grid-footer .widget:first-child {
  flex: 2
}

.footer-nav .grid-footer .widget:first-child .menu,
.footer-nav .grid-footer .widget:first-child ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px 20px
}

.footer-nav .menu li a,
.footer-nav ul li a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  color: #444;
  transition: color .2s
}

.footer-nav .menu li a:hover,
.footer-nav ul li a:hover {
  color: var(--primary)
}

/* Copyright textwidget di brand kolom */
.footer .textwidget {
  font-size: 12px;
  color: #888;
  margin-top: 16px
}

/* ---- FOOTER COPYRIGHT BAR ---- */
.footer-copy {
  background: #e5e5e5;
  margin-top: 30px;
  padding: 12px 0;
  text-align: center;
  font-size: 12px;
  color: #666
}

/* ---- STICKY ADS ---- */
.sticky-ads-left,
.sticky-ads-right {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50
}

.sticky-ads-left {
  left: 10px
}

.sticky-ads-right {
  right: 10px
}

/* ---- SCROLL TO TOP ---- */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 100;
  transition: all .3s;
  border: none
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px)
}

.scroll-top.visible {
  display: flex
}

/* ---- RESPONSIVE ---- */
@media(max-width:1024px) {

  .column3,
  .column4,
  .column5,
  .column6,
  .column7,
  .column8,
  .column9 {
    flex: 0 0 100%;
    max-width: 100%
  }

  .grid-row {
    flex-direction: column
  }

  .grid-item.column20 {
    flex: 0 0 calc(50% - 10px)
  }

  .grid-item.column4 {
    flex: 0 0 calc(50% - 10px)
  }

  .sticky-ads-left,
  .sticky-ads-right {
    display: none
  }

  .footer-nav .grid-footer {
    flex-wrap: wrap
  }

  .menu-indeks {
    margin-bottom: 20px
  }

  .menu-indeks-sticky {
    position: static
  }
}

@media(max-width:768px) {

  /* Mobile Header Redesign Detik-style */
  body {
    padding-top: 70px !important;
    /* Offset for both frame-bar (50px) and mobile-nav (45px) */
  }

  .frame {
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    padding: 0 !important;
    height: 50px;
  }

  body.dark-mode .frame {
    background: var(--bg-card);
    border-bottom-color: var(--border);
  }

  .frame .frame-box {
    gap: 8px;
    background: #fff;
    border-radius: 0;
    padding: 0;
  }

  .frame-item.menu {
    gap: 2px;
  }

  .menubar-title {
    display: none !important;
  }

  .menubar span {
    background: var(--primary);
    width: 22px;
    height: 3px;
    border-radius: 0;
    margin-bottom: 2px;
  }

  body.dark-mode .menubar span {
    background: var(--text);
  }

  /* Hide top bar search icon since it's now in the sidebar menu */
  .frame-item.search {
    display: none !important;
  }

  .frame-logo-mobile {
    display: flex !important;
    flex: 1;
    justify-content: flex-start;
    padding-left: 2px;
    align-items: center;
  }

  .frame-logo-mobile img {
    height: 45px;
  }

  .mobile-text-logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
  }

  body.dark-mode .mobile-text-logo {
    color: #fff;
  }

  .mode {
    color: var(--primary);
    padding: 0;
    font-size: 20px;
  }

  body.dark-mode .mode {
    color: #fff;
  }

  /* Hide original header */
  .header {
    display: none !important;
  }

  /* Hide original main-nav on mobile as requested */
  #main-nav {
    display: none !important;
  }

  /* New specialized mobile scroll nav */
  /* New specialized mobile scroll nav - Fixed like frame-bar */
  .mobile-nav-scroll {
    display: block !important;
    position: fixed !important;
    top: 43px !important;
    /* Fixed below the 50px frame-bar */
    left: 0;
    width: 100%;
    z-index: 998 !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .mobile-nav-scroll::-webkit-scrollbar {
    display: none;
  }

  .mobile-scroll-menu {
    display: flex;
    white-space: nowrap;
    padding: 0 6px;
    list-style: none;
    margin: 0;
  }

  .mobile-scroll-menu li a {
    display: flex;
    align-items: center;
    padding: 5px 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    transition: color .2s;
    position: relative;
    letter-spacing: 0.3px;
  }

  .mobile-scroll-menu li a:hover {
    color: var(--primary);
  }

  .mobile-scroll-menu li.current-menu-item a {
    color: var(--primary);
  }

  .mobile-scroll-menu li.current-menu-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 3px;
    background: var(--primary);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
  }

  body.dark-mode .mobile-nav-scroll {
    background: var(--bg-card);
    border-bottom-color: var(--border);
  }

  body.dark-mode .mobile-scroll-menu li a {
    color: #fff;
  }

  /* Hide unwanted sections on mobile */
  .billboard.parallax,
  .nav-secondary,
  .widget.grid.top-grid {
    display: none !important;
  }

  /* Mobile Footer Layout (Detik Style - Centered) */
  #site-footer .footer-nav.column8 {
    display: none !important;
  }

  #site-footer .footer-brand.column4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    text-align: center;
    border-right: none;
    padding-right: 0;
    margin-bottom: 20px;
  }

  #site-footer .widget.header-brand {
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
  }

  #site-footer .widget img {
    margin: 0 auto;
    display: block;
  }

  #site-footer .social-title {
    text-align: center;
    margin-top: 15px;
  }

  #site-footer .social-box {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto;
  }

  #site-footer .social-links {
    justify-content: center;
  }

  .footer-copy {
    text-align: center;
  }

  /* Floating Mobile Share Pill (Detik-style) */
  .kabar-mobile-share-floating {
    display: block !important;
    /* Force display on mobile */
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    z-index: 99;
  }

  .kabar-share-pill {
    background: #fff;
    padding: 6px 12px;
    border-radius: 500px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-light);
  }

  body.dark-mode .kabar-share-pill {
    background: var(--bg-card);
    border-color: var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  }

  .kabar-share-pill .share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    position: relative;
    font-size: 0;
  }

  .kabar-share-pill .share-btn svg {
    width: 20px;
    height: 20px;
    margin: 0;
  }

  /* Icon Specifics */
  .kabar-share-pill .share-btn.comment {
    background: transparent;
    color: var(--text);
  }

  .kabar-share-pill .share-btn.comment svg {
    width: 22px;
    height: 22px;
  }

  .kabar-share-pill .comment-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #e3342f;
    /* Red badge */
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  /* Social Colors */
  .kabar-share-pill .share-btn.facebook {
    background: #3b5998;
  }

  .kabar-share-pill .share-btn.twitter {
    background: #000;
  }

  body.dark-mode .kabar-share-pill .share-btn.twitter {
    background: #333;
  }

  .kabar-share-pill .share-btn.whatsapp {
    background: #25d366;
  }

  .kabar-share-pill .share-btn.telegram {
    background: #0088cc;
  }

  .kabar-share-pill .share-btn.copy-link {
    background: #888;
  }

  /* Add padding to body on single posts so nothing is covered by the fixed bar */
  body.single {
    padding-bottom: 75px;
  }

  /* Fix overflow-x on mobile */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 12px
  }

  .grid-item.column20,
  .grid-item.column4,
  .grid-item.column6 {
    flex: 0 0 100%
  }

  .header {
    padding: 6px 0
  }

  .brand-logo {
    height: 32px
  }

  .primary-menu nav ul li a {
    padding: 8px 10px;
    font-size: 12px
  }

  .second-menu nav ul li a {
    padding: 5px 10px;
    font-size: 11px
  }

  .article-item .media-image {
    width: 110px;
    min-width: 110px
  }

  /* Convert Grid widgets (like Berita Terkait) to List layout on mobile */
  .widget.grid .grid-box {
    display: block;
  }

  .widget.grid .grid-item-box {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border-light);
  }

  .widget.grid .grid-item:last-child .grid-item-box {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .widget.grid .media-image {
    width: 110px;
    min-width: 110px;
    margin-bottom: 0;
    aspect-ratio: 4 / 3;
  }

  .widget.grid .media-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .widget.grid .media-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
  }

  .widget.grid .media-title {
    font-size: 14px;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
  }

  .widget.grid .media-category {
    display: none !important;
  }

  .article-item .media-title {
    font-size: 14px;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
  }

  #terkini-list .media-category {
    display: none !important;
  }

  .entry-title {
    font-size: 23px;
    font-weight: 600;
    margin: 0 0 8px;
  }

  .entry-content {
    font-size: 16px
  }

  .headline-slide .slide-title {
    font-size: 16px
  }

  /* Headline Slider Bottom (Detik style) */
  .headline-slider-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px !important;
    gap: 12px !important;
    height: auto !important;
  }

  .headline-slider-bottom .bottom-label {
    width: 100% !important;
    color: #ebd169 !important;
    font-size: 13px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-bottom: 10px !important;
    margin-bottom: 4px !important;
    text-transform: none !important;
    display: block !important;
  }

  .headline-slider-bottom .bottom-links {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    align-items: flex-start !important;
  }

  .headline-slider-bottom .bottom-links a {
    white-space: normal !important;
    text-overflow: clip !important;
    overflow: visible !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    display: block !important;
  }

  .headline-slider-bottom .bottom-links a::before {
    display: none !important;
  }

  .headline-slide .slide-overlay {
    padding: 10px 12px 30px
  }

  .headline-slider-bottom {
    flex-direction: column;
    gap: 6px;
    padding: 8px 12px
  }

  .headline-slider-bottom .bottom-links {
    flex-direction: column;
    gap: 4px
  }

  .widget.grid .grid-box {
    gap: 12px
  }
}

@media(max-width:480px) {
  body {
    padding-top: 44px
  }

  .frame {
    height: 44px
  }

  #main-nav,
  .nav-secondary {
    position: sticky !important;
    top: 44px !important;
    margin-top: 0;
  }

  .entry-title {
    font-size: 23px;
    font-weight: 600;
    margin: 0 0 8px;
  }

  .share-box {
    flex-wrap: wrap
  }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.animate-in {
  animation: fadeIn .4s ease both
}


/* ---- FOTO PAGE GRID ---- */
.foto-grid .grid-item-box .media-icon {
  background: rgba(0, 0, 0, .75)
}

.foto-grid .grid-item-box .media-icon .icon-camera::before {
  content: "📷"
}

/* ---- VIDEO PAGE GRID ---- */
.video-grid .grid-item-box .media-icon {
  background: rgba(255, 0, 0, .85)
}

.video-grid .grid-item-box .media-icon .icon-play::before {
  content: "▶"
}

/* ---- POST FORMAT BADGES ---- */
.post-format-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  backdrop-filter: blur(4px)
}

.post-format-badge.foto {
  background: rgba(199, 32, 38, .9);
  color: #fff
}

.post-format-badge.video {
  background: rgba(86, 43, 119, .9);
  color: #fff
}

.post-format-badge.foto::after {
  content: "📷"
}

.post-format-badge.video::after {
  content: "▶"
}

/* ---- PIKADAY DATE PICKER (for Indeks) ---- */
.pika-single {
  z-index: 9999;
  display: block;
  position: relative;
  color: #333;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  box-shadow: var(--shadow-md)
}

/* ---- UTILITY CLASSES ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px
}

.clearfix::after {
  content: "";
  display: table;
  clear: both
}

/* ============================================
   COMMENTS SECTION
   ============================================ */

/* ---- Wrapper ---- */
#comments,
#respond {
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

/* ---- Existing Comments List ---- */
#comments {
  margin-bottom: 24px
}

.comments-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary)
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px
}

.comment-list .comment,
.comment-list .pingback {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: var(--bg)
}

.comment-body {
  display: flex;
  gap: 14px
}

.comment-author .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border);
  display: block
}

.comment-meta {
  flex: 1;
  min-width: 0
}

.comment-author b a,
.comment-author b {
  font-size: 14px;
  font-weight: 700;
  color: var(--text)
}

.comment-metadata {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  margin-bottom: 8px
}

.comment-metadata a {
  color: var(--text-muted)
}

.comment-content p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  transition: color .2s
}

.comment-reply-link:hover {
  color: var(--primary-dark)
}

.comment-list .children {
  list-style: none;
  padding: 0;
  margin-top: 12px;
  margin-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px
}

/* Moderation notice */
.comment-awaiting-moderation {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px
}

/* ---- Comment Form (#respond) ---- */
#respond {
  border-top: 0
}

.comment-reply-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary)
}

.comment-reply-title small {
  float: right;
  font-size: 12px;
  font-weight: 400
}

.comment-reply-title small a {
  color: var(--text-muted);
  font-weight: 600;
  transition: color .2s
}

.comment-reply-title small a:hover {
  color: var(--primary)
}

.comment-notes {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px
}

.comment-notes .required-field-message {
  display: block
}

/* Form fields grid */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 16px
}

/* Arrange name / email / url in a row */
.comment-form-author,
.comment-form-email,
.comment-form-url {
  flex: 1
}

/* WordPress wraps each field in a <p> — make them flex row */
.comment-form>p {
  margin: 0
}

/* Row for author / email / url fields */
.comment-form p.comment-form-author,
.comment-form p.comment-form-email,
.comment-form p.comment-form-url {
  display: flex;
  flex-direction: column
}

/* Group the three identity fields visually on one line */
.comment-form p.comment-form-author~p.comment-form-email,
.comment-form p.comment-form-author~p.comment-form-url {
  flex: 1
}

.comment-form-fields-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

/* Labels */
.comment-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .5px
}

.comment-form .required {
  color: var(--secondary)
}

/* Inputs & Textarea */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 104, 191, .1)
}

.comment-form textarea {
  min-height: 130px
}

/* Comment field (textarea) comes first visually */
.comment-form-comment {
  order: -1
}

/* Cookie consent checkbox */
.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary)
}

.comment-form-cookies-consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary)
}

/* Submit Button */
.form-submit {
  margin: 0
}

#submit,
.comment-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 28px;
  background: linear-gradient(135deg, var(--gradient1), var(--gradient2));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: opacity .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(0, 104, 191, .35)
}

#submit:hover,
.comment-form input[type="submit"]:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 104, 191, .45)
}

/* Logged-in as notice */
.logged-in-as {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px
}

.logged-in-as a {
  color: var(--primary);
  font-weight: 600
}

/* No comments placeholder */
.no-comments {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0
}

/* Comment navigation (prev/next pages) */
.comment-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 13px
}

.comment-navigation a {
  color: var(--primary);
  font-weight: 600
}

/* ---- Responsive ---- */
@media (max-width: 600px) {

  #comments,
  #respond {
    padding: 20px 16px
  }

  .comment-body {
    flex-direction: column;
    gap: 8px
  }

  .comment-list .children {
    margin-left: 14px
  }
}

/* ---- Custom Comment Form Fields ---- */

/* Individual field wrapper */
.comment-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px
}

.comment-field-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px
}

.comment-field-group label .required {
  color: var(--secondary)
}

.comment-field-group input[type="text"],
.comment-field-group input[type="email"],
.comment-field-group input[type="url"],
.comment-field-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical
}

.comment-field-group input[type="text"]:focus,
.comment-field-group input[type="email"]:focus,
.comment-field-group input[type="url"]:focus,
.comment-field-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 104, 191, .1)
}

/* Textarea */
.comment-field-textarea textarea {
  min-height: 130px
}

/* 3-column row for name / email / url */
.comment-fields-row {
  display: flex;
  gap: 14px
}

.comment-fields-row .comment-field-group {
  flex: 1;
  min-width: 0
}

/* Cookie consent */
.comment-field-cookies .cookie-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer
}

.comment-field-cookies input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
  width: 14px;
  height: 14px
}

/* Submit button */
.submit-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 28px;
  background: linear-gradient(135deg, var(--gradient1), var(--gradient2));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: opacity .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(0, 104, 191, .35)
}

.submit-button:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 104, 191, .45)
}

/* Comment notes */
.comment-notes {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px
}

.comment-notes .required {
  color: var(--secondary)
}

/* Responsive: stack fields on mobile */
@media (max-width: 640px) {
  .comment-fields-row {
    flex-direction: column
  }
}

/* ============================================
   OFF-CANVAS SIDEBAR MENU (DETIK STYLE)
   ============================================ */
.frame-widget {
  padding: 24px 20px;
}

/* Sidebar Search */
.widget-sidebar-search {
  margin-bottom: 25px;
}

.sidebar-search-form {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 8px;
}

.sidebar-search-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  outline: none;
  font-family: inherit;
  font-weight: 500;
}

.sidebar-search-form button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 5px;
  display: flex;
  transition: color .3s;
}

.sidebar-search-form button:hover,
.sidebar-search-form input:focus+button {
  color: var(--primary);
}

.sidebar-search-form input::placeholder {
  color: var(--text-muted);
}

/* Sidebar Headings */
.sidebar-menu-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  display: block;
}

/* Sidebar Divider */
.sidebar-divider {
  border: 0;
  border-bottom: 1px solid var(--border-light);
  margin: 24px 0;
}

/* Sidebar Menus Grid */
.frame-widget .menu.col2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.frame-widget .menu.col2 li {
  margin: 0;
  padding: 0;
  border: none !important;
}

.frame-widget .menu.col2 li.menu-item-has-children>a::after {
  display: none !important;
}

/* Sidebar Links */
.frame-widget .menu.col2 li a {
  display: flex !important;
  align-items: center;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  padding: 0 !important;
  line-height: 1.3;
  transition: color .2s;
  text-transform: capitalize;
}

.frame-widget .menu.col2 li a:hover {
  color: var(--primary) !important;
}

/* Detik 'd' icon via CSS */
.frame-widget .menu.col2 li a::before {
  content: "d";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #264e86;
  /* Detik Blue */
  color: #fff;
  font-weight: 800;
  font-family: 'Inter', sans-serif, inherit;
  font-size: 18px;
  border-radius: 6px;
  margin-right: 10px;
  flex-shrink: 0;
  /* Red dot */
  background-image: radial-gradient(circle at 14px 19px, #e3342f 1.5px, transparent 2px);
  padding-bottom: 3px;
}

/* Dark mode adjustments */
body.dark-mode .sidebar-search-form {
  border-color: var(--border);
}

body.dark-mode .sidebar-divider {
  border-color: var(--border);
}

body.dark-mode .frame-widget .menu.col2 li a {
  color: #cbd5e1 !important;
}

body.dark-mode .frame-widget .menu.col2 li a:hover {
  color: #fff !important;
}

/* Hide mobile floating share on desktop screens */
.kabar-mobile-share-floating {
  display: none;
}