/* ===== CSS VARIABLES ===== */
:root {
  --primary: #00c8ff;
  --secondary: #7b2dff;
  --accent: #ff2d7b;
  --dark: #0a0e17;
  --darker: #030609; /* Darkened from #05080f */
  --light: #f8fbff; /* Lightened from #f0f5ff */
  --gray: #7a8da9; /* Slightly darker gray for better contrast */
  --text-light: #ffffff;
  --text-muted: #a0a0a0; /* Darkened from #b0b0b0 */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Montserrat', 'Arial Narrow', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 10px;
  --border-radius-sm: 6px;
  --membrane-medium: rgba(123, 45, 255, 0.3);
  --hover-blueish-black: rgba(3, 6, 9, 0.95); /* Updated to match darker */
  --white: #ffffff;
  --glow: 0 0 15px rgba(0, 200, 255, 0.5); /* Slightly stronger glow */
  --clinic-teal: #00e6c3;
  --clinic-teal-dark: #00b39d;
  --clinic-teal-light: #00f7d6;
}

/* ===== COOKIE CONSENT STYLES ===== */
#cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  background: white;
  color: #2c3e50;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
  overflow: hidden;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

#cookie-banner.visible {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

#cookie-banner .popup-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#cookie-banner .popup-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #2c3e50;
}

#cookie-banner .cookie-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 10px 15px;
}

#cookie-banner .cookie-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

#cookie-banner .cookie-name {
  font-size: 0.9rem;
  font-weight: 500;
}

#cookie-banner .toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

#cookie-banner .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#cookie-banner .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  transition: .4s;
  border-radius: 20px;
}

#cookie-banner .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

#cookie-banner input:checked + .slider {
  background-color: #2ecc71;
}

#cookie-banner input:checked + .slider:before {
  transform: translateX(20px);
}

#cookie-banner .popup-actions {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  background: #f9f9f9;
}

#cookie-banner .btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
  font-size: 0.85rem;
}

#cookie-banner .btn-primary {
  background: #2ecc71;
  color: white;
}

#cookie-banner .btn-primary:hover {
  background: #27ae60;
}

#cookie-banner .btn-secondary {
  background: #95a5a6;
  color: white;
}

#cookie-banner .btn-secondary:hover {
  background: #7f8c8d;
}

#cookie-banner .btn-accept-all {
  background: #3498db;
  color: white;
}

#cookie-banner .btn-accept-all:hover {
  background: #2980b9;
}

#cookie-banner .cookie-policy-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: #3498db;
  text-decoration: none;
  font-size: 0.85rem;
}

#cookie-banner .cookie-policy-link:hover {
  text-decoration: underline;
}


/* Global Variables */
:root {
  --primary: #00c8ff;
  --secondary: #7b2dff;
  --accent: #ff2d7b;
  --dark: #0a0e17;
  --darker: #05080f;
  --light: #f0f5ff;
  --gray: #8a9bb8;
  --text-light: #ffffff;
  --text-muted: #b0b0b0;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Montserrat', 'Arial Narrow', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 10px;
  --border-radius-sm: 6px;
  --membrane-medium: rgba(123, 45, 255, 0.3);
  --hover-blueish-black: rgba(5, 8, 15, 0.95);
  --white: #ffffff;
  --glow: 0 0 15px rgba(0, 200, 255, 0.4);
}



/* Particle Background */
.particle-network {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
}



/* Enhanced Container Glow Effects with reduced intensity */
.main-container,
#cookie-banner {
  box-shadow: 0 0 6px rgba(123, 45, 255, 0.15), 
              0 0 10px rgba(0, 200, 255, 0.1);
  transition: box-shadow 0.3s ease;
  border: 1px solid rgba(0, 100, 255, 0.4); /* Dark blue border */
}


/* Additional elements with borders for better section visibility */
.cookie-item,
.cookie-list,
.popup-header,
.popup-actions,
.btn {
  border: 1px solid rgba(0, 100, 255, 0.3);
}



/* Enhanced rounded corners for all containers */
.main-container,
#cookie-banner,
.cookie-item,
.cookie-list,
.popup-header,
.popup-actions,
.btn {
  border-radius: var(--border-radius);
}



/* ===== NEW CONTENT STYLES ===== */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-section {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(5, 8, 15, 0.7) 0%, rgba(10, 14, 23, 0.7) 100%);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 200, 255, 0.2);
}

.hero-title {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-family: var(--font-heading);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--light);
  max-width: 800px;
  margin: 0 auto 2rem;
  font-weight: 300;
}

/* Lazy loading styles */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Placeholder for images */
.lazy-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--border-radius);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
    /* Blog Hero Section */
    .blog-hero {
      padding: 35px 2rem 35px;
      text-align: center;
      max-width: 900px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    .blog-hero h1 {
      font-family: var(--font-heading);
      font-size: 3.2rem;
      margin-bottom: 1.5rem;
      line-height: 1.2;
      text-transform: uppercase;
    }

    .blog-hero p {
      font-size: 1.2rem;
      color: var(--gray);
      max-width: 700px;
      margin: 0 auto 2.5rem;
      line-height: 1.7;
    }

    .highlight {
      color: var(--primary);
      position: relative;
    }

    /* Blog Content Section */
    .blog-container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 2rem 100px;
      display: grid;
      grid-template-columns: 1fr 350px;
      gap: 40px;
      position: relative;
      z-index: 1;
    }

    .featured-article {
      background: rgba(5, 8, 15, 0.85);
      border-radius: var(--border-radius);
      overflow: hidden;
      box-shadow: var(--shadow-lg);
      margin-bottom: 50px;
      transition: var(--transition);
      border: 1px solid rgba(0, 200, 255, 0.1);
    }

    .featured-article:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-xl);
      border-color: var(--primary);
    }

    .featured-image {
      width: 100%;
      height: 400px;
      overflow: hidden;
    }

    .featured-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: var(--transition);
    }

    .featured-article:hover .featured-image img {
      transform: scale(1.05);
    }

    .featured-content {
      padding: 30px;
    }

    .category-tag {
      display: inline-block;
      background: rgba(0, 200, 255, 0.1);
      color: var(--primary);
      padding: 5px 15px;
      border-radius: 20px;
      font-size: 0.85rem;
      margin-bottom: 15px;
    }

    .featured-content h2 {
      font-size: 1.8rem;
      margin-bottom: 15px;
      color: var(--text-light);
    }

    .featured-content p {
      color: var(--text-muted);
      margin-bottom: 25px;
      line-height: 1.7;
    }

    .meta {
      display: flex;
      align-items: center;
      gap: 15px;
      color: var(--gray);
      font-size: 0.9rem;
      margin-bottom: 20px;
    }

    .meta div {
      display: flex;
      align-items: center;
      gap: 5px;
    }

       .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 12px 25px;
      border-radius: var(--border-radius-sm);
      font-weight: 600;
      text-decoration: none;
      transition: var(--transition);
      gap: 8px;
      background: var(--primary);
      color: var(--dark);
    }

    .btn:hover {
      background: #00b4e6;
      transform: translateY(-2px);
      box-shadow: var(--glow);
    }
    /* Articles Grid */
    .articles-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 30px;
      margin-bottom: 50px;
    }

    .article-card {
      background: rgba(5, 8, 15, 0.85);
      border-radius: var(--border-radius);
      overflow: hidden;
      box-shadow: var(--shadow-md);
      transition: var(--transition);
      border: 1px solid rgba(0, 200, 255, 0.1);
    }

    .article-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-lg);
      border-color: var(--primary);
    }

    .article-image {
      width: 100%;
      height: 200px;
      overflow: hidden;
    }

    .article-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: var(--transition);
    }

    .article-card:hover .article-image img {
      transform: scale(1.05);
    }

    .article-content {
      padding: 25px;
    }

    .article-content h3 {
      font-size: 1.25rem;
      margin-bottom: 12px;
      color: var(--text-light);
    }

    .article-content p {
      color: var(--text-muted);
      margin-bottom: 20px;
      font-size: 0.95rem;
      line-height: 1.6;
    }

    /* Sidebar */
    .sidebar {
      background: rgba(5, 8, 15, 0.85);
      border-radius: var(--border-radius);
      padding: 30px;
      box-shadow: var(--shadow-md);
      border: 1px solid rgba(0, 200, 255, 0.1);
      align-self: start;
      position: sticky;
      top: 100px;
    }

    .sidebar h3 {
      font-size: 1.3rem;
      color: var(--text-light);
      margin-bottom: 25px;
      padding-bottom: 15px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      position: relative;
    }

    .sidebar h3::after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 0;
      width: 50px;
      height: 2px;
      background: var(--primary);
    }

    .categories-list {
      list-style: none;
      margin-bottom: 30px;
    }

    .categories-list li {
      margin-bottom: 15px;
    }

    .categories-list a {
      display: flex;
      justify-content: space-between;
      color: var(--text);
      text-decoration: none;
      transition: var(--transition);
      padding: 8px 0;
    }

    .categories-list a:hover {
      color: var(--primary);
      transform: translateX(5px);
    }

    .categories-list span {
      background: rgba(0, 200, 255, 0.1);
      color: var(--primary);
      padding: 2px 10px;
      border-radius: 20px;
      font-size: 0.8rem;
    }

    .popular-posts {
      list-style: none;
    }

    .popular-post {
      display: flex;
      gap: 15px;
      margin-bottom: 20px;
      padding-bottom: 20px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .popular-post:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: none;
    }

    .post-image {
      width: 80px;
      height: 80px;
      border-radius: var(--border-radius-sm);
      overflow: hidden;
      flex-shrink: 0;
    }

    .post-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .post-content h4 {
      font-size: 0.95rem;
      margin-bottom: 5px;
      color: var(--text-light);
    }

    .post-content .meta {
      font-size: 0.8rem;
      margin-bottom: 0;
    }

    .newsletter-form {
      background: rgba(0, 200, 255, 0.05);
      border-radius: var(--border-radius-sm);
      padding: 25px;
      margin-top: 30px;
    }

    .newsletter-form p {
      color: var(--text-muted);
      margin-bottom: 20px;
      font-size: 0.95rem;
    }

    .form-group {
      margin-bottom: 15px;
    }

    .form-group input {
      width: 100%;
      padding: 12px 15px;
      background: rgba(5, 8, 15, 0.85);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: var(--border-radius-sm);
      color: var(--text-light);
      font-family: var(--font-main);
    }

    .form-group input:focus {
      outline: none;
      border-color: var(--primary);
    }

    .btn-block {
      display: block;
      width: 100%;
      text-align: center;
    }

    /* CTA Section */
    .cta-section {
      background: linear-gradient(135deg, rgba(0, 86, 179, 0.9) 0%, rgba(0, 61, 130, 0.9) 100%);
      padding: 80px 2rem;
      text-align: center;
      position: relative;
      z-index: 1;
      margin-top: 50px;
    }

    .cta-container {
      max-width: 800px;
      margin: 0 auto;
    }

    .cta-section h2 {
      font-size: 2.2rem;
      margin-bottom: 1.5rem;
      color: var(--text-light);
    }

    .cta-section p {
      font-size: 1.1rem;
      color: rgba(255, 255, 255, 0.9);
      margin-bottom: 2rem;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }

    @media (max-width: 768px) {
      /* Mobile-specific changes to make sections wider */
      .main-container {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
      }
      
      .blog-container {
        padding: 0 1rem 80px;
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
      }
      
      .blog-hero {
        padding: 35px 1rem;
        width: 100%;
      }
      
      .blog-hero h1 {
        font-size: 2.5rem;
      }
      
      .featured-article {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        border-radius: 0;
      }
      
      .featured-content {
        padding: 25px;
      }
      
      .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }
      
      .article-card {
        width: 100%;
        margin: 0;
      }
      
      .sidebar {
        padding: 25px;
        margin: 0 -1rem;
        width: calc(100% + 2rem);
        border-radius: 0;
        position: relative;
        top: 0;
        order: 2;
      }
      
      .cta-section {
        padding: 60px 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
      }
    }
    @media (max-width: 480px) {
      .blog-hero {
        padding: 130px 1rem 60px;
      }
      
      .blog-hero h1 {
        font-size: 2rem;
      }
      
      .featured-image {
        height: 300px;
      }
      
      .featured-content {
        padding: 20px;
      }
      
      .article-content {
        padding: 20px;
      }
      
      .sidebar {
        padding: 20px;
      }
    }


/* Mobile Carousel Styles */
.articles-carousel-container {
  display: none;
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

.articles-carousel {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.articles-carousel .article-card {
  flex: 0 0 85%;
  margin-right: 20px;
  scroll-snap-align: start;
}

.articles-carousel .article-card:last-child {
  margin-right: 0;
}

/* Mobile-only carousel */
@media (max-width: 768px) {
  .articles-grid {
    display: none;
  }
  
  .articles-carousel-container {
    display: block;
  }
  
  .blog-container {
    display: flex;
    flex-direction: column;
  }
  
  .sidebar {
    order: 2;
    position: relative;
    top: 0;
  }
}