/* ==========================================================
   Vurét Health Blog — Index Page Styles
   Editorial blog design system
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Inter:wght@400;500;600;700&display=swap');

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1a2c5b;
  --navy-mid: #0d1b2a;
  --teal: #c9a961;
  --teal-dark: #b8952f;
  --text: #1a1a2e;
  --text-light: #555e6d;
  --border: #e4e8ef;
  --bg: #f7f8fc;
  --white: #ffffff;
  --card-shadow: 0 2px 16px rgba(10, 22, 40, .08);
  --serif: 'Merriweather', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Site Header ── */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--teal);
  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: 16px;
}

.logo {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.3px;
}

.logo span {
  color: var(--teal);
}

.header-cta {
  background: #6b2c3e;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .2s;
}

.header-cta:hover {
  background: #5a2433;
}

/* ── Masthead / Hero ── */
.blog-masthead {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2c5b 100%);
  color: #fff;
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(201, 169, 97, .18) 0%, transparent 65%);
  pointer-events: none;
}

.masthead-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.masthead-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(201, 169, 97, .4);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 20px;
}

.blog-masthead h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -.5px;
}

.blog-masthead p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .75);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.masthead-divider {
  width: 48px;
  height: 3px;
  background: var(--teal);
  border-radius: 3px;
  margin: 0 auto;
}

/* ── Category Filter Bar ── */
.category-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.category-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  padding: 12px 0;
  white-space: nowrap;
}

.cat-pill {
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  color: var(--text-light);
  background: transparent;
  border: 1px solid var(--border);
  cursor: default;
  transition: all .2s;
}

.cat-pill.active,
.cat-pill:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ── Main Layout ── */
.blog-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 24px 80px;
}

/* ── Featured Article (first card, full width) ── */
.featured-article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--card-shadow);
  margin-bottom: 48px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s, transform .25s;
}

.featured-article:hover {
  box-shadow: 0 8px 40px rgba(10, 22, 40, .15);
  transform: translateY(-2px);
}

.featured-image-wrap {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3060 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 32px;
}

.featured-icon {
  font-size: 5rem;
  opacity: .7;
}

.featured-content {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.featured-content h2 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--text);
}

.featured-content p {
  font-size: .975rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 24px;
}

.featured-meta {
  font-size: .8rem;
  color: #999;
  display: flex;
  gap: 12px;
  align-items: center;
}

.featured-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ccc;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-top: 4px;
}

.read-more:hover {
  gap: 10px;
}

/* ── Section Headers ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-header h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Article Grid ── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s, transform .25s;
}

.article-card:hover {
  box-shadow: 0 8px 32px rgba(10, 22, 40, .14);
  transform: translateY(-3px);
}

.card-thumb {
  height: 140px;
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2c5b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  flex-shrink: 0;
}

.card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.card-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.card-excerpt {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.65;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.card-read-time {
  font-size: .75rem;
  color: #aaa;
}

.card-arrow {
  font-size: .8rem;
  font-weight: 600;
  color: var(--teal-dark);
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2c5b 100%);
  border-radius: 16px;
  padding: 56px 48px;
  text-align: center;
  color: #fff;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(201, 169, 97, .1);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(201, 169, 97, .07);
  pointer-events: none;
}

.cta-banner-inner {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
}

.cta-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.cta-banner h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 1rem;
  color: rgba(255, 255, 255, .75);
  line-height: 1.7;
  margin-bottom: 32px;
}

.btn-cta {
  display: inline-block;
  background: #6b2c3e;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 38px;
  border-radius: 8px;
  transition: background .2s, transform .2s;
  letter-spacing: .01em;
}

.btn-cta:hover {
  background: #5a2433;
  transform: translateY(-1px);
}

.cta-sub {
  margin-top: 16px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .55);
  text-align: center;
  padding: 36px 24px;
  font-size: .82rem;
  line-height: 1.9;
}

.site-footer a {
  color: var(--teal);
}

.site-footer a:hover {
  text-decoration: underline;
}

.disclaimer {
  margin-top: 8px;
  font-size: .75rem;
  color: rgba(255, 255, 255, .3);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-image-wrap {
    min-height: 180px;
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .blog-masthead {
    padding: 48px 20px 56px;
  }

  .cta-banner {
    padding: 40px 24px;
  }

  .featured-content {
    padding: 28px 24px;
  }

  .header-inner {
    padding: 0 16px;
  }
}