 
.blog-header .header{
background-color: #000;
}

.latest-news-section {
  padding-top: 100px !important;
  background: #f9fafb;
  /* margin-top: 50px; */
}

.section-title {
  /* font-size: 28px; */
  font-weight: 700;
  color: #111;
  margin-bottom: 30px;
  text-align: left !important;
}

/* FEATURED BLOG (TOP LARGE CARD) */
.featured-blog {
  display: flex;
  align-items: stretch;
  gap: 30px;
  margin-bottom: 40px !important; 
  /* flex-wrap: wrap; */
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  max-width: 90%;
  margin: 0 auto;
}

.featured-image {
  flex: 1 1 55%;
   /* padding: 25px 25px; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* max-width: 90% !important; */
}

.featured-image  img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-content {
  flex: 1 1 45%;
  padding: 25px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 90% !important;
  /* max-height: 350px !important; */
}

.featured-content .category-tag {
  /* display: inline-block;
  background: #eef3ff;
  color: #0066ff;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px; */
  color: #fff;
    font-size: 13px;
    display: block;
    padding: 10px 20px;
    border-radius: 6px;
    margin-bottom: 6px;
    background: linear-gradient(207.8deg, #40C4FF 6.5%, #0076D4 84.63%);
    width: fit-content;
}

/* .featured-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
} */

.featured-content h3 a {
  text-decoration: none;
  color: #111;
}

.featured-content h3 a:hover {
background: linear-gradient(207.8deg, #40C4FF 6.5%, #0076D4 84.63%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.featured-content p {
  color: #555;
  font-size: 15px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.featured-content .date {
  font-size: 13px;
  color: #888;
}

/* SMALLER BLOGS (BOTTOM GRID) */
.smaller-blog {
  /* display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 25px; */
    display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  max-width: 90%;
  margin: 0 auto;
}

.blog-card {
  flex: 1 1 calc(33.333% - 20px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.blog-info {
  padding: 15px;
}

.blog-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  margin-top: 8px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.blog-info .date {
  font-size: 13px;
  color: #777;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .featured-blog {
    flex-direction: column;
  }

  .featured-image, 
  .featured-content {
    flex: 1 1 100%;
  }

  .blog-card {
    flex: 1 1 calc(50% - 20px);
  }
}

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

  .blog-card {
    flex: 1 1 100%;
  }

  .featured-content h3 {
    font-size: 18px;
  }
}

.explore-topics-section {
    text-align: center;
}

.section-subtitle {
    color: #666;
    margin-bottom: 25px;
}

.topics-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

/* .topics-filter button {
    border: 1px solid #ddd;
    background: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
} */

.topics-filter button {
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 8px 14px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(207.8deg, #40C4FF 6.5%, #0076D4 84.63%);
}


.topics-filter button.active,
.topics-filter button:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}


.topic-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.topic-card.a3{
/* max-width: 370px !important; */
padding-left: 0px !important;
padding-right: 0px !important;
}

.topic-card:hover {
    transform: translateY(-5px);
}

/* .topic-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
} */

.topic-info {
    padding: 10px 15px;
    text-align: left;
}

.view-more {
    margin-top: 40px;
}

.btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    transition: 0.3s;
    text-decoration: none;
}

.btn:hover {
    background: #0056b3;
}

.blog-explore {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}


/* new-css */
/* --- Blog Topics Grid --- */

.topics-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  max-width: 90%;
  margin: 0 auto;
}

/* Each blog card */
.topic-card {
  flex: 1 1 calc(33.333% - 24px);
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.topic-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12) !important;
}

/* Image wrapper */
.topic-card img {
  width: 100%;
  max-height: 235px;
  object-fit: contain;
  border-bottom: 1px solid #f0f0f0;
  display: block;
}

/* Blog info text */
.topic-info {
  padding: 15px;
}

.topic-info h4 {
  font-size: 16px;
  color: #111;
  font-weight: 600;
  margin-top: 8px;
  line-height: 1.4;
}

.topic-info .date {
  display: block;
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}

.category-tag {
  display: inline-block;
  background: #eef3ff;
  color: #0066ff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
}



/* .topics-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 90%;
  margin: 0 auto;
  gap: 20px;
}

.topic-card {
  flex: 0 0 calc(33.333% - 20px);
  box-sizing: border-box;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.topic-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.topic-info {
  padding: 15px;
}

.topic-info h4 {
  font-size: 16px;
  color: #111;
  font-weight: 600;
  margin-top: 8px;
}

.topic-info .date {
  display: block;
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}

.category-tag {
  display: inline-block;
  background: #eef3ff;
  color: #0066ff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
} */
 .padding-card{
    padding-left: 0px !important;
    padding-right: 0px !important;
 }

.topic-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s ease forwards;
}

.category-tag {
    color: #fff;
    font-size: 13px;
    display: block;
    padding: 10px 20px;
    border-radius: 6px;
    margin-bottom: 6px;
    background: linear-gradient(207.8deg, #40C4FF 6.5%, #0076D4 84.63%);
    width: fit-content;

}
.blog-heading a {
    font-size: 30px !important;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
}
.blog-heading.a3{
   margin-top: 0px !important;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Responsive */
@media (max-width: 1199.98px) {
    .featured-blog {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
  .topic-card {
    flex: 0 0 calc(50% - 20px);
  }
  /* .featured-image {
    height: 400px !important;
  } */
}

@media (max-width: 576.98px) {
  .topic-card {
    flex: 0 0 100%;
  }
  .featured-blog{
    /* max-height: 330px !important; */
    max-width: 420px !important;
  }
  .featured-image  img {
    max-height: 235px !important;
  }
  .blog-heading a{
    font-size: 20px !important;
  }
}
