/* Blog Horizontal Scroll Styles */
.blog-carousel-section {
  height: 400vh; /* Proper height for smooth scrolling */
  background-color: #000;
  position: relative;
  overflow: visible;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: none;
  font-family: "Overused Grotesk", sans-serif;
}

.blog-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: none;
  margin-top: 0; 
  padding-top: 0;
}
.blog-section-title {
  position: absolute;
  top: 10%;
  left: 2rem;
  z-index: 10;
  pointer-events: none;
}

.blog-section-title .title-big h2 {
  color: #fff;
  font-size: 4rem;
  text-align: left;
  margin-bottom: 3rem;
}

.blog-cards-wrapper {
  display: flex;
  gap: 2rem;
  will-change: transform;
  padding: 0 2rem 0 2rem;
  align-items: center;
  height: 100%;
  padding-top: 140px;
  padding-right: 50vw; /* Add extra padding to ensure last card is fully visible */
}

.blog-card {
  height: 520px !important;
  width: 500px !important;
  background-color: #1a1a1a;
  border-radius: 0 !important;
  overflow: hidden;
  padding-top: 25px;
  
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

.blog-card-image {
  height: 250px;
  width: 90%;
  padding:0 20px;
  overflow: hidden;
  position: relative;
}

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

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

.blog-card-content {
  padding: 1.5rem;
  color: white;
  text-align: center;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: "Overused Grotesk", sans-serif;
}

.blog-card-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
  line-height: 1.4;
  font-family: "Overused Grotesk", sans-serif;
}

.blog-card-content p {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
  font-family: "Overused Grotesk", sans-serif;
}

.blog-card-content .post-date {
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
  margin-top: auto;
  font-family: "Overused Grotesk", sans-serif;
}

/* Footer spacing fix */
.footer-section {
  position: relative !important;
  z-index: 1000 !important;
  background-color: #000 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  clear: both !important;
  width: 100% !important;
}

/* Ensure no extra spacing after blog section */
.blog-carousel-section + * {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-card {
    width: 380px; /* Increased from 320px */
    height: 480px; /* Increased from 400px */
  }

  .blog-card-image {
    height: 200px;
  }

  .blog-card-content {
    height: 200px;
    padding: 25px 0 0 0; /* Increased top padding from 15px to 25px for tablet spacing */
    text-align: center; /* Center-align text */
    font-family: "Overused Grotesk", sans-serif;
  }

  .blog-cards-wrapper {
    padding: 0 1rem;
    gap: 0.6rem;
  }

  .blog-carousel-section {
    height: 500vh ; /* Reduced from 900vh to prevent excessive scroll area */
  }

  .blog-section-title .title-big h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  .blog-section-title {
    top: 8%;
  }
}

@media (max-width: 480px) {
  .blog-card {
    width: 320px; /* Increased from 280px */
    height: 420px; /* Increased from 380px */
  }

  .blog-card-image {
    height: 180px;
  }

  .blog-card-content {
    padding: 20px 0 0 0; /* Increased top padding from 10px to 20px for mobile spacing */
    text-align: center; /* Center-align text */
    font-family: "Overused Grotesk", sans-serif;
  }

  .blog-cards-wrapper {
    gap: 0.5rem;
  }

  .blog-carousel-section {
    height: 400vh; /* Reduced from 900vh to prevent excessive scroll area */
  }

  .blog-section-title .title-big h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .blog-section-title {
    top: 6%;
  }
}
