/* =========================================
   BLOG PAGE
========================================= */

.blog-page {
  padding: 80px 20px;
  background: #fff7fa;
}

.blog-hero {
  text-align: center;
  margin-bottom: 60px;
}

.blog-hero h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.blog-hero p {
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  gap: 40px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
  max-width: 320px;
  margin: 0 auto;
}

.blog-card:hover {
  transform: translateY(-6px);
}

.blog-card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover img {
  transform: scale(1.05);
}

.blog-content {
  padding: 30px;
}

.blog-category {
  display: inline-block;
  margin-bottom: 15px;
  padding: 6px 14px;
  background: #ffe3ec;
  color: #ff5c8a;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
}

.blog-content h2 {
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.blog-content p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 25px;
}

.read-more-btn,
.featured-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #ff5c8a;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s ease;
}

.read-more-btn:hover,
.featured-btn:hover {
  background: #ff3f76;
}

/* =========================================
   FEATURED BLOG SECTION
========================================= */

.featured-post {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto 50px;
  padding: 30px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.featured-content {
  flex: 1;
}

.featured-tag {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 18px;
  background: #ffe3ec;
  color: #ff5c8a;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
}

.featured-post h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.featured-post p {
  color: #333;
  line-height: 1.9;
  margin-bottom: 30px;
}

.featured-post img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  flex-shrink: 0;
}

/* =========================================
   FEATURED SLIDER
========================================= */

.featured-slider {
  max-width: 950px;
  margin: 0 auto 20px;
}

.featured-slide {
  display: flex;
  align-items: center;
  gap: 35px;
  padding: 35px;
  background: linear-gradient(180deg, #fff7fa, #fffafb);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  transition: 0.4s ease;
}

.featured-slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(255, 92, 138, 0.18);
}

.featured-slide img {
  width: 140px;
  height: 140px;
  min-width: 140px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  transition: transform 0.4s ease;
}

.featured-slide:hover img {
  transform: scale(1.05);
}

.featured-content h2 {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.featured-content p {
  line-height: 1.9;
  color: #666;
  margin-bottom: 25px;
}

/* =========================================
   LATEST POSTS
========================================= */

.latest-posts {
  max-width: 1200px;
  margin: 0 auto 80px;
}

.latest-heading {
  text-align: center;
  margin-bottom: 50px;
}

.latest-heading p {
  color: #ff5c8a;
  font-weight: 600;
  margin-bottom: 10px;
}

.latest-heading h2 {
  font-size: 2.5rem;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.latest-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.latest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(255, 92, 138, 0.12);
}

.latest-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.latest-card:hover img {
  transform: scale(1.05);
}

.latest-content {
  padding: 25px;
}

.latest-content span {
  display: inline-block;
  margin-bottom: 12px;
  color: #ff5c8a;
  font-size: 0.85rem;
  font-weight: 600;
}

.latest-content h3 {
  margin-bottom: 18px;
  font-size: 1.2rem;
  line-height: 1.5;
}

.latest-content a {
  color: #ff5c8a;
  text-decoration: none;
  font-weight: 600;
}

.blog-page h1,
.blog-page h2,
.blog-page h3 {
  letter-spacing: -1px;
}

/* =========================================
   BLOG FILTERS
========================================= */

.blog-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.filter-btn {
  border: none;
  padding: 12px 24px;
  background: #fff;
  color: #666;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
  background: #ffe3ec;
  color: #ff5c8a;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: #ff5c8a;
  color: #fff;
  box-shadow: 0 10px 25px rgba(255, 92, 138, 0.25);
}

/* =========================================
   ARTICLE HERO
========================================= */

.article-hero {
  position: relative;
  height: 360px;
  max-width: 1200px;
  margin: 40px auto 60px;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("../img/strawberry_lip_balm.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f8f3f5;
  display: flex;
  align-items: center;
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42));
  z-index: 1;
}

.strawberry-article-hero {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("../img/strawberry_lip_balm.png");
}

.grapefruit-article-hero {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("../img/grapefruit-fruit-lip-balm.png");
}

.peach-article-hero {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("../img/peach-fruit-lip-balm.png");
}

.vanilla-article-hero {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("../img/vanilla-fruit-lip-balm.png");
}

.fruity-chapstick-article-hero {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("../img/strawberry.webp");
}

.green-apple-article-hero {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("../img/green-apple-fruit-lip-balm.png");
}

.article-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 25px;
  text-align: center;
  background: none;
  border-radius: 0;
}

.article-hero-content span,
.article-hero-content h1,
.article-hero-content p {
  color: #fff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.article-hero-content h1 {
  font-size: 3.4rem;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -2px;
}

.article-hero-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 650px;
  margin: 25px auto 0;
  text-align: center;
}

/* =========================================
   ARTICLE CONTENT
========================================= */

.article-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 25px 80px;
}

.article-content h1 {
  font-size: 3rem;
  margin-bottom: 30px;
  line-height: 1.2;
}

.article-content h2 {
  font-size: 2rem;
  margin-top: 60px;
  margin-bottom: 20px;
  line-height: 1.3;
  scroll-margin-top: 110px;
}

.article-content h3 {
  margin-top: 35px;
  margin-bottom: 15px;
}

.article-content p {
  font-size: 1.08rem;
  line-height: 2;
  color: #000;
  margin-bottom: 25px;
}

.article-content ul {
  padding-left: 25px;
  margin-bottom: 30px;
}

.article-content li {
  margin-bottom: 14px;
  line-height: 1.8;
  color: #555;
}

.blog-article {
  max-width: 850px;
  margin: 0 auto;
  padding: 40px 20px;
}

.blog-article h1,
.blog-article h2,
.blog-article h3,
.blog-article p,
.blog-article ul {
  max-width: 100%;
}

/* =========================================
   READING PROGRESS + TABLE OF CONTENTS
========================================= */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: transparent;
  z-index: 99999;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff5c8a, #ffb6c9);
  transition: width 0.1s ease-out;
}

.table-of-contents {
  max-width: 850px;
  margin: 0 auto 40px auto;
  padding: 30px;
  background: #fff5fb;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.table-of-contents h2 {
  margin-bottom: 18px;
  font-size: 1.5rem;
  color: #222;
  text-align: center;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.table-of-contents li {
  margin-bottom: 12px;
}

.table-of-contents a {
  color: #222;
  text-decoration: none;
  font-weight: 600;
}

.table-of-contents a:hover {
  color: #ff5c8a;
}

html {
  scroll-behavior: smooth;
}

/* =========================================
   RELATED ARTICLES
========================================= */

.related-articles {
  width: 100vw;
  max-width: none;
  margin: 70px 0;
  margin-left: calc(50% - 50vw);
  padding: 60px 80px;
  background: #fff7fb;
  border-radius: 0;
  box-sizing: border-box;
  text-align: center;
}

.related-articles h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #111;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 330px);
  justify-content: center;
  gap: 36px;
}

.related-card {
  width: 330px;
  padding: 26px;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.related-card:hover {
  transform: translateY(-6px);
}

.related-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.related-card-content {
  padding: 20px 0 0;
}

.related-card-content h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: #111;
}

.related-card-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 16px;
}

.related-card-content a {
  display: inline-block;
  padding: 10px 18px;
  background: #ff5c8a;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

.related-card-content a:hover {
  background: #e84c78;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {
  .related-grid {
    grid-template-columns: repeat(2, 330px);
  }
}

@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2.2rem;
  }

  .featured-post,
  .featured-slide {
    flex-direction: column;
    text-align: center;
  }

  .article-hero {
    height: 340px;
    margin: 25px 15px 50px;
  }

  .article-hero-content h1 {
    font-size: 2.4rem;
  }

  .article-content {
    padding: 0 20px 60px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-card {
    width: 100%;
  }
}
