/* ================================
   MODERN MEDICAL WEBSITE - DR PONDJA
   Color scheme: Violet/Blue/White
   ================================ */

/* -------- CSS RESET & VARIABLES -------- */
:root {
  /* Colors */
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #a78bfa;
  --secondary: #3b82f6;
  --secondary-dark: #2563eb;
  --accent: #8b5cf6;
  
  --bg-main: #fafafa;
  --bg-card: #ffffff;
  --bg-hero: #f5f3ff;
  
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  
  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* -------- CONTAINER -------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -------- HEADER & NAVIGATION -------- */
header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  flex-shrink: 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--primary);
  background: rgba(124, 58, 237, 0.05);
}

.main-nav a.nav-cta {
  white-space: nowrap;
  background: var(--primary);
  color: white;
  font-weight: 600;
  padding: 10px 20px;
}

.main-nav a.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* -------- BUTTONS -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}

.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

.btn.outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn.outline:hover {
  background: var(--primary);
  color: white;
}

.btn.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* -------- HERO SECTION -------- */
.hero {
  background: var(--bg-hero);
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh; /* Ajouté */
  display: flex; /* Ajouté */
  align-items: center; /* Ajouté */
}

/* IMAGE DE FOND */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./assets/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* OVERLAY SOMBRE pour lisibilité du texte */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Ajustez l'opacité (0.3 à 0.7) */
  z-index: 1;
}

/* EFFETS DÉCORATIFS (gardés mais au-dessus de l'overlay) */
.hero-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero-inner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2; /* Au-dessus de tout */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.95); /* Légèrement transparent */
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px); /* Effet moderne */
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 10px 0;
  color: white; /* Changé en blanc */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); /* Ombre pour lisibilité */
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95); /* Blanc légèrement transparent */
  max-width: 700px;
  margin: 0 auto 10px;
  line-height: 1.6;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7); /* Ombre pour lisibilité */
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.hero-stats {
  display: flex;
  gap: 60px;
  margin-top: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.9); /* Fond pour les stats */
  padding: 20px 30px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    padding: 80px 20px 60px;
    min-height: 90vh;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    padding: 0 10px;
  }
  
  .hero-inner::before,
  .hero-inner::after {
    width: 400px;
    height: 400px;
  }
}

/* -------- SECTIONS -------- */
section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* -------- SERVICES SECTION -------- */
.services {
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.service-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

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

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-cta {
  text-align: center;
  margin-top: 40px;
}

/* -------- CABINETS SECTION -------- */
.cabinets {
  background: var(--bg-main);
}

.cabinets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.cabinet-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.cabinet-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.cabinet-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.cabinet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.cabinet-card:hover .cabinet-image img {
  transform: scale(1.05);
}

.cabinet-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
}

.cabinet-content {
  padding: 32px;
}

.cabinet-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.cabinet-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
}

.info-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}

.info-item a {
  color: var(--primary);
  font-weight: 500;
}

.info-item a:hover {
  text-decoration: underline;
}

/* Gallery */
.gallery-section {
  margin-top: 60px;
}

.gallery-section h3 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  aspect-ratio: 3/2;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* -------- ABOUT SECTION -------- */
.about {
  background: white;
}

.about-container {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: start;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: white;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.credential-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.credential-item svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 4px;
}

.credential-item strong {
  display: block;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 2px;
}

.credential-item span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* -------- TESTIMONIALS & FAQ -------- */
.testimonials-faq {
  background: var(--bg-main);
}

.tf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.tf-card {
  background: white;
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 2px solid transparent;
}

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

.tf-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.tf-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.tf-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* -------- APPOINTMENT SECTION -------- */
.appointment {
  background: var(--primary);
  color: white;
  padding: 100px 0;
}

.appointment-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.appointment-content h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.appointment-content > p {
  font-size: 1.2rem;
  margin-bottom: 50px;
  opacity: 0.95;
}

.appointment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.appointment-card {
  background: white;
  padding: 36px 28px;
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.appointment-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.appointment-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.appointment-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.appointment-card p {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.appointment-card a {
  color: var(--primary);
  font-weight: 600;
}

.appointment-card a:hover {
  text-decoration: underline;
}

.appointment-card .btn {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

.urgency-note {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.urgency-note svg {
  flex-shrink: 0;
  color: white;
}

.urgency-note p {
  margin: 0;
  font-size: 0.95rem;
  text-align: left;
  color: white;
}

.urgency-note a {
  color: white;
  font-weight: 700;
  text-decoration: underline;
}

/* -------- FOOTER -------- */
footer {
  background: #1f2937;
  color: white;
  padding: 60px 0 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: white;
  padding-left: 4px;
}

.footer-col ul li svg {
  flex-shrink: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

/* -------- RESPONSIVE DESIGN -------- */

/* Tablets */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .cabinets-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 0 15px;
  }
  
  /* Header */
  .nav-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: var(--transition);
  }
  
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }
  
  .main-nav a {
    display: block;
    padding: 12px 16px;
  }
  
  /* Hero */
  .hero {
    padding: 60px 0 50px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-stats {
    gap: 40px;
  }
  
  /* Sections */
  section {
    padding: 50px 0;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Cabinets */
  .cabinets-grid {
    grid-template-columns: 1fr;
  }
  
  .cabinet-card {
    margin-bottom: 20px;
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Testimonials & FAQ */
  .tf-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* Appointment */
  .appointment {
    padding: 60px 0;
  }
  
  .appointment-content h2 {
    font-size: 2rem;
  }
  
  .appointment-options {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .urgency-note {
    flex-direction: column;
    text-align: center;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}

/* ================================
   BLOG-SPECIFIC STYLES
   ================================ */

/* Blog Hero */
.hero-blog {
  padding: 80px 0 60px;
}

/* Blog Section */
.blog-section {
  background: white;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
}

.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.blog-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.blog-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.blog-meta svg {
  flex-shrink: 0;
}

.reading-time {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.blog-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-content h3 a {
  color: var(--text-primary);
  transition: var(--transition);
}

.blog-content h3 a:hover {
  color: var(--primary);
}

.blog-content > p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.read-more:hover {
  gap: 10px;
  text-decoration: underline;
}

/* Full Articles */
.full-articles {
  background: var(--bg-main);
  padding: 80px 0;
}

.full-article {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-bottom: 60px;
  box-shadow: var(--shadow-md);
}

.article-header {
  text-align: center;
  margin-bottom: 32px;
}

.article-category {
  display: inline-block;
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.full-article h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
  color: var(--text-primary);
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.article-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content .lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-weight: 500;
}

.article-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.article-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.article-content li strong {
  color: var(--text-primary);
}

.article-callout {
  background: rgba(124, 58, 237, 0.05);
  border-left: 4px solid var(--primary);
  padding: 24px;
  border-radius: var(--radius-md);
  margin: 32px 0;
  display: flex;
  gap: 16px;
}

.article-callout.warning {
  background: rgba(245, 158, 11, 0.05);
  border-left-color: #f59e0b;
}

.article-callout svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.article-callout.warning svg {
  color: #f59e0b;
}

.article-callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.article-callout p {
  margin: 0;
}

.article-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

/* Blog CTA Section */
.blog-cta {
  background: var(--primary);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.cta-content p {
  font-size: 1.15rem;
  margin-bottom: 32px;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-cta .btn.primary {
  background: white;
  color: var(--primary);
}

.blog-cta .btn.primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.blog-cta .btn.outline {
  border-color: white;
  color: white;
}

.blog-cta .btn.outline:hover {
  background: white;
  color: var(--primary);
}

/* Responsive Blog */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .full-article {
    padding: 32px 24px;
  }
  
  .full-article h2 {
    font-size: 1.8rem;
  }
  
  .article-content .lead {
    font-size: 1.05rem;
  }
  
  .article-content h3 {
    font-size: 1.4rem;
  }
  
  .article-cta {
    flex-direction: column;
  }
  
  .article-cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
  
  .cta-content p {
    font-size: 1rem;
  }
}