/* ---- CSS Variables ---- */
:root {
  --primary:      #23479f;  /*#4C1D95;   */
  --primary-light:#6D28D9;
  --cyan:         #22D3EE;
  --orange:       #23479f; /* #F97316; */
  --text-dark:    #111827;
  --text-gray:    #6B7280;
  --border:       #E5E7EB;
  --bg-soft:      #F9FAFB;
  --white:        #ffffff;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
  --radius:       10px;
  --radius-sm:    6px;
  --font-main:    'Plus Jakarta Sans', 'Inter', Arial, sans-serif;
  --font-serif:   'Lora', Georgia, serif;
  --transition:   .25s ease;
  --container:    1140px;
}

/* Dark mode */
[data-theme="dark"] {
  --text-dark:  #F3F4F6;
  --text-gray:  #9CA3AF;
  --border:     #374151;
  --bg-soft:    #111827;
  --white:      #1F2937;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,.5);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--bg-soft);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---- Boxed Container ---- */
.container { max-width: var(--container); }

/* ============================================================
   AD BOXES
   ============================================================ */
.ad-box {
  background: linear-gradient(135deg, #f3f0ff 0%, #e0f2fe 100%);
  border: 1.5px dashed #C4B5FD;
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--text-gray);
  font-size: 12px;
  letter-spacing: .05em;
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
  position: relative;
}
.ad-box::before {
  content: '[ AD ]';
  font-size: 10px;
  opacity: .5;
  position: absolute;
  top: 4px; left: 6px;
}
.ad-728 { width: 100%; min-height: 90px; }
.ad-300 { width: 100%; min-height: 300px; }
.ad-strip { width: 100%; height: 60px; }
.ad-mobile-top { width: 100%; height: 50px; }

/* ============================================================
   TOPBAR
   ============================================================ */
#topbar {
  background: var(--primary);
  color: rgba(255,255,255,.85);
  font-size: 12.5px;
  padding: 6px 0;
  position: relative;
  z-index: 1050;
}
#topbar a { color: rgba(255,255,255,.85); }
#topbar a:hover { color: #fff; }
.topbar-date { font-weight: 500; letter-spacing: .02em; }
.topbar-tags a {
  background: rgba(255,255,255,.15);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11.5px;
  margin-right: 4px;
  transition: background var(--transition);
}
.topbar-tags a:hover { background: rgba(255,255,255,.3); }
.topbar-social a {
  width: 26px; height: 26px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-left: 4px;
  transition: background var(--transition);
}
.topbar-social a:hover { background: var(--cyan); color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
#main-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1040;
  border-bottom: 3px solid var(--primary);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}
.logo-wrap img { height: 48px; width: auto; }
.logo-placeholder {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}
.logo-text { font-weight: 800; font-size: 20px; color: var(--primary); line-height: 1.1; }
.logo-text span { color: var(--orange); }
.logo-text small { font-size: 10px; font-weight: 500; color: var(--text-gray); display: block; letter-spacing: .08em; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-login {
  background: var(--primary);
  color: #fff !important;
  border-radius: 6px;
  padding: 7px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform .15s;
  white-space: nowrap;
}
.btn-login:hover { background: var(--primary-light); transform: translateY(-1px); color: #fff !important; }

.btn-dark-mode {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all var(--transition);
  color: var(--text-dark);
}
.btn-dark-mode:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   NAVBAR
   ============================================================ */
#main-nav {
  background: var(--white);
  border-top: 1px solid var(--border);
  position: sticky;
  top: 71px;
  z-index: 1035;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 12px 15px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-dark);
  letter-spacing: .01em;
  transition: color var(--transition);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.nav-menu > li > a i { font-size: 10px; margin-left: 3px; opacity: .6; }

/* Dropdown */
.dropdown-menu-custom {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--transition);
  z-index: 1000;
}
.nav-menu > li:hover .dropdown-menu-custom {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu-custom a {
  display: block;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu-custom a:last-child { border-bottom: none; }
.dropdown-menu-custom a:hover { background: var(--bg-soft); color: var(--primary); padding-left: 22px; }

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.breaking-ticker {
  background: linear-gradient(90deg, var(--orange) 0%, #fb923c 100%);
  color: #fff;
  padding: 8px 0;
  overflow: hidden;
}
.ticker-label {
  background: rgba(0,0,0,.2);
  padding: 2px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  white-space: nowrap;
  margin-right: 12px;
  text-transform: uppercase;
}
.ticker-wrap { overflow: hidden; flex: 1; position: relative; }
.ticker-items {
  display: flex;
  gap: 0;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}
.ticker-items a {
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  padding: 0 40px 0 0;
  white-space: nowrap;
}
.ticker-items a:hover { text-decoration: underline; }
.ticker-items a::after { content: '•'; margin-left: 40px; opacity: .5; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-wrap:hover .ticker-items { animation-play-state: paused; }

/* ============================================================
   AD HEADER BANNER
   ============================================================ */
.ad-header-wrap { padding: 10px 0 8px; background: var(--white); border-bottom: 1px solid var(--border); }

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.section-title h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
  line-height: 1.2;
}
.section-title .view-all {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(76,29,149,.08);
  padding: 5px 14px;
  border-radius: 20px;
  transition: all var(--transition);
}
.section-title .view-all:hover { background: var(--primary); color: #fff; }

/* ============================================================
   CARDS
   ============================================================ */
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.news-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.news-card .card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-card:hover .card-img-wrap img { transform: scale(1.05); }
.news-card .card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card .card-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--primary);
  background: rgba(76,29,149,.08);
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.news-card .card-cat.cat-olahraga { color: #059669; background: rgba(5,150,105,.08); }
.news-card .card-cat.cat-teknologi { color: #2563EB; background: rgba(37,99,235,.08); }
.news-card .card-cat.cat-politik { color: #DC2626; background: rgba(220,38,38,.08); }
.news-card .card-cat.cat-ekonomi { color: #D97706; background: rgba(217,119,6,.08); }
.news-card .card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.news-card:hover .card-title { color: var(--primary); }
.news-card .card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-gray);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.news-card .card-meta i { font-size: 11px; }

/* Badge overlay on card */
.badge-overlay {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
}
.badge-breaking {
  background: var(--orange);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge-video {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   HERO HEADLINE SLIDER
   ============================================================ */
.headline-slider-wrap { position: relative; }
.headline-slider {
  display: flex;
  gap: 16px;
  overflow: hidden;
  scroll-behavior: smooth;
}
.headline-slide {
  flex: 0 0 calc(25% - 12px);
  min-width: 0;
}
.hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px; height: 38px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}
.hs-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.hs-arrow.prev { left: -18px; }
.hs-arrow.next { right: -18px; }

/* ---- Headline Slider: dot indicators ---- */
.hs-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}
.hs-dot {
  width: 8px; height: 8px;
  background: var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: all .3s ease;
}
.hs-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}
.hs-dot:hover { background: var(--primary-light); }

/* ---- Autoplay progress bar ---- */
.headline-slider-section {
  position: relative;
  overflow: visible;
}

@keyframes hs-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.headline-slider-section:hover::after { animation-play-state: paused; }
.headline-slider { cursor: grab; }
.headline-slider:active { cursor: grabbing; }

/* ============================================================
   BREAKING NEWS HERO SLIDER
   ============================================================ */
.hero-slider-section { padding: 0 0 8px; }
.hero-slider-wrap { position: relative; border-radius: var(--radius); overflow: hidden; }
.hero-slider { position: relative; height: 440px; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: all; z-index: 2; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-slide .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 55%, transparent 100%);
}
.hero-slide .slide-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 28px;
  color: #fff;
  z-index: 3;
}
.hero-slide .slide-cat {
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
}
.hero-slide .slide-title {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  font-family: var(--font-serif);
}
.hero-slide .slide-meta {
  font-size: 12.5px;
  opacity: .75;
  display: flex;
  gap: 14px;
}

/* Hero arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: all var(--transition);
}
.hero-arrow:hover { background: var(--primary); border-color: var(--primary); }
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }

/* Hero dots */
.hero-dots {
  position: absolute;
  bottom: 14px;
  right: 28px;
  z-index: 10;
  display: flex;
  gap: 6px;
}
.hero-dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
}
.hero-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* ============================================================
   LATEST NEWS
   ============================================================ */
.latest-news-section { padding: 28px 0; }
.latest-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* List style card (sidebar / small) */
.news-list-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.news-list-item:last-child { border-bottom: none; }
.news-list-item .thumb {
  flex-shrink: 0;
  width: 80px; height: 58px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.news-list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list-item .info .cat { font-size: 10.5px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; }
.news-list-item .info .title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 3px 0;
}
.news-list-item .info .title:hover { color: var(--primary); }
.news-list-item .info .meta { font-size: 11.5px; color: var(--text-gray); }

/* Numbered most read */
.most-read-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.most-read-item:last-child { border-bottom: none; }
.most-read-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  min-width: 30px;
  font-family: var(--font-serif);
  transition: color var(--transition);
}
.most-read-item:hover .most-read-num { color: var(--primary); }
.most-read-item .title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.most-read-item .title:hover { color: var(--primary); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.sidebar-widget .widget-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-widget .widget-title i { color: var(--primary); }

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud a {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-gray);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  transition: all var(--transition);
}
.tag-cloud a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   VIRAL TODAY
   ============================================================ */
.viral-section { padding: 28px 0; background: var(--white); }
.viral-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.viral-card-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
}
.viral-card-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.viral-card-main:hover img { transform: scale(1.04); }
.viral-card-main .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(76,29,149,.9) 0%, transparent 60%);
}
.viral-card-main .content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px;
  color: #fff;
}
.viral-rank {
  font-size: 48px;
  font-weight: 800;
  color: rgba(255,255,255,.2);
  font-family: var(--font-serif);
  position: absolute;
  top: 10px; right: 14px;
  line-height: 1;
}
.viral-card-list { display: flex; flex-direction: column; gap: 14px; }
.viral-list-item {
  display: flex;
  gap: 12px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 10px;
  align-items: center;
  transition: background var(--transition);
  border: 1px solid var(--border);
}
.viral-list-item:hover { background: rgba(76,29,149,.06); border-color: var(--primary); }
.viral-list-item .num {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  min-width: 28px;
  font-family: var(--font-serif);
}
.viral-list-item img {
  width: 72px; height: 52px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.viral-list-item .title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section { padding: 28px 0; }
.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
  box-shadow: var(--shadow-md);
}
.video-card img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity var(--transition); }
.video-card:hover img { opacity: .7; }
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play-btn .play-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.video-card:hover .play-icon { transform: scale(1.1); box-shadow: 0 6px 30px rgba(0,0,0,.5); }
.video-duration {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.video-info { padding: 12px 0; }
.video-info .cat { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--primary); margin-bottom: 5px; }
.video-info .title { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--text-dark); }
.video-info .title:hover { color: var(--primary); }

/* ============================================================
   PHOTO GALLERY
   ============================================================ */
.gallery-section { padding: 28px 0; background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .caption {
  position: absolute;
  inset: 0;
  background: rgba(76,29,149,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 12px;
}
.gallery-item:hover .caption { opacity: 1; }

/* ============================================================
   EDITOR CHOICE
   ============================================================ */
.editor-choice-section { padding: 28px 0; }
.editor-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 20px;
}
.editor-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  box-shadow: var(--shadow-md);
}
.editor-main img { width: 100%; height: 100%; object-fit: cover; }
.editor-main .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
}
.editor-main .content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  color: #fff;
}
.editor-main .editor-badge {
  background: var(--cyan);
  color: var(--text-dark);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.editor-main .title {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.3;
  font-family: var(--font-serif);
  margin-bottom: 8px;
}
.editor-side { display: flex; flex-direction: column; gap: 14px; }

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section { padding: 40px 0; }
.newsletter-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  padding: 36px 40px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-box::before {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  top: -80px; right: -60px;
}
.newsletter-box::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  bottom: -60px; left: -40px;
}
.newsletter-box h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; position: relative; z-index: 1; }
.newsletter-box p { opacity: .85; font-size: 14px; margin-bottom: 24px; position: relative; z-index: 1; }
.nl-options {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.nl-option-card {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  min-width: 200px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.nl-option-card:hover { background: rgba(255,255,255,.25); transform: translateY(-3px); }
.nl-option-card .icon { font-size: 28px; margin-bottom: 8px; }
.nl-option-card .type { font-weight: 700; font-size: 15px; }
.nl-option-card .desc { font-size: 12.5px; opacity: .8; margin-top: 4px; }
.nl-option-card .badge-plan {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  background: rgba(0,0,0,.2);
}
.nl-option-card .badge-plan.free { background: rgba(34,211,238,.3); }
.nl-option-card .badge-plan.paid { background: rgba(249,115,22,.4); }
.nl-login-link {
  margin-top: 18px;
  font-size: 13px;
  opacity: .8;
  position: relative;
  z-index: 1;
}
.nl-login-link a { color: var(--cyan); font-weight: 600; text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
#main-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.75);
  padding: 48px 0 0;
}
.footer-logo-wrap { margin-bottom: 14px; }
.footer-about { font-size: 13.5px; line-height: 1.65; margin-bottom: 16px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid rgba(255,255,255,.1);
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  transition: color var(--transition), padding-left var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--cyan); padding-left: 6px; }
.footer-links a i { font-size: 10px; opacity: .6; }

.footer-bottom {
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 14px 0;
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   STICKY SHARE BUTTONS
   ============================================================ */
.sticky-share {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.share-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.share-btn:hover { transform: scale(1.15); box-shadow: var(--shadow-lg); color: #fff; }
.share-btn.fb { background: #1877F2; }
.share-btn.tw { background: #1DA1F2; }
.share-btn.wa { background: #25D366; }
.share-btn.tg { background: #2CA5E0; }
.share-btn.lk { background: #0A66C2; }
.share-count { font-size: 10.5px; font-weight: 700; color: var(--text-gray); text-align: center; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 200;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--primary-light); transform: translateY(-3px); }

/* ============================================================
   MOBILE STICKY ADS
   ============================================================ */
.mobile-sticky-ad {
  position: fixed;
  left: 0; right: 0;
  z-index: 300;
  display: none;
}
.mobile-sticky-ad.top { top: 0; }
.mobile-sticky-ad.bottom { bottom: 0; }

/* ============================================================
   REACTION BUTTONS
   ============================================================ */
.reactions-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 20px 0;
}
.reaction-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-gray);
  cursor: pointer;
  transition: all var(--transition);
}
.reaction-btn:hover, .reaction-btn.active { background: rgba(76,29,149,.08); border-color: var(--primary); color: var(--primary); }
.reaction-btn .emoji { font-size: 16px; }

/* ============================================================
   ARTICLE DETAIL
   ============================================================ */
.article-header { padding: 24px 0 12px; }
.article-cat-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.article-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.article-subtitle {
  font-size: 17px;
  color: var(--text-gray);
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 16px;
}
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-gray);
}
.article-meta-bar .author-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}
.author-mini img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
}
.author-mini .name { font-weight: 600; color: var(--text-dark); }

.article-body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-dark);
}
.article-body h2 { font-size: 22px; font-weight: 700; margin: 28px 0 12px; color: var(--text-dark); }
.article-body h3 { font-size: 19px; font-weight: 700; margin: 22px 0 10px; }
.article-body p { margin-bottom: 20px; }
.article-body blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(76,29,149,.05);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--primary);
}
.article-body figure { margin: 24px 0; }
.article-body figure img { width: 100%; border-radius: var(--radius-sm); }
.article-body figcaption { font-size: 13px; color: var(--text-gray); text-align: center; margin-top: 8px; font-style: italic; }
.article-body .read-also {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 20px 0;
  font-size: 14px;
  font-weight: 600;
}
.article-body .read-also a { color: var(--primary); }

/* TOC */
.toc-box {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
}
.toc-box h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
.toc-box ol { list-style: decimal; padding-left: 18px; }
.toc-box ol li { margin-bottom: 6px; }
.toc-box ol li a { font-size: 13.5px; color: var(--primary); }

/* Author box */
.author-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  margin: 28px 0;
}
.author-box img {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-box .author-info .name { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.author-box .author-info .role { font-size: 12.5px; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.author-box .author-info .bio { font-size: 13.5px; color: var(--text-gray); line-height: 1.55; }

/* Tags */
.article-tags { padding: 16px 0; }
.article-tags .label { font-weight: 700; font-size: 13px; margin-right: 8px; }
.article-tags a {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-gray);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  margin: 3px;
  transition: all var(--transition);
}
.article-tags a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Comment */
.comment-section { margin-top: 32px; }
.comment-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item img {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}
.comment-item .comment-body .name { font-weight: 700; font-size: 14px; color: var(--text-dark); }
.comment-item .comment-body .date { font-size: 12px; color: var(--text-gray); }
.comment-item .comment-body .text { font-size: 14px; line-height: 1.6; margin-top: 5px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-wrap {
  padding: 10px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-gray);
  margin: 0;
}
.breadcrumb a { color: var(--text-gray); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { color: var(--border); }
.breadcrumb .current { color: var(--text-dark); font-weight: 600; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-wrap { display: flex; justify-content: center; padding: 24px 0; }
.pagination { gap: 4px; }
.page-link {
  border-radius: var(--radius-sm) !important;
  border: 1.5px solid var(--border) !important;
  color: var(--text-dark) !important;
  font-weight: 600;
  font-size: 13.5px;
  padding: 7px 14px !important;
  transition: all var(--transition);
}
.page-link:hover, .page-item.active .page-link {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

/* ============================================================
   LOAD MORE / INFINITE
   ============================================================ */
.load-more-btn {
  display: block;
  margin: 20px auto 0;
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}
.load-more-btn:hover { background: var(--primary); color: #fff; }
.loading-spinner {
  text-align: center;
  padding: 20px;
  color: var(--text-gray);
  font-size: 13px;
}
.loading-spinner i { animation: spin 1s linear infinite; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-header { padding: 28px 0; background: var(--white); border-bottom: 1px solid var(--border); }
.search-big-form { position: relative; }
.search-big-form input {
  width: 100%;
  height: 56px;
  padding: 0 56px 0 20px;
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--bg-soft);
  transition: border-color var(--transition);
}
.search-big-form input:focus { outline: none; border-color: var(--primary); background: var(--white); }
.search-big-form button {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition);
}
.search-big-form button:hover { background: var(--primary-light); }

/* Live search dropdown */
.live-search-results {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 500;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}
.live-search-results.show { display: block; }
.live-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}
.live-result-item:last-child { border-bottom: none; }
.live-result-item:hover { background: var(--bg-soft); }
.live-result-item img { width: 50px; height: 36px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.live-result-item .title { font-size: 13.5px; font-weight: 600; color: var(--text-dark); }
.live-result-item .cat { font-size: 11px; color: var(--primary); font-weight: 600; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-form-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.form-group label { font-size: 13.5px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; display: block; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--bg-soft);
  transition: border-color var(--transition), background var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); background: var(--white); }
.form-control.parsley-error { border-color: #EF4444; }
.form-control.parsley-success { border-color: #10B981; }
.parsley-errors-list { font-size: 12px; color: #EF4444; margin-top: 4px; padding-left: 0; list-style: none; }
.btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 28px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform .15s;
  font-family: var(--font-main);
}
.btn-submit:hover { background: var(--primary-light); transform: translateY(-2px); }
.map-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-gray);
  border: 1.5px solid var(--border);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-info-item .icon {
  width: 38px; height: 38px;
  background: rgba(76,29,149,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 15px;
  flex-shrink: 0;
}
.contact-info-item .text .label { font-size: 12px; color: var(--text-gray); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.contact-info-item .text .value { font-size: 14px; font-weight: 600; color: var(--text-dark); }

/* ============================================================
   AUTHOR PAGE
   ============================================================ */
.author-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 48px 0;
  color: #fff;
}
.author-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.3);
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.author-hero h1 { font-size: 28px; font-weight: 800; margin: 12px 0 4px; }
.author-hero .role { opacity: .8; font-size: 14px; }
.author-stats {
  display: flex;
  gap: 24px;
  margin-top: 14px;
}
.author-stats .stat .num { font-size: 22px; font-weight: 800; display: block; }
.author-stats .stat .label { font-size: 12px; opacity: .7; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #EDE9FE 0%, #E0F2FE 50%, #F0FDF4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.login-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
}
.login-logo { text-align: center; margin-bottom: 24px; }
.login-logo img { height: 44px; }
.login-title { font-size: 22px; font-weight: 800; color: var(--text-dark); text-align: center; margin-bottom: 4px; }
.login-subtitle { font-size: 14px; color: var(--text-gray); text-align: center; margin-bottom: 28px; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.login-divider span { font-size: 12.5px; color: var(--text-gray); white-space: nowrap; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ============================================================
   COUNTDOWN WIDGET
   ============================================================ */
.countdown-widget {
  background: linear-gradient(135deg, var(--orange) 0%, #fb923c 100%);
  border-radius: var(--radius);
  padding: 16px;
  color: #fff;
  text-align: center;
}
.countdown-widget .event-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; opacity: .85; margin-bottom: 6px; }
.countdown-widget .event-name { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.countdown-units { display: flex; gap: 8px; justify-content: center; }
.countdown-unit { background: rgba(0,0,0,.2); border-radius: 8px; padding: 8px 10px; min-width: 54px; }
.countdown-unit .num { font-size: 22px; font-weight: 800; display: block; }
.countdown-unit .lbl { font-size: 10px; opacity: .75; display: block; text-transform: uppercase; letter-spacing: .06em; }

/* ============================================================
   CATEGORY PAGE HERO
   ============================================================ */
.category-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 28px 0;
  color: #fff;
}
.category-hero h1 { font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.category-hero p { opacity: .8; font-size: 13.5px; margin: 0; }
.cat-count { background: rgba(255,255,255,.2); padding: 3px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; }

/* ============================================================
   GENERAL UTILITIES
   ============================================================ */
.section-pad { padding: 28px 0; }
.bg-white-section { background: var(--white); }
.rounded-card { border-radius: var(--radius); overflow: hidden; }
.separator { height: 1px; background: var(--border); margin: 24px 0; }

.text-primary-custom { color: var(--primary); }
.text-orange { color: var(--orange); }
.text-cyan { color: var(--cyan); }
.bg-primary-custom { background: var(--primary); }

/* ============================================================
   SKELETON LOADING
   ============================================================ */
@keyframes skeleton-pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200%;
  animation: skeleton-pulse 1.5s ease infinite;
  border-radius: 4px;
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-img { aspect-ratio: 16/9; border-radius: var(--radius-sm); }
