/* ============================================================
   PRESSBULK — Editorial Theme CSS
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #0a0a0a;
  --dark:    #1a1a1a;
  --body:    #2d2d2d;
  --muted:   #6b7280;
  --faint:   #9ca3af;
  --border:  #e5e7eb;
  --bg:      #fafaf8;
  --white:   #ffffff;
  --cream:   #f4f1eb;
  --accent:  #c0392b;
  --accent2: #8b0000;

  --ff-serif: 'Source Serif 4', 'Georgia', serif;
  --ff-head:  'Playfair Display', 'Georgia', serif;
  --ff-sans:  'Inter', system-ui, sans-serif;
}

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

body {
  font-family: var(--ff-serif);
  background: var(--bg);
  color: var(--body);
  line-height: 1.7;
  font-size: 1rem;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

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

/* ── BANNER ── */
.banner-wrap { text-align: center; padding: 12px 0; background: var(--cream); border-bottom: 1px solid var(--border); }
.banner-header { border-top: none; }
.banner-footer { border-top: 1px solid var(--border); border-bottom: none; }
.banner-in-content { margin: 32px 0; padding: 20px; background: var(--cream); border-radius: 4px; }
.sidebar-banner { margin-bottom: 24px; }

/* ── HEADER ── */
.site-header {
  background: var(--black);
  border-bottom: 3px solid var(--accent);
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.site-logo { flex-shrink: 0; }
.logo-text {
  font-family: var(--ff-head);
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1;
}
.logo-img { max-height: 48px; width: auto; }

.header-date {
  font-family: var(--ff-sans);
  font-size: 12px;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ── NAV ── */
.site-nav {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar { display: none; }

.nav-link {
  display: block;
  padding: 11px 16px;
  font-family: var(--ff-sans);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .8px;
  white-space: nowrap;
  transition: color .15s;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  border-bottom-color: var(--accent);
}

/* ── MAIN CONTENT ── */
.main-content { padding: 40px 0; }

/* ── CONTENT GRID ── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ── FEATURED SECTION ── */
.featured-section {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin-bottom: 48px;
}

.hero-article { display: flex; flex-direction: column; gap: 16px; }

.hero-img-wrap { display: block; overflow: hidden; border-radius: 2px; }
.hero-img { width: 100%; height: 380px; object-fit: cover; transition: transform .3s; }
.hero-img-wrap:hover .hero-img { transform: scale(1.02); }

.hero-body { display: flex; flex-direction: column; gap: 12px; }

.hero-title {
  font-family: var(--ff-head);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--dark);
}

.hero-title a:hover { color: var(--accent); }

.hero-excerpt {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.featured-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 1px solid var(--border);
  padding-left: 32px;
}

.featured-card {
  display: flex;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.featured-card:last-child { border-bottom: none; padding-bottom: 0; }

.fc-img-wrap { flex-shrink: 0; width: 80px; height: 60px; overflow: hidden; border-radius: 2px; }
.fc-img { width: 100%; height: 100%; object-fit: cover; }

.fc-body { display: flex; flex-direction: column; gap: 5px; }
.fc-title { font-family: var(--ff-head); font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--dark); }
.fc-title a:hover { color: var(--accent); }
.fc-date { font-family: var(--ff-sans); font-size: 11px; color: var(--faint); }

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 3px solid var(--dark);
  margin-bottom: 40px;
  position: relative;
}

.divider::after {
  content: 'Latest News';
  position: absolute;
  top: -11px;
  left: 0;
  background: var(--dark);
  color: white;
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 12px;
}

/* ── ARTICLE CARD ── */
.article-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.article-card:last-child { border-bottom: none; }

.ac-img-wrap { overflow: hidden; border-radius: 2px; height: 130px; }
.ac-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ac-img-wrap:hover .ac-img { transform: scale(1.04); }

.ac-body { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.ac-title { font-family: var(--ff-head); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--dark); }
.ac-title a:hover { color: var(--accent); }
.ac-excerpt { font-size: 14px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── ARTICLE META ── */
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-sans);
  font-size: 12px;
  color: var(--faint);
}

.article-meta time { color: var(--muted); }

/* ── CAT BADGE ── */
.cat-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-family: var(--ff-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 3px 8px;
  border-radius: 2px;
}

.cat-badge:hover { background: var(--accent2); color: white; }

.cat-badge-sm { font-size: 9px; padding: 2px 6px; }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 20px; }

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 24px;
}

.widget-title {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--dark);
  margin-bottom: 16px;
}

.sidebar-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar-item:last-child { border-bottom: none; }

.sidebar-item-title {
  font-family: var(--ff-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}
.sidebar-item-title a:hover { color: var(--accent); }
.sidebar-item-date { font-family: var(--ff-sans); font-size: 11px; color: var(--faint); }

.cat-list { list-style: none; }
.cat-list li { border-bottom: 1px solid var(--border); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  display: block;
  padding: 9px 0;
  font-family: var(--ff-sans);
  font-size: 13px;
  color: var(--body);
  transition: color .15s;
}
.cat-list a:hover,
.cat-list li.active a { color: var(--accent); font-weight: 600; }

/* ── ARTICLE FULL ── */
.article-full { min-width: 0; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-sans);
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 16px;
}
.breadcrumb a:hover { color: var(--accent); }

.article-title {
  font-family: var(--ff-head);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--dark);
  margin: 12px 0 16px;
}

.article-lead {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 16px 0;
}

.article-meta-full {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 16px 0 24px;
}

.article-featured-img {
  margin: 24px 0;
  border-radius: 2px;
  overflow: hidden;
}

.article-featured-img img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.article-content {
  font-family: var(--ff-serif);
  font-size: 18px;
  line-height: 1.8;
  color: var(--body);
}

.article-content h2 { font-family: var(--ff-head); font-size: 26px; font-weight: 700; color: var(--dark); margin: 32px 0 12px; }
.article-content h3 { font-family: var(--ff-head); font-size: 22px; font-weight: 700; color: var(--dark); margin: 28px 0 10px; }
.article-content p { margin-bottom: 20px; }
.article-content a { color: var(--accent); text-decoration: underline; }
.article-content blockquote { border-left: 3px solid var(--accent); padding: 12px 20px; margin: 28px 0; background: var(--cream); font-style: italic; color: var(--muted); }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 20px; }
.article-content li { margin-bottom: 6px; }
.article-content img { max-width: 100%; border-radius: 2px; margin: 20px 0; }
.article-content strong { font-weight: 700; color: var(--dark); }

/* ── RELATED ── */
.related-articles { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--dark); }
.related-title { font-family: var(--ff-sans); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-card { display: flex; flex-direction: column; gap: 8px; }
.related-img { width: 100%; height: 120px; object-fit: cover; border-radius: 2px; }
.related-card-title { font-family: var(--ff-head); font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--dark); }
.related-card-title a:hover { color: var(--accent); }
.related-card time { font-family: var(--ff-sans); font-size: 11px; color: var(--faint); }

/* ── CAT HEADER ── */
.cat-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--dark);
}
.cat-title { font-family: var(--ff-head); font-size: 32px; font-weight: 900; color: var(--dark); }
.cat-count { font-family: var(--ff-sans); font-size: 13px; color: var(--faint); }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}
.page-btn {
  display: inline-block;
  padding: 8px 20px;
  background: var(--dark);
  color: white;
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 600;
  border-radius: 2px;
  transition: background .15s;
}
.page-btn:hover { background: var(--accent); color: white; }
.page-info { font-family: var(--ff-sans); font-size: 13px; color: var(--faint); }

/* ── STATIC PAGE ── */
.static-page { max-width: 720px; margin: 0 auto; padding: 40px 0; }
.static-title { font-family: var(--ff-head); font-size: 36px; font-weight: 900; color: var(--dark); margin-bottom: 32px; padding-bottom: 16px; border-bottom: 2px solid var(--dark); }
.static-content { font-family: var(--ff-serif); font-size: 17px; line-height: 1.8; color: var(--body); }
.static-content p { margin-bottom: 16px; }

/* ── 404 ── */
.error-page { text-align: center; padding: 80px 0; }
.error-page h1 { font-family: var(--ff-head); font-size: 96px; font-weight: 900; color: var(--dark); line-height: 1; }
.error-page p { font-size: 18px; color: var(--muted); margin: 16px 0 32px; }
.btn-home { display: inline-block; padding: 12px 28px; background: var(--dark); color: white; font-family: var(--ff-sans); font-weight: 600; border-radius: 2px; }
.btn-home:hover { background: var(--accent); color: white; }

/* ── NO ARTICLES ── */
.no-articles { padding: 60px 0; text-align: center; color: var(--muted); }
.no-articles h2 { font-family: var(--ff-head); font-size: 24px; margin-bottom: 8px; color: var(--dark); }
.no-more { text-align: center; color: var(--faint); padding: 20px; font-family: var(--ff-sans); font-size: 13px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 48px 0 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo {
  font-family: var(--ff-head);
  font-size: 22px;
  font-weight: 900;
  color: white;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  font-size: 12px;
  font-weight: 700;
  border-radius: 2px;
  transition: all .15s;
}
.footer-social a:hover { background: var(--accent); color: white; }

.footer-nav-ttl {
  font-family: var(--ff-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.3);
  margin-bottom: 16px;
}

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a {
  font-family: var(--ff-sans);
  font-size: 13px;
  color: rgba(255,255,255,.5);
  transition: color .15s;
}
.footer-nav a:hover { color: white; }

.footer-bottom {
  padding: 16px 0;
  font-family: var(--ff-sans);
  font-size: 12px;
  color: rgba(255,255,255,.25);
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  border-top: 2px solid var(--accent);
  z-index: 999;
  padding: 16px 20px;
}
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cookie-inner p { font-family: var(--ff-sans); font-size: 13px; color: rgba(255,255,255,.7); }
.cookie-inner a { color: white; text-decoration: underline; }
.cookie-btn {
  flex-shrink: 0;
  padding: 8px 24px;
  background: var(--accent);
  color: white;
  border: none;
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 2px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .featured-section { grid-template-columns: 1fr; }
  .featured-sidebar { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 24px; display: grid; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .nav-toggle { display: block; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-link { padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.06); border-left: none; }
  .header-date { display: none; }
  .article-card { grid-template-columns: 1fr; }
  .ac-img-wrap { height: 200px; }
  .article-title { font-size: 26px; }
  .hero-img { height: 220px; }
  .hero-title { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .featured-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 22px; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
}
