@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
  --bg-primary: #F9F7F2;
  --bg-white: #FFFFFF;
  --text-primary: #121212;
  --text-secondary: #4A4A4A;
  --text-muted: #777777;
  --accent: #821019;
  --border-color: #E0DDD5;
  --hairline: #D4D0C8;
}

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

body {
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

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

/* ============ HEADER ============ */
.site-header {
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.site-logo span {
  color: var(--accent);
}

.header-nav a {
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-left: 28px;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--accent);
  opacity: 1;
}

/* ============ MAIN LAYOUT ============ */
.main-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px 24px 60px;
}

/* ============ BREAKING NEWS / HERO ============ */
.hero-section {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 48px;
}

.hero-main .hero-image-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.hero-main .hero-image-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-main:hover .hero-image-wrapper img {
  transform: scale(1.02);
}

.hero-category {
  display: inline-block;
  font-family: 'Lora', serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.hero-main h1 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.hero-main h1 a {
  color: var(--text-primary);
}

.hero-main p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Hero sidebar: 1x6 vertical stack of small cards */
.hero-sidebar-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-small-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.hero-small-card:first-child {
  padding-top: 0;
}

.hero-small-card:last-child {
  border-bottom: none;
}

.hero-small-card .hero-category {
  font-size: 10px;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.hero-small-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.hero-small-card h3 a {
  color: var(--text-primary);
}

/* ============ SECTION HEADERS ============ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--text-primary);
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============ NEWS GRID ============ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  margin-bottom: 56px;
}

.news-card {
  display: flex;
  flex-direction: column;
}

.news-card .card-image {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--border-color);
}

.news-card .card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card:hover .card-image img {
  transform: scale(1.03);
}

.news-card .hero-category {
  margin-bottom: 8px;
}

.news-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.news-card h3 a {
  color: var(--text-primary);
}

.news-card .card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Text-only card (no image) */
.news-card.text-only .card-excerpt {
  margin-top: 4px;
}

/* ============ LAYOUT WITH SIDEBAR ============ */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}

.sidebar-section {
  position: sticky;
  top: 80px;
  align-self: start;
}

.trending-list {
  list-style: none;
}

.trending-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.trending-list li:first-child {
  padding-top: 0;
}

.trending-list li:last-child {
  border-bottom: none;
}

.trending-number {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--border-color);
  line-height: 1;
  margin-right: 12px;
  float: left;
}

.trending-list h4 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.trending-list h4 a {
  color: var(--text-primary);
}

.trending-list .trending-cat {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--bg-white);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 24px;
}

.footer-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-copy {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============ DETAIL PAGE ============ */
.detail-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.detail-meta {
  margin-bottom: 20px;
}

.detail-back {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: inline-block;
}

.detail-back:hover {
  color: var(--accent);
  opacity: 1;
}

.detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.detail-lead {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.detail-image {
  margin-bottom: 32px;
}

.detail-image img {
  width: 100%;
  height: auto;
}

.detail-body {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
}

.detail-body p {
  margin-bottom: 24px;
}

/* Related News */
.related-section {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 2px solid var(--text-primary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.related-card {
  border: 1px solid var(--border-color);
  padding: 16px;
  background: var(--bg-white);
  transition: box-shadow 0.2s ease;
}

.related-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin-bottom: 12px;
}

.related-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.related-card h4 a {
  color: var(--text-primary);
}

/* ============ STATIC PAGES (About/Contact/Policy) ============ */
.page-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--text-primary);
}

.page-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.page-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 12px;
}

.page-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 10px;
}

.page-content p {
  margin-bottom: 18px;
}

.page-content ul,
.page-content ol {
  margin-left: 24px;
  margin-bottom: 18px;
}

.page-content li {
  margin-bottom: 8px;
}

.contact-info {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
}

.contact-info p {
  margin-bottom: 8px;
  font-size: 16px;
}

.contact-info a {
  color: var(--accent);
  word-break: break-all;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar-section {
    position: static;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }
  .header-nav a {
    margin-left: 18px;
    font-size: 12px;
  }
  .site-logo {
    font-size: 26px;
  }
  .hero-section {
    grid-template-columns: 1fr;
  }
  .hero-main h1 {
    font-size: 26px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .detail-title {
    font-size: 30px;
  }
  .detail-body {
    font-size: 17px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .page-title {
    font-size: 30px;
  }
}
