.col-12,
.col-md-6,
.col-lg-6,
.col-xl-3 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  display: flex; /* Ensure children can grow */
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 1200px) {
  .col-xl-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/*-------------------------------
   Blog Section  CSS
-------------------------------*/
body {
  font-family: "Shurjo", sans-serif;
}

.blog-card {
  margin-bottom: 25px;
  background: #fff;
  background-color: #fff;
  -webkit-box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border: 1px solid rgba(0, 0, 0, 0.08); /* Slightly more visible border for sharp look */
  border-radius: 0;
  overflow: hidden;
  display: flex; /* Use flex to allow internal stretching */
  flex-direction: column;
  height: calc(
    100% - 25px
  ); /* Take full height of parent minus margin-bottom */
  width: 100%;
}

.book-card {
  border-radius: 0;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
}

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

.blog-card .blog-img.blog-video:after {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 50px;
  height: 50px;
  content: "";
  background-image: url("../img/play-video.png");
  background-size: 100%;
  background-repeat: no-repeat;
  filter: brightness(0) invert(1);
}

.blog-card .blog-img img {
  -webkit-transition: 0.7s;
  transition: 0.7s;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card .blog-info {
  padding: 15px 15px 18px; /* Reduced padding */
  flex: 1; /* Grow to fill card height */
  display: flex;
  flex-direction: column;
}

.blog-card .blog-info h3 {
  font-size: 19px;
  line-height: 1.4em;
  margin-bottom: 12px;
  font-weight: 600;
  font-family: "Shurjo", sans-serif;
  color: #1a1a1a; /* Ensure visibility */
  flex-grow: 1; /* Headlines push below items down */
}

.blog-card .blog-info h3 a {
  color: #1a1a1a;
  text-decoration: none;
  transition: 0.3s;
}

.blog-card .blog-info .link {
  color: #ec3323;
  font-family: "Shurjo", sans-serif;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.blog-card:hover {
  -webkit-box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.08);
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.08);
}

.blog-card:hover .blog-img img {
  -webkit-transform: scale(1.03);
  transform: scale(1.03);
}

.blog-card:hover .blog-info h3 a {
  color: #ec3323;
}

/* Section Title */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 44px;
  font-weight: bold;
  color: #1a1a1a;
  display: inline-block;
  padding-bottom: 12px;
  border-bottom: 4px solid #ec3323;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .section-title {
    font-size: 32px;
  }
}

/* Tabs styling */
.filter-tabs {
  margin-bottom: 32px;
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 32px;
}
@media (max-width: 575px) {
  .filter-list {
    gap: 0px;
  }
}
.filter-item {
  padding: 12px 0;
  font-size: 20px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  font-family: "Shurjo", sans-serif;
}

.filter-item:hover,
.filter-item.active {
  color: #ec3323;
}

.filter-item.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ec3323;
}

@media (max-width: 575px) {
  .filter-list {
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .filter-item {
    white-space: nowrap;
    font-size: 18px;
  }
}
