/* Hero Section */
.hero-blog {
  height: 500px;
  background: linear-gradient(
      rgba(var(--primary-color-rgb), 0.7),
      rgba(var(--primary-color-rgb), 0.3)
    ),
    url("https://img.freepik.com/free-photo/serious-looking-man-getting-ready-business-holding-hands-pressed-together-nervously-staring_1258-129711.jpg?ga=GA1.1.1576718881.1747428035&semt=ais_hybrid&w=740")
      no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white-color);
  position: relative;
  overflow: hidden;
}

.hero-blog-content {
  max-width: 800px;
  padding: 0 20px;
  z-index: 2;
}

.hero-blog h1 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  color: var(--white-color);
}

.hero-blog p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  color: var(--white-color);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white-color);
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  border-color: var(--white-color);
  color: var(--white-color);
  background-color: transparent;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
}

.dark-mode .btn-outline-primary:hover {
  color: var(--dark-color);
}

/* Dove Animation */
.dove-particle-blog {
  position: absolute;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="white" d="M288 167.2v-28.1c-12.2-1.4-24.5-2-36.9-2-73.2 0-146.4 24.1-206.5 72.3-5.4 4.3-6.5 12.1-2.2 17.5l19.4 23.9c3.9 4.8 10.8 5.5 15.6 1.6 29.6-23.4 63.4-40.4 99.5-50.4 27.2 48.2 65 91.7 111.7 124.9-15.2 21.3-28.4 44-39.4 68-32 56-49.1 116.8-49.1 179.6 0 7.8 6.3 14.1 14.1 14.1h18.8c7.8 0 14.1-6.3 14.1-14.1 0-54.4 15.3-107.5 44.1-153.2 19.4-30.6 44.3-57.7 73.5-79.9 20.2 9.3 41.8 16.1 64 20.3v-28.5c0-8.6 6.6-15.8 15.2-16 55.8-3.8 107.5-30.1 146.2-71.4 5.4-5.9 5-15-.9-20.4l-19.4-20.6c-5-5.3-14.1-5.5-19.3-.6-35.7 34.6-81.5 54.9-130.3 54.9-46.8 0-91.5-18.8-126.2-52.5 23.5-24.3 42.8-52.7 57.4-83.5 3.6-7.5-1.5-16.2-9.7-16.2zm-15.2 151.1c-5.5-7.1-10.9-14.3-16-21.8-4.1-6.1-12.3-7.5-18-3.1-25.9 20.2-54.4 36-84.7 46.7 13.7-24.2 30.4-46.5 50-66.4 20.5-20.9 44.1-39 69.7-53.5 2.1-1.2 4.2-2.3 6.4-3.4-12.8 31.2-21.4 64.1-25.4 98.1-2.5-.6-5-.9-7.6-.9-13.1 0-25.6 2.5-37.5 6.6 15.4-37.3 40.5-70.3 72.1-96.4 4.9-4.1 5.1-11.5.5-15.9l-17.7-17.3c-4.6-4.5-12.1-4.4-16.6.3-45.9 48.3-82.1 106.6-101.9 171.1-1.1 3.6-1.7 7.3-1.7 11.1 0 15.6 11.9 28.3 26.8 28.3h2.9c-1.8 12.2-2.7 24.6-2.7 37 0 7.8 6.3 14.1 14.1 14.1h18.8c7.8 0 14.1-6.3 14.1-14.1 0-12.9 1.3-25.7 3.8-38.1 21.1-4.2 41.1-11.9 59.3-22.5-10.4-23.8-17.5-49.1-21.1-75.5z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
  z-index: 1;
}

/* Blog Filters */
/*  */

/* Advert Banner */
/* Base Styles */
/* ====================== */
/* GLOBAL ADVERT CAROUSEL */
/* ====================== */

.advert-banner-blog {
  --slide-transition: 800ms cubic-bezier(0.16, 1, 0.3, 1);
  --control-size: 50px;
  --dot-size: 10px;
  --dot-active-size: 30px;
  --content-padding: 2rem;
  
  position: relative;
  padding: 4rem 0;
  margin: 1rem 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  color: var(--white-color);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.advert-banner-blog::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1) 0%, transparent 70%);
  z-index: -1;
}

.advert-slides-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

/* Slide Animation System */
.advert-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateX(30px);
  transition: none;
  pointer-events: none;
  z-index: 1;
}

.advert-slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  transition: all var(--slide-transition);
  pointer-events: all;
  z-index: 2;
}

.advert-slide.leaving {
  transform: translateX(-30px);
  opacity: 0;
  transition: all var(--slide-transition);
}

/* Modern Content Layout */
.advert-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.advert-text {
  order: 2;
  text-align: center;
  position: relative;
  z-index: 2;
}

.advert-badge {
  display: inline-block;
  background: var(--white-color);
  color: var(--primary-dark);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.advert-text h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.advert-text p {
  margin-bottom: 2rem;
  font-size: clamp(1rem, 3vw, 1.1rem);
  opacity: 0.9;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.advert-image {
  order: 1;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform-style: preserve-3d;
}

.advert-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.advert-img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1);
  transition: transform 1s ease;
}

.advert-slide.active .advert-img {
  transform: scale(1.05);
}

/* 3D Floating Effect */
.advert-slide.active .advert-image {
  animation: float3d 8s ease-in-out infinite;
}

@keyframes float3d {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  25% { transform: translateY(-10px) rotateX(2deg) rotateY(2deg); }
  50% { transform: translateY(0) rotateX(0deg) rotateY(-2deg); }
  75% { transform: translateY(-5px) rotateX(-2deg) rotateY(0deg); }
}

/* Futuristic Navigation Controls */
.advert-prev,
.advert-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--control-size);
  height: var(--control-size);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  opacity: 0.8;
}

.advert-prev:hover,
.advert-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
}

.advert-prev {
  left: 1rem;
}

.advert-next {
  right: 1rem;
}

/* Interactive Dot Navigation */
.advert-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  position: relative;
  z-index: 5;
}

.advert-dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.advert-dot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--white-color);
  transition: width 6s linear;
}

.advert-dot.active {
  width: var(--dot-active-size);
  background: rgba(255, 255, 255, 0.2);
}

.advert-dot.active::before {
  width: 100%;
  transition: width 5s linear;
}

/* Progress Bar Timer */
.advert-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 5;
}

.advert-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--white-color);
  transition: width 5s linear;
}

.advert-slide.active ~ .advert-progress .advert-progress-bar {
  width: 100%;
}

/* Responsive Layout */
@media (min-width: 768px) {
  .advert-banner-blog {
    padding: 5rem 0;
  }
  
  .advert-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  .advert-text {
    order: 1;
    text-align: left;
  }
  
  .advert-image {
    order: 2;
  }
  
  .advert-text p {
    margin-left: 0;
    margin-right: 0;
  }
  
  .advert-prev {
    left: 2rem;
  }
  
  .advert-next {
    right: 2rem;
  }
}

/* Dark Mode Enhancements */
.dark-mode .advert-banner-blog {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dark-mode .advert-badge {
  background: var(--secondary-color);
  color: var(--dark-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dark-mode .advert-image::before {
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
}

/* Accessibility Focus Styles */
.advert-prev:focus-visible,
.advert-next:focus-visible,
.advert-dot:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .advert-slide,
  .advert-slide.active,
  .advert-slide.leaving {
    transition: none !important;
    animation: none !important;
  }
  
  .advert-img {
    transition: none !important;
  }
  
  .advert-progress-bar {
    transition: none !important;
  }
}

/* Blog Grid Section */


/* Advert Sidebar */
.advert-sidebar {
  background-color: var(--white-color);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.dark-mode .advert-sidebar {
  background-color: var(--light-color);
  border-color: rgba(255, 255, 255, 0.1);
}

.advert-sidebar h4 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.dark-mode .advert-sidebar h4 {
  color: var(--secondary-color);
}

.advert-sidebar-card {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 20px;
}

.advert-sidebar-card:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.advert-sidebar-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.advert-sidebar-card h5 {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--black-color);
}

.dark-mode .advert-sidebar-card h5 {
  color: var(--dark-color);
}

.advert-sidebar-card p {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-bottom: 15px;
}

.dark-mode .advert-sidebar-card p {
  color: rgba(255, 255, 255, 0.7);
}

/* Featured Post */
.featured-post {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--white-color);
}

.featured-post-card {
  display: flex;
  align-items: center;
  background-color: var(--white-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 767.98px) {
  .featured-post-card {
    flex-direction: column;
  }
}

.featured-post-image {
  flex: 1;
  min-height: 300px;
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-post-content {
  flex: 1;
  padding: 40px;
  color: var(--black-color);
}

.dark-mode .featured-post-content {
  color: var(--dark-color);
}

.featured-post-category {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--dark-color);
  padding: 3px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.featured-post-content h2 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin-bottom: 20px;
}

.featured-post-content p {
  margin-bottom: 25px;
  color: var(--gray-color);
}

.dark-mode .featured-post-content p {
  color: rgba(255, 255, 255, 0.7);
}

.featured-post-meta {
  display: flex;
  align-items: center;
  margin-top: 30px;
}

.featured-post-author {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.featured-post-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.featured-post-author-info h5 {
  color: var(--black-color);
  margin-bottom: 5px;
}

.dark-mode .featured-post-author-info h5 {
  color: var(--dark-color);
}

.featured-post-author-info p {
  color: var(--gray-color);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.dark-mode .featured-post-author-info p {
  color: rgba(255, 255, 255, 0.6);
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-link {
  color: var(--primary-color);
  margin: 0 5px;
  border-radius: 50px !important;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white-color);
  border: 1px solid var(--light-gray);
  transition: var(--transition);
}

.dark-mode .page-link {
  background-color: var(--light-color);
  color: var(--primary-light);
  border-color: rgba(255, 255, 255, 0.1);
}

.page-link:hover {
  background-color: var(--light-gray);
}

.dark-mode .page-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.dark-mode .preloader {
  background-color: var(--dark-color);
}

.spinner {
  width: 70px;
  height: 70px;
  position: relative;
}

.double-bounce1,
.double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary-color);
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: sk-bounce 2s infinite ease-in-out;
}

.double-bounce2 {
  animation-delay: -1s;
}

@keyframes sk-bounce {
  0%,
  100% {
    transform: scale(0);
  }
  50% {
    transform: scale(1);
  }
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-theme {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-theme i {
  position: absolute;
  transition: var(--transition);
}

.btn-theme i.fa-moon {
  opacity: 1;
  transform: translateY(0);
}

.btn-theme i.fa-sun {
  opacity: 0;
  transform: translateY(20px);
}

.dark-mode .btn-theme i.fa-moon {
  opacity: 0;
  transform: translateY(-20px);
}

.dark-mode .btn-theme i.fa-sun {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Particles */
.particle {
  position: absolute;
  background-color: rgba(var(--white-color-rgb), 0.7);
  border-radius: 50%;
  pointer-events: none;
}

.dark-mode .particle {
  background-color: rgba(var(--dark-color-rgb), 0.7);
}

/* Animations */
.particle-blog {
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translate(0, 0);
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translate(0, -100vh);
    opacity: 0;
  }
}

/* Dove Animation Keyframes */
@keyframes floatDove1 {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  100% {
    transform: translate(100vw, -100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes floatDove2 {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  100% {
    transform: translate(-100vw, -150vh) rotate(-360deg);
    opacity: 0;
  }
}

@keyframes floatDove3 {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  100% {
    transform: translate(80vw, -200vh) rotate(180deg);
    opacity: 0;
  }
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
  .hero-blog h1 {
    font-size: 3rem;
  }
}

@media (max-width: 991.98px) {
  .hero-blog {
    height: 450px;
  }

  .hero-blog h1 {
    font-size: 2.5rem;
  }

  .featured-post-content {
    padding: 30px;
  }
}

@media (max-width: 767.98px) {
  .hero-blog {
    height: 400px;
  }

  .hero-blog h1 {
    font-size: 2.2rem;
  }

  .hero-blog p {
    font-size: 1rem;
  }

  .advert-content {
    flex-direction: column;
    text-align: center;
  }

  .advert-image {
    margin-top: 20px;
  }

  .featured-post-content h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 575.98px) {
  .hero-blog {
    height: 350px;
  }

  .hero-blog h1 {
    font-size: 1.8rem;
  }

  .featured-post-content {
    padding: 20px;
  }

  .featured-post-content h2 {
    font-size: 1.5rem;
  }
} /* Blog Page Styles with Full Dark/Light Mode Support */
:root {
  --primary-color-rgb: 108, 74, 182;
  --white-color-rgb: 255, 255, 255;
  --black-color-rgb: 33, 33, 33;
}

/* Dark Mode Variables */
.dark-mode {
  --dark-color: #f8f9fa;
  --light-color: #1a1a2e;
  --gray-color: #adb5bd;
  --light-gray: #2d2d44;
  --white-color: #1a1a2e;
  --black-color: #ffffff;
}

/* Hero Section */
.hero-blog {
  height: 500px;
  background: linear-gradient(
      rgba(var(--primary-color-rgb), 0.7),
      rgba(var(--primary-color-rgb), 0.3)
    ),
    url("https://img.freepik.com/free-photo/serious-looking-man-getting-ready-business-holding-hands-pressed-together-nervously-staring_1258-129711.jpg?ga=GA1.1.1576718881.1747428035&semt=ais_hybrid&w=740")
      no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white-color);
  position: relative;
  overflow: hidden;
}

.hero-blog-content {
  max-width: 800px;
  padding: 0 20px;
  z-index: 2;
}

.hero-blog h1 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  color: var(--white-color);
}

.hero-blog p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  color: var(--white-color);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white-color);
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  border-color: var(--white-color);
  color: var(--white-color);
  background-color: transparent;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
}

.dark-mode .btn-outline-primary:hover {
  color: var(--dark-color);
}

/* Blog Filters */
/* Blog Filters Section - Mobile Scrollable Buttons */
/* Blog Filters Section */
.blog-filters {
    padding: 20px 0;
    background-color: var(--light-color);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.blog-filters .container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blog-filters .row {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  padding-bottom: 15px; /* Space for scroll */
}

.blog-filters .row::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}



.filter-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 15px;
    scrollbar-width: thin;
    -ms-overflow-style: none;
}

/* Hide scrollbar for Chrome/Safari */
/* Horizontal Scrollable Filter Buttons */
.text-center.mb-4 {
  display: block;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 15px; /* Space for scrollbar */
  scrollbar-width: thin; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  text-align: left; /* Changed from center to left for better scrolling */
}

/* Hide scrollbar for Chrome/Safari */
.text-center.mb-4::-webkit-scrollbar {
  height: 4px;
}

.text-center.mb-4::-webkit-scrollbar-track {
  background: rgba(108, 74, 182, 0.1); /* Using your primary color */
}

.text-center.mb-4::-webkit-scrollbar-thumb {
  background-color: var(--primary-light);
  border-radius: 4px;
}

.filter-btn {
  display: inline-block; /* Changed from button default */
  background: var(--white-color);
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-color);
  cursor: pointer;
  transition: var(--transition);
  margin-right: 8px; /* Space between buttons */
  box-shadow: var(--shadow-sm);
}

.filter-btn:last-child {
  margin-right: 0;
}

.filter-btn:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.filter-btn.active {
  background: var(--primary-color);
  color: var(--white-color);
  box-shadow: 0 4px 10px rgba(108, 74, 182, 0.3);
}

/* Dark Mode Styles */
.dark-mode .filter-btn {
  background: var(--white-color-section);
  color: var(--gray-color);
}

.dark-mode .filter-btn:hover {
  color: var(--primary-light);
}

.dark-mode .filter-btn.active {
  background: var(--primary-color);
  color: var(--white-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .filter-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

.blog-search {
    position: relative;
    min-width: 250px;
    flex-shrink: 0;
}

.blog-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.blog-search .form-control {
    padding-left: 40px;
    border-radius: 50px;
    border: 1px solid var(--light-gray);
    background: var(--white-color);
    height: 45px;
    width: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.blog-search .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(108, 74, 182, 0.2);
    outline: none;
}

/* Dark Mode Styles */
.dark-mode .blog-filters {
    background-color: var(--light-gray);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dark-mode .filter-btn {
    background: var(--white-color-section);
    color: var(--gray-color);
}

.dark-mode .filter-btn:hover {
    color: var(--primary-light);
}

.dark-mode .filter-btn.active {
    background: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 10px rgba(108, 74, 182, 0.3);
}

.dark-mode .blog-search i {
    color: var(--gray-color);
}

.dark-mode .blog-search .form-control {
    background: var(--white-color-section);
    border-color: var(--light-gray);
    color: var(--black-color);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .blog-filters .row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-container {
        order: 1;
    }
    
    .blog-search {
        order: 2;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .filter-buttons {
        gap: 8px;
        padding: 0 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .blog-search {
        min-width: 200px;
    }
    
    .blog-search .form-control {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .blog-filters {
        padding: 15px 0;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .blog-search i {
        left: 12px;
        font-size: 0.9rem;
    }
    
    .blog-search .form-control {
        padding-left: 35px;
        font-size: 0.85rem;
    }
}
/* Responsive Adjustments */
@media (min-width: 768px) {
  .blog-filters .row {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
  }

  .blog-filters .text-center {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    gap: 10px;
  }

  .filter-btn {
    margin: 0 5px;
  }
}
/* Advert Banner */
.advert-banner-blog {
  padding: 30px 0;
  background-color: var(--primary-light);
  color: var(--white-color);
  position: relative;
  overflow: hidden;
}

.advert-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: 0 20px;
}

.advert-slide.active {
  opacity: 1;
  z-index: 2;
}

.advert-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.advert-text {
  flex: 1;
  min-width: 300px;
}

.advert-text h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--white-color);
}

.advert-text p {
  margin-bottom: 20px;
  opacity: 0.9;
  color: var(--white-color);
}

.advert-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.advert-image img {
  max-height: 200px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.advert-dots {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 3;
}

.advert-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.advert-dot.active {
  background-color: var(--white-color);
  transform: scale(1.2);
}

/* Blog Grid Section */
.blog-grid-section {
  padding: 60px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 20px;
}

.blog-card-category {
  display: inline-block;
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.blog-card-excerpt {
  color: var(--gray);
  margin-bottom: 15px;
  line-height: 1.5;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.85rem;
}

.blog-card-author {
  display: flex;
  align-items: center;
}

.blog-card-author img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

.page-item {
  list-style: none;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
  background: var(--primary);
  color: white;
}

.page-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Sidebar */
.advert-sidebar {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.advert-sidebar h4 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.advert-sidebar-card {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.advert-sidebar-card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.advert-sidebar-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.advert-sidebar-card h5 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.advert-sidebar-card p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 15px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .blog-grid {
      grid-template-columns: 1fr;
  }
  
  .col-lg-4 {
      margin-top: 50px;
  }
}

@media (max-width: 768px) {
  .blog-grid-section {
      padding: 40px 0;
  }
  
  .blog-card-img {
      height: 180px;
  }
}

@media (max-width: 576px) {
  .blog-card-img {
      height: 160px;
  }
  
  .blog-card-body {
      padding: 15px;
  }
  
  .blog-card h3 {
      font-size: 1.1rem;
  }
  
  .pagination {
      margin-top: 30px;
  }
  
  .page-link {
      width: 35px;
      height: 35px;
  }
  
  .advert-sidebar {
      padding: 20px;
  }
  
  .advert-sidebar-card img {
      height: 120px;
  }
}

/* Advert Sidebar */
.advert-sidebar {
  background-color: var(--white-color);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.dark-mode .advert-sidebar {
  background-color: var(--light-color);
  border-color: rgba(255, 255, 255, 0.1);
}

.advert-sidebar h4 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.dark-mode .advert-sidebar h4 {
  color: var(--secondary-color);
}

.advert-sidebar-card {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 20px;
}

.advert-sidebar-card:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.advert-sidebar-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.advert-sidebar-card h5 {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--black-color);
}

.dark-mode .advert-sidebar-card h5 {
  color: var(--dark-color);
}

.advert-sidebar-card p {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-bottom: 15px;
}

.dark-mode .advert-sidebar-card p {
  color: rgba(255, 255, 255, 0.7);
}

/* Featured Post */
.featured-post {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--white-color);
}

.featured-post-card {
  display: flex;
  align-items: center;
  background-color: var(--white-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 767.98px) {
  .featured-post-card {
    flex-direction: column;
  }
}

.featured-post-image {
  flex: 1;
  min-height: 300px;
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-post-content {
  flex: 1;
  padding: 40px;
  color: var(--black-color);
}

.dark-mode .featured-post-content {
  color: var(--dark-color);
}

.featured-post-category {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--dark-color);
  padding: 3px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.featured-post-content h2 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin-bottom: 20px;
}

.featured-post-content p {
  margin-bottom: 25px;
  color: var(--gray-color);
}

.dark-mode .featured-post-content p {
  color: rgba(255, 255, 255, 0.7);
}

.featured-post-meta {
  display: flex;
  align-items: center;
  margin-top: 30px;
}

.featured-post-author {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.featured-post-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.featured-post-author-info h5 {
  color: var(--black-color);
  margin-bottom: 5px;
}

.dark-mode .featured-post-author-info h5 {
  color: var(--dark-color);
}

.featured-post-author-info p {
  color: var(--gray-color);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.dark-mode .featured-post-author-info p {
  color: rgba(255, 255, 255, 0.6);
}

.featured-post-meta span {
  color: var(--gray-color);
}

.dark-mode .featured-post-meta span {
  color: rgba(255, 255, 255, 0.6);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.page-item {
  margin: 0 5px;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

.dark-mode .page-link {
  color: var(--primary-light);
  border-color: var(--primary-light);
}

.page-link:hover,
.page-link.active {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.dark-mode .page-link:hover,
.dark-mode .page-link.active {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
}

.page-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Footer */
.footer {
  background-color: #1a1a2e !important;
  color: #ffffff !important;
  padding: 80px 0 30px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80")
    center/cover;
  opacity: 0.05;
  z-index: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.footer-logo {
  height: 40px;
  margin-bottom: 25px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff !important;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 1.25rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  color: #ffffff !important;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.footer-menu {
  list-style: none;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 12px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: inline-block;
}

.footer-menu a:hover {
  color: var(--white-color);
  transform: translateX(5px);
}

.contact-info {
  list-style: none;
  padding: 0;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.contact-icon {
  color: var(--primary-color);
  margin-right: 15px;
  margin-top: 3px;
  font-size: 16px;
}

.contact-info span {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 15px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--primary-color);
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.dark-mode .preloader {
  background-color: var(--dark-color);
}

.spinner {
  width: 70px;
  height: 70px;
  position: relative;
}

.double-bounce1,
.double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary-color);
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: sk-bounce 2s infinite ease-in-out;
}

.double-bounce2 {
  animation-delay: -1s;
}

@keyframes sk-bounce {
  0%,
  100% {
    transform: scale(0);
  }
  50% {
    transform: scale(1);
  }
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-theme {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-theme i {
  position: absolute;
  transition: var(--transition);
}

.btn-theme i.fa-moon {
  opacity: 1;
  transform: translateY(0);
}

.btn-theme i.fa-sun {
  opacity: 0;
  transform: translateY(20px);
}

.dark-mode .btn-theme i.fa-moon {
  opacity: 0;
  transform: translateY(-20px);
}

.dark-mode .btn-theme i.fa-sun {
  opacity: 1;
  transform: translateY(0);
}

/* .back-to-top {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: var(--dark-color);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-dark);
} */

/* Particles */
.particle {
  position: absolute;
  background-color: rgba(var(--white-color-rgb), 0.7);
  border-radius: 50%;
  pointer-events: none;
}

.dark-mode .particle {
  background-color: rgba(var(--dark-color-rgb), 0.7);
}

/* Animations */
.particle-blog {
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translate(0, 0);
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translate(0, -100vh);
    opacity: 0;
  }
}

/* Dove Animation Keyframes */
@keyframes floatDove1 {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  100% {
    transform: translate(100vw, -100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes floatDove2 {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  100% {
    transform: translate(-100vw, -150vh) rotate(-360deg);
    opacity: 0;
  }
}

@keyframes floatDove3 {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  100% {
    transform: translate(80vw, -200vh) rotate(180deg);
    opacity: 0;
  }
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
  .hero-blog h1 {
    font-size: 3rem;
  }
}

@media (max-width: 991.98px) {
  .hero-blog {
    height: 450px;
  }

  .hero-blog h1 {
    font-size: 2.5rem;
  }

  .featured-post-content {
    padding: 30px;
  }
}

@media (max-width: 767.98px) {
  .hero-blog {
    height: 400px;
  }

  .hero-blog h1 {
    font-size: 2.2rem;
  }

  .hero-blog p {
    font-size: 1rem;
  }

  .advert-content {
    flex-direction: column;
    text-align: center;
  }

  .advert-image {
    margin-top: 20px;
  }

  .featured-post-content h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 575.98px) {
  .hero-blog {
    height: 350px;
  }

  .hero-blog h1 {
    font-size: 1.8rem;
  }

  .featured-post-content {
    padding: 20px;
  }

  .featured-post-content h2 {
    font-size: 1.5rem;
  }
}

/* ============================================= */
/* MOBILE-FIRST RESPONSIVE STYLES (0-767px) */
/* ============================================= */

@media (max-width: 767px) {
  /* Base Mobile Adjustments */
  html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
  }

  /* Typography Enhancements */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    line-height: 1.3;
    word-break: break-word;
  }

  /* Layout Containers */
  .container,
  .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
  }

  /* Hero Section */
  .hero-blog {
    height: 60vh;
    min-height: 400px;
    background-attachment: scroll !important;
    background-position: center top !important;
  }

  .hero-blog h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .hero-blog p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .hero-blog-content {
    padding: 0 15px;
  }

  /* Blog Filters */
  .blog-filters {
    padding: 25px 0;
  }

  .filter-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
    margin: 3px;
  }

  .blog-search {
    max-width: 100%;
    margin-top: 15px;
  }

  /* Blog Grid */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card {
    margin-bottom: 20px;
  }

  .blog-card-img {
    height: 180px;
  }

  .blog-card-body {
    padding: 15px;
  }

  .blog-card h3 {
    font-size: 1.2rem;
  }

  .blog-card-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-card-date {
    margin-top: 10px;
  }

  /* Featured Post */
  .featured-post {
    padding: 40px 0;
  }

  .featured-post-card {
    flex-direction: column;
  }

  .featured-post-image {
    min-height: 200px;
  }

  .featured-post-content {
    padding: 20px;
  }

  .featured-post-content h2 {
    font-size: 1.5rem;
  }

  .featured-post-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .featured-post-author {
    margin-bottom: 15px;
  }

  /* Advert Banner */
  .advert-banner-blog {
    padding: 20px 0;
  }

  .advert-content {
    flex-direction: column;
  }

  .advert-text {
    margin-bottom: 20px;
    text-align: center;
  }

  .advert-image img {
    max-height: 150px;
  }

  /* Advert Sidebar */
  .advert-sidebar {
    padding: 15px;
  }

  /* Pagination */
  .pagination {
    margin-top: 30px;
    flex-wrap: wrap;
  }

  .page-item {
    margin: 3px;
  }

  .page-link {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  /* Footer */
  .footer {
    padding: 50px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-heading {
    margin-bottom: 20px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-legal {
    flex-direction: column;
    gap: 8px;
  }

  /* Theme Toggle */
  .theme-toggle {
    bottom: 15px;
    right: 15px;
  }

  .btn-theme {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  /* Utility Classes for Mobile */
  .mobile-stack {
    flex-direction: column !important;
  }

  .mobile-full-width {
    width: 100% !important;
    max-width: 100% !important;
  }

  .mobile-center {
    text-align: center !important;
    justify-content: center !important;
  }

  .mobile-hide {
    display: none !important;
  }

  /* iOS Tap Highlight */
  a,
  button,
  input,
  label,
  select,
  textarea {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }

  /* Prevent Zoom on Input Focus */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Performance Optimizations */
  * {
    background-attachment: scroll !important;
  }
}

/* ============================================= */
/* SMALL MOBILE OPTIMIZATIONS (0-480px) */
/* ============================================= */

@media (max-width: 480px) {
  /* Even More Compact Elements */
  .hero-blog {
    height: 50vh;
    min-height: 350px;
  }

  .hero-blog h1 {
    font-size: 1.8rem;
  }

  .blog-card-img {
    height: 160px;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  /* Button Sizes */
  .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  /* Form Elements */
  .blog-search input {
    height: 42px;
  }

  /* Featured Post */
  .featured-post-content h2 {
    font-size: 1.3rem;
  }

  /* Footer */
  .footer {
    padding: 40px 0 15px;
  }
}

/* ============================================= */
/* VERY SMALL DEVICES (0-360px) */
/* ============================================= */

@media (max-width: 360px) {
  /* Extreme Mobile Optimization */
  html {
    font-size: 13px;
  }

  .hero-blog {
    height: 45vh;
    min-height: 300px;
  }

  .hero-blog h1 {
    font-size: 1.6rem;
  }

  .blog-card-img {
    height: 140px;
  }

  /* Footer */
  .footer-heading {
    font-size: 1.1rem;
  }
}

/* ============================================= */
/* MOBILE-SPECIFIC ENHANCEMENTS */
/* ============================================= */

/* 1. Prevent horizontal scrolling */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* 2. Tap target sizing for better touch interaction */
a,
button,
input,
label,
select {
  min-height: 44px;
  min-width: 44px;
}

/* 3. Remove 300ms click delay on mobile browsers */
a,
button,
input,
label,
select {
  touch-action: manipulation;
}

/* 4. Improve scrolling performance */
html {
  -webkit-overflow-scrolling: touch;
}

/* 5. Optimize images for mobile */
img {
  max-width: 100%;
  height: auto;
}

/* 6. Remove default iOS styles for inputs */
input,
textarea,
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
}

/* 7. Mobile-first transitions and animations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 8. Dark mode optimizations */
@media (prefers-color-scheme: dark) {
  :root {
    --light-color: #1a1a2e;
    --dark-color: #f8f9fa;
  }
}

/* 9. Viewport unit fixes for mobile */
@media (max-width: 767px) {
  .full-height-mobile {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
  }
}

@media (max-width: 767.98px) {
  .hero-blog {
    height: auto;
    min-height: 10vh;
    padding: 80px 0 60px;
    text-align: center;
    background-attachment: scroll !important;
  }

  .hero-blog-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
  }

  .hero-blog-content h1 {
    /* font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.8rem; */
    margin-top: 30px;
    /* margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3); */
  }

  .dark-mode .hero-blog-content h1 {
    color: var(--white-color);
  }

  /* Buttons */
  .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
    padding: 5px 10px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
  }

  .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .btn-outline-primary {
    border-color: var(--white-color);
    color: var(--white-color);
    background-color: transparent;
    transition: var(--transition);
  }

  .btn-outline-primary:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
  }

  .dark-mode .btn-outline-primary:hover {
    color: var(--dark-color);
  }
}
/* Mobile-First Media Queries for Advert Banner */
@media (max-width: 767px) {
  .advert-banner-blog {
    padding: 25px 0;
    min-height: 300px; /* Ensure enough height for content */
  }

  .advert-slide {
    flex-direction: column;
    padding: 0 15px;
    text-align: center;
  }

  .advert-content {
    flex-direction: column-reverse; /* Image on top, text below */
    gap: 20px;
  }

  .advert-text {
    min-width: 100%;
    padding: 0 10px;
  }

  .advert-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .advert-text p {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .advert-image {
    min-width: 100%;
    margin-bottom: 15px;
  }

  .advert-image img {
    max-height: 150px;
    max-width: 100%;
  }

  .advert-dots {
    bottom: 10px;
  }

  /* Touch-friendly dot sizing */
  .advert-dot {
    width: 12px;
    height: 12px;
    margin: 0 6px;
  }
}

/* Small Phones (up to 480px) */
@media (max-width: 480px) {
  .advert-banner-blog {
    padding: 20px 0;
    min-height: 280px;
  }

  .advert-text h3 {
    font-size: 1.3rem;
  }

  .advert-text p {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  .advert-image img {
    max-height: 120px;
  }

  /* Adjust dots for very small screens */
  .advert-dots {
    bottom: 8px;
  }

  .advert-dot {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }
}

/* Extra Small Phones (up to 360px) */
@media (max-width: 360px) {
  .advert-banner-blog {
    min-height: 260px;
  }

  .advert-text h3 {
    font-size: 1.2rem;
  }

  .advert-image img {
    max-height: 100px;
  }
}

/* Tablet Portrait (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .advert-banner-blog {
    padding: 25px 0;
  }

  .advert-content {
    flex-wrap: nowrap;
  }

  .advert-text {
    min-width: 50%;
    padding-right: 20px;
  }

  .advert-image {
    min-width: 50%;
  }

  .advert-image img {
    max-height: 180px;
  }
}