/* ================================
   BLOG STYLES - MODERN DESIGN
   ================================ */

:root {
  --primary-purple: #6B46C1;
  --primary-pink: #EC4899;
  --primary-blue: #3B82F6;
  --primary-cyan: #06B6D4;
  --primary-indigo: #6366F1;
  --accent-orange: #F59E0B;
  --accent-rose: #F43F5E;
  --accent-violet: #8B5CF6;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --white: #FFFFFF;
  --soft-gray: #F9FAFB;
  --medium-gray: #E5E7EB;
  --cool-gray: #9CA3AF;
  --dark-gray: #1F2937;
  --slate: #0F172A;
  --text-gray: #4B5563;
  --gradient-1: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
  --gradient-2: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
  --gradient-3: linear-gradient(135deg, var(--accent-violet), var(--accent-rose));
  --gradient-4: linear-gradient(135deg, var(--primary-indigo), var(--primary-purple));
  --gradient-mesh: radial-gradient(circle at 20% 80%, rgba(236,72,153,0.3) 0%, transparent 50%), 
                   radial-gradient(circle at 80% 20%, rgba(107,70,193,0.3) 0%, transparent 50%), 
                   radial-gradient(circle at 40% 40%, rgba(59,130,246,0.2) 0%, transparent 50%);
  --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  --shadow-sm: 0 1px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-colored: 0 8px 32px rgba(107, 70, 193, 0.25);
  --shadow-glow: 0 0 40px rgba(236, 72, 153, 0.4);
}

/* ================================
   BLOG HERO SECTION
   ================================ */

.blog-hero {
  position: relative;
  min-height: 70vh;
  background: var(--gradient-hero);
  background-attachment: fixed;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh);
  opacity: 0.6;
  animation: meshFloat 15s ease-in-out infinite;
}

.particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gradient-1);
  border-radius: 50%;
  opacity: 0.7;
  animation: float 8s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 30%; animation-delay: 2s; }
.particle:nth-child(3) { top: 30%; left: 70%; animation-delay: 4s; }
.particle:nth-child(4) { top: 80%; left: 20%; animation-delay: 6s; }
.particle:nth-child(5) { top: 40%; left: 90%; animation-delay: 8s; }

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.title-word {
  display: inline-block;
  margin: 0 0.3rem;
  opacity: 0;
  transform: translateY(50px);
  animation: slideInUp 1s ease-out forwards;
}

.title-word:nth-child(1) { animation-delay: 0.2s; }
.title-word:nth-child(2) { animation-delay: 0.4s; }
.title-word:nth-child(3) { animation-delay: 0.6s; }

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--cool-gray);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.8s forwards;
}

.hero-search {
  max-width: 500px;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 1s forwards;
}

.search-box {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 50px;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.search-box:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.search-input {
  background: transparent;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  color: var(--white);
  width: calc(100% - 60px);
  outline: none;
}

.search-input::placeholder {
  color: var(--cool-gray);
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-1);
  border: none;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-colored);
}

.blog-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.2s forwards;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--cool-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

/* ================================
   FEATURED ARTICLES
   ================================ */

.featured-articles {
  background: var(--soft-gray);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.title-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.title-decoration span {
  width: 50px;
  height: 2px;
  background: var(--gradient-1);
}

.title-decoration i {
  color: var(--primary-purple);
  font-size: 1.2rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.featured-main .article-card {
  height: 100%;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s ease;
  position: relative;
}

.featured-main .article-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.featured-main .article-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.featured-main .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-main .article-card:hover .article-image img {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.category-badge {
  background: var(--gradient-1);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-badge.small {
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
}

.article-content {
  padding: 2rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--cool-gray);
}

.article-title a {
  color: var(--dark-gray);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.article-title a:hover {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-excerpt {
  color: var(--text-gray);
  line-height: 1.6;
  margin: 1rem 0 1.5rem;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-info img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.read-more-btn {
  background: var(--gradient-1);
  color: var(--white);
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more-btn:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-colored);
  color: var(--white);
}

/* Featured Side Articles */
.featured-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mini-card {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.mini-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
}

.mini-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.mini-content h4 a {
  color: var(--dark-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mini-content h4 a:hover {
  color: var(--primary-purple);
}

.mini-meta {
  font-size: 0.8rem;
  color: var(--cool-gray);
  display: flex;
  gap: 1rem;
}

.mini-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
}

.mini-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================
   CATEGORY FILTER
   ================================ */

.category-filter {
  background: var(--white);
  border-top: 1px solid var(--medium-gray);
  border-bottom: 1px solid var(--medium-gray);
  position: sticky;
  top: 80px;
  z-index: 10;
  backdrop-filter: blur(20px);
  padding: 0.5rem 0;
}

.filter-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-purple) var(--medium-gray);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
}

.filter-container::-webkit-scrollbar {
  height: 6px;
  display: block;
}

.filter-container::-webkit-scrollbar-track {
  background: var(--medium-gray);
  border-radius: 3px;
}

.filter-container::-webkit-scrollbar-thumb {
  background: var(--gradient-1);
  border-radius: 3px;
}

.filter-container::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-2);
}

/* Add scroll indicators for mobile */
.filter-container::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(to left, var(--white), transparent);
  pointer-events: none;
  z-index: 2;
}

.filter-btn {
  background: var(--white);
  border: 2px solid var(--medium-gray);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  color: var(--text-gray);
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  position: relative;
  min-width: fit-content;
  flex-shrink: 0;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  border-color: var(--primary-purple);
  color: var(--primary-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.filter-btn.active {
  background: var(--gradient-1);
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--shadow-colored);
}

.filter-btn.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-1);
  border-radius: 25px;
  z-index: -1;
  opacity: 0.3;
  animation: pulse 2s ease-in-out infinite;
}

/* ================================
   BLOG GRID
   ================================ */

.blog-grid-section {
  background: var(--soft-gray);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
  cursor: pointer;
  position: relative;
}

.blog-card.show {
  opacity: 1;
  transform: translateY(0);
}

.blog-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: var(--shadow-xl);
}

/* Ensure article links are clickable and accessible */
.blog-card .card-title a {
  position: relative;
  z-index: 10;
  color: var(--dark-gray);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  transition: all 0.3s ease;
  display: block;
  padding: 0.2rem 0;
  cursor: pointer;
}

.blog-card .card-title a:hover,
.blog-card .card-title a:focus {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  outline: none;
}

.blog-card .card-title a:focus {
  box-shadow: 0 0 0 2px var(--primary-purple);
  border-radius: 4px;
}

/* Ensure interaction elements don't interfere with card clicks */
.blog-card .interactions span {
  position: relative;
  z-index: 5;
  cursor: pointer;
}

.blog-card .category-badge {
  position: relative;
  z-index: 5;
  cursor: pointer;
}

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

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .card-image img {
  transform: scale(1.1) rotate(2deg);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(107,70,193,0.8), rgba(236,72,153,0.8));
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card:hover .card-overlay {
  opacity: 1;
}

.view-icon {
  color: var(--white);
  font-size: 2rem;
  transform: scale(0);
  transition: transform 0.3s ease 0.1s;
}

.blog-card:hover .view-icon {
  transform: scale(1);
}

.card-content {
  padding: 1.5rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.category {
  background: var(--gradient-2);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date {
  color: var(--cool-gray);
  font-size: 0.8rem;
}

.card-title {
  margin-bottom: 1rem;
}

.card-excerpt {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--medium-gray);
}

.read-time {
  color: var(--cool-gray);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.interactions {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--cool-gray);
}

.interactions span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.3s ease;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.interactions span:hover {
  color: var(--primary-purple);
  background: rgba(107, 70, 193, 0.1);
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin-top: 3rem;
}

.load-more-btn {
  background: var(--gradient-1);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.load-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.load-more-btn:hover::before {
  left: 100%;
}

.load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.load-more-btn .fa-spinner {
  display: none;
  animation: spin 1s linear infinite;
}

.load-more-btn.loading .fa-spinner {
  display: inline-block;
}

/* ================================
   SIDEBAR
   ================================ */

.blog-sidebar {
  position: sticky;
  top: 140px;
  height: fit-content;
}

.sidebar-widget {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

.widget-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1rem;
}

.widget-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-1);
  border-radius: 2px;
}

/* Author Widget */
.author-widget {
  text-align: center;
  background: var(--gradient-mesh);
}

.author-card {
  position: relative;
}

.author-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-colored);
}

.author-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

.author-card p {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.author-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.author-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.author-social a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-colored);
}

/* Newsletter Widget */
.newsletter-widget {
  background: var(--gradient-4);
  color: var(--white);
}

.newsletter-widget .widget-title {
  color: var(--white);
}

.newsletter-widget .widget-title::before {
  background: var(--white);
}

.newsletter-widget p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form input {
  padding: 1rem;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.7);
}

.newsletter-form button {
  padding: 1rem;
  border: none;
  border-radius: 10px;
  background: var(--white);
  color: var(--primary-purple);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

.subscriber-count {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
  margin-top: 1rem;
}

/* Popular Posts Widget */
.popular-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popular-post {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: var(--soft-gray);
  transition: all 0.3s ease;
}

.popular-post:hover {
  background: var(--medium-gray);
  transform: translateX(5px);
}

.post-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient-2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.post-content h5 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.post-content h5 a {
  color: var(--dark-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-content h5 a:hover {
  color: var(--primary-purple);
}

.post-views {
  font-size: 0.7rem;
  color: var(--cool-gray);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Tags Widget */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--soft-gray);
  color: var(--text-gray);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  border: 1px solid var(--medium-gray);
}

.tag:hover {
  background: var(--gradient-1);
  color: var(--white);
  transform: translateY(-2px);
  border-color: transparent;
}

/* Resources Widget */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid var(--medium-gray);
  border-radius: 10px;
  text-decoration: none;
  color: var(--dark-gray);
  transition: all 0.3s ease;
}

.resource-item:hover {
  border-color: var(--primary-purple);
  transform: translateX(5px);
  color: var(--primary-purple);
}

.resource-item i {
  font-size: 1.5rem;
  color: var(--primary-purple);
}

/* ================================
   NEWSLETTER CTA
   ================================ */

.newsletter-cta {
  background: var(--gradient-hero);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.newsletter-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-mesh);
  opacity: 0.3;
}

.newsletter-wrapper {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  color: rgba(255,255,255,0.9);
}

.benefits-list i {
  color: var(--accent-emerald);
  font-size: 1.1rem;
}

.newsletter-form-wrapper {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.newsletter-large-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.newsletter-large-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.3);
}

.newsletter-large-form input::placeholder {
  color: rgba(255,255,255,0.7);
}

.newsletter-large-form button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  background: var(--gradient-1);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.newsletter-large-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.privacy-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ================================
   ANIMATIONS
   ================================ */

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes meshFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1200px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-main .article-image {
    height: 250px;
  }
  
  .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .blog-hero {
    min-height: 60vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .blog-stats {
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .featured-side {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .mini-card {
    flex-direction: column;
    text-align: center;
  }
  
  .mini-image {
    width: 100%;
    height: 150px;
  }
  
  /* Enhanced Category Filter Mobile Responsiveness */
  .category-filter {
    padding: 0.8rem 0;
    position: sticky;
    top: 60px;
  }
  
  .filter-container {
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    margin: 0 -1rem;
    scroll-snap-type: x mandatory;
  }
  
  .filter-container::before {
    width: 20px;
    background: linear-gradient(to left, var(--white) 60%, transparent);
  }
  
  .filter-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    min-width: 120px;
    justify-content: center;
    scroll-snap-align: start;
    border-radius: 20px;
  }
  
  .filter-btn i {
    font-size: 0.9rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .sidebar-widget {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .newsletter-large-form {
    flex-direction: column;
  }
  
  .benefits-list {
    margin-bottom: 1.5rem;
  }
  
  /* Improve article link accessibility */
  .card-title a {
    position: relative;
    z-index: 2;
    display: block;
    padding: 0.2rem 0;
  }
  
  .blog-card {
    cursor: pointer;
    position: relative;
  }
  
  .blog-card .card-content {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .blog-stats {
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .search-box {
    padding: 0.3rem;
  }
  
  .search-input {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
  
  .search-btn {
    width: 36px;
    height: 36px;
  }
  
  /* Enhanced Mobile Category Filter */
  .category-filter {
    padding: 0.5rem 0;
    top: 50px;
  }
  
  .filter-container {
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    margin: 0 -0.8rem;
  }
  
  .filter-container::before {
    width: 15px;
  }
  
  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    min-width: 100px;
    border-radius: 18px;
  }
  
  .filter-btn i {
    font-size: 0.8rem;
  }
  
  /* Ensure filter buttons are always visible and scrollable */
  .filter-container {
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0.5rem;
  }
  
  /* Add visible scroll hint for mobile users */
  .category-filter::after {
    content: 'Swipe to see more →';
    position: absolute;
    bottom: 2px;
    right: 1rem;
    font-size: 0.7rem;
    color: var(--cool-gray);
    opacity: 0.8;
    pointer-events: none;
  }
  
  .article-content {
    padding: 1.5rem;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .sidebar-widget {
    padding: 1rem;
  }
  
  .newsletter-form-wrapper {
    padding: 1.5rem;
  }
  
  /* Improve touch targets for article links */
  .card-title a {
    padding: 0.5rem 0;
    margin: -0.5rem 0;
    touch-action: manipulation;
  }
  
  .blog-card {
    touch-action: manipulation;
  }
  
  .blog-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--gradient-1);
  z-index: 9999;
  transition: width 0.25s ease;
  box-shadow: var(--shadow-glow);
}

/* Fade-in on scroll utility classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}