/* =========================================================
   Blog module — home page slider + blog listing/detail pages
   ========================================================= */

:root {
  --blog-primary: #fdc900;
  --blog-primary-dark: #fdad00;
  --blog-dark: #222222;
}

/* ---------- Home page: "Our Blogs" slider section ---------- */
.home-blog-section {
  background: #f9f9f9;
  padding: 70px 0 80px;
}

.home-blog-slider .owl-stage {
  display: flex;
}

.home-blog-slider .owl-item {
  display: flex;
}

.home-blog-item {
  display: flex;
  width: 100%;
}

.home-blog-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, .08);
  transition: all .4s ease;
  margin: 10px 5px 20px;
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid #eee;
}

.home-blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .15);
}

.home-blog-img {
  position: relative;
  overflow: hidden;
}

.home-blog-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .5s ease;
}

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

.home-blog-category {
  align-self: flex-start;
  background: var(--blog-primary);
  color: var(--blog-dark);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 8px;
}

.home-blog-info {
  padding: 20px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-blog-date {
  color: #999;
  font-size: 13px;
  margin-bottom: 10px;
}

.home-blog-date i {
  color: var(--blog-primary-dark);
  margin-right: 5px;
}

.home-blog-info h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 76.5px;
}

.home-blog-info h3 a {
  color: var(--blog-dark);
  transition: color .3s ease;
}

.home-blog-info h3 a:hover {
  color: var(--blog-primary-dark);
  text-decoration: none;
}

.home-blog-viewall {
  display: inline-block;
  background: var(--blog-primary);
  color: var(--blog-dark);
  padding: 12px 35px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all .3s ease;
}

.home-blog-viewall:hover {
  background: var(--blog-dark);
  color: #fff;
  text-decoration: none;
}

.home-blog-viewall i {
  margin-left: 8px;
  transition: transform .3s ease;
}

.home-blog-viewall:hover i {
  transform: translateX(5px);
}

.home-blog-section .owl-dots {
  text-align: center;
  margin-top: 20px;
}

.home-blog-section .owl-dots .owl-dot span {
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background: #ddd;
  border-radius: 50%;
  display: inline-block;
  transition: all .3s ease;
}

.home-blog-section .owl-dots .owl-dot.active span,
.home-blog-section .owl-dots .owl-dot:hover span {
  background: var(--blog-primary);
  width: 30px;
  border-radius: 6px;
}

.home-blog-section .owl-nav {
  text-align: center;
}

.home-blog-section .owl-nav [class*="owl-"] {
  background: #fff;
  border: 2px solid var(--blog-primary);
  border-radius: 50%;
  color: var(--blog-primary-dark);
  cursor: pointer;
  display: inline-block;
  font-size: 18px;
  height: 42px;
  line-height: 38px;
  margin: 0 8px;
  padding: 0;
  width: 42px;
  transition: all .3s ease;
  position: absolute;
  top: 40%;
  z-index: 10;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
}

.home-blog-section .owl-nav .owl-prev {
  left: -18px;
}

.home-blog-section .owl-nav .owl-next {
  right: -18px;
}

.home-blog-section .owl-nav [class*="owl-"]:hover {
  background: var(--blog-primary);
  color: var(--blog-dark);
}

/* ---------- Blog listing page ---------- */
.blog-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  transition: all .3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .15);
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.blog-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-category {
  align-self: flex-start;
  background-color: var(--blog-primary);
  color: var(--blog-dark);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--blog-dark);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

.blog-card-date {
  color: #6c757d;
  font-size: 13px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.blog-card-date i {
  color: var(--blog-primary-dark);
  margin-right: 4px;
}

.blog-card-readmore {
  display: inline-block;
  margin-top: auto;
  padding-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #b58e00;
}

.blog-card:hover .blog-card-readmore {
  color: var(--blog-dark);
}

.blog-card:hover .blog-card-readmore i {
  margin-left: 8px;
  transition: margin .3s ease;
}

/* Bootstrap 3's grid columns float rather than stretch to equal height, so the
   sidebar's own column is only as tall as its (short) content — too short for
   position: sticky below to have room to track the scroll. Making the row a
   flex container (desktop only, matching where the sidebar goes sticky) gives
   both columns equal height without touching the float-based mobile layout. */
@media (min-width: 992px) {
  .blog-content-row {
    display: flex;
    flex-wrap: wrap;
  }
}

/* Sidebar - stays pinned near the top while the (usually much longer)
   article column scrolls, so the two columns don't feel mismatched in length */
.blog-sidebar {
  position: sticky;
  top: 20px;
}

@media (max-width: 991.98px) {
  .blog-sidebar {
    position: static;
    margin-top: 30px;
  }
}

/* Sidebar widgets */
.blog-widget {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
}

.blog-widget-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--blog-dark);
  margin: 0 0 18px;
  padding-bottom: 12px;
  position: relative;
}

.blog-widget-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  border-bottom: 3px solid var(--blog-primary);
}

.blog-categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-categories-list li {
  border-bottom: 1px solid #f1f1f1;
}

.blog-categories-list li:last-child {
  border-bottom: none;
}

.blog-categories-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 2px;
  color: #555;
  transition: color .3s ease, padding-left .3s ease;
}

.blog-categories-list li a:hover {
  color: var(--blog-primary-dark);
  text-decoration: none;
  padding-left: 6px;
}

.blog-categories-list li a .count {
  background: #f4f4f4;
  color: #888;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 20px;
}

.blog-widget .btn-primary {
  background: var(--blog-primary);
  border-color: var(--blog-primary);
  color: var(--blog-dark);
  font-weight: 600;
}

.blog-widget .btn-primary:hover {
  background: var(--blog-dark);
  border-color: var(--blog-dark);
  color: #fff;
}

/* ---------- Blog detail page ---------- */
.blog-detail-content h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 19px;
  font-weight: 700;
  color: var(--blog-dark);
}

.blog-detail-content h3 {
  margin-top: 25px;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--blog-dark);
}

.blog-detail-content p,
.blog-detail-content li {
  color: #555;
  font-size: 15.5px;
  line-height: 1.9;
}

.blog-detail-content ul {
  margin-bottom: 20px;
}

.blog-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #888;
  font-size: 14px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.blog-detail-meta i {
  color: var(--blog-primary-dark);
  margin-right: 5px;
}

.blog-detail-featured-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 30px;
}

/* ---------- Prev/Next post navigation ---------- */
.blog-navigation {
  display: flex;
  gap: 20px;
  margin: 35px 0;
  flex-wrap: wrap;
}

.blog-nav-card {
  flex: 1;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px 20px;
  text-decoration: none;
  transition: all .3s ease;
}

.blog-nav-card:hover {
  border-color: var(--blog-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  transform: translateY(-2px);
  text-decoration: none;
}

.blog-nav-card.text-end {
  text-align: right;
}

.blog-nav-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--blog-dark);
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 6px;
}

.blog-nav-title {
  font-weight: 700;
  color: var(--blog-dark);
  font-size: 15px;
}

@media (max-width: 767px) {
  .blog-navigation {
    flex-direction: column;
  }

  .blog-nav-card.text-end {
    text-align: left;
  }
}

.blog-cta-box {
  background: #201622;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  margin-top: 40px;
  color: #fff;
}

.blog-cta-box h3 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 10px;
}

.blog-cta-box p {
  color: #ccc;
  margin-bottom: 20px;
}

/* ---------- Blog detail page banner ---------- */
.blog-page-title {
  position: relative;
  padding: 110px 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  text-align: center;
}

.blog-page-title:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .85);
}

.blog-page-title h1 {
  position: relative;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  line-height: 52px;
  text-transform: uppercase;
  z-index: 1;
  margin: 0;
}

.blog-page-title .bread-crumb {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.blog-page-title .bread-crumb li {
  display: inline-block;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.blog-page-title .bread-crumb li:not(:last-child):after {
  content: '>';
  margin: 0 8px;
  color: var(--blog-primary);
}

.blog-page-title .bread-crumb a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.blog-page-title .bread-crumb a:hover {
  color: var(--blog-primary);
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .blog-page-title {
    padding: 60px 0;
  }

  .blog-page-title h1 {
    font-size: 26px;
    line-height: 36px;
    padding: 0 15px;
  }
}

/* ---------- Social share ---------- */
.blog-social-share {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 30px 0;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  flex-wrap: wrap;
}

.blog-social-label {
  font-weight: 700;
  color: var(--blog-dark);
  margin-right: 5px;
}

.blog-social-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  transition: transform .3s ease;
}

.blog-social-share a:hover {
  transform: scale(1.1);
  color: #fff;
}

.blog-social-share .whatsapp {
  background-color: #25d366;
}

.blog-social-share .linkedin {
  background-color: #0077b5;
}

.blog-social-share .twitter {
  background-color: #1da1f2;
}

.blog-social-share .facebook {
  background-color: #1877f2;
}

/* ---------- Tags widget ---------- */
.blog-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tag {
  display: inline-block;
  padding: 6px 12px;
  background-color: #f8f9fa;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  border: 1px solid #e9ecef;
  transition: all .3s ease;
}

.blog-tag:hover {
  background-color: var(--blog-primary);
  color: var(--blog-dark);
  border-color: var(--blog-primary);
  text-decoration: none;
}

/* ---------- Enquire Now form (sidebar) ---------- */
.blog-enquire-form .form-group {
  margin-bottom: 12px;
}

.blog-enquire-form input,
.blog-enquire-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color .3s ease;
}

.blog-enquire-form textarea {
  min-height: 90px;
  resize: vertical;
}

.blog-enquire-form input:focus,
.blog-enquire-form textarea:focus {
  outline: none;
  border-color: var(--blog-primary);
}

.blog-enquire-form .btn-submit {
  width: 100%;
  padding: 10px;
  background-color: var(--blog-primary);
  color: var(--blog-dark);
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all .3s ease;
}

.blog-enquire-form .btn-submit:hover {
  background-color: var(--blog-primary-dark);
}
