/* Blog Section Block Styles */
/* All selectors scoped to .blog-section-section */

/* Section wrapper */
.blog-section-section {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 10px;
  width: 100%;
  background-color: #ffffff;
}

/* Container */
.blog-section-section .container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Main wrapper */
.blog-section-section .blog-section-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  width: 100%;
}

/* Header Section */
.blog-section-section .blog-section-header {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  align-items: center;
  max-width: 602px;
  text-align: center;
}

.blog-section-section .blog-section-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 300;
  text-transform: capitalize;
  color: #112446;
  margin: 0;
  line-height: 1.2;
}

.blog-section-section .blog-section-description {
  font-family: "Poppins", sans-serif;
  font-size: clamp(18px, 1.5vw, 18px);
  font-weight: 400;
  text-align: center;
  color: #313F58;
  margin: 0;
  line-height: 1.6;
}

/* Content Section */
.blog-section-section .blog-section-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  width: 100%;
}

/* Blog Cards Wrapper */
.blog-section-section .blog-cards-wrapper {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: stretch;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

/* Individual Blog Card */
.blog-section-section .blog-card {
  box-sizing: border-box;
  width: calc(33.333% - 20px);
  max-width: 390px;
  min-width: 280px;
  background-color: #ffffff;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.10);
}

/* Card Image Wrapper */
.blog-section-section .blog-card-image-wrapper {
  width: 100%;
  height: 189px;
  overflow: hidden;
}

.blog-section-section .blog-card-image-wrapper a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.blog-section-section .blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: center;
  object-position: center;
  transition: transform 0.3s ease;
}

.blog-section-section .blog-card-image-wrapper:hover .blog-card-image {
  transform: scale(1.05);
}

/* Card Content */
.blog-section-section .blog-card-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 27px 22px 40px;
  flex-grow: 1;
}

/* Card Meta */
.blog-section-section .blog-card-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Category Wrapper */
.blog-section-section .blog-card-category-wrapper {
  display: inline-block;
}

.blog-section-section .blog-card-category-link {
    background-color: #0960A8;
    border-radius: 4px;
    padding: 6px 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: max-content;
    width: 100%;
}

.blog-section-section .blog-card-category-link:hover {
  background-color: #0056b3;
}

.blog-section-section .blog-card-category {
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: #f4f7fa;
  line-height: 14px;
}

/* Title Wrapper */
.blog-section-section .blog-card-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-section-section .blog-card-title {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 500;
  text-align: left;
  color: #112446;
  margin: 0;
  line-height: 1.4;
}

.blog-section-section .blog-card-title a {
  color: #112446;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-section-section .blog-card-title a:hover {
  color: #007aff;
}

/* Read More Link */
.blog-section-section .blog-card-read-more {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #007aff;
  text-decoration: none;
  margin-top: auto;
  transition: color 0.3s ease;
}

.blog-section-section .blog-card-read-more:hover {
  color: #0056b3;
}

/* No Posts Message */
.blog-section-section .blog-section-no-posts {
  text-align: center;
  padding: 40px 20px;
  color: #666666;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
}

/* CTA Section */
.blog-section-section .blog-section-cta {
  display: flex;
  justify-content: center;
}

.blog-section-section .blog-section-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  min-width: 222px;
  height: 53px;
  background-color: #13367d;
  border-radius: 6px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #e6e5e5;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.blog-section-section .blog-section-cta-button:hover {
  background-color: #0960a8;
}

/* Responsive Breakpoints */

/* Tablet - 2 columns */
@media (max-width: 1024px) {

  .blog-section-section .blog-card {
    width: calc(50% - 15px);
    max-width: 400px;
  }

  .blog-section-section .blog-section-header {
    max-width: 100%;
    padding: 0 20px;
  }
}

/* Small Tablet / Large Mobile */
@media (max-width: 768px) {

  .blog-section-section .blog-section-wrapper {
    gap: 40px;
  }

  .blog-section-section .blog-cards-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .blog-section-section .blog-card {
    width: 100%;
    max-width: 100%;
    min-width: unset;
  }

  .blog-section-section .blog-section-cta-button {
    width: 100%;
    max-width: 400px;
  }
}

/* Mobile */
@media (max-width: 480px) {

  .blog-section-section .container {
    padding: 0 10px;
  }


  .blog-section-section .blog-card-content {
    padding: 27px 15px 40px;
  }

  .blog-section-section .blog-section-cta-button {
    width: 100%;
    padding: 12px 20px;
    height: auto;
    min-height: 48px;
  }

  .blog-section-section .blog-card-image-wrapper {
    height: 160px;
  }
}
