/* Post Carousel Wrapper */
.qta-post-carousel-wrapper {
  /* padding: 40px 0; */
  /* position: relative; */
}

/* Carousel Header */
.qta-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 30px;
}

.qta-carousel-heading {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  text-align: left;
  color: #333;
  flex: 1 1 auto;
}

.qta-view-all-button {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .25s ease, box-shadow .25s ease;
}

.qta-view-all-button:hover,
.qta-view-all-button:focus {
  background: #005177;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
  outline: none;
}

/* Swiper Container */
.qta-post-carousel-wrapper .swiper {
  padding: 20px 0 40px;
}

/* Post Card */
.qta-post-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.qta-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Post Image */
.qta-post-image {
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
}

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

.qta-post-card:hover .qta-post-image img {
  transform: scale(1.05);
}

.qta-post-image a {
  display: block;
  height: 100%;
}

/* Post Content */
.qta-post-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.qta-post-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 15px 0;
  line-height: 1.4;
  flex-grow: 1;
}

.qta-post-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.qta-post-title a:hover {
  color: #0073aa;
}

/* Button Styles */
.qta-post-button {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 14px;
  cursor: pointer;
  margin-top: auto;
}

.qta-button-primary {
  background-color: #0073aa;
  color: #fff;
  border: 2px solid #0073aa;
}

.qta-button-primary:hover {
  background-color: #005177;
  border-color: #005177;
}

.qta-button-secondary {
  background-color: #50575e;
  color: #fff;
  border: 2px solid #50575e;
}

.qta-button-secondary:hover {
  background-color: #32373c;
  border-color: #32373c;
}

.qta-button-outline {
  background-color: transparent;
  color: #0073aa;
  border: 2px solid #0073aa;
}

.qta-button-outline:hover {
  background-color: #0073aa;
  color: #fff;
}

/* Swiper Navigation */
.qta-post-carousel-wrapper .swiper-button-next,
.qta-post-carousel-wrapper .swiper-button-prev {
  color: #0073aa;
  background-color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qta-post-carousel-wrapper .swiper-button-next:after,
.qta-post-carousel-wrapper .swiper-button-prev:after {
  font-size: 18px;
  font-weight: 700;
}

.qta-post-carousel-wrapper .swiper-button-next:hover,
.qta-post-carousel-wrapper .swiper-button-prev:hover {
  background-color: #0073aa;
  color: #fff;
}

/* Swiper Pagination */
.qta-post-carousel-wrapper .swiper-pagination-bullet {
  background-color: #0073aa;
  opacity: 0.5;
}

.qta-post-carousel-wrapper .swiper-pagination-bullet-active {
  opacity: 1;
}

.qta-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.qta-carousel-heading {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  text-align: left;
}

.qta-view-all-button {
  font-size: 14px;
  padding: 8px 16px;
  background: #0073aa;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background .25s;
}

.qta-view-all-button:hover {
  background: #005177;
}

/* Responsive */
@media (max-width: 768px) {
  .qta-carousel-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .qta-carousel-heading {
    font-size: 24px;
  }

  .qta-view-all-button {
    margin-top: 10px;
  }

  .qta-post-title {
    font-size: 18px;
  }

  .qta-post-content {
    padding: 15px;
  }
}