@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700|Open+Sans:wght@400;500;600&display=swap');

:root {
  --color-primary: #134e4a;
  --color-secondary: #0f766e;
  --color-accent: #f59e0b;
  --color-bg: #f0fdfa;
  --color-text: #0f1a19;
  --color-card: #ffffff;
  --color-border: #ccfbf1;
  --color-muted: #6b7280;
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #134e4a;
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 2rem 0 1rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin: 1.5rem 0 0.75rem; }

p { margin-bottom: 1.25rem; }
a { color: var(--color-secondary); text-decoration: none; }
a:hover { color: var(--color-accent); text-decoration: underline; }

img { max-width: 100%; height: auto; border-radius: var(--radius); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* HEADER */
.site-header {
  background: var(--color-primary);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; align-items: center; }
.site-nav a {
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover { background: rgba(255,255,255,0.15); color: #fff; text-decoration: none; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  text-align: center;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 600px; margin: 1rem auto 0; }

/* BREADCRUMBS */
.breadcrumbs {
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  padding: 0.6rem 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; align-items: center; }
.breadcrumbs li + li::before { content: "›"; margin-right: 0.25rem; color: var(--color-muted); }
.breadcrumbs a { color: var(--color-secondary); }
.breadcrumbs [aria-current="page"] { color: var(--color-text); font-weight: 500; }

/* CARDS */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-category {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.card-title { font-size: 1.05rem; margin-bottom: 0.5rem; line-height: 1.4; }
.card-title a { color: var(--color-text); font-weight: 600; }
.card-title a:hover { color: var(--color-secondary); text-decoration: none; }
.card-desc { font-size: 0.875rem; color: var(--color-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 0.8rem; color: var(--color-muted); margin-top: 0.75rem; }

/* GRIDS */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 1.5rem; }

/* ARTICLE */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.article-content {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.article-hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }
.article-meta { color: var(--color-muted); font-size: 0.875rem; margin-bottom: 1.5rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.meta-item { display: inline-flex; align-items: center; gap: 0.3rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.article-body th, .article-body td { padding: 0.6rem 0.9rem; border: 1px solid var(--color-border); text-align: left; }
.article-body th { background: var(--color-bg); font-weight: 600; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 0.75rem 1.25rem;
  background: var(--color-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-muted);
}
.article-body hr { border: none; border-top: 1px solid var(--color-border); margin: 2rem 0; }

/* SIDEBAR */
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
}
.sidebar-links { list-style: none; }
.sidebar-links li { padding: 0.35rem 0; border-bottom: 1px solid var(--color-border); }
.sidebar-links li:last-child { border: none; }
.sidebar-links a { font-size: 0.875rem; color: var(--color-secondary); }

/* AUTHOR BIO */
.author-bio {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 2.5rem 0;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
}
.author-name { font-weight: 700; margin-bottom: 0.25rem; font-size: 1rem; }
.author-title { font-size: 0.8rem; color: var(--color-accent); font-weight: 600; margin-bottom: 0.5rem; }
.author-text { font-size: 0.875rem; color: var(--color-muted); line-height: 1.6; margin: 0; }

/* CATEGORY HERO */
.category-hero {
  background: var(--color-primary);
  color: #fff;
  padding: 2.5rem 0;
  margin-bottom: 2.5rem;
}
.category-hero h1 { color: #fff; }
.category-hero p { color: rgba(255,255,255,0.8); margin: 0.5rem 0 0; }

/* SECTIONS */
.section { padding: 3rem 0; }
.section-title { font-size: 1.5rem; margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--color-accent); }

/* FOOTER */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.5rem; text-align: center; font-size: 0.8rem; }
.footer-disclaimer { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 0.5rem; }

/* PAGE */
.page-content {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 800px;
  margin: 2rem auto;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  transition: background 0.15s;
}
.hamburger:hover { background: rgba(255,255,255,0.15); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 99;
  }
  .site-nav.nav-open { display: flex; }
  .site-nav a {
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-header .container { position: relative; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.6rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .article-content { padding: 1.25rem; }
  .author-bio { flex-direction: column; }
  .hero { padding: 2.5rem 0 2rem; }
}

/* PAGINATION */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.pagination-btn:hover { background: var(--color-secondary); color: #fff; text-decoration: none; }
.pagination-btn.disabled {
  background: var(--color-border);
  color: var(--color-muted);
  cursor: default;
  pointer-events: none;
}
.pagination-pages { display: flex; gap: 0.3rem; flex-wrap: wrap; justify-content: center; }
.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: background 0.15s, color 0.15s;
}
.pagination-page:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); text-decoration: none; }
.pagination-page.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* SKELETON LOADER */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.card-skeleton { pointer-events: none; }
.skeleton-img {
  height: 180px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px 4px 0 0;
}
.skeleton-line {
  height: 12px;
  margin: 10px 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
}
.skeleton-line.short { width: 55%; }
