/* ============================================================
   blog.css — Ubuntu Guard Blog
   Loaded after /styles-v3.css
   Covers both blog listing pages and individual article pages.
   ============================================================ */

/* ── Design tokens ────────────────────────────────────────── */
:root {
  /* Listing / card tokens */
  --card-bg:           #24272a;
  --card-hover:        #2b2f34;
  --gradient-blog:     linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-accent) 100%);
  --border-blog:       rgba(26, 127, 200, 0.18);
  --focus-ring-blog:   0 0 0 3px rgba(26, 127, 200, 0.4);
  --shadow-card:       0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.32);
  /* Article tokens */
  --bright-green:      var(--teal-primary);
  --soft-teal:         var(--teal-accent);
  --accent-red:        var(--coral-accent);
  --warning-yellow:    #f4c542;
  --code-bg:           #131619;
  --border-subtle:     rgba(26, 127, 200, 0.15);
}

/* ── Focus States ──────────────────────────────────────────── */
*:focus-visible {
  outline: 2px solid var(--teal-primary);
  outline-offset: 2px;
  border-radius: 6px;
  box-shadow: var(--focus-ring-blog);
}

/* ── WhatsApp Float ────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 900;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.wa-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.wa-float:hover,
.wa-float:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

/* ══════════════════════════════════════════════════════════
   ARTICLE PAGES
   ══════════════════════════════════════════════════════════ */

/* ── Article Blog Header (title + meta strip) ──────────────── */
.blog-header {
  background: linear-gradient(180deg, var(--accent-gray, #232629) 0%, var(--dark-bg) 100%);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-header h1 {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1.55rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--off-white);
  max-width: 820px;
  margin: 0 auto 1rem;
  line-height: 1.25;
}

.blog-meta {
  color: rgba(245, 245, 245, 0.5);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

/* ── Article Content Wrapper ───────────────────────────────── */
.blog-content {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem) 4rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--muted-gray);
}

.blog-content p {
  margin: 1.35rem 0;
}

.blog-content h2 {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--teal-primary);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.blog-content h3 {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--teal-accent);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.blog-content strong {
  font-weight: 700;
  color: var(--off-white);
}

.blog-content em {
  color: var(--muted-gray);
  font-style: italic;
}

.blog-content ul,
.blog-content ol {
  padding-left: 1.5rem;
  margin: 1.25rem 0;
  line-height: 1.85;
}

.blog-content li {
  margin-bottom: 0.65rem;
}

.blog-content a {
  color: var(--teal-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(59, 189, 198, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.blog-content a:hover {
  color: var(--teal-primary);
  border-bottom-color: var(--teal-primary);
}

/* ── Article Meta Info Bar ─────────────────────────────────── */
.article-meta-info {
  text-align: center;
  color: rgba(245, 245, 245, 0.55);
  font-size: 0.88rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-meta-info span {
  margin: 0 0.4rem;
}

.reading-time {
  display: inline-block;
  background: rgba(26, 127, 200, 0.1);
  border: 1px solid rgba(26, 127, 200, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: var(--teal-accent);
}

/* ── Callout Boxes ─────────────────────────────────────────── */
.emphasis {
  background: linear-gradient(to right, rgba(26, 127, 200, 0.1), transparent);
  border-left: 3px solid var(--teal-primary);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.warning-box {
  background: linear-gradient(to right, rgba(244, 197, 66, 0.08), transparent);
  border-left: 3px solid #f4c542;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.danger-box {
  background: linear-gradient(to right, rgba(255, 107, 107, 0.08), transparent);
  border-left: 3px solid var(--coral-accent);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.emphasis p:first-child,
.warning-box p:first-child,
.danger-box p:first-child { margin-top: 0; }

.emphasis p:last-child,
.warning-box p:last-child,
.danger-box p:last-child { margin-bottom: 0; }

/* ── Stats Grid ────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Exo 2', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--teal-primary);
  display: block;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted-gray);
}

/* ── Tables ────────────────────────────────────────────────── */
.ranking-table {
  margin: 2rem 0;
  width: 100%;
  border-collapse: collapse;
  background: rgba(26, 127, 200, 0.04);
  border-radius: 8px;
  overflow: hidden;
}

.ranking-table th {
  background: rgba(26, 127, 200, 0.12);
  padding: 0.9rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--teal-primary);
  border-bottom: 2px solid rgba(26, 127, 200, 0.28);
}

.ranking-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--muted-gray);
}

.ranking-table tr:last-child td {
  border-bottom: none;
}

.ranking-table tr.highlight {
  background: rgba(26, 127, 200, 0.08);
  font-weight: 600;
  color: var(--off-white);
}

.rank-number {
  font-weight: 700;
  color: var(--teal-primary);
  font-size: 1.05rem;
}

/* ── Tech / Code Box ───────────────────────────────────────── */
.tech-box {
  background: var(--code-bg);
  border: 1px solid rgba(26, 127, 200, 0.18);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.75rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  color: var(--muted-gray);
}

.tech-box-title {
  color: #f4c542;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* ── Checklist ─────────────────────────────────────────────── */
.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.85rem;
}

.checklist li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--teal-primary);
  font-weight: 700;
}

/* ── CTA Section ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, rgba(26, 127, 200, 0.1), rgba(59, 189, 198, 0.07));
  border: 1px solid rgba(26, 127, 200, 0.28);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  margin: 3rem 0;
  text-align: center;
}

.cta-section h3 {
  font-family: 'Exo 2', sans-serif;
  color: var(--off-white);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.cta-section p {
  margin-bottom: 1.25rem;
}

.cta-button {
  display: inline-block;
  background: var(--teal-primary);
  color: #fff;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  margin: 0.4rem;
  border-bottom: none;
}

.cta-button:hover {
  background: #1568a8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 127, 200, 0.35);
  color: #fff;
  border-bottom: none;
}

/* ── Social Share ──────────────────────────────────────────── */
.social-share {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  background: rgba(26, 127, 200, 0.08);
  color: var(--muted-gray);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.88rem;
  border: 1px solid rgba(26, 127, 200, 0.2);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.share-btn:hover {
  background: rgba(26, 127, 200, 0.18);
  border-color: var(--teal-primary);
  color: var(--off-white);
  transform: translateY(-1px);
  text-decoration: none;
}

.share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Sources ───────────────────────────────────────────────── */
.sources {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(26, 127, 200, 0.18);
  font-size: 0.92rem;
}

.sources h2 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.1rem;
  color: var(--off-white);
  margin-bottom: 1rem;
  margin-top: 0;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.source-links a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  background: rgba(26, 127, 200, 0.08);
  color: var(--teal-accent);
  text-decoration: none;
  border: 1px solid rgba(26, 127, 200, 0.2);
  border-radius: 6px;
  font-size: 0.88rem;
  border-bottom: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.source-links a:hover {
  background: rgba(26, 127, 200, 0.18);
  border-color: var(--teal-primary);
  color: var(--off-white);
  border-bottom: none;
}

/* ── Back Link ─────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 2.5rem 0;
  color: var(--teal-primary);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: none;
  padding: 0.65rem 1.25rem;
  border: 1px solid rgba(26, 127, 200, 0.35);
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.back-link:hover {
  background: rgba(26, 127, 200, 0.1);
  border-color: var(--teal-primary);
  color: var(--off-white);
  border-bottom: none;
}

a.back-link[style*="text-align: center"],
.blog-content > a.back-link {
  display: block;
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* ══════════════════════════════════════════════════════════
   BLOG LISTING PAGE
   ══════════════════════════════════════════════════════════ */

/* ── Hero Section ──────────────────────────────────────────── */
.blog-hero {
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, var(--accent-gray) 0%, var(--dark-bg) 100%);
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(26, 127, 200, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(26, 127, 200, 0.25) 50%, transparent 100%);
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  color: rgba(245, 245, 245, 0.5);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  background: var(--gradient-blog);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--muted-gray);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ── Search & Filter ───────────────────────────────────────── */
.search-filter {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border-blog);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.search-container {
  position: relative;
  margin-bottom: 1.25rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(245, 245, 245, 0.4);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  background: var(--dark-bg);
  border: 1px solid rgba(26, 127, 200, 0.2);
  border-radius: var(--radius-md);
  color: var(--off-white);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  transition: border-color 240ms ease, box-shadow 240ms ease;
  min-height: 48px;
}

.search-input:focus {
  border-color: var(--teal-primary);
  box-shadow: var(--focus-ring-blog);
  outline: none;
}

.search-input::placeholder {
  color: rgba(245, 245, 245, 0.35);
}

.filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-tag {
  padding: 0.5rem 1rem;
  background: var(--dark-bg);
  border: 1px solid rgba(26, 127, 200, 0.2);
  border-radius: 999px;
  color: var(--muted-gray);
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 240ms ease;
  cursor: pointer;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.filter-tag:hover {
  border-color: var(--teal-primary);
  color: var(--teal-primary);
  background: rgba(26, 127, 200, 0.08);
}

.filter-tag.active {
  background: rgba(26, 127, 200, 0.22);
  color: var(--off-white);
  border-color: rgba(26, 127, 200, 0.65);
  box-shadow: 0 0 12px rgba(26, 127, 200, 0.25);
}

.filter-tag:focus-visible {
  outline: 2px solid var(--teal-primary);
  outline-offset: 2px;
}

/* ── Section Titles ────────────────────────────────────────── */
.blog-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
}

.blog-section-title {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--off-white);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  position: relative;
}

.blog-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-blog);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ── Featured Article Card ─────────────────────────────────── */
.featured-card {
  background: linear-gradient(145deg, var(--card-bg) 0%, var(--card-hover) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid var(--border-blog);
  position: relative;
  cursor: pointer;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-blog);
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover), 0 0 32px rgba(26, 127, 200, 0.18);
}

.featured-card:focus-within {
  outline: 2px solid var(--teal-primary);
  outline-offset: 2px;
}

.featured-content {
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.featured-tag {
  background: var(--gradient-blog);
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.featured-title {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--off-white);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.featured-excerpt {
  color: var(--muted-gray);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26, 127, 200, 0.22);
  border: 1px solid rgba(26, 127, 200, 0.65);
  color: var(--off-white);
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base),
              background var(--transition-base), border-color var(--transition-base);
  backdrop-filter: blur(8px);
  min-height: 48px;
}

.featured-cta:hover {
  transform: translateY(-2px);
  background: rgba(26, 127, 200, 0.38);
  border-color: rgba(26, 127, 200, 0.9);
  box-shadow: 0 8px 24px rgba(26, 127, 200, 0.4);
}

.featured-cta .arrow-icon {
  transition: transform var(--transition-base);
  width: 16px;
  height: 16px;
}

.featured-cta:hover .arrow-icon {
  transform: translateX(4px);
}

/* ── Articles Grid ─────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 0.5rem;
  align-items: stretch;
}

/* ── Article Card ──────────────────────────────────────────── */
.article-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.article-card {
  background: linear-gradient(145deg, var(--card-bg) 0%, var(--card-hover) 100%);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base),
              border-color var(--transition-base);
  border: 1px solid var(--border-blog);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-blog);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover), 0 0 20px rgba(26, 127, 200, 0.15);
  border-color: rgba(26, 127, 200, 0.4);
}

.article-card:hover::before {
  opacity: 1;
}

.article-card:focus-within {
  outline: 2px solid var(--teal-primary);
  outline-offset: 2px;
}

.article-content {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.article-tag {
  background: rgba(26, 127, 200, 0.12);
  color: var(--teal-accent);
  border: 1px solid rgba(26, 127, 200, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.article-tag.urgent {
  background: rgba(255, 107, 107, 0.12);
  color: var(--coral-accent);
  border-color: rgba(255, 107, 107, 0.25);
}

.article-title {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--off-white);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  transition: color var(--transition-base);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card:hover .article-title {
  color: var(--teal-accent);
}

.article-excerpt {
  color: var(--muted-gray);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26, 127, 200, 0.12);
  border: 1px solid rgba(26, 127, 200, 0.3);
  color: var(--teal-primary);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all var(--transition-base);
  min-height: 40px;
  justify-content: center;
  margin-top: auto;
  align-self: flex-start;
  cursor: pointer;
}

.article-card:hover .article-cta {
  background: rgba(26, 127, 200, 0.25);
  border-color: rgba(26, 127, 200, 0.7);
  color: var(--off-white);
}

.arrow-icon {
  transition: transform var(--transition-base);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.article-card:hover .arrow-icon {
  transform: translateX(3px);
}

/* ── No Results State ──────────────────────────────────────── */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted-gray);
  display: none;
}

.no-results h3 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--off-white);
}

.no-results p {
  margin-bottom: 1.5rem;
}

.clear-filters-btn {
  background: rgba(26, 127, 200, 0.22);
  border: 1px solid rgba(26, 127, 200, 0.65);
  color: var(--off-white);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 44px;
}

.clear-filters-btn:hover {
  background: rgba(26, 127, 200, 0.38);
  border-color: var(--teal-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 127, 200, 0.35);
}

/* ── Back to Top ───────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  background: rgba(26, 127, 200, 0.22);
  border: 1px solid rgba(26, 127, 200, 0.65);
  color: var(--off-white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: rgba(26, 127, 200, 0.38);
  border-color: var(--teal-primary);
  box-shadow: 0 6px 20px rgba(26, 127, 200, 0.4);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
  .blog-hero {
    padding: clamp(5rem, 9vw, 7rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  }

  .articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .filter-tags {
    gap: 0.4rem;
  }

  .filter-tag {
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
    min-height: 36px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ranking-table {
    font-size: 0.86rem;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 0.65rem 0.7rem;
  }

  .social-share {
    flex-direction: column;
    align-items: stretch;
  }

  .share-btn {
    justify-content: center;
  }

  .cta-section {
    padding: 1.5rem 1.25rem;
  }
}

/* ── Reduced Motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cta-button,
  .share-btn,
  .back-link,
  .source-links a {
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── High Contrast ─────────────────────────────────────────── */
@media (prefers-contrast: high) {
  :root {
    --border-blog: rgba(255, 255, 255, 0.3);
  }
}

/* ── Print ─────────────────────────────────────────────────── */
@media print {
  .site-header,
  .search-filter,
  .hamburger,
  .back-to-top,
  .wa-float {
    display: none;
  }

  .article-card,
  .featured-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
