/* Blog Archive Page Styles */

.blog-archive-page {
  background: #ffffff;
}

/* Hero Section */
.blog-hero {}

.blog-hero .row .col-12 {
  padding: 110px 0;
  gap: 32px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(32, 32, 32, .5);
}

.blog-hero .row .col-12 .left_wrapper {
  max-width: 46%;
  width: 100%;

}

.blog-hero .row .col-12 .right_wrapper {
  max-width: 53%;
  width: 100%;

}

.blog-hero-content {
  max-width: 800px;
}

.blog-hero-title {
  font-family: "playfair display", serif;
  font-weight: 700;
  font-size: 54px;
  line-height: 55.6px;
  letter-spacing: 0%;
  color: rgba(34, 34, 34, 1);
  margin: 0px !important;
  padding: 0px !important;


}

.blog-hero-subtitle {
  font-family: Poppins;
  font-weight: 300;
  font-size: 18px;
  line-height: 25.2px;
  letter-spacing: 0%;
  color: rgba(34, 34, 34, 1);
  margin: 0px !important;
  padding: 0px !important;

}

/* Featured Post Section */
.blog-featured-section {
  padding: 25px 0;
  background: #FFFFFF;
}

.featured-post a {
  font-size: 0px;
  line-height: 0px;
}

.featured-category {
  margin-bottom: 20px;
  font-weight: 400;
  font-size: 16px;
  line-height: 22.4px;
  color: rgba(32, 32, 32, 0.5);
  text-transform: uppercase;

}

.featured-title {
  font-family: "playfair display", serif;
  font-weight: 700;
  font-size: 87px;
  line-height: 95.67px;
  text-align: center;
  color: #222222;
  margin-bottom: 15px;
  margin-top: 0px;
}

.featured-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  max-width: 100%;
}

.featured-tag {
  color: rgba(34, 34, 34, 1);
  margin: 0px;
  font-weight: 400;
  font-size: 16px;
  line-height: 22.4px;
  letter-spacing: 0%;
  word-spacing: -4px;
  white-space: nowrap;

}

.featured-image {
  overflow: hidden;
  border-radius: 0px;
  max-height: 572px;
}



.featured-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.featured-image a:hover img {
  transform: scale(1.05);
}

/* Blog Listing Section */
.blog-listing-section {
  padding: 80px 0;
  padding-top: 45px;
}

.listing-title {
  font-family: "playfair display", serif;
  font-weight: 700;
  font-size: 54px;
  line-height: 55.6px;
  color: rgba(34, 34, 34, 1);
  padding-bottom: 45px;
  margin: 0px !important;
}

/* Filters Wrapper */
.blog-filters-wrapper {
  display: none;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 50px;

}

/* Filters */
.blog-filters {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  width: 100%;
}

/* Custom Dropdown Styles */
.custom-dropdown {
  position: relative;
  min-width: 150px;
}

.dropdown-toggle-checkbox {
  display: none;
}

.dropdown-toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 14px;
  border-bottom: 1px solid #222222;
  background: #ffffff;
  cursor: pointer;
  color: #222222;
  transition: border-color 0.3s ease;
  min-height: 43px;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 21.6px;
  letter-spacing: 0%;
  text-transform: uppercase;

}


.dropdown-toggle-title {
  display: flex;
  align-items: center;
  flex: 1;
}

.default-label {
  color: #222222;
}

.filter-values {
  color: #222222;
}

.filter-values .selected-value:empty::before {
  content: attr(data-all-label);
  color: #222222;
}

.filter-values .selected-value {
  max-width: 10ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.reset-button {
  margin-left: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: #222222;
  transition: color 0.2s ease;
  margin-left: auto;
}

.reset-button:hover {
  color: #666;
}

.dropdown-arrow {
  margin-left: 10px;
  font-size: 12px;
  color: #666;
  transition: transform 0.3s ease;
}

.dropdown-toggle-checkbox:checked+.dropdown-toggle-label .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-toggle-checkbox:checked+.dropdown-toggle-label+.dropdown-list {
  display: block;
}

input:-internal-autofill-selected {
  background-color: transparent !important;
  background-image: none !important;
  color: #222222 !important;
}

.dropdown-option {
  display: block;
  padding: 5px 14px;
  color: #222222;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.dropdown-option:hover {
  font-weight: 600;
  color: #222222;
}

.dropdown-option.active {
  font-weight: 600;
  color: #222222;
}

/* Active Filters */
.active-filters {
  display: flex;
  align-items: center;
  margin-left: 15px;
}

.active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  background: #4361ee;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.filter-remove {
  margin-left: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.filter-remove:hover {
  opacity: 0.7;
}

.filter-group {
  flex: 1;
  min-width: 230px;
  width: 100%;
  max-width: fit-content;
  flex-basis: 19.5%;

}

.filter-select,
.filter-input {
  max-width: 100%;
  width: 100%;
  background: #ffffff;

  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: border-color 0.3s ease;
  padding: 0px;
  border: none;
  color: #222222;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 100%;
  letter-spacing: 0%;
  vertical-align: middle;

}

.filter-search .filter-input::placeholder {
  font-family: "Poppins", sans-serif;
  color: #222222 !important;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 100%;
  letter-spacing: 0%;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: #4361ee;
}

.filter-submit {
  padding: 12px 30px;
  background: #4361ee;
  color: #ffffff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
}

.filter-search>div {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #222222;
  padding: 0px 14px;
  min-height: 43px !important;

}

.filter-submit:hover {
  background: #3651de;
}

/* Blog Grid */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  row-gap: 40px;
}

.blog-post-card {
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {}

.post-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.post-card-image {
  position: relative;
  padding-bottom: 69.67%;
  overflow: hidden;
  background: #f0f0f0;
}

.post-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-post-card:hover .post-card-image img {
  transform: scale(1.1);
}



.post-card-title {
  font-weight: 600;
  font-size: 24px;
  line-height: 28.8px;
  letter-spacing: 0.64px;
  margin: 0 0 20px 0;
  margin-top: 15px;
  color: rgba(34, 34, 34, 1);

}

.post-card-excerpt {
  font-weight: 400;
  font-size: 16px;
  line-height: 22.4px;
  letter-spacing: 0%;
  color: rgba(34, 34, 34, 1);
  margin-bottom: 15px;

}

.post-card-readmore {
  font-weight: 500;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: 0.56px;
  vertical-align: middle;
  text-transform: uppercase;
  display: flex;
  gap: 11px;

}

.post-card-readmore svg {
  transition: all .2s ease-out !important;

}

.post-card-readmore:hover svg {
  transform: translatex(6px);

}

/* Load More Button */
.blog-load-more-wrapper {
  display: flex;
  justify-content: center;
  margin: auto;
  margin-top: 50px;
}

.blog-load-more {
  border: 1px solid rgba(46, 84, 235, 1);
  font-family: "poppins", sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 0.5px;
  text-align: center;
  vertical-align: middle;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  max-width: 182px;
  min-width: 182px;
  border-radius: 2px;
  padding: 0px;
  background: transparent !important;
  cursor: pointer;
  color: rgba(46, 84, 235, 1);
  transition: all 0.3s ease;

}

.blog-load-more:hover {
  background: rgba(46, 84, 235, 1) !important;
  color: #ffffff;
}

.blog-load-more:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Pagination (kept for fallback) */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.blog-pagination a,
.blog-pagination span {
  padding: 10px 16px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-pagination a:hover,
.blog-pagination .current {
  background: #4361ee;
  color: #ffffff;
  border-color: #4361ee;
}

.no-posts {
  text-align: center;
  font-size: 18px;
  color: #999;
  padding: 60px 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991.98px) {
  .blog-hero .row .col-12 {
    padding: 60px 0;
    gap: 24px;
  }

  .blog-hero-title {
    font-size: 35px;
    line-height: 36.6px;
  }

  .featured-category {
    font-size: 14px;
    line-height: 16.4px;
  }

  .featured-title {
    font-size: 50px;
    line-height: 52px;
  }

  .featured-image {
    max-height: 352px;
  }

  .listing-title {
    font-size: 35px;
    line-height: 36px;
    padding-bottom: 35px;
  }

  .blog-listing-section {
    padding: 60px 0;
    padding-top: 25px;
  }

}

@media (max-width: 767.98px) {

  .blog-hero .row .col-12 {
    padding: 50px 0;
    flex-direction: column;
  }

  .blog-hero .row .col-12 .left_wrapper {
    max-width: 100%;
    width: 100%;
  }

  .blog-hero .row .col-12 .right_wrapper {
    max-width: 100%;
    width: 100%;
  }

  .blog-hero-title {
    font-size: 35px;
    line-height: 36px;
  }

  .blog-hero-subtitle {
    font-size: 16px;
  }

  .featured-title {
    font-size: 35px;
    line-height: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .post-card-image {
    padding-bottom: 49.67%;
  }

  .listing-title {
    font-size: 32px;
  }

  .blog-filters-wrapper {
    flex-direction: column;
    gap: 0;
    overflow: hidden;
  }

  .blog-filters {
    flex-direction: column;
    gap: 0;
  }

  .filter-group {
    min-width: 100%;
    border-bottom: 1px solid #ddd;
  }

  .filter-group:last-child {
    border-bottom: none;
  }

  /* Accordion-style filters for mobile */
  .custom-dropdown {
    position: static;
    min-width: auto;
  }

  .dropdown-toggle-label {
    border: none;
    border-radius: 0;
    padding: 5px 14px;
    font-size: 14px;
    justify-content: space-between;
    transition: background-color 0.3s ease;
  }

  .dropdown-toggle-label:hover {
    border-color: #222222;
  }

  /* .dropdown-toggle-checkbox:checked+.dropdown-toggle-label {
    background: #e9ecef;
  } */

  .dropdown-list {
    position: static;
    border: none;
    border-top: 1px solid #ddd;
    max-height: none;
    background: #ffffff;
    box-shadow: none;
    z-index: auto;
  }

  .dropdown-option {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    text-transform: none;
    letter-spacing: normal;
  }

  .dropdown-option:last-child {
    border-bottom: none;
  }

  /* .dropdown-option:hover {
    background-color: #f8f9fa;
  } */

  /* .dropdown-option.active {
    background-color: #4361ee;
    color: #ffffff;
  } */

  /* Search filter styling for mobile */
  .filter-search {
    border-bottom: none;
  }

  .filter-search .filter-input {
    border: none;
    border-radius: 0;
    /* padding: 16px 20px; */
    font-size: 14px;
    background: #ffffff;
    text-transform: none;
    letter-spacing: normal;
  }

  .blog-filters-wrapper {
    margin-bottom: 30px;
  }

  .post-card-title {
    font-size: 24px;
    line-height: 28.8px;
  }

  .active-filters {
    margin-left: 0;
    width: 100%;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .featured-tags {
    gap: 7px;
  }

  .featured-tag {
    font-size: 14px;
    line-height: 16.4px;
  }
}

/* @media (max-width: 480px) {
  .blog-hero-title {
    font-size: 32px;
  }

  .featured-title {
    font-size: 28px;
  }

  .listing-title {
    font-size: 28px;
  }
} */


/* Loading State */
.blog-loading {
  text-align: center;
  padding: 40px;
  font-size: 16px;
  color: #666;
}

.blog-posts-grid {
  transition: opacity 0.3s ease;
}

.blog-load-more {
  min-height: 45px;
}