:root {
  --text: #000B58;
  --primary-dark: #0D1B2A;
  --header: #1B263B;
  --navlink: #e6f3ff;
  --teal: #006562;
  --teal-glow: #00656280;
  --yellow: #FDEB9E;
  --logo: #9daec2;
  --white: #ffffff;
}

.blog_section {
  margin-top: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.category-filter {
  display: flex;
  gap: 12px;
  margin: 30px 0 40px 0;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 20px;
}

.filter-btn {
  padding: 10px 24px;
  border: 2px solid var(--teal);
  background-color: transparent;
  color: var(--teal);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background-color: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 101, 98, 0.3);
}

/* Category Groups Container */
.blogs-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.category-group {
  margin-bottom: 4rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.category-group.hidden {
  display: none;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--teal);
}

.category-group-title {
  font-family: var(--font-main);
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin: 0;
}

.category-count {
  font-size: 0.95rem;
  color: var(--teal);
  font-weight: 600;
  background: rgba(0, 101, 98, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.article {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 3rem auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

@media screen and (max-width: 750px) {
  .article {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    padding: 0 1rem;
  }
}

@media screen and (max-width: 520px) {
  .article {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 0.75rem;
  }
}

@media screen and (max-width: 380px) {
  .article {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.75rem;
  }
}

.blogs-card {
  background: var(--white);
  padding: 0.9rem;
  border: 1px solid rgba(13, 27, 42, 0.08);
  box-shadow: 0 8px 20px rgba(13, 27, 42, 0.08);
  border-radius: 0.875rem;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.img-blog {
  width: 100%;
  flex: 1;
  overflow: hidden;
  border-radius: 0.625rem;
  margin-bottom: 0.75rem;
  min-height: 80px;
}

.img-blog img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.blogs-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right,
      var(--teal-glow),
      transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.blogs-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(13, 27, 42, 0.12);
}

.blogs-card:hover .img-blog img {
  transform: scale(1.06);
}

.blog-card-content {
  position: relative;
  z-index: 1;
}

.blog-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  background: rgba(0, 101, 98, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.blog-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-excerpt {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #555;
  opacity: 0.9;
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(13, 27, 42, 0.05);
}

.blog-date {
  font-size: 0.7rem;
  color: #999;
  font-weight: 500;
}

.read-more-myblog {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  position: relative;
}

.read-more-myblog::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s ease;
}

.read-more-myblog:hover::after {
  width: 100%;
}


/* --- Blog page enhancements --- */

/* Title + subtitle */
.blog_section .title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.blog-subtitle {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: #666;
}


/* START HERE SECTION */
.start-here {
  max-width: 1100px;
  margin: 0 auto 2.5rem auto;
  padding: 1.5rem 1.25rem;
  background: #f7f7ff;
  border-radius: 10px;
  border: 1px solid #e0e3ff;
}

.start-here h3 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.start-here p {
  margin-bottom: 1.2rem;
  color: #555;
  font-size: 0.95rem;
}

.start-here-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.start-here-card {

  display: block;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e0e0e0;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;

}



.start-here-card:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}


.featured-post-image {
  width: 100%;
  height: 100px;
  border-radius: 0.7rem;
  overflow: hidden;
  object-fit: cover;
}


.start-here-category {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5b6cff;
  margin-bottom: 0.35rem;
}

.start-here-card h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: #222;
}

.start-here-card p {
  font-size: 0.9rem;
  color: #555;
}




/* ARTICLES WRAPPER (if not already styled) */
.blog_section .article {
  max-width: 1100px;
  margin: 0 auto 2.5rem auto;
  padding: 0 1.25rem;
}

/* RESPONSIVE TWEAKS */
@media (max-width: 768px) {
  .start-here {
    padding: 1.2rem 1rem;
  }

  .category-filter {
    padding: 0 1rem;
  }

  .blogs-container {
    padding: 0 1rem;
  }

  .article {
    padding: 0;
  }

  .filter-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }

  .blog-title {
    font-size: 1rem;
  }

  .blog-excerpt {
    font-size: 0.8rem;
  }

  .category-group-title {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 520px) {
  .filter-btn {
    padding: 6px 14px;
    font-size: 0.75rem;
  }

  .blog-excerpt {
    font-size: 0.75rem;
  }

  .blogs-container {
    padding: 0 0.5rem;
  }

  .article {
    padding: 0;
    gap: 1rem;
  }

  .blogs-card {
    padding: 0.9rem;
  }

  .start-here-grid {
    gap: 1rem;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .category-group-title {
    font-size: 1.25rem;
  }

  .load-more-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* minor visual upgrade: subtle border gradient for cards */
.blogs-card {
  border: 1px solid rgba(0, 101, 98, 0.15);
}

/* Pagination container (for future use) */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--teal);
  background-color: transparent;
  color: var(--teal);
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
  background-color: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

/* Empty state */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #999;
  font-size: 1.1rem;
}

/* Load More Button */
.load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.load-more-btn {
  padding: 0.875rem 2rem;
  background-color: var(--teal);
  color: var(--white);
  border: 2px solid var(--teal);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background-color: transparent;
  color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 101, 98, 0.2);
}

.load-more-btn:active {
  transform: translateY(-1px);
}
