/* ============================================================
   CSS CUSTOM PROPERTIES (LIGHT + DARK THEMES)
   ============================================================ */
:root {
  --accent: #0047AB;
  --accent-hover: #003a8c;
  --accent-light: #e8eef8;

  --bg: #f5f5f5;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --bg-nav: #0047AB;
  --bg-footer: #111827;

  --text: #1a1a2e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --text-nav: #ffffff;
  --text-footer: #d1d5db;

  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);

  --radius: 8px;
  --radius-sm: 4px;
  --font-main: 'Inter', 'Noto Sans', sans-serif;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-header: #1e293b;
  --bg-nav: #1e3a6e;

  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --border: #334155;
  --shadow: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,.25);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.3);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  transition: background var(--transition), color var(--transition);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  box-shadow: var(--shadow);
  transition: background var(--transition);
}

/* Header top bar */
.header-top {
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-toggle, .search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.theme-toggle:hover, .search-toggle:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }

/* Header main (logo) */
.header-main { padding: 16px 0; }
.header-main-inner {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 26px;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.logo-icon { font-size: 28px; }
.site-tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* Nav */
.site-nav { background: var(--bg-nav); }
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  display: block;
  padding: 14px 16px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* Search bar */
.search-bar-wrap {
  display: none;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-header);
}
.search-bar-wrap.open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--accent); }
.search-btn {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--accent-hover); }

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
.hero-carousel {
  position: relative;
  overflow: hidden;
  max-height: 520px;
  background: #000;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
  position: relative;
  min-width: 100%;
  height: 520px;
  overflow: hidden;
}
.slide-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 6s ease;
}
.carousel-slide.active .slide-img { transform: scale(1); }

.slide-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 48px;
  color: #fff;
  z-index: 2;
}
.slide-category {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.slide-title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  max-width: 700px;
}
.slide-title a { color: #fff; }
.slide-title a:hover { text-decoration: underline; }
.slide-excerpt {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  max-width: 580px;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 3;
}
.carousel-btn:hover { background: rgba(255,255,255,.3); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  right: 48px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: background var(--transition), transform var(--transition);
}
.dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.site-main { padding: 48px 0; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { margin-bottom: 48px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
}
.section-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
}
.see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--transition);
}
.see-all:hover { color: var(--accent-hover); }

/* ============================================================
   CARDS GRID
   ============================================================ */
.cards-grid { display: grid; gap: 24px; }
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
}
.card-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card-img-wrap:hover .card-img { transform: scale(1.05); }

.card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  z-index: 1;
}

.card-body { padding: 16px; }
.card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}
.card-title a:hover { color: var(--accent); }
.card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
}

/* Featured card (first in editors picks) */
.card--featured .card-title { font-size: 17px; }

/* Horizontal card */
.card--horizontal {
  display: flex;
  flex-direction: row;
}
.card-img-wrap--sm { flex: 0 0 160px; }
.card-img-wrap--sm .card-img { aspect-ratio: 4/3; height: 100%; }
.card--horizontal .card-body { flex: 1; }

/* ============================================================
   TRENDING LIST
   ============================================================ */
.trending-list { display: flex; flex-direction: column; gap: 0; }
.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.trending-item:last-child { border-bottom: none; }

.trending-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
}
.trending-body { flex: 1; }
.trending-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 6px 0 8px;
}
.trending-title a:hover { color: var(--accent); }

.trending-img-wrap { flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; }
.trending-img { width: 100px; height: 75px; object-fit: cover; }

/* ============================================================
   SIDEBAR / WIDGETS
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.widget {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.widget-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
}

/* Newsletter widget */
.widget--newsletter { background: var(--accent); color: #fff; }
.widget--newsletter .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,.3); }
.widget-desc { font-size: 13px; color: rgba(255,255,255,.85); margin-bottom: 16px; margin-top: 8px; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.nl-input {
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  background: rgba(255,255,255,.15);
  color: #fff;
}
.nl-input::placeholder { color: rgba(255,255,255,.6); }
.nl-input:focus { background: rgba(255,255,255,.25); }
.nl-btn {
  padding: 10px;
  background: #fff;
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  transition: background var(--transition);
}
.nl-btn:hover { background: #e8eef8; }

/* Popular posts */
.widget--popular .widget-title { margin-bottom: 16px; }
.popular-list { display: flex; flex-direction: column; gap: 16px; }
.popular-item { display: flex; gap: 12px; align-items: flex-start; }
.popular-img-wrap { flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; }
.popular-img { width: 72px; height: 54px; object-fit: cover; }
.popular-body { flex: 1; }
.popular-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 4px;
}
.popular-title:hover { color: var(--accent); }
.popular-date { font-size: 11px; color: var(--text-light); }

/* Tags */
.widget--tags .widget-title { margin-bottom: 16px; }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.tag:hover { background: var(--accent); color: #fff; }
[data-theme="dark"] .tag { background: rgba(0,71,171,.2); }

/* ============================================================
   MORE ARTICLES
   ============================================================ */
.more-articles {
  padding: 0 0 56px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-footer);
  color: var(--text-footer);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-logo--footer { color: #fff; }
.footer-desc {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-footer);
  line-height: 1.7;
}
.footer-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: var(--text-footer);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-main-inner { flex-direction: column; gap: 4px; }
  .nav-list { display: none; flex-direction: column; width: 100%; }
  .nav-list.open { display: flex; }
  .nav-link { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-toggle { display: flex; }

  .slide-content { padding: 24px; }
  .carousel-slide { height: 380px; }

  .cards-grid--3 { grid-template-columns: 1fr; }
  .cards-grid--2 { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }

  .card--horizontal { flex-direction: column; }
  .card-img-wrap--sm { flex: none; }
  .card-img-wrap--sm .card-img { height: auto; aspect-ratio: 3/2; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cards-grid--4 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .carousel-slide { height: 300px; }
  .site-logo { font-size: 22px; }
  .carousel-dots { right: 16px; bottom: 60px; }
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */

/* Two-column layout: content + sidebar */
.article-page {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  padding: 40px 0;
}

/* Hero image */
.article-hero {
  width: 100%;
  background: var(--border);
  overflow: hidden;
  max-height: 500px;
}
.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 500px;
}

/* Breadcrumb */
.breadcrumb-wrap {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--accent); }
.bc-sep { color: var(--text-light); }

/* Article header */
.article-header {
  margin-bottom: 32px;
}
.article-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin: 12px 0 20px;
}
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.article-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.article-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.article-date-read {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.meta-dot { color: var(--text-light); }

/* Article body typography */
.article-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}
.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-light);
}
.article-body p { margin-bottom: 20px; }
.article-body p.lead {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 24px;
}
.article-body ul,
.article-body ol {
  margin: 0 0 20px 24px;
}
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 28px 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 18px;
  color: var(--text);
}
.article-body a {
  color: var(--accent);
  text-decoration: underline;
}
.article-body strong { font-weight: 700; }
.article-body em { font-style: italic; }

/* Article footer */
.article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Share buttons */
.share-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
}
.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Article sidebar */
.article-sidebar { position: sticky; top: 20px; }

/* Related articles widget */
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.related-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.related-img-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.related-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.related-img-wrap:hover img { transform: scale(1.05); }
.related-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.related-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-title:hover { color: var(--accent); }
.related-date {
  font-size: 11px;
  color: var(--text-light);
}

/* ============================================================
   CATEGORY PAGE
   ============================================================ */

.category-page {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding: 40px 0;
}

/* Category banner */
.cat-header {
  background: linear-gradient(135deg, var(--accent) 0%, #003a8c 100%);
  color: #fff;
  padding: 40px 0;
}
.cat-header .breadcrumb { color: rgba(255,255,255,.7); }
.cat-header .breadcrumb a { color: rgba(255,255,255,.8); }
.cat-header .breadcrumb a:hover { color: #fff; }
.cat-header .bc-sep { color: rgba(255,255,255,.5); }
.cat-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin: 12px 0 8px;
  color: #fff;
}
.cat-desc {
  font-size: 16px;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin-bottom: 8px;
}
.cat-count {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.15);
  padding: 3px 10px;
  border-radius: 20px;
}

/* No results */
.no-results {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
}

/* Active tag */
.tag--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================================================
   STATIC PAGES (About / Contact)
   ============================================================ */

.static-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0;
}
.static-page--contact {
  max-width: 680px;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}
.team-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
}
.team-role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 10px;
}
.team-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Contact form */
.contact-intro { margin-bottom: 32px; }
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; gap: 20px; }
.form-row--2 { grid-template-columns: 1fr 1fr; }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.form-input {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-main);
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus { border-color: var(--accent); }
.form-select { cursor: pointer; }
.form-textarea { resize: vertical; min-height: 140px; }
.contact-submit {
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  align-self: flex-start;
}
.contact-submit:hover { background: var(--accent-hover); }
.form-success {
  padding: 16px;
  background: #d1fae5;
  color: #065f46;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
}

/* ============================================================
   RESPONSIVE — ARTICLE / CATEGORY / STATIC
   ============================================================ */

@media (max-width: 1024px) {
  .article-page { grid-template-columns: 1fr 280px; gap: 32px; }
  .category-page { grid-template-columns: 1fr 260px; gap: 32px; }
}

@media (max-width: 768px) {
  .article-page {
    grid-template-columns: 1fr;
  }
  .article-sidebar { position: static; }
  .category-page { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .form-row--2 { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .article-title { font-size: 24px; }
}

@media (max-width: 480px) {
  .article-page { padding: 24px 0; }
  .category-page { padding: 24px 0; }
  .static-page { padding: 24px 0; }
  .cat-header { padding: 28px 0; }
}
