/* CSS for Blogs listing */

.acf-layout-blogs-listing {
  padding: 60px 0;
  background-color: #000000;
  color: #ffffff;
}

/* Section Header */
.blogs-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
}

.blogs-section-title {
  font-family: "Funnel Display", var(--font-secondary), sans-serif;
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.5rem);
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  text-align: left;
}

/* Slider Arrows */
.blogs-slider-arrows {
  display: flex;
  gap: 12px;
}

.blogs-slider-arrows .arrow-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

/* Disabled state: Blurred, not clickable, default cursor */
.blogs-slider-arrows .arrow-btn.disabled,
.blogs-slider-arrows .arrow-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* Featured Post Row */
.latest-news-featured-row {
  margin-bottom: 60px;
}

.latest-news-featured-image-wrapper {
  width: 100%;
  height: 450px;
  overflow: hidden;
  position: relative;
}

.latest-news-featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.latest-news-featured-row:hover .latest-news-featured-image-wrapper img {
  filter: grayscale(0%);
}

.latest-news-featured-content {
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.latest-news-featured-title {
  text-align: left;
}

.latest-news-featured-desc {
  font-family: "Funnel Sans", var(--font-primary), sans-serif;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  text-align: left;
}

/* "New" Badge Box Heading Tag */
.acf-layout-blogs-listing .box-heading-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 2px solid #ffffff !important;
  background: transparent;
  color: #ffffff;
  border-radius: 0;
  font-family: "Funnel Display", sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 120% !important;
  text-transform: capitalize !important;
  position: relative;
  width: fit-content;
  box-sizing: border-box;
}

.acf-layout-blogs-listing .box-heading-tag .box-tag-square {
  display: block;
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  flex-shrink: 0;
}

.acf-layout-blogs-listing .box-heading-tag .dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--color-1, #e65125) !important;
  z-index: 3;
}

.acf-layout-blogs-listing .box-heading-tag .dot.dot-tl {
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
}
.acf-layout-blogs-listing .box-heading-tag .dot.dot-tc {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}
.acf-layout-blogs-listing .box-heading-tag .dot.dot-tr {
  top: 0;
  left: 100%;
  transform: translate(-50%, -50%);
}
.acf-layout-blogs-listing .box-heading-tag .dot.dot-br {
  top: 100%;
  left: 100%;
  transform: translate(-50%, -50%);
}
.acf-layout-blogs-listing .box-heading-tag .dot.dot-bc {
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.acf-layout-blogs-listing .box-heading-tag .dot.dot-bl {
  top: 100%;
  left: 0;
  transform: translate(-50%, -50%);
}

/* Slider Slides */
.latest-news-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.latest-news-slide.active {
  display: flex !important;
  opacity: 1;
}

/* Browse All Grid Items */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 40px;
  overflow: hidden;
}

.blog-card-image-wrapper {
  width: 100%;
  height: 280px;
  overflow: hidden;
  margin-bottom: 20px;
}

.blog-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.blog-card:hover .blog-card-image-wrapper img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.blog-card-title,
.blog-card-desc {
  text-align: left;
}

/* Load more / View more styling */
.hidden-load-more {
  display: none !important;
}

.blogs-load-more-row {
  margin-top: 40px;
  text-align: center;
  width: 100%;
}

.blogs-load-more-btn {
  /* Inherits premium styles from global .primary-btn */
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .latest-news-featured-image-wrapper {
    height: 350px;
  }
  .latest-news-featured-content {
    padding: 20px 10px;
  }
  .blog-card-image-wrapper {
    height: 240px;
  }
}

@media (max-width: 767px) {
  .latest-news-featured-image-wrapper {
    height: 280px;
  }
  .latest-news-featured-row {
    margin-bottom: 10px;
  }
  .blog-card-image-wrapper {
    height: 300px;
  }
  .blogs-controls-row {
    flex-direction: column-reverse;
    gap: 15px;
  }
  .arrow-btn svg {
    width: 24px;
    height: 24px;
  }
  .blogs-section-header {
    margin-bottom: 0;
  }
}

/* Search & Filter Controls */
.blogs-controls-row {
  margin-bottom: 40px;
}

.blogs-search-box {
  position: relative;
  width: 100%;
}

.blogs-search-field {
  width: 100%;
  padding: 13px 20px;
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  outline: none;
  font-family: "Funnel Sans", sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.blogs-search-field:focus {
  border-color: var(--color-1, #e65125);
  box-shadow: 0 0 10px rgba(230, 81, 37, 0.15);
}

.blogs-search-icon-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.blogs-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.blogs-filter-tab {
  background-color: #1a1a1a;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 12px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blogs-filter-tab svg path {
  fill: #ffffff;
  transition: fill 0.3s ease;
}

.blogs-filter-tab:hover {
  border-color: #ffffff;
  background-color: #222222;
}

.blogs-filter-tab.active {
  border-color: var(--color-1, #e65125);
  color: var(--color-1, #e65125);
  background-color: #1a1a1a;
}

.blogs-filter-tab.active svg path {
  fill: var(--color-1, #e65125) !important;
}

@media (max-width: 991px) {
  .blogs-filter-bar {
    justify-content: flex-start;
  }
}

/* Category Filter Dropdown */
.blogs-dropdown-wrapper {
  position: relative;
  display: inline-block;
  text-align: left;
}

.blogs-dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background-color: #111111;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  flex-direction: column;
  min-width: 240px;
  max-height: 350px;
  overflow-y: auto;
  padding: 8px 0;
  border-radius: 0;
}

/* Show dropdown when toggled */
.blogs-dropdown-menu.show {
  display: flex;
}

.blogs-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 20px;
  color: #cccccc !important;
  text-decoration: none;
  font-family: "Funnel Sans", sans-serif;
  font-size: 14px;
  transition: all 0.25s ease;
  box-sizing: border-box;
  text-align: left;
}

.blogs-dropdown-item:hover {
  background-color: #1c1c1c;
  color: var(--color-1, #e65125) !important;
}

.blogs-dropdown-item.active {
  background-color: #1c1c1c;
  color: var(--color-1, #e65125) !important;
  font-weight: 600;
}

/* Custom scrollbar for categories dropdown list */
.blogs-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.blogs-dropdown-menu::-webkit-scrollbar-track {
  background: #111111;
}
.blogs-dropdown-menu::-webkit-scrollbar-thumb {
  background: #333333;
}
.blogs-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: var(--color-1, #e65125);
}

.latest-news-featured-image-link,
.blog-card-image-link {
  display: block;
  text-decoration: none;
  outline: none;
}
