/* ============================================
   BLOG PAGE - ULTRA HIGH-END BLACK/CYAN DESIGN
   Advanced animations & particle effects
   ============================================ */

/* Override body background for blog page */
body {
  background-color: #000000 !important;
  background-image: none !important;
}

:root {
  --blog-black: #000000;
  --blog-dark: #0a0a0a;
  --blog-darker: #050505;
  --blog-card: #0f0f11;
  --blog-border: rgba(0, 255, 255, 0.1);
  --blog-cyan: #00FFFF;
  --blog-cyan-glow: rgba(0, 255, 255, 0.3);
  --blog-white: #ffffff;
  --blog-gray: #9ca3af;
  --blog-light-gray: #d1d5db;
}

/* ============================================
   ANIMATED BACKGROUND - PARTICLE SYSTEM
   ============================================ */
.blog-animated-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  height: auto;
  z-index: -1;
  background: linear-gradient(180deg, #000000 0%, #0a0a0a 50%, #000000 100%);
  overflow: hidden;
  pointer-events: none;
}

.blog-animated-background canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.blog-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: blogGridFloat 30s linear infinite;
  opacity: 0.4;
}

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

@keyframes blogGridFloat {
  0% {
    transform: translateY(0) translateX(0);
  }
  100% {
    transform: translateY(60px) translateX(30px);
  }
}

.blog-gradient-orbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.blog-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: blogOrbFloat 20s ease-in-out infinite;
}

.blog-orb:nth-child(1) {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--blog-cyan), transparent);
  top: -250px;
  left: -250px;
  animation-duration: 25s;
}

.blog-orb:nth-child(2) {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #00cccc, transparent);
  bottom: -200px;
  right: -200px;
  animation-duration: 30s;
  animation-delay: -10s;
}

.blog-orb:nth-child(3) {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--blog-cyan), transparent);
  top: 50%;
  left: 50%;
  animation-duration: 35s;
  animation-delay: -15s;
}

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

/* ============================================
   BASE STYLES & LAYOUT
   ============================================ */
.page-header,
.blog-section,
.blog-post-content,
.related-posts-section,
.cta-section,
.blog-cta {
  background: transparent !important;
  color: var(--blog-white);
  position: relative;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blog-cyan), transparent);
  opacity: 0.5;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blog-border), transparent);
}

.page-header h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 0 0 20px;
  background: linear-gradient(135deg, var(--blog-white), var(--blog-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  animation: blogHeaderGlow 3s ease-in-out infinite;
}

@keyframes blogHeaderGlow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.5));
  }
}

.page-header p {
  font-size: 1.2rem;
  color: var(--blog-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================
   BLOG FILTERS & SEARCH
   ============================================ */
.blog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

/* Desktop Filters */
.blog-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-filters-desktop {
  display: flex;
}

/* Mobile Dropdown - Hidden by default */
.blog-filters-mobile {
  display: none;
  width: 100%;
}

.filter-dropdown {
  width: 100%;
  padding: 16px 20px;
  background: rgba(0, 20, 20, 0.8);
  border: 2px solid rgba(0, 255, 255, 0.4);
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.15),
    inset 0 0 20px rgba(0, 255, 255, 0.05);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300FFFF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 50px;
}

.filter-dropdown:hover {
  border-color: #00FFFF;
  box-shadow: 
    0 0 30px rgba(0, 255, 255, 0.3),
    inset 0 0 25px rgba(0, 255, 255, 0.1);
}

.filter-dropdown:focus {
  outline: none;
  border-color: #00FFFF;
  box-shadow: 
    0 0 35px rgba(0, 255, 255, 0.4),
    inset 0 0 30px rgba(0, 255, 255, 0.15);
}

.filter-dropdown option {
  background: #0a0a0a;
  color: #ffffff;
  padding: 12px;
}

.filter-btn-blog {
  padding: 12px 28px;
  background: rgba(0, 255, 255, 0.05);
  border: 2px solid var(--blog-border);
  border-radius: 50px;
  color: var(--blog-white);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.filter-btn-blog::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.2), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  border-radius: 50%;
}

.filter-btn-blog:hover::before {
  width: 300px;
  height: 300px;
}

.filter-btn-blog:hover {
  border-color: var(--blog-cyan);
  box-shadow: 0 4px 25px rgba(0, 255, 255, 0.3);
  transform: translateY(-2px);
}

.filter-btn-blog.active {
  background: linear-gradient(135deg, var(--blog-cyan), #00cccc);
  border-color: var(--blog-cyan);
  color: var(--blog-black);
  box-shadow: 0 8px 30px rgba(0, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Blog Search */
.blog-search-wrapper {
  position: relative;
  max-width: 400px;
  flex: 1;
}

.blog-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blog-cyan);
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 2;
}

.blog-search-input {
  width: 100%;
  padding: 14px 50px 14px 50px;
  background: rgba(0, 255, 255, 0.03);
  border: 2px solid var(--blog-border);
  border-radius: 50px;
  color: var(--blog-white);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

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

.blog-search-input:focus {
  border-color: var(--blog-cyan);
  background: rgba(0, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.1), 0 8px 30px rgba(0, 255, 255, 0.2);
}

.blog-search-clear {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--blog-gray);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.blog-search-clear.active {
  opacity: 1;
  visibility: visible;
}

.blog-search-clear:hover {
  color: var(--blog-cyan);
}

/* ============================================
   BLOG GRID
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 35px;
  margin-bottom: 60px;
}

/* Blog Card */
.blog-card {
  background: rgba(15, 15, 17, 0.8);
  border: 1px solid var(--blog-border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(10px);
  animation: blogCardFadeIn 0.6s ease-out forwards;
}

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

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

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

.blog-card:hover {
  border-color: var(--blog-cyan);
  transform: translateY(-8px);
  box-shadow: 
    0 20px 60px rgba(0, 255, 255, 0.15),
    0 0 40px rgba(0, 255, 255, 0.1);
}

/* Blog Image */
.blog-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--blog-darker);
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.9);
}

.blog-card:hover .blog-image img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.blog-category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--blog-cyan), #00cccc);
  color: var(--blog-black);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 50px;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
}

/* Blog Content */
.blog-content {
  padding: 28px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--blog-gray);
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-meta-item i {
  color: var(--blog-cyan);
  font-size: 0.9rem;
}

.blog-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.4;
  color: var(--blog-white);
  transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
  color: var(--blog-cyan);
}

.blog-excerpt {
  color: var(--blog-gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blog-cyan);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
}

.blog-read-more i {
  transition: transform 0.3s ease;
}

.blog-read-more:hover {
  gap: 15px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.blog-read-more:hover i {
  transform: translateX(5px);
}

/* ============================================
   PAGINATION
   ============================================ */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 60px 0 30px;
  padding: 20px;
  position: relative;
}

.pagination-btn {
  width: 50px;
  height: 50px;
  background: rgba(0, 20, 20, 0.6);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 12px;
  color: #00FFFF;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.1),
    inset 0 0 20px rgba(0, 255, 255, 0.05);
}

.pagination-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(0, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pagination-btn:hover::before {
  opacity: 1;
}

.pagination-btn:hover {
  border-color: #00FFFF;
  background: rgba(0, 255, 255, 0.15);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 6px 30px rgba(0, 255, 255, 0.4),
    inset 0 0 30px rgba(0, 255, 255, 0.1);
  color: #ffffff;
}

.pagination-btn i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.pagination-btn:hover i {
  transform: scale(1.2);
}

/* Disable state for first/last when on first/last page */
.pagination-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-current {
  padding: 14px 32px;
  background: rgba(0, 10, 10, 0.8);
  border: 2px solid rgba(0, 255, 255, 0.4);
  border-radius: 25px;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 0 25px rgba(0, 255, 255, 0.2),
    inset 0 0 20px rgba(0, 255, 255, 0.08);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  margin: 80px 0;
  padding: 60px 40px;
  background: rgba(0, 255, 255, 0.03);
  border: 2px solid var(--blog-border);
  border-radius: 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.05), transparent);
  animation: ctaRotate 15s linear infinite;
}

@keyframes ctaRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--blog-white), var(--blog-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-text {
  font-size: 1.1rem;
  color: var(--blog-gray);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--blog-cyan), #00cccc);
  border: 2px solid var(--blog-cyan);
  border-radius: 50px;
  color: var(--blog-black);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(0, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  border-radius: 50%;
}

.cta-btn:hover::before {
  width: 300px;
  height: 300px;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 255, 255, 0.5);
}

.cta-btn i {
  transition: transform 0.3s ease;
}

.cta-btn:hover i {
  transform: translateX(5px);
}

/* ============================================
   NO RESULTS MESSAGE
   ============================================ */
.no-results {
  text-align: center;
  padding: 80px 20px;
  display: none;
}

.no-results.show {
  display: block;
}

.no-results i {
  font-size: 4rem;
  color: var(--blog-cyan);
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--blog-white);
}

.no-results p {
  color: var(--blog-gray);
  font-size: 1.1rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
  }

  .page-header h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 100px 0 50px;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  .blog-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-filters {
    justify-content: center;
  }

  .blog-search-wrapper {
    max-width: 100%;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .filter-btn-blog {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 2rem;
    letter-spacing: -1px;
  }

  .blog-card {
    border-radius: 15px;
  }

  .blog-content {
    padding: 20px;
  }

  .blog-title {
    font-size: 1.3rem;
  }

  .cta-section {
    padding: 40px 20px;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   LOADING STATES
   ============================================ */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.blog-card.loading {
  background: linear-gradient(
    90deg,
    rgba(15, 15, 17, 0.8) 0px,
    rgba(0, 255, 255, 0.05) 40px,
    rgba(15, 15, 17, 0.8) 80px
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.blog-card {
  opacity: 0;
  transform: translateY(30px);
}

.blog-card.visible {
  animation: blogCardFadeIn 0.6s ease-out forwards;
}

/* ============================================
   CTA SECTION
   ============================================ */
.blog-cta {
  position: relative;
  padding: 80px 40px 120px;
  margin-top: 40px;
  background: transparent;
  overflow: visible;
}

.blog-cta-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.blog-cta .cta-icon {
  display: none;
}

.blog-cta h2 {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
  letter-spacing: -0.5px;
}

.blog-cta p {
  font-size: 18px;
  color: #b3b3b3;
  margin-bottom: 45px;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.blog-cta .btn-primary,
.blog-cta .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.blog-cta .btn-primary {
  background: linear-gradient(135deg, #00FFFF 0%, #00cccc 100%);
  color: #000000;
  border: 2px solid transparent;
  box-shadow: 
    0 4px 20px rgba(0, 255, 255, 0.4),
    0 0 40px rgba(0, 255, 255, 0.2);
}

.blog-cta .btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.blog-cta .btn-primary:hover::before {
  width: 400px;
  height: 400px;
}

.blog-cta .btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 35px rgba(0, 255, 255, 0.6),
    0 0 60px rgba(0, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.blog-cta .btn-secondary {
  background: rgba(0, 20, 20, 0.6);
  color: #00FFFF;
  border: 2px solid rgba(0, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.2),
    inset 0 0 20px rgba(0, 255, 255, 0.05);
}

.blog-cta .btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.blog-cta .btn-secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(0, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-cta .btn-secondary:hover::before {
  left: 100%;
}

.blog-cta .btn-secondary:hover::after {
  opacity: 1;
}

.blog-cta .btn-secondary:hover {
  transform: translateY(-4px);
  border-color: #00FFFF;
  box-shadow: 
    0 4px 25px rgba(0, 255, 255, 0.4),
    inset 0 0 30px rgba(0, 255, 255, 0.1);
  color: #ffffff;
}

.blog-cta .btn-primary i,
.blog-cta .btn-secondary i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.blog-cta .btn-primary:hover i {
  transform: scale(1.1);
}

.blog-cta .btn-secondary:hover i {
  transform: translateX(3px);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.blog-empty-state {
  text-align: center;
  padding: 100px 40px;
  max-width: 600px;
  margin: 0 auto;
}

.blog-empty-state i {
  font-size: 80px;
  color: rgba(0, 255, 255, 0.3);
  margin-bottom: 30px;
  display: block;
  animation: emptyStateFloat 3s ease-in-out infinite;
}

@keyframes emptyStateFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.blog-empty-state h2 {
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 15px;
}

.blog-empty-state p {
  font-size: 16px;
  color: #999999;
  margin-bottom: 40px;
  line-height: 1.6;
}

.empty-state-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.empty-state-actions .btn-primary,
.empty-state-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.empty-state-actions .btn-primary {
  background: linear-gradient(135deg, #00FFFF 0%, #00cccc 100%);
  color: #000000;
  border: none;
}

.empty-state-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
}

.empty-state-actions .btn-secondary {
  background: transparent;
  color: #00FFFF;
  border: 2px solid #00FFFF;
}

.empty-state-actions .btn-secondary:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

/* Tablets and Small Desktops */
@media (max-width: 1024px) {
  .blog-hero {
    padding: 100px 30px 80px;
  }

  .blog-hero h1 {
    font-size: 48px;
  }

  .blog-controls {
    flex-direction: column;
    gap: 20px;
  }

  .blog-filters {
    width: 100%;
    justify-content: center;
  }

  .filter-btn-blog {
    flex: 0 1 auto;
  }

  .blog-search-wrapper {
    width: 100%;
    max-width: 100%;
  }

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

  .blog-cta h2 {
    font-size: 38px;
  }
  
  /* Move pagination above blog grid on tablet */
  .blog-posts-container {
    display: flex;
    flex-direction: column;
  }
  
  .blog-pagination {
    order: -1;
    margin: 30px 0 40px;
  }
  
  .blog-grid {
    order: 0;
  }
}
/* Mobile Devices */
@media (max-width: 768px) {
  .blog-hero {
    padding: 80px 20px 60px;
  }

  .blog-hero h1 {
    font-size: 36px;
  }

  .blog-hero p {
    font-size: 16px;
  }

  /* Hide desktop filters, show mobile dropdown */
  .blog-filters-desktop {
    display: none !important;
  }

  .blog-filters-mobile {
    display: block;
    width: 100%;
  }

  /* Mobile-optimized controls layout */
  .blog-controls {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .blog-search-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .blog-search-input {
    width: 100%;
    padding: 16px 50px 16px 50px;
    font-size: 15px;
  }

  .blog-search-icon {
    font-size: 18px;
  }

  .blog-search-clear {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  /* Mobile grid - 2 columns */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .blog-card {
    max-width: 100%;
  }
  
  /* Compact card styling for mobile */
  .blog-image {
    height: 120px;
  }
  
  .blog-content {
    padding: 10px;
  }
  
  .blog-meta {
    font-size: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .blog-meta span {
    font-size: 10px;
  }
  
  .blog-title {
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.3;
  }
  
  .blog-excerpt {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .blog-read-more {
    font-size: 11px;
    padding: 6px 12px;
  }
  
  .blog-category-badge {
    font-size: 9px;
    padding: 3px 8px;
  }

  /* Move pagination above blog grid on mobile */
  .blog-posts-container {
    display: flex;
    flex-direction: column;
  }
  
  .blog-pagination {
    order: -1;
    gap: 8px;
    margin: 12px 0 15px;
    padding: 12px;
  }

  .pagination-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .pagination-current {
    font-size: 12px;
    padding: 10px 20px;
  }

  .blog-cta {
    padding: 30px 20px 50px;
    margin-top: 20px;
  }

  .blog-cta h2 {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .blog-cta p {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .blog-cta .cta-buttons {
    flex-direction: column;
  }

  .blog-cta .btn-primary,
  .blog-cta .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .blog-empty-state {
    padding: 60px 20px;
  }

  .blog-empty-state i {
    font-size: 60px;
  }

  .blog-empty-state h2 {
    font-size: 28px;
  }

  .empty-state-actions {
    flex-direction: column;
  }

  .empty-state-actions .btn-primary,
  .empty-state-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .blog-hero h1 {
    font-size: 28px;
  }

  /* Optimize dropdown for very small screens */
  .blog-controls {
    gap: 12px;
    margin-bottom: 30px;
  }

  .filter-dropdown {
    padding: 14px 18px;
    font-size: 14px;
    background-position: right 15px center;
    padding-right: 45px;
  }

  .blog-search-input {
    padding: 14px 45px 14px 45px;
    font-size: 14px;
    border-radius: 10px;
  }

  .blog-search-icon {
    left: 16px;
    font-size: 16px;
  }

  .blog-search-clear {
    width: 32px;
    height: 32px;
    right: 8px;
    font-size: 14px;
  }

  .blog-card-title {
    font-size: 20px;
  }

  .blog-cta h2 {
    font-size: 24px;
  }
}
