/* ═══════════════════════════════════════════════════════════════
   JournalArta Theme — main.css  v1.0.0
   ═══════════════════════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
  --ja-primary:    #0a2540;
  --ja-accent:     #e63946;
  --ja-teal:       #00b4d8;
  --ja-bg:         #f5f6fa;
  --ja-white:      #ffffff;
  --ja-gray1:      #f0f2f5;
  --ja-gray2:      #e2e5ea;
  --ja-border:     #dde1e8;
  --ja-text:       #1a1a2e;
  --ja-muted:      #6b7280;
  --ja-link:       #0a2540;
  --ja-radius:     8px;
  --ja-shadow:     0 2px 12px rgba(0,0,0,.08);
  --ja-shadow-md:  0 4px 24px rgba(0,0,0,.12);
  --ja-font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ja-wrap:       1240px;
  --ja-gap:        20px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--ja-font);
  background: var(--ja-bg);
  color: var(--ja-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ja-link); text-decoration: none; }
a:hover { color: var(--ja-accent); }

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

ul { list-style: none; }

/* ── Wrapper ── */
.ja-wrap {
  max-width: var(--ja-wrap);
  margin: 0 auto;
  padding: 0 16px;
}

/* ═══════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════ */
.ja-topbar {
  background: var(--ja-primary);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ja-topbar .ja-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ja-topbar-date { font-size: 12px; }
.ja-topbar-right { display: flex; gap: 16px; }
.ja-topbar-right a { color: rgba(255,255,255,.7); font-size: 12px; }
.ja-topbar-right a:hover { color: #fff; }

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
  background: var(--ja-primary);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.site-branding { flex-shrink: 0; }
.ja-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.ja-logo-img {
  height: 46px;
  width: auto;
  max-width: 210px;
  display: block;
  filter: brightness(0) invert(1);
  transition: opacity .2s;
}
.ja-logo-img:hover { opacity: .85; }
.main-title { display: none !important; }

/* Header Search */
.ja-header-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  overflow: hidden;
  flex: 0 1 340px;
}
.ja-header-search input {
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px 12px;
  font-size: 14px;
  flex: 1;
  min-width: 0;
  outline: none;
}
.ja-header-search input::placeholder { color: rgba(255,255,255,.55); }
.ja-header-search button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.8);
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.ja-header-search button:hover { color: #fff; }

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.main-navigation {
  background: var(--ja-accent);
  border-bottom: 2px solid rgba(0,0,0,.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav li { position: relative; }
.main-nav li a {
  display: block;
  padding: 11px 15px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background .15s;
}
.main-nav li a:hover,
.main-nav li.current-menu-item > a { background: rgba(0,0,0,.18); }

/* Dropdown */
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--ja-primary);
  min-width: 200px;
  box-shadow: var(--ja-shadow-md);
  z-index: 999;
  border-top: 2px solid var(--ja-accent);
  list-style: none;
}
.main-nav li:hover > .sub-menu { display: block; }
.main-nav .sub-menu li a {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.main-nav .sub-menu li a:hover { background: rgba(255,255,255,.08); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
}

/* ═══════════════════════════════════════════
   BREAKING NEWS
   ═══════════════════════════════════════════ */
.ja-breaking {
  background: #fff;
  border-bottom: 2px solid var(--ja-border);
  overflow: hidden;
}
.ja-breaking .ja-wrap {
  display: flex;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}
.ja-breaking-label {
  background: var(--ja-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 14px;
}
.ja-breaking-ticker {
  overflow: hidden;
  flex: 1;
}
.ja-breaking-ticker-inner {
  display: inline-block;
  white-space: nowrap;
  animation: ja-ticker 40s linear infinite;
  font-size: 13.5px;
}
.ja-breaking-ticker-inner a { color: var(--ja-text); font-weight: 500; }
.ja-breaking-ticker-inner a:hover { color: var(--ja-accent); }
@keyframes ja-ticker {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.ja-breaking-ticker:hover .ja-breaking-ticker-inner { animation-play-state: paused; }

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */
.ja-main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--ja-gap);
  align-items: start;
  padding: 24px 0;
}
.ja-content-col { min-width: 0; }

/* Section Header */
.ja-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid var(--ja-accent);
  padding-left: 12px;
  margin: 24px 0 16px;
}
.ja-section-header span {
  font-size: 16px;
  font-weight: 800;
  color: var(--ja-primary);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ja-section-header a {
  font-size: 12px;
  color: var(--ja-muted);
  font-weight: 500;
}
.ja-section-header a:hover { color: var(--ja-accent); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.ja-hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--ja-gap);
  margin-bottom: 24px;
  background: var(--ja-white);
  border-radius: var(--ja-radius);
  overflow: hidden;
  box-shadow: var(--ja-shadow);
}
.ja-hero-main { position: relative; }
.ja-hero-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}
.ja-hero-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  color: #fff;
}
.ja-hero-body h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 8px;
}
.ja-hero-body h2 a { color: #fff; }
.ja-hero-body h2 a:hover { text-decoration: underline; }
.ja-meta.ja-time { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 6px; }

.ja-hero-list {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}
.ja-hero-list-header {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ja-accent);
  padding: 4px 16px 8px;
  border-bottom: 1px solid var(--ja-border);
  margin-bottom: 4px;
}
.ja-hero-list-item {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ja-border);
  align-items: flex-start;
  transition: background .15s;
}
.ja-hero-list-item:last-child { border-bottom: none; }
.ja-hero-list-item:hover { background: var(--ja-gray1); }
.ja-hero-list-thumb,
.ja-hero-list-thumb-placeholder {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.ja-hero-list-thumb-placeholder { background: var(--ja-gray2); }
.ja-hero-list-body h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ja-text);
}
.ja-hero-list-body h4:hover { color: var(--ja-accent); }
.ja-hero-list-time { font-size: 11px; color: var(--ja-muted); margin-top: 4px; }

/* ═══════════════════════════════════════════
   CARD GRID
   ═══════════════════════════════════════════ */
.ja-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ja-gap);
  margin-bottom: 24px;
}

/* ja-card */
.ja-card {
  background: var(--ja-white);
  border-radius: var(--ja-radius);
  overflow: hidden;
  box-shadow: var(--ja-shadow);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.ja-card:hover { box-shadow: var(--ja-shadow-md); transform: translateY(-2px); }

.ja-card-img-wrap { position: relative; overflow: hidden; }
.ja-card-img-wrap img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform .3s;
}
.ja-card:hover .ja-card-img-wrap img { transform: scale(1.03); }
.ja-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--ja-gray2), var(--ja-gray1));
  display: flex;
  align-items: center;
  justify-content: center;
}
.ja-card-img-placeholder::after { content: '📰'; font-size: 36px; opacity: .4; }

.ja-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ja-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 2px 8px;
  border-radius: 3px;
}
.ja-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ja-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  flex: 1;
}
.ja-card-title a { color: var(--ja-text); }
.ja-card-title a:hover { color: var(--ja-accent); }
.ja-card-meta { font-size: 12px; color: var(--ja-muted); }

/* ═══════════════════════════════════════════
   LIST ARTICLE (Terpopuler)
   ═══════════════════════════════════════════ */
.ja-list-article { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.ja-list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--ja-white);
  border-radius: var(--ja-radius);
  padding: 12px;
  box-shadow: var(--ja-shadow);
}
.ja-list-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--ja-gray2);
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
}
.ja-list-thumb,
.ja-list-thumb-ph {
  width: 90px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.ja-list-thumb-ph { background: var(--ja-gray2); }
.ja-list-content { flex: 1; min-width: 0; }
.ja-list-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ja-accent);
  margin-bottom: 4px;
}
.ja-list-title { font-size: 14px; font-weight: 700; line-height: 1.4; }
.ja-list-title a { color: var(--ja-text); }
.ja-list-title a:hover { color: var(--ja-accent); }
.ja-list-meta { font-size: 11px; color: var(--ja-muted); margin-top: 4px; }

/* ═══════════════════════════════════════════
   SIDEBAR WIDGETS
   ═══════════════════════════════════════════ */
.ja-sidebar { display: flex; flex-direction: column; gap: 20px; }

.ja-sw-widget {
  background: var(--ja-white);
  border-radius: var(--ja-radius);
  box-shadow: var(--ja-shadow);
  overflow: hidden;
}
.ja-sw-header {
  background: var(--ja-primary);
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-left: 4px solid var(--ja-accent);
}
.ja-sw-header-ad {
  background: var(--ja-gray2);
  color: var(--ja-muted);
  border-left-color: var(--ja-border);
}
.ja-sw-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ja-border);
  align-items: flex-start;
  transition: background .15s;
}
.ja-sw-item:last-of-type { border-bottom: none; }
.ja-sw-item:hover { background: var(--ja-gray1); }
.ja-sw-thumb,
.ja-sw-thumb-ph {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.ja-sw-thumb-ph { background: var(--ja-gray2); }
.ja-sw-body { flex: 1; min-width: 0; }
.ja-sw-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ja-text); }
.ja-sw-item:hover .ja-sw-title { color: var(--ja-accent); }
.ja-sw-meta { font-size: 11px; color: var(--ja-muted); margin-top: 3px; }

/* Sidebar search */
.ja-sw-search {
  display: flex;
  margin: 12px 14px;
  border: 1px solid var(--ja-border);
  border-radius: 6px;
  overflow: hidden;
}
.ja-sw-search input {
  flex: 1;
  border: none;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  background: var(--ja-gray1);
}
.ja-sw-search button {
  background: var(--ja-accent);
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* Category list */
.ja-sw-catlist { padding: 6px 0; }
.ja-sw-catlist li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ja-text);
  border-bottom: 1px solid var(--ja-border);
  transition: background .15s;
}
.ja-sw-catlist li:last-child a { border-bottom: none; }
.ja-sw-catlist li a:hover { background: var(--ja-gray1); color: var(--ja-accent); }
.ja-sw-cat-count {
  background: var(--ja-gray2);
  color: var(--ja-muted);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 20px;
}

/* Tags */
.ja-sw-tags { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.ja-tag-chip {
  display: inline-block;
  background: var(--ja-gray1);
  color: var(--ja-muted);
  border: 1px solid var(--ja-border);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  transition: all .15s;
}
.ja-tag-chip:hover {
  background: var(--ja-accent);
  color: #fff;
  border-color: var(--ja-accent);
}

/* Ad slot */
.ja-ad-slot { padding: 12px; text-align: center; }

/* ═══════════════════════════════════════════
   SINGLE POST LAYOUT
   ═══════════════════════════════════════════ */
.ja-single-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--ja-gap);
  padding: 24px 0;
  align-items: start;
}
.ja-single-main { min-width: 0; }
.ja-single-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* Article */
.ja-article {
  background: var(--ja-white);
  border-radius: var(--ja-radius);
  padding: 28px 32px;
  box-shadow: var(--ja-shadow);
}

/* Breadcrumb */
.ja-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ja-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ja-breadcrumb a { color: var(--ja-muted); }
.ja-breadcrumb a:hover { color: var(--ja-accent); }
.ja-breadcrumb span { color: var(--ja-border); }

/* Category badge */
.ja-article-cat {
  display: inline-block;
  background: var(--ja-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Title */
.ja-article-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--ja-text);
  margin-bottom: 16px;
}

/* Meta */
.ja-article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--ja-muted);
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ja-border);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.ja-byline { font-weight: 500; }

/* Hero image */
.ja-article-hero {
  margin: 0 -32px 24px;
}
.ja-article-hero-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}
.ja-article-caption {
  font-size: 12px;
  color: var(--ja-muted);
  font-style: italic;
  padding: 6px 14px;
  background: var(--ja-gray1);
  border-bottom: 1px solid var(--ja-border);
}

/* Article content */
.ja-article-body {
  font-size: 16px;
  line-height: 1.8;
  color: #2d2d3a;
}
.ja-article-body p { margin-bottom: 18px; }
.ja-article-body h2, .ja-article-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--ja-primary);
}
.ja-article-body h3 { font-size: 18px; }
.ja-article-body blockquote {
  border-left: 4px solid var(--ja-accent);
  padding: 14px 18px;
  margin: 24px 0;
  background: var(--ja-gray1);
  border-radius: 0 var(--ja-radius) var(--ja-radius) 0;
  font-style: italic;
  color: var(--ja-muted);
}
.ja-article-body ul, .ja-article-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
  list-style: disc;
}
.ja-article-body ol { list-style: decimal; }
.ja-article-body li { margin-bottom: 6px; }
.ja-article-body a { color: var(--ja-teal); text-decoration: underline; }
.ja-article-body img {
  border-radius: var(--ja-radius);
  margin: 16px 0;
}

/* Tags */
.ja-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--ja-border);
  margin-top: 24px;
}
.ja-tags-label { font-size: 13px; font-weight: 600; color: var(--ja-muted); }

/* Share Bar */
.ja-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--ja-border);
  flex-wrap: wrap;
}
.ja-share-label { font-size: 13px; font-weight: 600; color: var(--ja-muted); }
.ja-share-btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: opacity .2s;
  text-decoration: none;
}
.ja-share-btn:hover { opacity: .85; color: #fff; }
.ja-share-btn.fb { background: #1877f2; }
.ja-share-btn.tw { background: #1da1f2; }
.ja-share-btn.wa { background: #25d366; }
.ja-share-btn.tg { background: #0088cc; }
.ja-share-btn.cp { background: var(--ja-primary); }

/* Article Signature */
.article-signature.ai-author-signature {
  display: block;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
  font-style: italic;
  font-size: 14px;
  color: #888888;
}
.article-signature .author-initial { font-weight: 600; }

/* ═══════════════════════════════════════════
   RELATED POSTS
   ═══════════════════════════════════════════ */
.ja-related { margin-top: 24px; }
.ja-related-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ═══════════════════════════════════════════
   GUTENBERG BLOCK: Kutipan Narasumber
   ═══════════════════════════════════════════ */
.ja-kutipan {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border: 1px solid #b8d9f5;
  border-left: 5px solid var(--ja-teal);
  border-radius: var(--ja-radius);
  padding: 20px 24px;
  margin: 24px 0;
  position: relative;
}
.ja-kutipan::before {
  content: '\201C';
  font-size: 64px;
  color: var(--ja-teal);
  opacity: .25;
  position: absolute;
  top: -8px;
  left: 12px;
  font-family: Georgia, serif;
  line-height: 1;
}
.ja-kutipan-text {
  font-size: 17px;
  font-style: italic;
  line-height: 1.7;
  color: var(--ja-primary);
  margin: 0 0 12px;
  padding-left: 8px;
}
.ja-kutipan-source { font-size: 13px; color: var(--ja-muted); }
.ja-kutipan-source strong { font-weight: 700; color: var(--ja-primary); }
.ja-kutipan-source em { color: var(--ja-accent); }

/* ═══════════════════════════════════════════
   ARCHIVE / CATEGORY PAGES
   ═══════════════════════════════════════════ */
.ja-archive-wrap { padding: 24px 0; }
.ja-archive-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ja-border);
}
.ja-archive-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--ja-primary);
  margin-bottom: 6px;
}
.ja-archive-desc { font-size: 14px; color: var(--ja-muted); margin-top: 6px; }
.ja-search-count { font-size: 14px; color: var(--ja-muted); }
.ja-cat-header { margin-bottom: 24px; }
.ja-cat-total { font-size: 13px; color: var(--ja-muted); margin-top: 6px; }

/* Category hero */
.ja-cat-hero {
  background: var(--ja-white);
  border-radius: var(--ja-radius);
  overflow: hidden;
  box-shadow: var(--ja-shadow);
  margin-bottom: 24px;
}
.ja-cat-hero-img { width: 100%; height: 360px; object-fit: cover; }
.ja-cat-hero-body { padding: 20px; }
.ja-cat-hero-body h2 { font-size: 24px; font-weight: 800; margin: 10px 0 8px; }
.ja-cat-hero-body h2 a { color: var(--ja-text); }
.ja-cat-hero-body h2 a:hover { color: var(--ja-accent); }
.ja-cat-hero-excerpt { font-size: 14px; color: var(--ja-muted); margin-top: 8px; line-height: 1.6; }

/* ═══════════════════════════════════════════
   SEARCH PAGE
   ═══════════════════════════════════════════ */
.ja-search-form {
  display: flex;
  border: 2px solid var(--ja-border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
}
.ja-search-form input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 15px;
  outline: none;
  background: var(--ja-gray1);
}
.ja-search-form button {
  background: var(--ja-accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.ja-search-form button:hover { background: #c1121f; }

/* ═══════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════ */
.ja-404-wrap { padding: 48px 0; }
.ja-404-content {
  text-align: center;
  padding: 60px 24px;
  background: var(--ja-white);
  border-radius: var(--ja-radius);
  box-shadow: var(--ja-shadow);
  margin-bottom: 40px;
}
.ja-404-code {
  font-size: 96px;
  font-weight: 900;
  color: var(--ja-gray2);
  line-height: 1;
  margin-bottom: 16px;
}
.ja-404-title { font-size: 28px; font-weight: 800; color: var(--ja-primary); margin-bottom: 12px; }
.ja-404-desc { font-size: 15px; color: var(--ja-muted); max-width: 500px; margin: 0 auto 24px; }
.ja-404-content .ja-search-form { max-width: 480px; margin: 0 auto 24px; }
.ja-404-suggestions h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--ja-primary);
}

/* No results */
.ja-no-results {
  text-align: center;
  padding: 60px 24px;
  background: var(--ja-white);
  border-radius: var(--ja-radius);
  box-shadow: var(--ja-shadow);
}
.ja-no-results-icon { font-size: 48px; margin-bottom: 16px; }
.ja-no-results h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.ja-no-results p { color: var(--ja-muted); margin-bottom: 8px; }

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.ja-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  background: var(--ja-primary);
  color: #fff;
  margin-top: 16px;
  transition: background .15s;
}
.ja-btn:hover { background: var(--ja-accent); color: #fff; }
.ja-btn-primary { background: var(--ja-accent); }
.ja-btn-primary:hover { background: #c1121f; }

/* ═══════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════ */
.ja-pagination { margin: 24px 0; }
.ja-pagination .page-numbers {
  display: flex;
  list-style: none;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.ja-pagination .page-numbers li a,
.ja-pagination .page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--ja-border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ja-text);
  background: var(--ja-white);
  transition: all .15s;
}
.ja-pagination .page-numbers li a:hover,
.ja-pagination .page-numbers li span.current {
  background: var(--ja-accent);
  border-color: var(--ja-accent);
  color: #fff;
}

/* ═══════════════════════════════════════════
   ADSENSE UNITS
   ═══════════════════════════════════════════ */
.ja-ad-unit {
  text-align: center;
  overflow: hidden;
  clear: both;
}
.ja-ad-leaderboard-wrap {
  margin: 20px 0 8px;
  text-align: center;
}
.ja-ad-leaderboard-wrap .ja-ad-unit { display: inline-block; width: 100%; }
.ja-ad-homepage-mid { margin: 16px 0; }
.ja-ad-homepage-cat { margin: 16px 0; }
.ja-ad-in-content { margin: 22px auto; max-width: 728px; }
.ja-ad-below-article { margin: 24px 0; }
.ja-ad-sidebar { margin: 0; }
.ja-ad-sidebar-single { margin: 0; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer { background: var(--ja-primary); color: rgba(255,255,255,.75); margin-top: 40px; }

.ja-footer-widgets { padding: 48px 0 32px; }
.ja-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.ja-footer-brand .ja-logo-text {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.ja-footer-brand p { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.6); }
.ja-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.ja-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 6px;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  transition: background .15s;
}
.ja-footer-social a:hover { background: var(--ja-accent); color: #fff; }

.ja-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.ja-footer-col ul { list-style: none; }
.ja-footer-col ul li { margin-bottom: 6px; }
.ja-footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  transition: color .15s;
}
.ja-footer-col ul li a:hover { color: #fff; }

.ja-footer-recent { margin-bottom: 10px; }
.ja-footer-recent a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin-bottom: 2px;
  line-height: 1.4;
}
.ja-footer-recent a:hover { color: #fff; }
.ja-footer-recent span { font-size: 11px; color: rgba(255,255,255,.4); }

.ja-footer-bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 14px 0;
}
.ja-footer-bar .ja-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
}
.ja-footer-links { display: flex; gap: 16px; }
.ja-footer-links a { color: rgba(255,255,255,.45); }
.ja-footer-links a:hover { color: #fff; }

/* ═══════════════════════════════════════════
   ADMIN — META BOX STYLES
   ═══════════════════════════════════════════ */
.ja-meta-notice {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 10px 14px;
  font-size: 13px;
  color: #795548;
  margin-bottom: 16px;
  border-radius: 0 4px 4px 0;
}
.ja-send-editor-btn {
  background: #0a2540;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
}
.ja-send-editor-btn:hover { background: #e63946; }

/* ═══════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .ja-main-layout { grid-template-columns: 1fr 280px; }
  .ja-single-wrap { grid-template-columns: 1fr 280px; }
  .ja-footer-inner { grid-template-columns: 1fr 1fr; }
  .ja-hero { grid-template-columns: 1fr 260px; }
}

@media (max-width: 768px) {
  :root { --ja-gap: 14px; }

  .ja-main-layout,
  .ja-single-wrap {
    grid-template-columns: 1fr;
  }

  .ja-sidebar,
  .ja-single-sidebar { display: none; }

  .ja-grid { grid-template-columns: repeat(2, 1fr); }

  .ja-hero {
    grid-template-columns: 1fr;
  }
  .ja-hero-list { display: none; }

  .ja-article { padding: 20px 16px; }
  .ja-article-hero { margin: 0 -16px 20px; }
  .ja-article-title { font-size: 22px; }

  .ja-footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }

  .main-nav { display: none; flex-direction: column; width: 100%; }
  .main-nav.open { display: flex; }
  .main-nav li a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-toggle { display: block; }

  .ja-header-search { flex: 0 1 220px; }

  .ja-topbar-right { display: none; }

  .ja-archive-title { font-size: 20px; }
  .ja-cat-hero-img { height: 220px; }
}

@media (max-width: 480px) {
  .ja-grid { grid-template-columns: 1fr; }
  .ja-footer-inner { grid-template-columns: 1fr; }
  .ja-footer-col:nth-child(3), .ja-footer-col:nth-child(4) { display: none; }
  .ja-hero-img { height: 220px; }
  .ja-404-code { font-size: 64px; }
  .ja-share-bar { gap: 6px; }
  .ja-share-btn { padding: 5px 10px; font-size: 12px; }
}

/* Print */
@media print {
  .site-header, .main-navigation, .ja-breaking, .ja-sidebar,
  .ja-single-sidebar, .ja-share-bar, .ja-related, .site-footer,
  .ja-ad-unit { display: none !important; }
  .ja-single-wrap { display: block; }
  .ja-article { box-shadow: none; padding: 0; }
  .ja-article-body { font-size: 14px; }
}
