

.blog-swiper {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    position: relative;
}

.blog-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

.blog-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transition: opacity 0.3s ease;
}

.blog-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: #ffffff;
    z-index: 2;
}

.blog-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #ffffff;
    font-family: 'Futura', sans-serif;
}

.blog-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    text-decoration: none;
}

.read-more-text {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    font-family: 'Futura', sans-serif;
    text-align: center;
}

.blog-slide:hover .blog-link {
    background: rgba(0, 0, 0, 0.7);
}

.blog-slide:hover .read-more-text {
    opacity: 1;
    transform: translateY(0);
}

/* Blog Slider Navigation */
.blog-swiper-button-next,
.blog-swiper-button-prev {
    color: #ffffff;
}

.blog-swiper-pagination {
    --swiper-pagination-color: #ffffff;
}

@media (max-width: 768px) {
    .blog-swiper {
        max-width: 600px;
    }

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

    .blog-content {
        padding: 20px;
    }

    .read-more-text {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .blog-swiper {
        max-width: 400px;
    }

    .blog-title {
        font-size: 18px;
    }

    .read-more-text {
        font-size: 18px;
    }
}

.blog-swiper-pagination {
    display: none !important;
}




/* Slider container with fixed height of 500px */
.swiper-container.mySwiper {
  width: 100%;
  max-width: 800px;   /* Adjust max width as needed */
  margin: 30px auto;  /* Centers the slider horizontally */
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Individual slide settings */
.swiper-container.mySwiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
}

/* Show each image at its true aspect ratio — never stretch or crop. Portrait images are
   capped by viewport height; landscape images fill the available width. */
.swiper-container.mySwiper .swiper-slide img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  margin: 0 auto;
}

