* {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
body {
  margin: 0;
}

.blog_main .blog_items {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 40px;
}

.blog_main .blog_item {
  flex: 0 0 calc((100% / 3) - 14px);
  padding: 20px;
  border-radius: 40px;
  box-shadow: -5px 8px 58px 0px #0000000a;
}

.blog_main .blog_item > a img {
  width: 100%;
  min-height: 100%;
  max-height: 100%;
  border-radius: 30px;
  height: 100%;
  object-fit: contain;

  /* overflow: hidden; */
}
.blog_main .blog_item .blog_info a {
  text-decoration: none;
  color: #000000;
}
.blog_main .blog_item .profile {
  display: flex;
  column-gap: 7px;
  align-items: center;
  margin: 16px 0 16px;
}

.blog_item .profile .info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 17px;
  color: #646568;
}

.blog_item .profile .info .name {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  color: #000;
}

.blog_item .profile img {
  width: 100%;
  max-width: 58px;
  min-height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.blog_info h3 {
  font-size: 25px;
  line-height: 32px;
  font-weight: 500;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.blog_info p {
  font-size: 20px;
  line-height: 25px;
  color: #646568;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  text-overflow: ellipsis;
}

.blog_main {
  padding: 64px 0 64px 0;
}
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding-top: 30px;
  width: 100%;
}
.pagination-wrapper .page-numbers {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
}
.pagination-wrapper a.page-numbers {
  text-decoration: none;
  color: #000;
}
.pagination-wrapper .page-numbers.current {
  background: #00b249;
  color: white;
}

.blog_main .blog_item .category-label{
    display: inline-block;
    font-family: 'Poppins';
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #00b249; 
    border: 1px solid #00b249;
    border-radius: 30px;
    padding: 6px 16px;
    background: #00B2491A;
    margin: 0px 0px 8px;  
}

@media screen and (max-width: 1024px) {
  .blog_main .blog_item {
    flex: 0 0 calc((100% / 2) - 10px);
  }
  .blog_main {
    padding: 30px 0 40px 0;
  }
  .blog_main .blog_item > a img {
    min-height: auto;
  }
}
@media screen and (max-width: 992px) {
  #category-dropdown{
    align-items: start;
    margin-left: unset !important;
  }
}

@media screen and (max-width: 767px) {
  .blog_main .blog_items {
    row-gap: 20px;
  }

  .blog_main .blog_item {
    flex: 0 0 100%;
  }

  .blog_info h3 {
    font-size: 20px;
    line-height: 24px;
    min-height: auto;
  }
  .blog_info p {
    font-size: 18px;
    line-height: 24px;
  }
  .blog_main {
    padding: 0px 0 40px 0;
  }
}

/* Category Filter Wrapper */
.blog_filter {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Category Buttons */
.category_filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.category_filters .filter-btn {
  padding: 8px 20px;
  border: 1px solid #dfe0e4;
  border-radius: 30px;
  background: #fff;
  color: #000;
  font-family: "Poppins";
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category_filters .filter-btn:hover {
  border-color: #00b249;
  color: #00b249;
  background: #00b2491a;
}

.category_filters .filter-btn.active {
  background: #00b2491a;
  border-color: #00b249;
  color: #00b249;
}

/* Dropdown */
#category-dropdown {
  position: relative;
  padding: 8px 80px 8px 16px;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-family: "Poppins";
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: #000000;
  background-color: transparent !important;
  appearance: none;
  cursor: pointer;
  margin-left: auto;
  outline: none;
  background-image: url("/wp-content/uploads/2025/09/chevron-left.svg");
  background-size: 16px;
  background-position: 90% center;
  background-repeat: no-repeat;
}



/* Loader style */
.blog_loader {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2ecc71;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 1199px) {
  .category_filters .filter-btn {
    padding: 8px 10px;
    border-radius: 20px;
  }
}

/* Align filter and dropdown on small screens */
@media screen and (max-width: 768px) {
  .blog_filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .category_filters .filter-btn,
  #category-dropdown {
    font-size: 14px;
    line-height: 20px;
    width: auto;
  }
  
}

@media screen and (max-width : 575px){
    #category-dropdown{
        background-position: 95% center;
    }
}

@media screen and (max-width: 480px){
    #category-dropdown{
        width: 100%;
    }
}
