:root {
  --primary: #B8456C;
  --primary-dark: #8E2A4C;
  --primary-light: #FCEAF1;
  --accent: #D85A30;
  --text: #1A1A1A;
  --text-muted: #5F5E5A;
  --text-tertiary: #888780;
  --bg: #FFFFFF;
  --bg-surface: #FAF9F5;
  --bg-card: #FFFFFF;
  --border: #E8E5DD;
  --border-strong: #D3D1C7;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --radius: 10px;
  --radius-lg: 14px;
  --max-w: 1200px;
  --article-w: 720px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Charter", "Iowan Old Style", "Georgia", "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-dark); }

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* =========== HEADER =========== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(255,255,255,0.96);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-text .tld { color: var(--primary); }
.logo-sub {
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}
.main-nav a.active::after,
.main-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  transition: all 0.15s;
  min-width: 220px;
}
.search-trigger:hover { border-color: var(--border-strong); background: var(--bg); }
.search-trigger svg { width: 14px; height: 14px; opacity: 0.6; }

.mobile-menu-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.mobile-menu-toggle svg { width: 24px; height: 24px; }

/* =========== HERO / FEATURED =========== */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.section-label::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
}
.section-label span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.section-label .more {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-top: 36px;
  margin-bottom: 56px;
}

.hero-main {
  position: relative;
  height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
}
.hero-main img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-main .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.8) 100%);
}
.hero-main .badge {
  position: absolute; top: 18px; left: 18px;
  background: rgba(255,255,255,0.95);
  color: var(--primary-dark);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-main .content {
  position: absolute; bottom: 24px; left: 28px; right: 28px;
  color: white;
}
.hero-main h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.hero-main .meta { font-size: 13px; opacity: 0.85; }
.hero-main a { color: white; }

.hero-side { display: flex; flex-direction: column; gap: 18px; }
.hero-side-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.hero-side-item:last-child { border-bottom: none; padding-bottom: 0; }
.hero-side-item .thumb {
  width: 96px; height: 96px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-surface);
}
.hero-side-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-side-item .cat {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-weight: 500;
}
.hero-side-item h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
}
.hero-side-item h3 a { color: var(--text); }
.hero-side-item h3 a:hover { color: var(--primary); }
.hero-side-item .meta { font-size: 12px; color: var(--text-tertiary); }

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

.article-card {
  display: flex;
  flex-direction: column;
}
.article-card .image {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--bg-surface);
}
.article-card .image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.article-card:hover .image img { transform: scale(1.04); }
.article-card .image .cat-badge {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(255,255,255,0.95);
  color: var(--primary-dark);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.article-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--primary); }
.article-card .excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
}
.article-card .meta {
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.article-card .meta .dot { width: 3px; height: 3px; background: var(--border-strong); border-radius: 50%; }

/* =========== CATEGORY PILLS =========== */
.category-pills-section {
  padding: 40px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.category-pill:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.category-pill .count {
  background: var(--bg-surface);
  color: var(--text-tertiary);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.category-pill:hover .count { background: rgba(255,255,255,0.2); color: white; }

/* =========== PAGINATION =========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 40px 0 56px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.15s;
}
.pagination a:hover { background: var(--bg-surface); border-color: var(--border-strong); }
.pagination .current { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .ellipsis { border: none; }

/* =========== ARTICLE PAGE =========== */
.article-hero {
  padding: 32px 0 24px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-tertiary); }

.article-category {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.article-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 880px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.article-meta .author { font-weight: 500; color: var(--text); }
.article-meta .dot { width: 4px; height: 4px; background: var(--border-strong); border-radius: 50%; }

.article-featured-img {
  margin: 0 -20px 40px;
  max-width: none;
}
.article-featured-img img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
@media (min-width: 768px) {
  .article-featured-img {
    margin: 0 0 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
}

.article-body {
  max-width: var(--article-w);
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: #2a2a2a;
}

.article-body p {
  margin: 0 0 1.4em;
}
.article-body p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 4em;
  font-weight: 600;
  line-height: 0.85;
  float: left;
  margin: 0.08em 0.1em 0 0;
  color: var(--primary);
}
.article-body h2 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 2.2em 0 0.8em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--border);
}
.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin: 1.8em 0 0.6em;
  color: var(--text);
}
.article-body h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 1.5em 0 0.5em;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.4em;
  padding-left: 1.5em;
}
.article-body ul li, .article-body ol li {
  margin-bottom: 0.5em;
  padding-left: 0.3em;
}
.article-body ul li::marker { color: var(--primary); }
.article-body strong { font-weight: 600; color: var(--text); }
.article-body em { font-style: italic; }
.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(15, 110, 86, 0.3);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: all 0.15s;
}
.article-body a:hover {
  text-decoration-color: var(--primary);
  text-decoration-thickness: 2px;
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.4em auto;
  width: 60%;
}
.article-body blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.5em 0 0.5em 1.6em;
  margin: 1.8em 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}
.article-body img {
  border-radius: var(--radius);
  margin: 1.8em auto;
}
.article-body figure {
  margin: 1.8em 0;
}
.article-body figure figcaption {
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* CTA box at end of article */
.article-cta {
  max-width: var(--article-w);
  margin: 60px auto 40px;
  padding: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  color: white;
  text-align: center;
}
.article-cta h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.article-cta p {
  opacity: 0.92;
  margin-bottom: 18px;
  font-size: 15px;
}
.article-cta a.btn {
  display: inline-block;
  background: white;
  color: var(--primary-dark);
  padding: 11px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s;
}
.article-cta a.btn:hover { transform: translateY(-1px); color: var(--primary-dark); }

/* Related articles */
.related-section {
  max-width: var(--max-w);
  margin: 0 auto 60px;
  padding: 0 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* =========== CATEGORY PAGE HEADER =========== */
.cat-header {
  padding: 50px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.cat-header h1 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.cat-header p {
  font-size: 16px;
  color: var(--text-muted);
}

/* =========== SEARCH =========== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.search-overlay.open { display: flex; }
.search-modal {
  width: 100%;
  max-width: 640px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.search-input-wrap svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  background: transparent;
  color: var(--text);
}
.search-close {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}
.search-results {
  max-height: 60vh;
  overflow-y: auto;
}
.search-result {
  display: block;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.1s;
}
.search-result:hover { background: var(--bg-surface); }
.search-result .cat {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.search-result .title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.search-result .snippet {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result mark {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0 2px;
  border-radius: 2px;
}
.search-empty, .search-hint {
  padding: 32px 22px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* =========== FOOTER =========== */
.site-footer {
  background: #0F1A1F;
  color: rgba(255,255,255,0.85);
  padding: 50px 0 30px;
  margin-top: auto;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--primary); }
.footer-brand .logo-text { color: white; }
.footer-brand .logo-text .tld { color: var(--primary); }
.footer-brand .logo-sub { color: rgba(255,255,255,0.5); }
.footer-brand p {
  margin-top: 14px;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  line-height: 1.6;
  max-width: 340px;
}
.footer-owner {
  margin-top: 36px;
  padding: 18px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
}
.footer-owner strong { color: white; }
.footer-owner a { color: var(--primary); font-weight: 500; }
.footer-owner a:hover { color: white; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}

/* =========== RESPONSIVE =========== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { height: 340px; }
  .hero-main h2 { font-size: 22px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .article-title { font-size: 32px; }
}

@media (max-width: 640px) {
  .header-inner { padding: 12px 0; }
  .main-nav { display: none; }
  .search-trigger { min-width: 0; padding: 8px; }
  .search-trigger span { display: none; }
  .mobile-menu-toggle { display: block; }
  .logo-sub { display: none; }
  .article-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .article-title { font-size: 26px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 22px; }
  .article-body h3 { font-size: 18px; }
  .hero-side-item { grid-template-columns: 80px 1fr; }
  .hero-side-item .thumb { width: 80px; height: 80px; }
  .cat-header h1 { font-size: 28px; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 150;
  display: none;
  flex-direction: column;
  padding: 80px 24px 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-menu-close svg { width: 28px; height: 28px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.search-modal { animation: fadeIn 0.18s ease-out; }
