: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);
}

.article {
  break-inside: avoid;
  column-count: 3;
  column-gap: 25px;
  margin: auto;
  margin-bottom: 1rem;
}

@media screen and (max-width: 750px) {
  .article {
    column-count: 2;
  }
}

@media screen and (max-width: 520px) {
  .article {
    column-count: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

.blogs-card {
  background: var(--white);
  border-radius: 16px;
  max-width: 380px;
  padding: 20px;
  border: 1px solid rgba(13, 27, 42, 0.08);
  box-shadow:
    0 12px 30px rgba(13, 27, 42, 0.08),
    0 0 0 transparent;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.img-blog {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 16px;
}

.img-blog img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.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(-6px);
  box-shadow:
    0 18px 45px rgba(13, 27, 42, 0.15);
}

.blogs-card:hover::before {
  opacity: 1;
}

.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: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 12px;
}

.blog-excerpt {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--header);
  opacity: 0.85;
  margin-bottom: 22px;
}

.blog-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-date {
  font-size: 13px;
  color: var(--logo);
}

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

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

.read-more: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(240px, 1fr));
  gap: 1rem;
}

.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;
  }

  .topic-shortcuts {
    padding: 0 1rem;
  }

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

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