.container{
  line-height: 1.5 !important;
}

.blogs-section {
  padding: 30px 0;
}

.header {
  text-align: center;
  margin-bottom: 0px;
  padding: 0px !important;
}
.section-title {
  color: #5cb85c;
  font-size: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  width: 100%; /* Full width */
  height: 419px; /* Set a fixed height for uniformity */
  transition: all 0.3s ease-in-out;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card:hover .image {
  transform: scale(1.1);
}

.blog-card {
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 800px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.image-container {
  height: 200px;
  overflow: hidden;
}

.image {
  width: 100%;
  height: 100%;
  background-size: cover;
  /* background-position: center; */
  transition: transform 0.4s ease;
}

.blog-card:hover .image {
  transform: scale(1.05);
}

.card-body {
  padding: 20px;
}

.card-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.card-title {
  /* font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
   font-size: 1.05rem; */

  font-weight: 700;
  padding: 12px 0px;
  margin: 0;
  color: #132f6b;
  /* background-color: aliceblue;
  border-top: 1px solid #e0e0e0; */
  text-transform: capitalize;
  transition: color 0.3s ease;
}

.card-excerpt {
  font-size: 16px;
  color: #555;
  margin-bottom: 16px;
}

.btn-read-more {
  font-weight: 500;
  color: #007bff;
  transition: color 0.3s ease;
}

.btn-read-more:hover {
  color: #0056b3;
}

.image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100% - 200px); /* Adjust for the fixed image height */
  padding-bottom: 40px;
  align-items: start;
}
.card-body {
  padding: 15px;
}

@media (max-width: 768px) {
  .blog-card {
    max-width: 100%;
  }

  .card-title {
    font-size: 100%;
  }

  .card-excerpt {
    font-size: 14px;
  }
  .newHeader h3 {
    margin-top: 20px;
  }
}

/* blogs  */

.blog-header {
  background: #f8f9fa;
  padding: 2rem 0;
}
.blog-post {
  margin-bottom: 2rem;
}
.blog-footer {
  background: #f8f9fa;
  padding: 1rem 0;
  text-align: center;
}

.container {
  margin: 0 auto;
  width: 90%;
}
.category-section {
  position: sticky;
  z-index: 98;
  top: 100px;
  background-color: white;
  width: 100%;
  /* justify-content: center;
    display: flex; */
}

.category-text {
  font-size: 18px;
  color: black; /* Default color */
  text-decoration: none; /* Remove underline */
  padding: 8px 16px;
  display: inline-block;
  border-radius: 20px; /* Border radius for rounded edges */
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for hover and click */
  font-weight: 600;
}

.category-text:hover {
  color: #007bff; /* Change text color on hover */
}

.category-text:active {
  background-color: wheat; /* Change background color when clicked */
  color: black; /* Ensure text color stays readable */
}

.active-category {
  color: #007bff;
}

.card-details {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Light background overlay */
  color: white !important; /* Text color */
  padding: 10px;
  opacity: 0; /* Initially invisible */
  transform: translateY(100%); /* Initially below the card */
  transition: opacity 0.3s ease, transform 0.3s ease-in-out; /* Smooth transition */
}

/* Hover effect on the card */
.cards:hover .card-details {
  opacity: 1; /* Make it visible */
  transform: translateY(0); /* Slide up to show details */
}

/* Card container for the image */
.cards img {
  transition: transform 0.3s ease-in-out; /* Apply smooth transition for image zoom */
}

/* Card Title */
.card-details .card-title {
  font-size: 18px;
  font-weight: bold;
}

/* Card Date */
.card-details .card-date {
  font-size: 14px;
  margin: 5px 0;
}

/* Read More button styling */
.card-details a {
  font-size: 14px;
  text-decoration: none;
  color: black;
  border: 1px solid transparent;
  outline: none;
  padding: 5px 15px;
  border-radius: 5px;
  margin-top: 10px;
  background-color: white;
}

.card-details a:hover {
  background-color: wheat;
  color: black;
  border: 1px solid transparent;
  outline: none;
}

.blog-section .row {
  margin-left: -15px;
  margin-right: -15px;
}

.blog-section .col-md-4 {
  margin-bottom: 30px; /* Add space between cards */
}

.text {
  /* color: whit !important; */
  font-weight: 600 !important;
}
.date {
  color: white !important;
  font-weight: 600 !important;
}
@media (min-width: 320px) and (max-width: 480px) {
  .card-details {
    opacity: 1; /* Initially invisible */
    transform: translateY(0); /* Initially below the card */
    border-radius: 0 0 5px 5px;
    background-color: rgba(0, 0, 0, 0.65);
  }

  /* Hover effect on the card */

  /* Card Title */
  .card-details .card-title {
    font-size: 18px;
    font-weight: bold;
  }

  /* Card Date */
  .card-details .card-date {
    font-size: 14px;
    margin: 5px 0;
  }

  /* Read More button styling */
  .card-title {
    height: 47px;
  }

  /* Ensure spacing between the cards */
  .blog-section .row {
    margin-left: -15px;
    margin-right: -15px;
  }

  .blog-section .col-md-4 {
    margin-bottom: 30px; /* Add space between cards */
  }

  /* Optional - Hover effect for image scaling */
  /* .card:hover img {
      transform: scale(1.1); 
    } */

  .text {
    color: white;
    font-weight: 600 !important;
  }
  .date {
    color: white;
    font-weight: 600 !important;
  }
  .mobBlog {
    margin-top: -15%;
  }
  .mobCard {
    height: 400px;
  }
}

@media screen and (max-width: 768px) {
  .category-section .row {
    display: flex;
    overflow-x: scroll;
    flex-wrap: nowrap;
    padding-bottom: 10px;
    padding-top: 10px;
    -webkit-overflow-scrolling: touch;
    padding-left: 25px;
  }
  .category-section {
    background-color: white;
    top: 85px !important;
  }
  .category-section .row {
    scrollbar-width: none; /* Hide scrollbar in Firefox */
  }

  /* For each category button */
  .categoryButton {
    border: 1px solid gray;
    border-radius: 10px;
    margin-right: 10px;
    display: flex;
  }
  .category-section .row {
    top: 60px;
  }

  .category-text {
    font-size: 16px;
    padding: 5px 15px;
    text-align: center;
    border-radius: 10px;
    display: block; /* Make the link block level to take full width */
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    width: 100%;
    font-weight: 600;
  }

  /* When the category button is active */
  .category-text:active,
  .active-category {
    background-color: #0e306d; /* Active background color */
    color: white; /* Active text color */
    margin-top: -1px;
    margin-bottom: -1px;
    margin-left: -1px;
    width: 102%;
    margin-right: -1px;
  }
  .row > * {
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-top: 0 !important;
  }
  .bloglayout {
    flex-direction: column;
  }
  .datawidth {
    width: 100%;
  }
}

.dropdown-menu li {
  margin-bottom: 0;
}

/* New CSS for the  */

.newHeader {
  padding-bottom: 10px !important;
}
.newHeader h3 {
  font-weight: 400;
}
.blog-card-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  padding: 10px 8px 0px 10px;
}

.blog-card {
  border-radius: 16px;
  box-shadow: 0 0px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 800px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.image-container {
  height: 200px;
  overflow: hidden;
}

/* .image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
} */

.blog-card:hover .image {
  transform: scale(1.05);
}

.card-body {
  padding: 20px;
}

.card-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.card-title {
  /* font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0; */
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 0px;
  margin: 0;
  color: #132f6b;
  /* background-color: aliceblue;
  border-top: 1px solid #e0e0e0; */
  text-transform: capitalize;
  transition: color 0.3s ease;
  text-align: start;

}

.card-excerpt {
  font-size: 16px;
  color: #555;
  margin-bottom: 16px;
}

.btn-read-more {
  align-self: flex-start;
border: 1.5px solid #3498db;  
border-radius: 20px;
  color: #3498db;
  font-size: 0.875rem;
  margin-top: auto;
  padding: 5px 10px;
  transition: all 0.3s ease-in-out;
}

.btn-read-more:hover {
  background-color: #3498db;
  border-color: #3498db;
  color: #fff;
}
/* .forFlex{
  display: flex;
  flex-wrap: wrap;
} */
@media (max-width: 768px) {
  .blog-card {
    max-width: 100%;
  }

  .card-title {
    font-size: 100%;
  }

  
  .newHeader h3 {
    margin-top: 20px;
  }
  .blog-card-wrapper {
    padding: 10px 0px 0px 7px !important;
  }
   .pagination-scroll {
  margin-right: -140px;

}
}
.pagination-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.page-btn {
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #000;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  min-width: 40px;
}

.page-btn:hover {
  background-color: #f0f0f0;
}

.page-btn.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}
@media (max-width: 480px) {
  .page-btn {
    padding: 6px 10px;
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  .card-text h2 {
    padding:10px !important;
    font-size: 100% !important;
  }
}
.pagination-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 24px;
}

.pagination-scroll {
  display: flex;
  gap: 8px;
  justify-content: center;
  min-width: max-content;
  padding: 0 10px;
}

.page-btn {
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #000;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  flex-shrink: 0;
}

.page-btn:hover {
  background-color: #f0f0f0;
}

.page-btn.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}
.cards {
  max-width: 100% !important;
}

.card-text h2 {
  color: #0e306d !important;
}

.card-text font {
  font-size: 16px;
  font-family: "Poppins", serif;
}

.card-text .note-box {
  padding: 20px;
  font-size: 16px;
  font-family: "Poppins", serif;
  background-color: #e8f6fe !important;
  border-radius: 18px;
  border-bottom: 2px solid black;
  box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px,
    rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px,
    rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px,
    rgba(42, 51, 70, 0.04) 0px 6px 6px -3px,
    rgba(14, 63, 126, 0.04) 0px 12px 12px -6px,
    rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;
}

u {
  font-size: 17px;

  font-family: "Poppins", serif;

  color: #0e306d !important;
}

.card-text tr {
  font-size: 16px;

  font-family: "Poppins", serif;
}

.view-all-container {
  margin-top: 35px;
  text-align: center;
}

.btn-view-all {
  background-color: transparent;
  border: 1.5px solid #007bff;
  color: #007bff;
  padding: 5px 15px;
  font-size: 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-view-all:hover {
  background-color: #007bff;
  color: white;
}
