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

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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --dark: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --light: #f1f5f9;
  --border: #e2e8f0;
  --white: #ffffff;
  --accent: #7c3aed;
  --success: #059669;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #f8fafc;
  font-size: 16px;
  line-height: 1.6;
}

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

/* ── HEADER ── */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.5px;
  white-space: nowrap;
}
.logo span { color: var(--dark); }
nav { display: flex; align-items: center; gap: 4px; }
nav a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all .15s;
}
nav a:hover, nav a.active { background: var(--light); color: var(--primary); }
.header-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
}
.header-cta:hover { background: var(--primary-dark) !important; color: var(--white) !important; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}
.hero h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 700; line-height: 1.15; margin-bottom: 20px; }
.hero p { font-size: clamp(16px, 2vw, 20px); opacity: .85; max-width: 600px; margin: 0 auto 32px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--white); color: var(--primary);
  padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 15px;
  transition: all .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
  padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 15px;
  transition: all .2s;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 60px 24px; max-width: 1200px; margin: 0 auto; }

/* ── SECTION TITLES ── */
.section-header { margin-bottom: 32px; }
.section-header h2 { font-size: 26px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.section-header p { color: var(--muted); font-size: 15px; }
.section-line { width: 48px; height: 4px; background: var(--primary); border-radius: 2px; margin-top: 10px; }

/* ── ARTICLE CARDS ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--border);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-category {
  display: inline-block;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px;
  color: var(--primary); background: #eff6ff;
  padding: 4px 10px; border-radius: 20px; margin-bottom: 10px;
}
.card-title { font-size: 17px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; color: var(--dark); }
.card-title a:hover { color: var(--primary); }
.card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.card-meta img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* ── FEATURED CARD ── */
.card-featured {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); margin-bottom: 40px;
  transition: transform .2s;
}
.card-featured:hover { transform: translateY(-3px); }
.card-featured .card-img { height: 100%; min-height: 280px; }
.card-featured .card-body { padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; }
.card-featured .card-title { font-size: 22px; }
.card-featured .card-excerpt { font-size: 15px; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.widget-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--dark); padding-bottom: 12px; border-bottom: 2px solid var(--primary); }
.widget-post { display: flex; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.widget-post:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.widget-post img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.widget-post-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--dark); margin-bottom: 4px; }
.widget-post-title a:hover { color: var(--primary); }
.widget-post-date { font-size: 11px; color: var(--muted); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12px; padding: 5px 12px; border-radius: 20px;
  background: var(--light); color: var(--muted); border: 1px solid var(--border);
  transition: all .15s;
}
.tag:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.about-widget { text-align: center; }
.about-widget img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--primary); }
.about-widget p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── ARTICLE PAGE ── */
.article-hero { background: var(--dark); color: var(--white); padding: 60px 24px 40px; }
.article-hero .container { max-width: 800px; }
.article-hero .cat-badge {
  display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px;
  background: var(--primary); color: var(--white); padding: 5px 14px; border-radius: 20px; margin-bottom: 16px;
}
.article-hero h1 { font-size: clamp(24px, 4vw, 40px); font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.article-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.article-meta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.3); }
.article-meta-text { font-size: 14px; opacity: .85; }
.article-meta-text span { opacity: .6; margin: 0 8px; }
.article-featured-img { width: 100%; height: 420px; object-fit: cover; }

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; max-width: 1200px; margin: 0 auto; padding: 48px 24px; }
.article-content { max-width: 720px; }
.article-content h2 { font-family: 'Merriweather', serif; font-size: 22px; font-weight: 700; color: var(--dark); margin: 36px 0 14px; }
.article-content h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin: 28px 0 10px; }
.article-content p { font-size: 17px; line-height: 1.85; color: #334155; margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 0 0 20px 24px; }
.article-content li { font-size: 17px; line-height: 1.8; color: #334155; margin-bottom: 8px; }
.article-content strong { color: var(--dark); font-weight: 600; }
.article-content blockquote {
  border-left: 4px solid var(--primary); padding: 16px 20px;
  background: #eff6ff; border-radius: 0 8px 8px 0; margin: 28px 0; font-style: italic; color: var(--primary-dark);
}
.article-content .highlight-box {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe; border-radius: 12px; padding: 20px 24px; margin: 28px 0;
}
.article-content .highlight-box p { margin-bottom: 0; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0; padding-top: 28px; border-top: 1px solid var(--border); }
.article-tags span { font-size: 13px; color: var(--muted); margin-right: 4px; }

/* ── CATEGORY PAGE ── */
.page-hero { background: linear-gradient(135deg, #1e3a5f, #2563eb); color: var(--white); padding: 56px 24px; }
.page-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.page-hero p { opacity: .85; font-size: 17px; }
.categories-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 24px; display: flex; gap: 8px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.cat-pill {
  font-size: 13px; font-weight: 500; padding: 7px 16px; border-radius: 20px;
  background: var(--light); color: var(--muted); transition: all .15s;
}
.cat-pill:hover, .cat-pill.active { background: var(--primary); color: var(--white); }

/* ── STATIC PAGES ── */
.page-content { max-width: 800px; margin: 60px auto; padding: 0 24px 80px; }
.page-content h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.page-content .lead { font-size: 18px; color: var(--muted); margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.page-content h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; color: var(--dark); }
.page-content p { font-size: 16px; line-height: 1.8; color: #334155; margin-bottom: 16px; }
.page-content ul { margin: 0 0 16px 24px; }
.page-content li { font-size: 16px; line-height: 1.8; color: #334155; margin-bottom: 6px; }
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 36px; margin-top: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 15px; font-family: inherit; color: var(--text); background: var(--white);
  transition: border .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px #dbeafe; }
.form-group textarea { min-height: 140px; resize: vertical; }
.btn-submit {
  background: var(--primary); color: var(--white); border: none; cursor: pointer;
  padding: 13px 32px; border-radius: 8px; font-size: 15px; font-weight: 600; font-family: inherit;
  transition: background .2s;
}
.btn-submit:hover { background: var(--primary-dark); }

/* ── NEWSLETTER ── */
.newsletter {
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  color: var(--white); padding: 60px 24px; text-align: center; margin-top: 60px;
}
.newsletter h2 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.newsletter p { opacity: .85; margin-bottom: 28px; font-size: 16px; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: 13px 18px; border-radius: 8px; border: none;
  font-size: 15px; font-family: inherit;
}
.newsletter-form button {
  background: var(--white); color: var(--primary); border: none; cursor: pointer;
  padding: 13px 24px; border-radius: 8px; font-weight: 700; font-size: 15px; font-family: inherit;
  white-space: nowrap;
}

/* ── FOOTER ── */
footer { background: var(--dark); color: rgba(255,255,255,.7); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 60px 24px 40px; }
.footer-brand .logo { color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .8px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; transition: color .15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); max-width: 1200px; margin: 0 auto; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ── BREADCRUMB ── */
.breadcrumb { background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 24px; }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb-inner a { color: var(--primary); }
.breadcrumb-inner a:hover { text-decoration: underline; }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.page-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--border); font-size: 14px; font-weight: 500;
  background: var(--white); color: var(--muted); transition: all .15s;
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .card-featured { grid-template-columns: 1fr; }
  .card-featured .card-img { height: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px; z-index: 99; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .header-cta { display: none; }
}

/* ── UTILITIES ── */
.text-primary { color: var(--primary); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.badge-blue { background: #dbeafe; color: var(--primary); }
.badge-purple { background: #ede9fe; color: var(--accent); }
.badge-green { background: #d1fae5; color: var(--success); }
.read-more { color: var(--primary); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; }
.read-more:hover { gap: 8px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
