﻿/* ===========================
   MLGTHEME RED THEME — main.css
   All fixes applied:
   - No topbar
   - Date top-right in header
   - Breaking news ticker fixed (no overlap with BREAKING label)
   - Footer copyright centered, no social icons
   - Featured grid equal size
   - Cat split layout (image left + 3 titles right)
   =========================== */

:root {
  --red: #6A1B9A;
  --red-dark: #4A148C;
  --red-light: #7B1FA2;
  --red-pale: #F3E5F5;
  --red-mid: #7B1FA2;
  --black: #111111;
  --gray-dark: #222222;
  --gray-mid: #555555;
  --gray-light: #888888;
  --gray-pale: #F5F5F5;
  --white: #FFFFFF;
  --border: #E0E0E0;
  --font-display: 'Playfair Display', serif;
  --font-body: Georgia, 'Times New Roman', serif;
  --font-ui: 'DM Sans', sans-serif;
  --footer-from: #0F0620;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; height: auto; }

/* =====================
   HEADER
   ===================== */
header {
  border-bottom: 3px solid var(--red);
  padding: 0;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 12px;
  border-bottom: 1px solid var(--border);
}
.site-title-link { text-decoration: none; }
.site-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -2px;
  line-height: 1;
}
.site-title span { color: var(--black); }
.tagline {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--gray-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}
.header-meta {
  text-align: right;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--gray-light);
}
/* Date top-right */
.header-meta .date {
  font-size: 13px;
  color: var(--gray-mid);
  margin-bottom: 4px;
  text-align: right;
}

/* Search form */
.search-bar,
.header-meta form,
.header-meta .search-form {
  display: flex;
  gap: 0;
  margin-top: 8px;
  justify-content: flex-end;
}
.header-meta input[type="search"],
.header-meta input[type="text"] {
  border: 1px solid var(--border);
  padding: 6px 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  outline: none;
  width: 180px;
}
.header-meta button,
.header-meta input[type="submit"] {
  background: var(--red);
  color: white;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-ui);
}

/* =====================
   NAV
   ===================== */
.main-nav { overflow-x: auto; }
.main-nav ul,
.primary-menu {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.main-nav ul li,
.primary-menu li { display: block; }
.main-nav ul li a,
.primary-menu li a {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 18px;
  color: var(--gray-dark);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.main-nav ul li a:hover,
.primary-menu li a:hover { background: var(--red); color: white; }
.main-nav ul li.current-menu-item > a,
.primary-menu li.current-menu-item > a { color: var(--red); border-bottom: 3px solid var(--red); }

/* =====================
   BREAKING BAR — fixed no overlap
   ===================== */
.breaking-bar {
  background: var(--red);
  color: white;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
}
.breaking-label {
  background: var(--red-dark);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0 16px;
  white-space: nowrap;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
}
/* Wrapper clips the ticker so it doesn't bleed under the label */
.breaking-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.breaking-ticker {
  font-family: var(--font-ui);
  font-size: 13px;
  white-space: nowrap;
  display: inline-block;
  flex-shrink: 0;
  animation: ticker 40s linear infinite;
  will-change: transform;
}
.breaking-ticker a { color: white; }
.breaking-ticker a:hover { text-decoration: underline; }
/* Pause saat mouse di atas bar */
.breaking-bar:hover .breaking-ticker { animation-play-state: paused; }
/* Teks digandakan 2x identik → geser -50% (1 salinan) = loop mulus tanpa celah */
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================
   LAYOUT — max-width, not fullwidth
   ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0;
  max-width: 1200px;
}

/* Limit body content width */
body {
  font-family: var(--font-body);
  background: var(--gray-pale);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
}
header, .breaking-bar, footer { width: 100%; }
header .header-inner,
footer .footer-grid,
footer .footer-bottom {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================
   HERO
   ===================== */
.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  margin-bottom: 40px;
  overflow: hidden;
}
.hero-main { position: relative; }
.fake-img {
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.fake-img-label {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  opacity: 0.06;
  color: white;
  letter-spacing: -4px;
  user-select: none;
}
.hero-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--red);
  color: white;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
}
.hero-content { padding: 24px; }
.hero-content .cat-tag {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 10px;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--black);
}
.hero-content h1 a { color: inherit; }
.hero-content p { font-size: 14px; color: var(--gray-mid); line-height: 1.6; margin-bottom: 16px; }
.byline { font-family: var(--font-ui); font-size: 12px; color: var(--gray-light); }
.byline strong { color: var(--gray-dark); }
.hero-sidebar { border-left: 1px solid var(--border); }
.hero-sidebar-item {
  border-bottom: 1px solid var(--border);
  padding: 18px;
}
.hero-sidebar-item:last-child { border-bottom: none; }
.hero-sidebar-item .cat-tag {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 6px;
}
.hero-sidebar-item h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--black);
}
.hero-sidebar-item h3 a { color: inherit; }
.hero-sidebar-item p { font-size: 12px; color: var(--gray-mid); }

/* =====================
   SECTION TITLES
   ===================== */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--black);
}
.section-title h2 {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.section-title .red-bar {
  width: 4px;
  height: 20px;
  background: var(--red);
  flex-shrink: 0;
}
.section-title .more-link {
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* =====================
   FEATURED STORIES — equal grid
   ===================== */
.featured-section { margin-bottom: 48px; }
.featured-grid-equal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.featured-card { background: white; overflow: hidden; display: flex; flex-direction: column; }
.featured-img {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  opacity: 0.15;
  color: white;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.featured-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
}
.featured-body { padding: 16px; flex: 1; }
.featured-body .cat-tag {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 6px;
}
.featured-body h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--black);
}
.featured-body h3 a { color: inherit; }
.featured-body p { font-size: 13px; color: var(--gray-mid); line-height: 1.5; margin-bottom: 10px; }
.featured-body .byline { font-family: var(--font-ui); font-size: 11px; color: var(--gray-light); }

/* =====================
   CATEGORY SPLIT LAYOUT
   image left + 3 titles right
   ===================== */
.cat-section { margin-bottom: 48px; content-visibility: auto; contain-intrinsic-size: 0 350px; }
.cat-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  overflow: hidden;
}
.cat-main-article {
  border-right: 1px solid var(--border);
}
.cat-main-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.cat-main-img-placeholder {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: rgba(255,255,255,0.15);
}
.cat-main-body {
  padding: 16px;
}
.cat-main-body .cat-tag {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 6px;
}
.cat-main-body h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--black);
}
.cat-main-body h3 a { color: inherit; }
.cat-main-body .byline { font-family: var(--font-ui); font-size: 12px; color: var(--gray-light); }

.cat-side-list {
  display: flex;
  flex-direction: column;
}
.cat-side-item {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex: 1;
}
.cat-side-item:last-child { border-bottom: none; }
.cat-side-item .cat-tag {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 4px;
}
.cat-side-item h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 4px;
}
.cat-side-item h4 a { color: inherit; }
.cat-side-item h4 a:hover { color: var(--red); }
.cat-side-item .byline { font-family: var(--font-ui); font-size: 11px; color: var(--gray-light); }

/* Legacy cat grid for archive etc */
.cat-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cat-news-item {
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.cat-news-item:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
/* Anchor pembungkus gambar = kotak tetap 80x60, gambar isi penuh & ter-crop */
.cat-news-item > a {
  flex: 0 0 80px;
  width: 80px;
  height: 60px;
  overflow: hidden;
  display: block;
}
.cat-news-item > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cat-thumb {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  object-fit: cover;
}
img.cat-thumb { display: block; }
/* Placeholder inisial (div) */
div.cat-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 900;
  opacity: 0.3;
  color: white;
}
.cat-news-text .cat-tag {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 3px;
}
.cat-news-text h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 3px;
}
.cat-news-text h4 a { color: inherit; }
.cat-news-text .byline { font-family: var(--font-ui); font-size: 11px; color: var(--gray-light); }
.cat-tag a { color: inherit; }

/* =====================
   SIDEBAR — sticky
   ===================== */
.sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
}
.sidebar::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.sidebar-widget { margin-bottom: 32px; }
.sidebar-widget .section-title { margin-bottom: 16px; }

/* Newsletter */
.newsletter-widget {
  background: var(--red);
  color: white;
  padding: 24px;
  margin-bottom: 32px;
}
.newsletter-widget h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.newsletter-widget p {
  font-family: var(--font-ui);
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 16px;
  line-height: 1.5;
}
.newsletter-widget input[type="email"],
.newsletter-widget input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: none;
  font-family: var(--font-ui);
  font-size: 13px;
  margin-bottom: 8px;
  outline: none;
}
.newsletter-widget button,
.newsletter-widget input[type="submit"] {
  width: 100%;
  background: var(--red-dark);
  color: white;
  border: none;
  padding: 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
}

/* Trending / Popular Posts */
.trending-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.trending-item:last-child { border-bottom: none; }
.trend-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
  text-align: right;
}
.trend-text h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 3px;
  color: var(--black);
}
.trend-text h4 a { color: inherit; }
.trend-text h4 a:hover { color: var(--red); }
.trend-text .meta { font-family: var(--font-ui); font-size: 11px; color: var(--gray-light); }
.trend-text .meta span { color: var(--red); font-weight: 600; }

/* Tags — scoped ke dalam .tags-cloud supaya tidak kena body.tag */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tags-cloud a {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  color: var(--gray-mid);
  transition: all 0.2s;
  cursor: pointer;
  text-transform: uppercase;
}
.tags-cloud a:hover { background: var(--red); color: white; border-color: var(--red); }

/* =====================
   POPULAR POSTS GRID
   ===================== */
.popular-section { margin-bottom: 60px; content-visibility: auto; contain-intrinsic-size: 0 500px; }
.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.popular-card { background: white; padding: 24px; }
.popular-card .num {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 900;
  color: var(--red-pale);
  line-height: 1;
  margin-bottom: 8px;
}
.popular-card .cat-tag {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 6px;
}
.popular-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--black);
}
.popular-card h3 a { color: inherit; }
.popular-card p { font-size: 13px; color: var(--gray-mid); line-height: 1.5; margin-bottom: 12px; }
.popular-card .byline { font-family: var(--font-ui); font-size: 11px; color: var(--gray-light); }
.popular-card .views {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
  margin-top: 8px;
}

/* Background helpers */
.fc-ai  { background: #1a1a2e; }
.fc-tech { background: #1a2e1a; }
.fc-geo  { background: #2e1a1a; }
.fc-gov  { background: #1a2020; }
.fc-sec  { background: #20201a; }
.fc-biz  { background: #20182e; }

/* =====================
   FOOTER
   ===================== */
footer {
  background: linear-gradient(135deg, var(--footer-from) 0%, #0d0d0d 100%);
  color: var(--white);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  border-bottom: 1px solid #333;
}
.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--red);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}
.footer-brand .logo {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 10px;
}
.footer-logo-link { text-decoration: none; }
.footer-brand .logo span { color: white; }
.footer-brand .tagline-foot {
  font-family: var(--font-ui);
  font-size: 11px;
  color: #888;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 13px;
  color: #888;
  line-height: 1.7;
}

/* Social icons REMOVED */
.footer-socials { display: none; }

.footer-links { list-style: none; }
.footer-links li {
  padding: 7px 0;
  border-bottom: 1px solid #1e1e1e;
  font-size: 13px;
  color: #aaa;
  transition: color 0.2s;
  font-family: var(--font-ui);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links li::before { content: '→'; color: var(--red); font-size: 11px; }
.footer-links li a { color: #aaa; }
.footer-links li:hover, .footer-links li a:hover { color: white; }
.footer-links li:last-child { border-bottom: none; }

.footer-recent { }
.recent-news-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #1e1e1e;
}
.recent-news-item:last-child { border-bottom: none; }
.recent-thumb {
  width: 50px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  font-family: var(--font-display);
  color: rgba(255,255,255,0.15);
  overflow: hidden;
}
.recent-thumb img { width: 50px; height: 40px; object-fit: cover; }
.rc1 { background: #1a1a2e; }
.rc2 { background: #1a2e1a; }
.rc3 { background: #2e1a1a; }
.rc4 { background: #1a2020; }
.rc5 { background: #20201a; }
.rc6 { background: #20182e; }
.recent-news-text h5 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #ddd;
  line-height: 1.3;
  margin-bottom: 3px;
}
.recent-news-text h5 a { color: #ddd; }
.recent-news-text .date { font-family: var(--font-ui); font-size: 10px; color: #666; }

/* Footer bottom — centered copyright ONLY */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  text-align: center;
}
.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 12px;
  color: #555;
  text-align: center;
  width: 100%;
}
/* Hide any nav links in footer bottom */
.footer-bottom nav { display: none; }


/* =====================
   BREADCRUMB
   ===================== */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.breadcrumb ol {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.breadcrumb ol li {
  display: flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--gray-light);
}
.breadcrumb ol li a {
  color: var(--gray-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb ol li a:hover {
  color: var(--red);
}
.breadcrumb ol li span[aria-current="page"] {
  color: var(--red);
  font-weight: 600;
  /* Truncate long titles on mobile */
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}
.bc-sep {
  color: var(--border);
  font-size: 16px;
  margin: 0 8px;
  line-height: 1;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .breadcrumb ol li span[aria-current="page"] {
    max-width: 160px;
  }
  .bc-sep { margin: 0 5px; }
  .breadcrumb ol { padding: 8px 16px; }
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-sidebar { border-left: none; border-top: 1px solid var(--border); }
  .featured-grid-equal { grid-template-columns: 1fr 1fr; }
  .popular-grid { grid-template-columns: 1fr 1fr; }
  .cat-split-grid { grid-template-columns: 1fr; }
  .cat-main-article { border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .site-title { font-size: 32px; }
  .featured-grid-equal { grid-template-columns: 1fr; }
  .popular-grid { grid-template-columns: 1fr; }
  .cat-news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .header-meta { text-align: left; }
}

/* =====================
   LINK COLORS — outbound & inbound (backlinks) all red
   ===================== */

/* All links inside post content */
.entry-content a,
.entry-content a:visited {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: rgba(192, 18, 26, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.entry-content a:hover {
  color: var(--red-dark);
  text-decoration-color: var(--red-dark);
}


/* ── Article Content Typography ─────────────────────── */
.entry-content p {
  margin-bottom: 1.3em;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  color: var(--black);
}
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.3em;
  padding-left: 1.6em;
}
.entry-content li {
  margin-bottom: 0.4em;
  line-height: 1.7;
}
.entry-content blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid var(--red);
  background: var(--red-pale);
  font-style: italic;
  color: var(--gray-mid);
}
.entry-content img {
  margin: 1.2em 0;
  border-radius: 4px;
}
.entry-content strong {
  font-weight: 600;
  color: var(--black);
}
.entry-content em {
  font-style: italic;
}
.entry-content hr {
  margin: 2em 0;
  border: none;
  border-top: 1px solid var(--border);
}/* Classes added by mlgtheme_red_style_links() filter */
a.mlgtheme-red-link,
a.mlgtheme-red-inbound,
a.mlgtheme-red-outbound {
  color: var(--red) !important;
}
a.mlgtheme-red-link:hover,
a.mlgtheme-red-inbound:hover,
a.mlgtheme-red-outbound:hover {
  color: var(--red-dark) !important;
}

/* Outbound gets a small arrow indicator */
a.mlgtheme-red-outbound::after {
  content: ' ↗';
  font-size: 0.75em;
  opacity: 0.7;
  vertical-align: super;
}
