/* ═══════════════════════════════════════════════════════════════
   DATADROP — Dark 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:    #080C18;
  --bg-surface:    #0F1624;
  --bg-card:       #141D2E;
  --bg-hover:      #1A2540;
  --accent-blue:   #4285F4;
  --accent-red:    #EA4335;
  --accent-yellow: #FBBC05;
  --accent-green:  #34A853;
  --accent-purple: #A142F4;
  --text-primary:  #E8EAED;
  --text-secondary:#9AA0A6;
  --text-muted:    #5F6368;
  --border:        rgba(255,255,255,0.07);
  --border-accent: rgba(66,133,244,0.3);
  --topbar-height: 60px;
  --ticker-height: 36px;
  --transition-std: 0.25s ease;
  --radius-card:   12px;
  --radius-pill:   20px;
  --max-width:     1400px;
  /* search dropdown compat */
  --dd-accent-blue: #4285F4;
  --dd-border: rgba(255,255,255,0.07);
  --dd-text-primary: #E8EAED;
  --dd-text-secondary: #9AA0A6;
}

/* ─── 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(8,12,24,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 0;
  z-index: 1000;
}

.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 { width: 30px; height: 30px; flex-shrink: 0; }

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

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

.nav-pill {
  padding: 6px 14px;
  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,
.nav-pill.active {
  background: rgba(66,133,244,0.15);
  color: var(--accent-blue);
}

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

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

.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-blue);
  background: rgba(66,133,244,0.08);
}

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

/* Search bar in topbar */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: border-color 0.2s;
  width: 210px;
}

.search-bar:focus-within { border-color: var(--border-accent); }

.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 icon on left side */
.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);
  border-radius: 12px;
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
  z-index: 500;
  display: none;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.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-hover); }
.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-yellow);
  font-weight: 600;
  background: rgba(251,188,5,0.1);
}

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

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

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

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

.search-dropdown-footer a,
.advanced-search-link {
  font-size: 13px;
  color: var(--accent-blue);
  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 18px;
  background: var(--accent-blue);
  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;
}

.btn-newsletter:hover {
  background: #5a95f5;
  box-shadow: 0 4px 16px rgba(66,133,244,0.35);
}

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

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

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

/* ─── BREAKING TICKER ────────────────────────────────────────── */
.breaking-ticker {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  height: var(--ticker-height);
  background: #000;
  border-top: 2px solid #EA4335;
  border-bottom: 2px solid #EA4335;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 999;
}

.ticker-label {
  background: #EA4335;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  font-family: 'Courier New', monospace;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 6px;
}

.ticker-label::before {
  content: '▶';
  font-size: 12px;
  animation: blink-dot 1s step-end infinite;
}

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

.ticker-track {
  overflow: hidden;
  flex: 1;
  border-left: 1px solid rgba(234,67,53,0.4);
}

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

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  padding: 0 32px;
  cursor: pointer;
  transition: color 0.2s;
  gap: 10px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.ticker-item:hover { color: #e0e0e0; }
.ticker-item:hover .ticker-sep { color: rgba(255,255,255,0.5); }

.ticker-sep {
  color: rgba(255,255,255,0.25);
  font-size: 18px;
  font-weight: 300;
  margin: 0 4px;
}

.ticker-dot {
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 4px rgba(255,255,255,0.6);
}

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

/* ─── MAIN CONTENT ───────────────────────────────────────────── */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 48px;
}

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

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

.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, #141D2E 0%, #0F1624 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,12,24,0.98) 0%,
    rgba(8,12,24,0.55) 45%,
    rgba(8,12,24,0.1) 100%
  );
}

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

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  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 8px rgba(0,0,0,0.4);
}

.hero-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin-bottom: 20px;
  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: 20px;
}

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

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

.hero-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--accent-blue);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  letter-spacing: 0.2px;
  text-decoration: none;
}

.hero-read-btn:hover {
  background: #5a95f5;
  box-shadow: 0 6px 20px rgba(66,133,244,0.4);
  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: 10px 20px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
  backdrop-filter: blur(4px);
}

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

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

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

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

.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: 20px;
  margin-bottom: 40px;
}

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

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

.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-glow-color, var(--accent-blue));
  box-shadow: 0 8px 32px var(--card-glow-shadow, rgba(66,133,244,0.2));
}

.news-card-img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--bg-surface);
  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: 16px;
  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.45;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.news-card:hover .news-card-title { color: #fff; }

.news-card-excerpt {
  font-size: 12px;
  line-height: 1.6;
  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);
  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 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.badge-google-cloud,
.cat-google-cloud         { background: rgba(66,133,244,0.15);  color: #4285F4; }
.badge-ia,
.cat-ia,
.cat-inteligencia-artificial { background: rgba(161,66,244,0.15); color: #A142F4; }
.badge-analytics,
.cat-analytics,
.cat-data-analytics       { background: rgba(52,168,83,0.15);   color: #34A853; }
.badge-databases,
.cat-databases,
.cat-banco-de-dados        { background: rgba(251,188,5,0.15);   color: #FBBC05; }
.cat-google                { background: rgba(66,133,244,0.15);  color: #4285F4; }
.cat-cloud                 { background: rgba(52,168,83,0.15);   color: #34A853; }
.cat-noticias              { background: rgba(234,67,53,0.15);   color: #EA4335; }
.cat-tutoriais             { background: rgba(251,188,5,0.15);   color: #FBBC05; }
.cat-workspace             { background: rgba(52,168,83,0.15);   color: #34A853; }
.cat-seguranca             { background: rgba(234,67,53,0.15);   color: #EA4335; }
.cat-android               { background: rgba(52,168,83,0.15);   color: #34A853; }
.cat-maps                  { background: rgba(251,188,5,0.15);   color: #FBBC05; }
.badge-default             { background: rgba(255,255,255,0.08);  color: var(--text-secondary); }

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

.category-tabs-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  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: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
  font-family: inherit;
}

.cat-tab:hover {
  border-color: rgba(66,133,244,0.4);
  color: var(--accent-blue);
  background: rgba(66,133,244,0.08);
}

.cat-tab.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: white;
}

/* ─── NEWSLETTER BANNER ──────────────────────────────────────── */
.newsletter-banner {
  background: linear-gradient(135deg, #0F1624 0%, #141D2E 50%, #0d1829 100%);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 40px 48px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

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

.newsletter-banner-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  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: var(--accent-blue);
  margin-bottom: 8px;
}

.newsletter-banner-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.newsletter-banner-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.newsletter-form-inline input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}

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

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

.newsletter-form-inline button:hover {
  background: #5a95f5;
  box-shadow: 0 4px 16px rgba(66,133,244,0.35);
}

/* Legacy newsletter-box */
.newsletter-box {
  background: linear-gradient(135deg, #0F1624, #141D2E);
  border: 1px solid var(--border-accent);
  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(66,133,244,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-blue);
  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-primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 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-blue); }
.newsletter-form input::placeholder { color: var(--text-muted); }

.newsletter-form button {
  padding: 8px 20px;
  background: var(--accent-blue);
  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: #5a95f5; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.5fr 2fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { width: 26px; height: 26px; }
.footer-logo span { font-size: 17px; font-weight: 700; color: var(--text-primary); }

.footer-about p { font-size: 13px; line-height: 1.7; color: var(--text-secondary); }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); transition: color 0.15s; }
.footer-links a:hover { color: var(--accent-blue); }

.footer-social p { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.5; }
.footer-nl-form { margin-bottom: 20px; }

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

.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.social-icon:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(66,133,244,0.1);
}

.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: var(--text-muted); line-height: 1.5; }
.footer-bottom a { color: var(--accent-blue); transition: opacity 0.2s; }
.footer-bottom a:hover { opacity: 0.8; }

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

.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-blue); }
.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-blue); }

.section-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(66,133,244,0.15);
  color: var(--accent-blue);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

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

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

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

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

.dashboard-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: 0 8px 32px rgba(66,133,244,0.2);
}

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

.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: 12px 14px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--border);
  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: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

.tag-cloud-pill:hover { opacity: 0.85; border-color: rgba(255,255,255,0.1); }
.tag-cloud-pill.active { opacity: 1; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

.tag-count { background: rgba(0,0,0,0.15); 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: var(--radius-card);
  overflow: hidden;
  background: var(--bg-surface);
  margin-bottom: 24px;
}

.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);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  margin-bottom: 24px;
}

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

.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: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  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);
  border-radius: var(--radius-card);
  padding: 32px;
}

/* ─── POST BODY TYPOGRAPHY ───────────────────────────────────── */
.post-body {
  font-size: 16px;
  line-height: 1.75;
  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: 28px 0 12px;
  line-height: 1.3;
}

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

.post-body a { color: var(--accent-blue); text-decoration: underline; text-decoration-color: rgba(66,133,244,0.4); transition: text-decoration-color 0.2s; }
.post-body a:hover { text-decoration-color: var(--accent-blue); }

.post-body img { max-width: 100%; border-radius: 8px; margin: 16px 0; }

.post-body ul,
.post-body ol { margin: 12px 0 16px 24px; }
.post-body li { margin-bottom: 6px; }

.post-body blockquote {
  border-left: 3px solid var(--accent-blue);
  padding: 8px 20px;
  margin: 20px 0;
  color: var(--text-secondary);
  font-style: italic;
  background: var(--bg-hover);
  border-radius: 0 8px 8px 0;
}

.post-body pre {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
}

.post-body code {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  background: rgba(66,133,244,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-blue);
}

.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);
}

.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: 3px 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  color: var(--text-secondary);
}

.hashtag-pill {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(66,133,244,0.1);
  color: var(--accent-blue);
  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);
}

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

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  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-blue);
  color: var(--accent-blue);
  background: rgba(66,133,244,0.1);
}

/* ─── AD CONTAINER ───────────────────────────────────────────── */
.ad-container {
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  margin: 24px 0;
}

.ad-in-article { border-color: rgba(255,255,255,0.05); }

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

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

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

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

.comment-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--bg-surface);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.comment-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  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.6; color: var(--text-secondary); }

/* Comment form */
.comment-form-wrap h4 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; }
.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-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent-blue); }

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent-blue);
  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;
}

.btn-primary:hover { background: #5a95f5; box-shadow: 0 4px 16px rgba(66,133,244,0.35); }
.btn-primary .material-icons { font-size: 16px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  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-blue); color: var(--accent-blue); background: rgba(66,133,244,0.08); }

/* ─── 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: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: all 0.2s;
  cursor: pointer;
}

.related-post-item:hover { border-color: var(--accent-blue); transform: translateX(2px); }

.related-thumb {
  width: 72px; height: 54px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
  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.4; 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);
}

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

/* 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: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 12px 24px;
  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: 0 8px 32px rgba(0,0,0,0.4);
}

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

/* ─── MODALS ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  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(4px);
}

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

.share-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 460px;
  max-width: 95vw;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}

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

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

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

.share-modal-body { padding: 20px 24px 24px; }
.share-modal-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }

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

.share-social-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  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-blue); color: var(--text-primary); }

.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.15); color: #1d9bf0; }
.linkedin-icon { background: rgba(10,102,194,0.15); color: #0a66c2; }
.facebook-icon { background: rgba(66,103,178,0.15); color: #4267B2; }
.whatsapp-icon { background: rgba(37,211,102,0.15); color: #25d366; }

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

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

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

#copyShareUrlBtn .material-icons { font-size: 14px; }

/* ─── MOBILE DRAWER ──────────────────────────────────────────── */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

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

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

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

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

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

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

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

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

.drawer-nav-item:hover,
.drawer-nav-item.active { color: var(--accent-blue); background: rgba(66,133,244,0.08); }
.drawer-nav-item .material-icons { font-size: 20px; }

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

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

.drawer-newsletter-btn {
  margin: 16px 20px;
  display: block;
  text-align: center;
  padding: 11px 20px;
  background: var(--accent-blue);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  text-decoration: none;
}

.drawer-newsletter-btn:hover { background: #5a95f5; }

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

.hamburger-btn:hover { background: var(--bg-hover); }
.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: 24px; }
  .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: 24px 28px; }
  .hero-title { font-size: 26px; }
  .post-hero-image { height: 280px; }
  .post-title { font-size: 24px; }
  .post-header-card { padding: 20px; }
  .post-content-wrapper { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .newsletter-box-inner { flex-direction: column; }
}

@media (max-width: 600px) {
  .main-content { padding: 20px 14px 40px; }
  .news-grid { grid-template-columns: 1fr; }
  .cards-grid, .cards-grid-full { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-section { height: 300px; border-radius: 8px; }
  .hero-content { padding: 16px 18px; }
  .hero-title { font-size: 20px; }
  .hero-excerpt { display: none; }
  .newsletter-banner { padding: 24px 20px; }
  .newsletter-banner-title { font-size: 20px; }
  .share-social-grid { grid-template-columns: 1fr; }
  .topbar { padding: 0 14px; }
  .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);
  border-radius: var(--radius-card);
  padding: 32px;
}

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

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

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

.contact-info-icon .material-icons { font-size: 20px; }

.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-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  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='%235F6368' 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-blue); }
.contact-form select option { background: var(--bg-surface); color: var(--text-primary); }

.btn-large { padding: 12px 28px; font-size: 14px; }

.success-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(52,168,83,0.1);
  border: 1px solid rgba(52,168,83,0.25);
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 24px;
}

.success-message .material-icons { font-size: 22px; color: #34A853; flex-shrink: 0; }
.success-message h4 { font-size: 14px; font-weight: 600; color: #34A853; 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(234,67,53,0.1);
  border: 1px solid rgba(234,67,53,0.25);
  color: #EA4335;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 24px;
}

.error-message .material-icons { font-size: 22px; flex-shrink: 0; color: #EA4335; }
.error-message h4 { font-size: 14px; font-weight: 600; color: #EA4335; 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: 20px; }
  .contact-info-card { flex: 1 1 100%; }
}

/* ─── POST — ARTICLE INFO BOX ─────────────────────────────────── */
.article-info-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0;
}

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

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

/* ─── POST — NEWSLETTER COMPACT ───────────────────────────────── */
.newsletter-widget-compact {
  background: linear-gradient(135deg, #0F1624, #141D2E);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  padding: 22px 24px;
  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-blue); }

.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);
}

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

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

/* ─── 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 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-search-inner {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0 14px;
  gap: 8px;
}

.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: 9px 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;
}
