/* ═══════════════════════════════════════════════════════════════
   PEOPLE ANALYTICS BRASIL — Light Editorial Design System
   Reset + Tokens + Components + Responsive
═══════════════════════════════════════════════════════════════ */

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  --bg-primary:    #fff8eb;
  --bg-surface:    #fffdf7;
  --bg-card:       #ffffff;
  --bg-hover:      #f5f0e8;
  --bg-muted:      #f0ead9;

  --accent:        #7a57cd;
  --accent-light:  #a98be8;
  --accent-pale:   #ede8f9;
  --accent-sage:   #8f9d68;
  --accent-sage-light: #b8c68e;
  --accent-sage-pale:  #edf2e0;
  --accent-rose:   #c2547a;
  --accent-amber:  #c4882a;
  --accent-indigo: #5b3fb0;

  --text-primary:  #1a1624;
  --text-secondary:#4a4560;
  --text-muted:    #9990b0;

  --border:        rgba(122,87,205,0.14);
  --border-subtle: rgba(122,87,205,0.08);

  --shadow-xs:     0 1px 4px rgba(26,22,36,0.04);
  --shadow-sm:     0 2px 14px rgba(26,22,36,0.07);
  --shadow-md:     0 6px 28px rgba(122,87,205,0.12);
  --shadow-lg:     0 12px 48px rgba(122,87,205,0.16);

  --topbar-height: 68px;
  --ticker-height: 36px;
  --transition-std: 0.22s ease;
  --radius-card:   16px;
  --radius-pill:   999px;
  --max-width:     1400px;

  /* search dropdown compat */
  --dd-accent-blue:   #7a57cd;
  --dd-border:        rgba(122,87,205,0.14);
  --dd-text-primary:  #1a1624;
  --dd-text-secondary:#4a4560;
}

/* ─── BODY OFFSET (topbar + ticker) ─────────────────────────── */
body {
  padding-top: calc(var(--topbar-height) + var(--ticker-height));
}

/* ─── TOPBAR ─────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-height);
  background: rgba(255,248,235,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1.5px solid rgba(122,87,205,0.10);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(122,87,205,0.07);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.3px;
  white-space: nowrap;
  line-height: 1.2;
}

/* ─── NAV PILLS ──────────────────────────────────────────────── */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 28px;
  flex: 1;
  min-width: 0;
}

.nav-pill {
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-std);
  cursor: pointer;
  white-space: nowrap;
  display: block;
  text-decoration: none;
}

.nav-pill:hover {
  background: var(--accent-pale);
  color: var(--accent);
}

.nav-pill.active {
  background: var(--accent-pale);
  color: var(--accent);
  font-weight: 600;
}

/* Categorias dropdown */
.nav-pill-dropdown {
  position: relative;
}

.nav-pill-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  min-width: 210px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 200;
  box-shadow: var(--shadow-lg);
}

.nav-pill-dropdown:hover .dropdown-menu,
.nav-pill-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}

.dropdown-menu a:hover {
  color: var(--accent);
  background: var(--accent-pale);
}

/* ─── TOPBAR RIGHT ───────────────────────────────────────────── */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Search bar */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-muted);
  border: 1.5px solid transparent;
  border-radius: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 220px;
}

.search-bar:focus-within {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
  background: #fff;
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  min-width: 0;
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-bar .search-icon {
  padding: 0 12px 0 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.search-bar .search-icon svg,
.search-bar .search-icon .material-icons {
  width: 15px; height: 15px;
  font-size: 15px;
  fill: currentColor;
}

.search-bar .search-icon-left {
  padding: 0 0 0 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.search-bar .search-icon-left .material-icons { font-size: 15px; }

/* Search dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
  z-index: 500;
  display: none;
  box-shadow: var(--shadow-lg);
}

.search-dropdown.visible { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 13px;
  color: var(--text-primary);
}

.search-result-item:hover { background: var(--bg-muted); }
.search-result-item.no-click { cursor: default; }
.search-result-item.no-click:hover { background: transparent; }

.search-result-item .material-icons {
  font-size: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-result-text { display: flex; flex-direction: column; min-width: 0; }

.search-result-title {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-snippet {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-title strong,
.search-result-snippet strong {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-pale);
}

.search-dropdown-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  padding: 8px 16px 4px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.search-dropdown-section-title:first-child { border-top: none; }

.search-dropdown-separator {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
  border: none;
}

.search-dropdown-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  background: var(--bg-surface);
}

.search-dropdown-footer a,
.advanced-search-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.search-dropdown-footer a:hover { text-decoration: underline; }

/* Newsletter button */
.btn-newsletter {
  padding: 8px 20px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.2px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 10px rgba(124,58,237,0.25);
}

.btn-newsletter:hover {
  background: var(--accent-indigo);
  box-shadow: 0 4px 18px rgba(124,58,237,0.35);
  transform: translateY(-1px);
}

/* topbar icon buttons */
.topbar-icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.topbar-icon-btn:hover {
  background: var(--bg-muted);
  color: var(--accent);
}

.topbar-icon-btn .material-icons { font-size: 20px; }

/* ─── TRENDING TICKER (substituindo breaking ticker) ─────────── */
.breaking-ticker {
  position: fixed;
  top: var(--topbar-height);
  left: 0; right: 0;
  height: var(--ticker-height);
  background: linear-gradient(90deg, var(--accent-sage-pale) 0%, var(--bg-surface) 100%);
  border-bottom: 1.5px solid rgba(143,157,104,0.18);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 999;
}

.ticker-label {
  background: var(--accent-sage);
  padding: 0 18px;
  height: 100%;
  display: flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 6px;
}

.ticker-label::before {
  content: '✦';
  font-size: 10px;
  animation: blink-dot 2s ease-in-out infinite;
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.ticker-track {
  overflow: hidden;
  flex: 1;
}

.ticker-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 50s linear infinite;
}

.ticker-content:hover { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0 28px;
  cursor: pointer;
  transition: color 0.2s;
  gap: 8px;
  flex-shrink: 0;
  letter-spacing: 0.2px;
}

.ticker-item:hover { color: var(--accent); }

.ticker-sep {
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 300;
  margin: 0 4px;
  opacity: 0.5;
}

.ticker-dot {
  width: 5px; height: 5px;
  background: var(--accent-sage);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.5;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── MAIN CONTENT ───────────────────────────────────────────── */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 28px 56px;
}

/* ─── PAGE WRAPPER ───────────────────────────────────────────── */
.page-wrapper { width: 100%; }

/* ─── HERO SECTION ───────────────────────────────────────────── */
.hero-section {
  position: relative;
  height: 520px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 20px;
  margin-bottom: 44px;
  box-shadow: var(--shadow-lg);
}

.hero-bg {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
  will-change: transform;
}

.hero-section:hover .hero-bg { transform: scale(1.03); }

.hero-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-pale) 0%, #fff 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30,27,75,0.92) 0%,
    rgba(30,27,75,0.45) 45%,
    rgba(30,27,75,0.05) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 44px 52px;
}

.hero-badge {
  display: inline-block;
  padding: 4px 13px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 14px;
  max-width: 680px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.hero-meta-item .material-icons { font-size: 14px; }

.hero-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  letter-spacing: 0.2px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}

.hero-read-btn:hover {
  background: var(--accent-indigo);
  box-shadow: 0 6px 24px rgba(124,58,237,0.5);
  transform: translateY(-1px);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.hero-secondary-btn:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

/* ─── SECTION LABEL ──────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.section-label h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-label-line {
  height: 3px;
  width: 28px;
  border-radius: 2px;
  flex-shrink: 0;
  background: var(--accent);
}

.section-label-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
}

/* ─── NEWS GRID ──────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 44px;
}

/* ─── NEWS CARD ──────────────────────────────────────────────── */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-std), box-shadow var(--transition-std), border-color var(--transition-std);
  opacity: 0;
  transform: translateY(16px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.news-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease,
    box-shadow var(--transition-std), border-color var(--transition-std);
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
}

.news-card-img-wrap {
  position: relative;
  height: 185px;
  overflow: hidden;
  background: var(--bg-muted);
  flex-shrink: 0;
}

.news-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-img { transform: scale(1.04); }

.news-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-badge { margin-bottom: 10px; }

.news-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  transition: color var(--transition-std);
}

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

.news-card-excerpt {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  margin-top: auto;
}

.news-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.news-card-meta-item .material-icons { font-size: 12px; }

.news-card-author {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: auto;
}

/* ─── CATEGORY BADGE COLORS ──────────────────────────────────── */
.cat-badge,
.card-category {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* People Analytics categories */
.cat-people-analytics,
.cat-people-analytics-brasil { background: var(--accent-pale); color: var(--accent); }
.cat-rh-estrategico,
.cat-rh                    { background: var(--accent-sage-pale); color: #6b7a4e; }
.cat-cultura,
.cat-cultura-organizacional { background: rgba(196,136,42,0.12); color: var(--accent-amber); }
.cat-diversidade,
.cat-diversidade-inclusao   { background: rgba(194,84,122,0.10); color: var(--accent-rose); }
.cat-ia,
.cat-inteligencia-artificial { background: var(--accent-pale); color: var(--accent); }
.cat-lideranca             { background: var(--accent-sage-pale); color: #6b7a4e; }
.cat-dados,
.cat-data-analytics,
.cat-analytics             { background: var(--accent-pale); color: var(--accent-indigo); }
.cat-bem-estar,
.cat-engajamento           { background: rgba(194,84,122,0.10); color: var(--accent-rose); }
.cat-futuro-do-trabalho,
.cat-workforce             { background: rgba(143,157,104,0.15); color: #6b7a4e; }
.cat-noticias              { background: rgba(196,136,42,0.12); color: var(--accent-amber); }
.cat-tutoriais             { background: var(--accent-sage-pale); color: #6b7a4e; }
/* fallbacks */
.badge-google-cloud,
.cat-google-cloud          { background: var(--accent-pale); color: var(--accent-indigo); }
.cat-google                { background: var(--accent-pale); color: var(--accent-indigo); }
.cat-cloud                 { background: var(--accent-pale); color: var(--accent-indigo); }
.cat-seguranca             { background: rgba(194,84,122,0.10); color: var(--accent-rose); }
.cat-android               { background: var(--accent-sage-pale); color: #6b7a4e; }
.cat-maps                  { background: rgba(196,136,42,0.12); color: var(--accent-amber); }
.cat-workspace             { background: var(--accent-sage-pale); color: #6b7a4e; }
.cat-banco-de-dados,
.cat-databases             { background: rgba(196,136,42,0.12); color: var(--accent-amber); }
.badge-default             { background: var(--bg-muted); color: var(--text-secondary); }

/* ─── CATEGORY FILTER TABS ───────────────────────────────────── */
.category-tabs-section { margin-bottom: 44px; }

.category-tabs-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.category-tabs-header::-webkit-scrollbar { display: none; }

.cat-tab {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
  font-family: inherit;
}

.cat-tab:hover {
  border-color: var(--accent-light);
  color: var(--accent);
  background: var(--accent-pale);
}

.cat-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 2px 10px rgba(124,58,237,0.25);
}

/* ─── NEWSLETTER BANNER ──────────────────────────────────────── */
.newsletter-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-indigo) 60%, #3d2580 100%);
  border-radius: 24px;
  padding: 52px 60px;
  margin: 44px 0;
  position: relative;
  overflow: hidden;
}

.newsletter-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-banner::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-banner-inner {
  display: flex;
  align-items: center;
  gap: 44px;
  position: relative;
  z-index: 1;
}

.newsletter-banner-copy { flex: 1; }

.newsletter-banner-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.newsletter-banner-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.newsletter-banner-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
}

.newsletter-form-inline {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  width: 380px;
}

.newsletter-form-inline input {
  flex: 1;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  min-width: 0;
  backdrop-filter: blur(8px);
}

.newsletter-form-inline input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter-form-inline input:focus {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.22);
}

.newsletter-form-inline button {
  padding: 11px 24px;
  background: #fff;
  color: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.newsletter-form-inline button:hover {
  background: var(--accent-pale);
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

/* Legacy newsletter-box */
.newsletter-box {
  background: var(--accent-pale);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
}

.newsletter-box-inner { display: flex; gap: 24px; align-items: flex-start; }

.newsletter-icon-wrap {
  width: 48px; height: 48px;
  background: rgba(124,58,237,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 24px;
  flex-shrink: 0;
}

.newsletter-content h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.newsletter-content p { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }

.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }

.newsletter-form input {
  flex: 1;
  min-width: 180px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 20px;
  padding: 9px 16px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input:focus { border-color: var(--accent-light); }
.newsletter-form input::placeholder { color: var(--text-muted); }

.newsletter-form button {
  padding: 9px 22px;
  background: var(--accent);
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.newsletter-form button:hover { background: var(--accent-indigo); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: #1a1624;
  border-top: none;
  padding: 64px 32px 32px;
  color: rgba(255,255,255,0.75);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.5fr 2fr;
  gap: 52px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.footer-logo span { font-size: 16px; font-weight: 700; color: #fff; }

.footer-about p { font-size: 13px; line-height: 1.75; color: rgba(255,255,255,0.6); }

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-links a:hover { color: var(--accent-sage-light); }

.footer-social p { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 14px; line-height: 1.6; }
.footer-nl-form { margin-bottom: 22px; }

.social-icons { display: flex; gap: 10px; flex-wrap: wrap; }

.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: all 0.2s;
}

.social-icon:hover {
  border-color: var(--accent-sage-light);
  color: var(--accent-sage-light);
  background: rgba(143,157,104,0.15);
}

.social-icon svg { fill: currentColor; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.6; }
.footer-bottom a { color: var(--accent-sage-light); transition: opacity 0.2s; }
.footer-bottom a:hover { opacity: 0.8; }

/* ─── PAGE HEADER ────────────────────────────────────────────── */
.page-header { margin-bottom: 30px; }

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.page-breadcrumb a { color: var(--text-secondary); transition: color 0.15s; }
.page-breadcrumb a:hover { color: var(--accent); }
.page-breadcrumb .material-icons { font-size: 14px; color: var(--text-muted); }
.breadcrumb-current { color: var(--text-secondary); }

.page-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-main-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.page-title-icon { font-size: 28px; color: var(--accent); }

.section-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-pale);
  color: var(--accent);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.section-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 8px;
}

/* ─── CARDS GRID ─────────────────────────────────────────────── */
.cards-grid,
.cards-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 32px;
}

/* ─── DASHBOARD CARD (legacy) ────────────────────────────────── */
.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-std), box-shadow var(--transition-std);
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  box-shadow: var(--shadow-sm);
}

.dashboard-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease,
    box-shadow var(--transition-std);
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-thumbnail { height: 185px; overflow: hidden; background: var(--bg-muted); }

.card-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}

.dashboard-card:hover .card-thumbnail img { transform: scale(1.04); }

.card-hover-title {
  padding: 14px 16px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-std);
}

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

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 10px;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.card-meta-item .material-icons { font-size: 13px; }

.card-author { font-size: 11px; font-weight: 500; color: var(--text-secondary); margin-left: auto; }

/* ─── EMPTY STATE ────────────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state .material-icons { font-size: 40px; margin-bottom: 12px; display: block; }
.empty-state p { font-size: 14px; }
.empty-state-comments { padding: 20px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* ─── TAGS CLOUD ─────────────────────────────────────────────── */
.tags-cloud-section { margin-bottom: 28px; }

.tags-cloud-container { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }

.tag-cloud-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
}

.tag-cloud-pill:hover { opacity: 0.85; border-color: var(--border); box-shadow: var(--shadow-xs); }
.tag-cloud-pill.active { opacity: 1; font-weight: 700; box-shadow: var(--shadow-sm); }

.tag-count { background: rgba(0,0,0,0.1); padding: 1px 6px; border-radius: 10px; font-size: 10px; }
.tag-name { font-size: 12px; }

/* ─── POST PAGE ──────────────────────────────────────────────── */
.post-page { max-width: 860px; margin: 0 auto; }
.post-layout { width: 100%; }
.post-article { width: 100%; }

.post-hero-image {
  width: 100%; height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-muted);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.post-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 30px 34px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 22px;
}

.post-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }

.post-author-info { display: flex; align-items: center; gap: 10px; }

.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-rose));
  color: white;
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.author-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.author-role { display: block; font-size: 11px; color: var(--text-muted); }

.post-stats { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.post-stat { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }
.post-stat .material-icons { font-size: 14px; }

.post-content-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

/* ─── POST BODY TYPOGRAPHY ───────────────────────────────────── */
.post-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  word-break: break-word;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-primary);
  margin: 30px 0 14px;
  line-height: 1.3;
}

.post-body h1 { font-size: 28px; }
.post-body h2 { font-size: 22px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 10px; }
.post-body h3 { font-size: 18px; }
.post-body p  { margin-bottom: 18px; }

.post-body a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(124,58,237,0.35); transition: text-decoration-color 0.2s; }
.post-body a:hover { text-decoration-color: var(--accent); }

.post-body img { max-width: 100%; border-radius: 10px; margin: 18px 0; box-shadow: var(--shadow-sm); }

.post-body ul,
.post-body ol { margin: 14px 0 18px 24px; }
.post-body li { margin-bottom: 7px; }

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 10px 22px;
  margin: 22px 0;
  color: var(--text-secondary);
  font-style: italic;
  background: var(--accent-pale);
  border-radius: 0 10px 10px 0;
}

.post-body pre {
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px;
  overflow-x: auto;
  margin: 18px 0;
}

.post-body code {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  background: var(--accent-pale);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--accent);
}

.post-body pre code { background: transparent; padding: 0; color: var(--text-primary); font-size: 14px; }

/* ─── POST KEYWORDS / HASHTAGS ───────────────────────────────── */
.post-keywords,
.post-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.keywords-label { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.keywords-label .material-icons { font-size: 14px; }

.keyword-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 11px;
  color: var(--text-secondary);
}

.hashtag-pill {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-pale);
  color: var(--accent);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* ─── POST SHARE ─────────────────────────────────────────────── */
.post-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.share-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-muted);
  border: 1.5px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.share-btn svg { fill: currentColor; }

.share-btn:hover {
  border-color: var(--accent-light);
  color: var(--accent);
  background: var(--accent-pale);
}

/* ─── AD CONTAINERS ──────────────────────────────────────────── */
.ad-container {
  position: relative;
  text-align: center;
  margin: 32px auto;
  overflow: hidden;
}

.ad-label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  opacity: 0.6;
}

.ad-home-top {
  max-width: 728px;
  min-height: 100px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ad-home-mid {
  max-width: 400px;
  min-height: 280px;
  padding: 12px 0 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
}

.ad-post-top {
  max-width: 728px;
  min-height: 100px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 28px;
}

.ad-in-article {
  margin: 28px 0;
  border-color: var(--border-subtle);
}

.ad-post-bottom {
  max-width: 100%;
  min-height: 200px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 8px;
}

.ad-anchor { display: none; }

@media (max-width: 768px) {
  .ad-anchor {
    display: block;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 6px 12px 8px;
    text-align: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  }

  .ad-anchor .ad-label { margin-bottom: 4px; }
  body { padding-bottom: 70px; }
}

.ad-anchor-close {
  position: absolute;
  top: 4px; right: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  opacity: 0.6;
  line-height: 1;
}
.ad-anchor-close:hover { opacity: 1; }

/* ─── COMMENTS ───────────────────────────────────────────────── */
.comments-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border-subtle); }

.comments-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 22px;
}

.comments-title .material-icons { font-size: 20px; color: var(--accent); }

.comments-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }

.comment-item {
  display: flex;
  gap: 12px;
  padding: 18px;
  background: var(--bg-muted);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.comment-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-rose));
  color: white;
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.comment-content { flex: 1; min-width: 0; }

.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.comment-author { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.comment-date { font-size: 11px; color: var(--text-muted); }
.comment-text { font-size: 14px; line-height: 1.65; color: var(--text-secondary); }

/* Comment form */
.comment-form-wrap h4 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 18px; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }

.form-group input,
.form-group textarea {
  background: var(--bg-muted);
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
  background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  align-self: flex-start;
  box-shadow: 0 2px 10px rgba(124,58,237,0.25);
}

.btn-primary:hover {
  background: var(--accent-indigo);
  box-shadow: 0 4px 18px rgba(124,58,237,0.35);
  transform: translateY(-1px);
}

.btn-primary .material-icons { font-size: 16px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent-light);
  color: var(--accent);
  background: var(--accent-pale);
}

/* ─── RELATED POSTS IN POST PAGE ─────────────────────────────── */
.related-posts { display: flex; flex-direction: column; gap: 12px; }

.related-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}

.related-post-item:hover {
  border-color: var(--border);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}

.related-thumb {
  width: 72px; height: 54px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-muted);
  flex-shrink: 0;
}

.related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.related-info { flex: 1; min-width: 0; }

.related-title { display: block; font-size: 12px; font-weight: 600; color: var(--text-primary); line-height: 1.45; margin-bottom: 4px; }
.related-meta { display: block; font-size: 10px; color: var(--text-muted); }

/* Widget wrapper */
.widget { margin-bottom: 20px; }

.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.widget-title .material-icons { font-size: 16px; color: var(--accent); }

/* Article info list */
.article-info-list { display: flex; flex-direction: column; gap: 8px; }

.info-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; }
.info-label { color: var(--text-muted); min-width: 90px; flex-shrink: 0; }
.info-value { color: var(--text-secondary); font-weight: 500; }

/* ─── LOAD MORE ──────────────────────────────────────────────── */
.load-more-container { text-align: center; margin: 32px 0 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── TOAST ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-primary);
  border: none;
  color: #fff;
  padding: 12px 26px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}

.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── MODALS ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,27,75,0.55);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  backdrop-filter: blur(6px);
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.share-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  width: 460px;
  max-width: 95vw;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.share-modal-header h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); }

.close-modal-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.close-modal-btn:hover { background: var(--bg-muted); color: var(--accent); }
.close-modal-btn .material-icons { font-size: 18px; }

.share-modal-body { padding: 22px 26px 26px; }
.share-modal-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }

.share-social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }

.share-social-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  background: var(--bg-muted);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.share-social-item:hover {
  border-color: var(--accent-light);
  color: var(--text-primary);
  background: var(--accent-pale);
}

.share-social-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.share-social-icon svg { fill: currentColor; }
.twitter-icon  { background: rgba(29,155,240,0.12);  color: #1d9bf0; }
.linkedin-icon { background: rgba(10,102,194,0.12);  color: #0a66c2; }
.facebook-icon { background: rgba(66,103,178,0.12);  color: #4267B2; }
.whatsapp-icon { background: rgba(37,211,102,0.12);  color: #25d366; }

.share-copy-section { display: flex; gap: 8px; }

.share-copy-section input {
  flex: 1;
  background: var(--bg-muted);
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-size: 12px;
  font-family: inherit;
  outline: none;
}

#copyShareUrlBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s;
}

#copyShareUrlBtn:hover { background: var(--accent-indigo); }
#copyShareUrlBtn .material-icons { font-size: 14px; }

/* ─── MOBILE DRAWER ──────────────────────────────────────────── */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,27,75,0.45);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  backdrop-filter: blur(4px);
}

.mobile-drawer-overlay.open { opacity: 1; visibility: visible; }

.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 290px;
  background: var(--bg-surface);
  z-index: 910;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid var(--border-subtle);
  box-shadow: -8px 0 40px rgba(0,0,0,0.1);
}

.mobile-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.drawer-close:hover { background: var(--bg-muted); color: var(--accent); }
.drawer-close .material-icons { font-size: 20px; }

.drawer-nav { padding: 12px 0; }

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border-radius: 0;
}

.drawer-nav-item:hover,
.drawer-nav-item.active {
  color: var(--accent);
  background: var(--accent-pale);
}

.drawer-nav-item .material-icons { font-size: 20px; }

.drawer-divider { height: 1px; background: var(--border-subtle); margin: 8px 0; }

.drawer-section-label {
  display: block;
  padding: 10px 22px 4px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-muted);
}

.drawer-newsletter-btn {
  margin: 16px 22px;
  display: block;
  text-align: center;
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(124,58,237,0.3);
}

.drawer-newsletter-btn:hover {
  background: var(--accent-indigo);
  box-shadow: 0 4px 18px rgba(124,58,237,0.4);
}

/* Hamburger (mobile only) */
.hamburger-btn {
  display: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.hamburger-btn:hover { background: var(--bg-muted); color: var(--accent); }
.hamburger-btn .material-icons { font-size: 22px; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid, .cards-grid-full { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .newsletter-banner-inner { flex-direction: column; gap: 28px; }
  .newsletter-form-inline { width: 100%; }
}

@media (max-width: 900px) {
  .topbar-nav { display: none; }
  .hamburger-btn { display: flex; }
  .search-bar { display: none; }
  .hero-section { height: 420px; }
  .hero-content { padding: 26px 30px; }
  .hero-title { font-size: 26px; }
  .post-hero-image { height: 280px; }
  .post-title { font-size: 24px; }
  .post-header-card { padding: 22px; }
  .post-content-wrapper { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .newsletter-box-inner { flex-direction: column; }
}

@media (max-width: 600px) {
  .main-content { padding: 22px 16px 44px; }
  .news-grid { grid-template-columns: 1fr; }
  .cards-grid, .cards-grid-full { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-section { height: 300px; border-radius: 14px; }
  .hero-content { padding: 18px 20px; }
  .hero-title { font-size: 20px; }
  .hero-excerpt { display: none; }
  .newsletter-banner { padding: 28px 22px; }
  .newsletter-banner-title { font-size: 20px; }
  .share-social-grid { grid-template-columns: 1fr; }
  .topbar { padding: 0 16px; }
  .page-main-title { font-size: 22px; }
  .post-hero-image { height: 200px; }
  .post-title { font-size: 20px; }
}

/* ─── CONTACT PAGE ───────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-xs);
}

.contact-info-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
  background: var(--accent-pale);
}

.contact-info-icon .material-icons { font-size: 20px; color: var(--accent); }

.contact-info-card h4 { font-size: 13px; font-weight: 700; color: var(--text-primary); margin: 0; }
.contact-info-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

.contact-form select {
  width: 100%;
  background: var(--bg-muted);
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239CA3AF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.contact-form select:focus { border-color: var(--accent-light); }
.contact-form select option { background: var(--bg-surface); color: var(--text-primary); }

.btn-large { padding: 13px 30px; font-size: 14px; }

.success-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(13,148,136,0.08);
  border: 1.5px solid rgba(13,148,136,0.2);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.success-message .material-icons { font-size: 22px; color: var(--accent-teal); flex-shrink: 0; }
.success-message h4 { font-size: 14px; font-weight: 600; color: var(--accent-teal); margin-bottom: 4px; }
.success-message p { font-size: 13px; color: var(--text-secondary); margin: 0; }

.error-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(225,29,72,0.07);
  border: 1.5px solid rgba(225,29,72,0.2);
  color: var(--accent-rose);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.error-message .material-icons { font-size: 22px; flex-shrink: 0; color: var(--accent-rose); }
.error-message h4 { font-size: 14px; font-weight: 600; color: var(--accent-rose); margin-bottom: 4px; }
.error-message p { font-size: 13px; color: var(--text-secondary); margin: 0; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { flex-direction: row; flex-wrap: wrap; }
  .contact-info-card { flex: 1 1 calc(50% - 7px); min-width: 220px; }
}

@media (max-width: 600px) {
  .contact-form-card { padding: 22px; }
  .contact-info-card { flex: 1 1 100%; }
}

/* ─── POST — ARTICLE INFO BOX ────────────────────────────────── */
.article-info-box {
  background: var(--accent-pale);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
}

.article-info-box h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.article-info-box h4 .material-icons { font-size: 15px; color: var(--accent); }

/* ─── POST — NEWSLETTER COMPACT ──────────────────────────────── */
.newsletter-widget-compact {
  background: linear-gradient(135deg, var(--accent-pale) 0%, #fff 100%);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 24px 0;
}

.newsletter-widget-compact h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.newsletter-widget-compact h4 .material-icons { font-size: 16px; color: var(--accent); }

.newsletter-widget-compact p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* ─── POST — RELATED POSTS SECTION ───────────────────────────── */
.related-posts-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.related-posts-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.related-posts-section h3 .material-icons { font-size: 18px; color: var(--accent); }

/* ─── AD CONTAINER — collapse when empty ─────────────────────── */
.ad-container:empty,
.ad-container ins:not([data-ad-status]) { display: none; }

/* ─── MOBILE SEARCH IN DRAWER ─────────────────────────────────── */
.drawer-search {
  padding: 12px 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-search-inner {
  display: flex;
  align-items: center;
  background: var(--bg-muted);
  border: 1.5px solid var(--border-subtle);
  border-radius: 24px;
  padding: 0 14px;
  gap: 8px;
  transition: border-color 0.2s;
}

.drawer-search-inner:focus-within {
  border-color: var(--accent-light);
}

.drawer-search-inner .material-icons { font-size: 16px; color: var(--text-muted); flex-shrink: 0; }

.drawer-search-inner input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 0;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.drawer-search-inner input::placeholder { color: var(--text-muted); }

/* ─── UTILITY ────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* Material Icons compat */
.material-icons {
  font-family: 'Material Icons';
  font-style: normal;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}
