/* Modern Blog Section Styles */
.ab-blog-section {
  width: 100%;
  overflow: hidden;
  position: relative;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  margin-top: 60px;
}

.ab-blog-section h3 {
  margin-top: 40px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.ab-blog-section::-webkit-scrollbar {
  display: none;
}

.ab-blog-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 15px;
  gap: 20px;
  scrollbar-width: none;  /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.ab-blog-container::-webkit-scrollbar {
  display: none;  /* Chrome, Safari and Opera */
}

.ab-blog-card {
  flex: 0 0 calc(20% - 20px);
  scroll-snap-align: start;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ab-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.ab-blog-card-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

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

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

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

.ab-blog-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ab-blog-card-excerpt {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ab-blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding: 15px 20px;
}

.ab-blog-read-more {
  color: #191d9e;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ab-blog-read-more:hover {
  color: #2b30d1;
}

/* Scrollbar Styling for Blog Container */
.ab-blog-container::-webkit-scrollbar {
  height: 8px;
}

.ab-blog-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.ab-blog-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.ab-blog-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

@media (max-width: 1400px) {
  .ab-blog-card {
    flex: 0 0 calc(25% - 20px);
  }
}

@media (max-width: 1200px) {
  .ab-blog-card {
    flex: 0 0 calc(33.333% - 20px);
  }
}

@media (max-width: 992px) {
  .ab-blog-card {
    flex: 0 0 calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .ab-blog-section {
    padding: 40px 15px;
  }

  .ab-blog-container {
    padding: 15px 10px;
  }

  .ab-blog-card {
    flex: 0 0 calc(100% - 20px);
  }

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

  .ab-blog-card-excerpt {
    font-size: 13px;
  }

  .blog-nav-button {
    display: none;
  }
}

/* Navigation Buttons */
.blog-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-nav-button:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-nav-button.prev {
  left: 10px;
}

.blog-nav-button.next {
  right: 10px;
}

.blog-nav-button i {
  font-size: 16px;
  color: #333;
}
