/**
 * Home page – From Our Blog section
 * Scoped to .home-blog-section to avoid theme conflicts.
 * Uses Owl Carousel; cards use unique classes (home-blog-card__*) so theme .single-section does not apply.
 */

.home-blog-section .title {
  margin-bottom: 24px;
}

.home-blog-carousel {
  padding: 0 56px 20px;
  margin: 0 -10px;
  position: relative;
}

.home-blog-carousel .owl-stage-outer {
  padding: 10px 0;
}

.home-blog-item {
  padding: 0 10px;
}

.home-blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  height: 100%;
}

.home-blog-card:hover {
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
}

.home-blog-card__img {
  display: block;
  height: 200px;
  overflow: hidden;
  background: #e8eaed;
}

.home-blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.home-blog-card:hover .home-blog-card__img img {
  transform: scale(1.06);
}

.home-blog-card__body {
  padding: 22px 20px 24px;
  text-align: left;
}

.home-blog-card__date {
  display: block;
  font-size: 0.875rem;
  color: #7ebc12;
  font-weight: 600;
  margin-bottom: 8px;
}

.home-blog-card__title {
  font-size: 1.125rem;
  line-height: 1.35;
  margin: 0 0 10px;
  color: #1d2833;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-blog-card__excerpt {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #5a5a5a;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-blog-card__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #7ebc12;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.home-blog-card:hover .home-blog-card__link {
  color: #6aa00f;
}

.home-blog-cta {
  margin-top: 32px;
}

/* Owl nav – attractive, aligned carousel buttons */
.home-blog-section .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  margin: 0;
  pointer-events: none;
  z-index: 10;
}

.home-blog-section .owl-prev,
.home-blog-section .owl-next {
  position: absolute;
  width: 52px;
  height: 52px;
  background: #7ebc12 !important;
  color: #fff !important;
  border-radius: 50%;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: auto;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(126, 188, 18, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-blog-section .owl-prev:hover,
.home-blog-section .owl-next:hover {
  background: #6aa00f !important;
  color: #fff !important;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(106, 160, 15, 0.5);
}

.home-blog-section .owl-prev {
  left: 0;
}

.home-blog-section .owl-next {
  right: 0;
}

.home-blog-section .owl-prev i,
.home-blog-section .owl-next i {
  font-size: 24px;
  line-height: 1;
  display: block;
  margin: 0;
  padding: 0;
}

/* Ensure Owl’s nav button content is centered */
.home-blog-section .owl-nav .owl-prev,
.home-blog-section .owl-nav .owl-next {
  border: none;
  outline: none;
  cursor: pointer;
}

.home-blog-section .owl-nav .owl-prev i,
.home-blog-section .owl-nav .owl-next i {
  display: block;
  margin: 0 auto;
}

/* Carousel dots – hidden in blog section (nav arrows only) */
.home-blog-section .owl-dots {
  display: none !important;
}

/* Responsive */
@media (max-width: 991px) {
  .home-blog-carousel {
    padding-left: 48px;
    padding-right: 48px;
  }
  .home-blog-section .owl-prev {
    left: 4px;
  }
  .home-blog-section .owl-next {
    right: 4px;
  }
}

@media (max-width: 767px) {
  .home-blog-carousel {
    margin: 0 -6px;
    padding-left: 44px;
    padding-right: 44px;
  }
  .home-blog-item {
    padding: 0 6px;
  }
  .home-blog-card__img {
    height: 180px;
  }
  .home-blog-card__body {
    padding: 18px 16px 20px;
  }
  .home-blog-card__title {
    font-size: 1rem;
  }
  .home-blog-card__excerpt {
    -webkit-line-clamp: 2;
    font-size: 0.9rem;
  }
  .home-blog-section .owl-prev,
  .home-blog-section .owl-next {
    width: 44px;
    height: 44px;
  }
  .home-blog-section .owl-prev i,
  .home-blog-section .owl-next i {
    font-size: 20px;
  }
  .home-blog-section .owl-prev {
    left: 0;
  }
  .home-blog-section .owl-next {
    right: 0;
  }
}

@media (max-width: 480px) {
  .home-blog-card__img {
    height: 160px;
  }
  .home-blog-card__body {
    padding: 16px 14px 18px;
  }
}
