/* =========================================
       TIHM RECENT BLOGS CAROUSEL
       Brand: #c3a456 and #283848
    ========================================= */

.tihm-blog-section,
.tihm-blog-section * {
  box-sizing: border-box;
}

.tihm-blog-section {
  padding: 35px 20px 40px;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}

/* Heading */

.tihm-blog-heading {
  text-align: center;
  margin-bottom: 30px;
}

.tihm-blog-heading h2 {
  margin: 0 0 15px;
  color: #283848;
  font-size: 32px;
  font-weight: 700;
}

.tihm-blog-heading-line {
  display: block;
  width: 80px;
  height: 3px;
  margin: 0 auto 15px;
  background: #c3a456;
}

.tihm-blog-heading p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

/* Carousel */

.tihm-blog-carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 0 48px;
}

.tihm-blog-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.tihm-blog-track {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  transition: transform 0.45s ease-in-out;
  will-change: transform;
}

/* Individual slide */

.tihm-blog-slide {
  flex: 0 0 25%;
  width: 25%;
  min-width: 0;
  padding: 0 10px;
  display: flex;
  align-items: stretch;
}

/* Card */

.tihm-blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 3px 12px rgba(40, 56, 72, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.tihm-blog-card:hover {
  box-shadow: 0 8px 22px rgba(40, 56, 72, 0.16);
}

/* Image */

.tihm-blog-image {
  width: 100%;
  height: 210px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f2f2f2;
}

.tihm-blog-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tihm-blog-card:hover .tihm-blog-image img {
  transform: scale(1.04);
}

/* Content */

.tihm-blog-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 16px 20px;
}

.tihm-blog-content h3 {
  color: #283848;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  height: 81px;
  overflow: hidden;
  margin: 0 0 12px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.tihm-blog-content p {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  text-align: justify;
  height: 95px;
  overflow: hidden;
  margin: 0 0 20px;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

/* Read more button */

.tihm-blog-readmore {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 17px;
  background: #283848;
  border: 1px solid #283848;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.tihm-blog-readmore:hover,
.tihm-blog-readmore:focus {
  background: #c3a456;
  border-color: #c3a456;
  color: #283848 !important;
}

/* Previous / Next buttons */

.tihm-blog-nav {
  position: absolute !important;
  top: 50% !important;
  z-index: 20 !important;
  transform: translateY(-50%);

  display: flex !important;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;
  padding: 0;

  border: none !important;
  border-radius: 50% !important;

  background: #283848 !important;
  color: #fff !important;

  font-size: 15px;
  line-height: 1;
  text-align: center;

  opacity: 1;
  visibility: visible;
  cursor: pointer;
  outline: none;
}

.tihm-blog-nav:hover,
.tihm-blog-nav:focus {
  background: #c3a456 !important;
  color: #283848 !important;
}

.tihm-blog-nav:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed;
}

.tihm-blog-prev {
  left: 0 !important;
}

.tihm-blog-next {
  right: 0 !important;
}

/* Pagination dots */

.tihm-blog-pagination {
  margin-top: 25px;
  text-align: center;
}

.tihm-blog-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  padding: 0;
  margin: 0 4px;
  border: none;
  border-radius: 10px;
  background: #ccc;
  vertical-align: middle;
  cursor: pointer;
}

.tihm-blog-dot.active {
  width: 25px;
  background: #c3a456;
}

.tihm-blog-empty {
  width: 100%;
  padding: 30px;
  color: #666;
  text-align: center;
}

/* Tablet */

@media (max-width: 991px) {
  .tihm-blog-slide {
    flex-basis: 50%;
    width: 50%;
  }

  .tihm-blog-heading h2 {
    font-size: 28px;
  }

  .tihm-blog-image {
    height: 200px;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .tihm-blog-section {
    padding: 25px 10px 30px;
  }

  .tihm-blog-heading h2 {
    font-size: 25px;
  }

  .tihm-blog-heading p {
    font-size: 13px;
  }

  .tihm-blog-carousel-wrapper {
    padding: 0 35px;
  }

  .tihm-blog-slide {
    flex-basis: 100%;
    width: 100%;
    padding: 0 5px;
  }

  .tihm-blog-image {
    height: 220px;
  }

  .tihm-blog-nav {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .tihm-blog-content h3 {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tihm-blog-track,
  .tihm-blog-card,
  .tihm-blog-image img {
    transition: none;
  }
}