/* ================================
   CSS VARIABLES & DESIGN SYSTEM
================================ */
:root {
  --primary: #00ff88;
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --text: #ffffff;
  --muted: #b0b0b0;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 12px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.3);

  --secondary: #1a1a1a;
  --accent: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --gradient: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  --border-radius: 15px;
  --transition: all 0.3s ease;
  --backdrop-blur: blur(20px);
  --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.12);

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

/* ================================
   GLOBAL RESET & BASE
================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 50%, #1a1a1a 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-width: 320px;
  max-width: 100vw;
  font-weight: 400;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p, span, a, button, input, textarea, label, select {
  font-family: var(--font-body);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ================================
   BUTTONS / UI
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient);
  color: var(--bg);
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.chip:hover,
.chip.active {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

/* ================================
   HEADER
================================ */
.main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(26, 26, 26, 0.1);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  padding: clamp(0.75rem, 2vw, 1rem) 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.main-header.scrolled {
  background: rgba(26, 26, 26, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-light);
}

.main-header.hidden { transform: translateY(-100%); }

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand a { display: flex; align-items: center; transition: transform 0.25s ease; }
.brand a:hover { transform: scale(1.06); }

.logo img {
  height: 40px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.28));
}

.desktop-nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.5rem); }
.nav-item { position: relative; }

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.9rem, 2vw, 1rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover { color: var(--primary); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.nav-link:hover::after { width: 100%; }
.nav-link[aria-current="page"] { color: var(--primary); }
.nav-link[aria-current="page"]::after { width: 100%; }

.dropdown-arrow { transition: transform 0.3s ease; }
.dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 0.75rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
  color: var(--primary);
  background: rgba(0, 255, 136, 0.05);
  border-left-color: var(--primary);
}

.header-cta { display: flex; align-items: center; }

.cta-button {
  background: var(--gradient);
  color: white;
  text-decoration: none;
  padding: clamp(0.6rem, 2vw, 0.75rem) clamp(1.2rem, 3vw, 1.5rem);
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: clamp(0.85rem, 2vw, 0.9rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
}

.cta-button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3); }
.cta-button svg { transition: transform 0.3s ease; }
.cta-button:hover svg { transform: translateX(3px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.25rem;
  z-index: 1002;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}

.hamburger.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; transform: translateX(20px); }
.hamburger.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

.nav-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 15, 15, 0.98);
  backdrop-filter: var(--backdrop-blur);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  overflow-y: auto;
}

.nav-overlay.active { transform: translateX(0); }

.mobile-nav {
  padding: clamp(5rem, 15vw, 8rem) clamp(1.5rem, 5vw, 2rem) 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.mobile-nav-item { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  text-decoration: none;
  padding: 1.25rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  transition: var(--transition);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.mobile-nav-link:hover { color: var(--primary); transform: translateX(8px); }

.accordion-arrow { transition: transform 0.3s ease; }
.accordion-trigger[aria-expanded="true"] .accordion-arrow { transform: rotate(180deg); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: rgba(0, 0, 0, 0.2);
  margin: 0 -1rem;
  padding: 0 1rem;
}

.accordion-content.active { max-height: 340px; padding: 0.5rem 1rem 1rem; }

.accordion-content a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.75rem 0 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition);
  border-left: 2px solid transparent;
}

.accordion-content a:hover {
  color: var(--primary);
  border-left-color: var(--primary);
  transform: translateX(8px);
}

/* ================================
   HERO
================================ */
.blog-hero {
  padding: clamp(120px, 15vw, 160px) 0 clamp(60px, 10vw, 80px);
  background:
    radial-gradient(ellipse at top left, rgba(0, 255, 136, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(45, 45, 45, 0.4) 0%, transparent 50%),
    linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(15, 15, 15, 0.98) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

.hero-left h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-left p {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.search-container { max-width: 520px; }

.search-box {
  position: relative;
  display: flex;
  background: rgba(45, 45, 45, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: var(--backdrop-blur);
}

.search-box input {
  flex: 1;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.search-box input::placeholder { color: var(--muted); }

.search-btn {
  padding: 16px 20px;
  background: var(--gradient);
  border: none;
  color: var(--bg);
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover { filter: brightness(1.1); }

.hero-right { display: flex; flex-direction: column; gap: 2rem; }
.trust-indicators { display: flex; flex-direction: column; gap: 1rem; }

.trust-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius);
  color: var(--primary);
  font-weight: 500;
  font-size: 14px;
}

.stats-strip {
  display: flex;
  gap: 2rem;
  padding: 20px;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: var(--backdrop-blur);
}

.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
}
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ================================
   FILTER BAR
================================ */
.filter-section {
  padding: clamp(20px, 4vw, 32px) 0;
  background: rgba(26, 26, 26, 0.4);
  border-bottom: 1px solid var(--border);
  backdrop-filter: var(--backdrop-blur);
}

.filter-bar { display: flex; align-items: center; justify-content: space-between; }
.category-filters { width: 100%; }

.filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(45, 45, 45, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.filter-toggle:hover { border-color: var(--primary); }
.filter-toggle svg { transition: transform 0.3s ease; }
.filter-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.filter-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.category-chips { display: flex; gap: 12px; flex-wrap: wrap; }

.sort-dropdown { min-width: 160px; }
.sort-dropdown select {
  width: 100%;
  padding: 10px 16px;
  background: rgba(45, 45, 45, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}

/* ================================
   BLOG LAYOUT
================================ */
.blog-main { padding: clamp(40px, 8vw, 80px) 0; }

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.blog-grid { min-width: 0; }

/* Grid */
.blog-cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: clamp(40px, 8vw, 60px);
}
@media (max-width: 1024px){ .blog-cards{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px){ .blog-cards{ grid-template-columns: 1fr; } }

/* ================================
   BLOG CARD (BEM) - DARK THEME
================================ */
.blog-card{
  background: rgba(26, 26, 26, 0.82);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
  backdrop-filter: var(--backdrop-blur);
}

.blog-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
  border-color: rgba(0, 255, 136, 0.28);
}

/* Image wrapper */
.blog-card__image{
  display:block;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: rgba(255,255,255,0.04);
  overflow:hidden;
}

.blog-card__image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display:block;
  transform: scale(1.02);
  transition: transform .35s ease;
}

.blog-card:hover .blog-card__image img{ transform: scale(1.06); }

.blog-card__content{ padding: 16px 16px 18px; }

.blog-card__meta{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}

.blog-card__category{
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,255,136,0.12);
  color: var(--primary);
  border: 1px solid rgba(0,255,136,0.18);
}

.blog-card__title{
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--text);
}

.blog-card__title a{
  color: inherit;
  text-decoration: none;
  transition: color .25s ease;
}

.blog-card__title a:hover{ color: var(--primary); }

.blog-card__excerpt{
  margin: 0 0 14px;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  line-height: 1.55;
  display:-webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__footer{
  display:flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* Helper for pagination/filter */
.is-hidden{ display:none !important; }

/* No results */
.no-results{
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: 18px;
  text-align:center;
  background: rgba(255,255,255,0.03);
}
.no-results h3{ margin-bottom: 6px; }
.no-results p{ color: rgba(255,255,255,0.65); }

/* Desktop: hide date + footer */
@media (min-width: 769px) {
  .blog-card__footer { display: none; }
}

/* Mobile: hide excerpt + footer for compact */
@media (max-width: 768px) {
  .blog-card__excerpt { display: none; }
  .blog-card__footer { display: none; }
}

/* ================================
   PAGINATION
================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(45, 45, 45, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.pagination-numbers { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.pagination-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 45, 45, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.pagination-number:hover,
.pagination-number.active {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

/* ================================
   SIDEBAR
================================ */
.blog-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-card {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: var(--backdrop-blur);
}

.sidebar-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}

.sidebar-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Popular posts */
.popular-posts { display: flex; flex-direction: column; gap: 16px; }
.popular-post {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  transition: var(--transition);
}
.popular-post:hover { background: rgba(255, 255, 255, 0.03); }

.popular-post .post-image {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.popular-post .post-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.popular-post h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.popular-post h4 a { color: var(--text); text-decoration: none; transition: var(--transition); }
.popular-post h4 a:hover { color: var(--primary); }
.popular-post .post-meta { font-size: 12px; color: var(--muted); }

/* Newsletter */
.newsletter-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-form input {
  padding: 12px 16px;
  background: rgba(45, 45, 45, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.15);
}

/* Tags as buttons */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tag:hover { background: var(--primary); color: var(--bg); border-color: var(--primary); }

/* CTA Card */
.cta-card {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(26, 26, 26, 0.8) 100%);
  border-color: rgba(0, 255, 136, 0.3);
}
.cta-card h3 { color: var(--primary); }

/* ================================
   FEATURED ARTICLE
================================ */
.featured-article {
  padding: clamp(60px, 10vw, 80px) 0;
  background: rgba(26, 26, 26, 0.4);
  border-top: 1px solid var(--border);
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: var(--backdrop-blur);
}

.featured-image { height: 400px; }
.gradient-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(45, 45, 45, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}
.gradient-placeholder.large { height: 300px; }

.featured-content { padding: clamp(24px, 6vw, 40px); }
.featured-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(0, 255, 136, 0.15);
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-content h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--text);
}

.featured-content p { color: var(--muted); font-size: 16px; margin-bottom: 20px; }
.featured-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.featured-meta .author { color: var(--primary); font-weight: 800; }

/* ================================
   FOOTER
================================ */
footer {
  background: linear-gradient(135deg, var(--secondary) 0%, rgba(15, 15, 15, 0.95) 100%);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 100vw;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-brand p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

.footer-contact h3 { font-size: 1.2rem; margin-bottom: 1.5rem; }
.footer-contact a, .footer-contact p {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.8;
  transition: var(--transition);
  display: block;
}

.footer-contact a:hover { color: var(--primary); transform: translateX(4px); }

.social-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.social-link {
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  text-decoration: none;
}
.social-link:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ================================
   FLOATING BUTTONS
================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: bold;
  box-shadow: 0 15px 40px rgba(0, 255, 136, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 100px, 0) scale(0.6);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
}

.scroll-top:hover {
  transform: translate3d(0, -10px, 0) scale(1.1);
  box-shadow: 0 30px 60px rgba(0, 255, 136, 0.6);
}

/* WhatsApp */
#whatsapp-launcher { position: fixed; bottom: 110px; right: 20px; z-index: 10000; }

#togglePanel {
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(33, 162, 80, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

#togglePanel:hover { transform: scale(1.12) rotate(4deg); box-shadow: 0 25px 50px rgba(37, 211, 102, 0.6); }
#togglePanel img { width: 52px; height: 52px; }

#togglePanel.attention-glow { animation: float-whatsapp 3s ease-in-out infinite; }

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.5);
}

#glass-widget {
  position: fixed;
  bottom: 190px;
  right: 20px;
  z-index: 9999;
  width: 320px;
  max-width: calc(100vw - 40px);
  padding: 24px;
  border-radius: 20px;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(25px);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 30px, 0) scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#glass-widget.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

#glass-widget h4 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  color: var(--primary);
  font-family: var(--font-heading);
}

#whatsappService {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: rgba(45, 45, 45, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: all 0.3s ease;
}

#whatsappService:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.2);
}

#dynamicWhatsapp {
  display: block;
  margin-top: 16px;
  text-align: center;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--gradient);
  color: var(--secondary);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 255, 136, 0.3);
  transition: all 0.3s ease;
}

#dynamicWhatsapp:hover {
  transform: translate3d(0, -4px, 0) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 255, 136, 0.5);
}

.widget-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .desktop-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .main-header { padding: 0.75rem 0; }
  .logo img { height: 34px; max-width: 150px; }

  .filter-toggle { display: flex; }
  .filter-content {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }
  .filter-content.active { display: flex; }
  .category-chips { justify-content: center; }

  .blog-layout { grid-template-columns: 1fr; gap: 2rem; }
  .blog-sidebar { position: static; order: 2; }

  .featured-card { grid-template-columns: 1fr; }
  .featured-image { height: 250px; }

  .footer-container { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .social-links { justify-content: center; }

  .scroll-top {
    width: 55px; height: 55px;
    bottom: 1.5rem; right: 1.5rem;
  }

  #whatsapp-launcher { bottom: 90px; right: 16px; }
  #togglePanel { width: 65px; height: 65px; }
  #togglePanel img { width: 48px; height: 48px; }

  #glass-widget { width: 300px; right: 16px; bottom: 170px; padding: 20px; }
}

@media (max-width: 1023px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .trust-indicators { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .stats-strip { justify-content: center; }
  .search-container { max-width: 100%; }
}

@media (max-width: 480px) {
  #glass-widget { right: 12px; left: 12px; width: auto; bottom: 160px; }
  .blog-hero { padding: 100px 0 40px; }
  .hero-left h1 { font-size: 2rem; }
  .search-box { flex-direction: column; }
}

/* ================================
   ANIMATIONS + ACCESSIBILITY
================================ */
@keyframes float-whatsapp {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.nav-link:focus,
.cta-button:focus,
.hamburger:focus,
.mobile-nav-link:focus,
.accordion-trigger:focus,
.chip:focus,
.btn:focus,
.pagination-btn:focus,
.pagination-number:focus,
.tag:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.blog-card:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .blog-card:hover { transform: none; }
}

@media print {
  .blog-hero, .filter-section, .blog-sidebar, .featured-article, footer, .scroll-top, #whatsapp-launcher, #glass-widget {
    display: none !important;
  }
}


/* Featured image in a Great way  to fix image size of featured image */


.featured-image{
  width: 100%;
  overflow: hidden;
}

.featured-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* image crop/cover */
}
