/* =====================================
   BLOG LISTING + POSTS
   ===================================== */

.latest-blogs {
  background: var(--color-bg, #f6f7f8);
  padding: 5rem 1rem;
  text-align: center;
}

.latest-blogs .section__title {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.latest-blogs .section__intro {
  color: var(--color-text);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}  

.latest-blogs .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.read-more {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: var(--color-accent);
}

.blog-footer-link {
  text-align: center;
}

.blog-footer-link .btn {
  font-weight: 600;
}


/* Centered button spacing fix */
.blog-footer-link {
  text-align: center;
  margin-top: 3rem;
  position: relative;
  z-index: 3;
}

/* Responsive layout */
@media (max-width: 900px) {
  .blog-featured-grid {
    grid-template-columns: 1fr;
  }
  .featured-post {
    min-height: 300px;
  }
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 3rem;
}


.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  background: var(--color-white);
}

.page-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 0 10px rgba(225, 0, 106, 0.25);
}

.page-link.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(0, 121, 140, 0.3);
  cursor: default;
}

.page-link.prev,
.page-link.next {
  padding: 0.4rem 1rem;
  font-weight: 600;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.page-link.prev:hover,
.page-link.next:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.page-link.next:hover {
  transform: translateX(3px);
}

.page-link.prev:hover {
  transform: translateX(-3px);
}

.blog-post {
  background: var(--color-white);
  padding: var(--section-space) 1rem;
}

.post-title {
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.post-meta {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.blog-post__image {
  width: 100%;
  max-width: 900px;
  display: block;
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.blog-post__content {
  color: var(--color-text);
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.75;
  font-size: 1rem;
}

.post-nav {
  text-align: center;
  margin-bottom: 4rem;
}

.related-posts {
  background: var(--color-panel);
  padding: 4rem 1rem;
}

.related-posts h2 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.related-posts .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
}


/* -----------------------------
   BLOG POST TYPOGRAPHY & CALLOUTS
------------------------------ */

.blog-post h2 {
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  text-align: left;
}

.blog-post h3 {
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.blog-post p {
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

/* -----------------------------
   TIP BOXES
------------------------------ */

.tip-box {
  background: var(--color-panel);
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tip-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tip-box strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
}

/* Highlighted version for stronger CTA or end notes */
.tip-box.highlight {
  background: var(--color-accent-light, #ffeef7);
  border-left-color: var(--color-accent);
}

.tip-box.highlight strong {
  color: var(--color-accent);
}

/* Nested paragraph tweak inside tip-box */
.tip-box p {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
}

.tip-box strong::before {
  content: "💡 ";
}
.tip-box.highlight strong::before {
  content: "✨ ";
}


.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card__content {
  padding: 1.2rem;
  text-align: left;
}

.blog-card__content h3 {
  color: var(--color-primary);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-card__content p {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 0.8rem;
}

.read-more {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: var(--color-accent);
}

.blog-footer-link {
  text-align: center;
}

.blog-footer-link .btn {
  font-weight: 600;
}

.latest-blogs.featured-layout {
  background: var(--color-white);
  padding: 6rem 1rem 5rem;
  position: relative;
  z-index: 1;
}

.latest-blogs.featured-layout .section__title {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.latest-blogs.featured-layout .section__intro {
  text-align: center;
  color: var(--color-text);
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1rem;
  line-height: 1.6;
}

.blog-featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem; /* stops overlap with button */
}

.featured-post {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 420px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.featured-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.featured-image {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  filter: brightness(0.6);
  transition: filter 0.3s ease;
}

.featured-post:hover .featured-image {
  filter: brightness(0.8);
}

/* Pink-tinted overlay gradient for the Hurd pop 💖 */
.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: var(--color-white);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 10%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.featured-overlay h3 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
  color: var(--color-white);
}

.featured-overlay p {
  font-size: 1rem;
  opacity: 0.95;
  margin-bottom: 0.8rem;
}

.side-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.side-card {
  background: var(--color-panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.side-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.side-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.side-card__content {
  padding: 1rem 1.2rem;
  text-align: left;
}

.side-card__content h4 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.side-card__content p {
  color: var(--color-text);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.blog-list,
.latest-blogs.featured-layout {
  padding-top: 5rem;
  padding-bottom: 5rem;
}


.blog-grid {
  margin-top: 3rem;
}
/* === Featured Badge === */
/* Featured badge — brighter + more vibrant */
/* Featured badge — clean, bold, no gradient */
.featured-badge{
  position: absolute;
  top: 1rem;
  left: 1rem;

  background: var(--color-accent); /* solid pink */
  color: #fff;

  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;

  padding: 0.35rem 0.7rem;
  border-radius: 999px;

  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  z-index: 5;
}


.featured-post:hover .featured-badge{
  transform: translateY(-2px) scale(1.02);
}

.featured-post:hover .featured-badge {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}


.blog-card{
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow, 0 4px 10px rgba(0,0,0,0.05));
}

.blog-post{
  background: var(--color-white, #fff);
  padding: var(--section-space, 5rem) 1rem;
}
