/*
Theme Name:  TempranitoRD
Theme URI:   https://tempranitoRD.com
Author:      TempranitoRD
Author URI:  https://tempranitoRD.com
Description: Tema oficial de TempranitoRD – Periodismo Dominicano Digital. Diseño moderno de periódico con ticker de última hora, hero grid, secciones de opinión y multimedia.
Version:     1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License:     GPL v2 or later
Text Domain: tempranitord
Tags:        news, newspaper, blog, magazine, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===== TOKENS ===== */
:root {
  --red:        #E8001C;
  --red-dark:   #B8001A;
  --red-light:  #FF1A33;
  --navy:       #0D1B3E;
  --navy-2:     #132047;
  --navy-3:     #1A2A5A;
  --gold:       #D4A017;
  --dark:       #0D1B3E;
  --dark-2:     #0A1530;
  --dark-3:     #132047;
  --gray-1:     #1E2D55;
  --gray-2:     #2A3D6E;
  --gray-3:     #7A8BAA;
  --gray-4:     #C0CADE;
  --light:      #F4F6FA;
  --white:      #FFFFFF;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Inter', system-ui, sans-serif;
  --body-serif: 'Libre Baskerville', Georgia, serif;
  --radius:     6px;
  --shadow-sm:  0 2px 8px rgba(13,27,62,.10);
  --shadow-md:  0 4px 20px rgba(13,27,62,.18);
  --shadow-lg:  0 8px 40px rgba(13,27,62,.30);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: scroll;
}
body {
  font-family: var(--sans);
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: visible;
  min-height: 100vh;
  position: relative;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; object-fit: cover; }
ul { list-style: none; }

/* ===== BREAKING TICKER ===== */
.breaking-bar {
  background: var(--red);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 34px;
}
.breaking-bar .label {
  background: var(--dark);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 6px;
}
.breaking-bar .label span {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--red-light);
  border-radius: 50%;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.7); }
}
.ticker-wrap {
  overflow: hidden;
  flex: 1;
  -webkit-mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, transparent, black 40px, black calc(100% - 40px), transparent);
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item { padding: 0 40px; font-weight: 500; font-size: .8rem; }
.ticker-item::before { content: '•'; margin-right: 10px; opacity: .6; }

/* ===== TOPBAR ===== */
.topbar {
  background: #07112A;
  color: var(--gray-4);
  font-family: var(--sans);
  font-size: .72rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 40px;
}
.topbar-left { display: flex; gap: 18px; align-items: center; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar a:hover { color: var(--white); }
.topbar .date { color: var(--gray-3); }
.social-icon {
  width: 26px; height: 26px;
  background: var(--gray-1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  color: var(--gray-4);
  transition: background .2s, color .2s;
}
.social-icon:hover { background: var(--red); color: var(--white); }

/* ===== HEADER ===== */
.site-header {
  background: #FFFFFF;
  padding: 10px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 10px rgba(13,27,62,.10);
}
.header-left { display: flex; gap: 10px; align-items: center; }
.weather-widget {
  background: var(--light);
  border: 1px solid #DDE3EF;
  border-radius: var(--radius);
  padding: 5px 12px;
  color: var(--navy);
  font-size: .76rem;
  display: flex; align-items: center; gap: 6px;
  font-weight: 500;
}
.weather-widget .temp { font-size: 1rem; font-weight: 700; color: var(--navy); }
.site-logo { text-align: center; }
.site-logo img, .custom-logo { height: auto; width: 300px; max-width: 100%; display: block; margin: 0 auto; transition: transform .3s ease; }
.site-logo img:hover, .custom-logo:hover { transform: scale(1.03); }
.custom-logo-link { display: block; }
.header-right { display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.btn-search {
  background: var(--light);
  border: 1px solid #DDE3EF;
  color: var(--navy);
  padding: 7px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .8rem;
  font-family: var(--sans);
  font-weight: 500;
  display: flex; align-items: center; gap: 6px;
  transition: background .2s, border-color .2s;
  text-decoration: none;
}
.btn-search:hover { background: #E8EDF8; border-color: var(--navy); }
.btn-subscribe {
  background: var(--red);
  border: none;
  color: var(--white);
  padding: 7px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s, transform .15s;
  text-decoration: none;
}
.btn-subscribe:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ===== NAV ===== */
.site-nav {
  background: var(--navy-2);
  border-bottom: 2px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(13,27,62,.35);
}
body.admin-bar .site-nav {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-nav {
    top: 46px;
  }
}
.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-inner ul { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-inner ul li a {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-4);
  padding: 14px 18px;
  display: block;
  transition: color .2s, background .2s, border-bottom .2s;
  border-bottom: 3px solid transparent;
}
.nav-inner ul li a:hover,
.nav-inner ul li.current-menu-item > a,
.nav-inner ul li.current-category-ancestor > a {
  color: var(--white);
  border-bottom-color: var(--red);
  background: rgba(255,255,255,.05);
}
.nav-inner ul li.menu-opinion > a { color: var(--gold); }

/* ===== CONTAINER ===== */
.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

/* ===== SECTION LABELS ===== */
.section-label { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.section-label h2 { font-family: var(--sans); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--dark); }
.section-label .line { flex: 1; height: 1px; background: linear-gradient(to right, var(--red), transparent); }
.section-label .badge { background: var(--red); color: var(--white); font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 3px 8px; border-radius: 3px; }

/* ===== HERO GRID ===== */
.hero-section { padding: 36px 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2px;
  background: var(--gray-2);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2px;
}
.story-featured { grid-row: 1 / 3; position: relative; overflow: hidden; cursor: pointer; }
.story-featured img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; transition: transform .5s ease; }
.story-featured:hover img { transform: scale(1.03); }
.story-featured .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88) 40%, transparent 80%); }
.story-featured .content { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 28px 32px; color: var(--white); }
.story-featured .category-tag { background: var(--red); color: var(--white); font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; padding: 4px 10px; border-radius: 3px; display: inline-block; margin-bottom: 12px; }
.story-featured h2 { font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.story-featured p { font-size: .88rem; color: rgba(255,255,255,.8); line-height: 1.5; max-width: 560px; }
.story-meta { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: .72rem; color: rgba(255,255,255,.6); }
.story-meta .author { color: var(--gold); font-weight: 600; }

/* ===== SIDEBAR STORIES ===== */
.sidebar-stories { display: flex; flex-direction: column; }
.sidebar-story { background: var(--dark); flex: 1; display: flex; flex-direction: column; cursor: pointer; overflow: hidden; transition: background .2s; }
.sidebar-story:hover { background: var(--dark-3); }
.sidebar-story + .sidebar-story { border-top: 1px solid var(--gray-1); }
.sidebar-story img { width: 100%; height: 160px; object-fit: cover; transition: transform .4s; }
.sidebar-story:hover img { transform: scale(1.04); }
.sidebar-story .content { padding: 14px 18px 18px; color: var(--white); flex: 1; }
.sidebar-story .category-tag { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--red-light); margin-bottom: 7px; display: block; }
.sidebar-story h3 { font-family: var(--serif); font-size: 1.02rem; line-height: 1.35; color: var(--white); }
.sidebar-story .meta { font-size: .68rem; color: var(--gray-3); margin-top: 8px; }

/* ===== CARDS ===== */
.secondary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 36px 0; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; cursor: pointer; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card img { width: 100%; height: 180px; object-fit: cover; transition: transform .4s; }
.card:hover img { transform: scale(1.04); }
.card-body { padding: 16px; }
.card .category-tag { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: 8px; display: block; }
.card h3 { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; line-height: 1.35; color: var(--dark); margin-bottom: 8px; }
.card p { font-size: .8rem; color: var(--gray-3); line-height: 1.5; margin-bottom: 12px; }
.card .meta { font-size: .68rem; color: var(--gray-3); display: flex; gap: 10px; border-top: 1px solid var(--light); padding-top: 10px; }

/* ===== CONTENT AREA ===== */
.content-area { display: grid; grid-template-columns: 1fr 320px; gap: 36px; padding-bottom: 48px; }
.article-list { display: flex; flex-direction: column; gap: 24px; }
.article-item { display: grid; grid-template-columns: 200px 1fr; gap: 18px; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.article-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.article-item img { width: 200px; height: 140px; object-fit: cover; transition: transform .4s; }
.article-item:hover img { transform: scale(1.05); }
.article-item .body { padding: 16px 16px 16px 0; }
.article-item .category-tag { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: 7px; display: block; }
.article-item h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.article-item p { font-size: .8rem; color: var(--gray-3); line-height: 1.5; }
.article-item .meta { font-size: .68rem; color: var(--gray-3); margin-top: 10px; display: flex; gap: 10px; }
.category-tag { text-decoration: none; }

/* ===== SINGLE POST ===== */
.single-post { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 36px; }
.single-post .hero-img { width: 100%; max-height: 500px; object-fit: cover; }
.single-post .post-body { padding: 36px 40px; }
.single-post .post-category { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: 12px; display: inline-block; }
.single-post h1 { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; line-height: 1.2; margin-bottom: 16px; color: var(--navy); }
.single-post .post-meta { display: flex; gap: 16px; font-size: .78rem; color: var(--gray-3); margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--light); }
.single-post .post-meta .author { color: var(--navy); font-weight: 600; }
.post-content { font-family: var(--body-serif); font-size: 1rem; line-height: 1.85; color: #333; }
.post-content p { margin-bottom: 1.4em; }
.post-content h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--navy); margin: 2em 0 .8em; }
.post-content h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 1.5em 0 .6em; }
.post-content a { color: var(--red); text-decoration: underline; }
.post-content blockquote { border-left: 4px solid var(--red); padding: 16px 24px; margin: 2em 0; background: var(--light); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.post-content img { border-radius: var(--radius); margin: 1.5em 0; max-width: 100%; }
.post-tags { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--light); display: flex; gap: 8px; flex-wrap: wrap; }
.post-tags a { font-size: .72rem; font-weight: 600; color: var(--navy); background: var(--light); border: 1px solid #ddd; padding: 5px 12px; border-radius: 30px; transition: all .2s; }
.post-tags a:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.widget-header { background: var(--dark); padding: 12px 18px; }
.widget-header h3 { font-family: var(--sans); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--white); }
.trending-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--light); cursor: pointer; transition: background .15s; }
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { background: #fafafa; }
.trending-num { font-family: var(--serif); font-size: 1.6rem; font-weight: 900; color: var(--red); opacity: .25; line-height: 1; min-width: 28px; }
.trending-item h4 { font-family: var(--body-serif); font-size: .88rem; font-weight: 700; line-height: 1.3; color: var(--dark); }
.trending-item .meta { font-size: .65rem; color: var(--gray-3); margin-top: 4px; }
.trending-item a { display: block; text-decoration: none; color: inherit; }
.newsletter-widget { background: linear-gradient(135deg, var(--dark) 0%, var(--red-dark) 100%); border-radius: var(--radius); padding: 24px; color: var(--white); text-align: center; }
.newsletter-widget .icon { font-size: 2rem; margin-bottom: 12px; }
.newsletter-widget h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.newsletter-widget p { font-size: .8rem; color: rgba(255,255,255,.75); margin-bottom: 18px; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input { width: 100%; padding: 10px 14px; border: none; border-radius: var(--radius); font-family: var(--sans); font-size: .82rem; background: rgba(255,255,255,.12); color: var(--white); outline: none; transition: background .2s; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { background: rgba(255,255,255,.2); }
.newsletter-form button { width: 100%; padding: 10px; background: var(--gold); color: var(--dark); border: none; border-radius: var(--radius); font-family: var(--sans); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; transition: background .2s; }
.newsletter-form button:hover { background: #e6b018; }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 18px; }
.tag { font-size: .72rem; font-weight: 600; color: var(--dark); background: var(--light); border: 1px solid #ddd; padding: 5px 12px; border-radius: 30px; cursor: pointer; transition: all .2s; text-decoration: none; display: inline-block; }
.tag:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* ===== OPINION ===== */
.opinion-section { padding: 0 0 48px; }
.opinion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.opinion-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--red); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.opinion-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.opinion-author { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.author-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--red-dark), var(--dark)); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--white); flex-shrink: 0; overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.author-info .name { font-weight: 700; font-size: .88rem; }
.author-info .title { font-size: .72rem; color: var(--gray-3); }
.opinion-card blockquote { font-family: var(--body-serif); font-style: italic; font-size: .9rem; line-height: 1.6; color: var(--dark); position: relative; padding-left: 12px; }
.opinion-card blockquote::before { content: '"'; position: absolute; left: -8px; top: -10px; font-size: 3rem; font-family: var(--serif); color: var(--red); opacity: .2; line-height: 1; }
.read-more { display: inline-block; margin-top: 14px; font-size: .72rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; }
.read-more:hover { text-decoration: underline; }

/* ===== MULTIMEDIA ===== */
.multimedia-section { background: var(--dark); padding: 48px 0; margin-bottom: 48px; }
.multimedia-section .section-label h2 { color: var(--white); }
.multimedia-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.video-card { border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; background: var(--gray-1); }
.video-card img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s, filter .3s; filter: brightness(.85); }
.video-card:hover img { transform: scale(1.05); filter: brightness(.7); }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; background: rgba(255,255,255,.92); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .25s, background .2s; }
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.12); background: var(--red); }
.play-btn::after { content: ''; border-left: 16px solid var(--dark); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; transition: border-left-color .2s; }
.video-card:hover .play-btn::after { border-left-color: var(--white); }
.video-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px; background: linear-gradient(to top, rgba(0,0,0,.85), transparent); color: var(--white); }
.duration { background: var(--red); color: var(--white); font-size: .6rem; font-weight: 700; padding: 2px 7px; border-radius: 3px; margin-bottom: 7px; display: inline-block; }
.video-info h4 { font-family: var(--serif); font-size: .9rem; line-height: 1.3; }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); color: var(--gray-4); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--gray-1); }
.footer-brand img { height: 52px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p { font-size: .82rem; line-height: 1.65; color: var(--gray-3); max-width: 280px; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 34px; height: 34px; background: var(--gray-1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: var(--gray-4); transition: background .2s, color .2s, transform .2s; }
.footer-socials a:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }
.footer-col h4 { font-family: var(--sans); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--white); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--red); display: inline-block; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; }
.footer-col ul li a { font-size: .82rem; color: var(--gray-3); transition: color .2s, padding-left .2s; }
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom { text-align: center; padding: 18px; font-size: .72rem; color: var(--gray-3); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--red); }

/* ===== SEARCH FORM ===== */
.search-form-wrap { max-width: 600px; margin: 0 auto; padding: 48px 20px; }
.search-form-wrap h1 { font-family: var(--serif); font-size: 1.8rem; margin-bottom: 20px; color: var(--navy); }
.search-form { display: flex; gap: 10px; }
.search-form input[type="search"] { flex: 1; padding: 12px 16px; border: 2px solid #DDE3EF; border-radius: var(--radius); font-family: var(--sans); font-size: 1rem; outline: none; transition: border-color .2s; }
.search-form input[type="search"]:focus { border-color: var(--red); }
.search-form button { background: var(--red); color: var(--white); border: none; padding: 12px 24px; border-radius: var(--radius); cursor: pointer; font-weight: 700; font-family: var(--sans); transition: background .2s; }
.search-form button:hover { background: var(--red-dark); }
.search-results-grid { display: flex; flex-direction: column; gap: 20px; padding: 36px 0; }
.no-results { text-align: center; padding: 80px 20px; }
.no-results h2 { font-family: var(--serif); font-size: 2rem; color: var(--navy); margin-bottom: 12px; }
.no-results p { color: var(--gray-3); }

/* ===== 404 ===== */
.error-page { text-align: center; padding: 100px 20px; }
.error-page .code { font-family: var(--serif); font-size: 8rem; font-weight: 900; color: var(--red); opacity: .15; line-height: 1; }
.error-page h1 { font-family: var(--serif); font-size: 2rem; color: var(--navy); margin-bottom: 12px; margin-top: -40px; }
.error-page p { color: var(--gray-3); margin-bottom: 28px; }
.btn-home { background: var(--red); color: var(--white); padding: 12px 28px; border-radius: var(--radius); font-weight: 700; display: inline-block; transition: background .2s; }
.btn-home:hover { background: var(--red-dark); }

/* ===== ARCHIVE ===== */
.archive-header { padding: 36px 0 24px; }
.archive-header h1 { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--navy); }
.archive-header p { color: var(--gray-3); margin-top: 6px; }
.archive-grid { display: flex; flex-direction: column; gap: 24px; }

/* ===== PAGE ===== */
.page-content { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 48px; margin-bottom: 48px; }
.page-content h1 { font-family: var(--serif); font-size: 2rem; color: var(--navy); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--red); }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 36px 0; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: var(--radius); font-size: .85rem; font-weight: 600; border: 1px solid #DDE3EF; transition: all .2s; color: var(--navy); }
.pagination a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination .current { background: var(--red); color: var(--white); border-color: var(--red); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .sidebar-stories { flex-direction: row; }
  .secondary-grid { grid-template-columns: repeat(2, 1fr); }
  .content-area { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar { display: none; }
  .site-header { padding: 10px 20px; }
  .opinion-grid { grid-template-columns: 1fr; }
  .multimedia-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-left { display: none; }
  .secondary-grid { grid-template-columns: 1fr; }
  .article-item { grid-template-columns: 1fr; }
  .article-item img { width: 100%; height: 200px; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-logo img, .custom-logo { width: 180px; }
  .nav-inner { overflow-x: auto; justify-content: flex-start; padding: 0 10px; }
  .nav-inner ul li a { font-size: .72rem; padding: 12px 12px; white-space: nowrap; }
  .story-featured h2 { font-size: 1.4rem; }
  .page-content { padding: 24px; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-section, .secondary-grid, .content-area, .opinion-section, .multimedia-section {
  animation: fadeInUp .5s ease both;
}
