/* ===========================================
   BLOG HERO SECTION
   =========================================== */
.blog-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
  padding-bottom: 60px;
}

.blog-hero .container {
  width: 100%;
}

/* Banner Background */
.blog-hero__banner {
  position: absolute;
  inset: 0;
  z-index: 1;
}

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

/* Content */
.blog-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 0 auto;
}

/* Title */
.blog-hero__title {
  font-size: clamp(48px, 8vw, 64px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 32px;
  letter-spacing: 6px;
}

/* ===========================================
   SEARCH FORM
   =========================================== */
.blog-hero__search {
  margin-bottom: 24px;
}

.blog-search-form {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 72%;
  margin: 0 auto;
}

.blog-search-form__icon {
  color: #999;
  display: flex;
  align-items: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.blog-search-form__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font-family);
  color: var(--color-text);
  background: transparent;
  padding: 12px 0;
  min-width: 0;
}

.blog-search-form__input::placeholder {
  color: #999;
}

.blog-search-form__submit {
  background: var(--color-secondary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.blog-search-form__submit:hover {
  background: #2d8a45;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(57, 166, 83, 0.4);
}

/* ===========================================
   TAGS
   =========================================== */
.blog-hero__tags {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-hero__tags-label {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  padding-top: 8px;
}

.blog-hero__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 64%;
}

/* Tag Item */
.blog-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.blog-tag:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 32, 88, 0.3);
}

/* Featured Tag (tag đầu tiên) */
.blog-tag--active {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #ffffff;
}

/* ===========================================
   SECTION FEATURED
   =========================================== */
.section-featured {
  padding: 0 0 60px;
  background: #f5f5f5;
  position: relative;
  padding-top: 14rem;
}

/* ===========================================
   FEATURED CARD MAIN (Row 1 - kéo lên)
   =========================================== */
.featured-card-main {
  display: grid;
  grid-template-columns: 45% 55%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  max-width: 1200px;
  width: 100%;
  position: absolute;
  top: -10rem;
  z-index: 9;
  left: 50%;
  transform: translateX(-50%);
  height: 340px;
}

.featured-card-main__thumb {
  height: 100%;
}

.featured-card-main__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card-main:hover .featured-card-main__thumb img {
  transform: scale(1.05);
}

.featured-card-main__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #fff;
}

.featured-card-main__title {
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 25px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card-main__excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-light);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card__tags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.featured-card-main .featured-card__tags span {
  color: #000000;
}
.featured-grid .featured-card__tags span {
  color: #fff;
}
.featured-card__tags span {
  padding: 2px 10px;
  border-radius: 5px;
  border: 1px solid var(--color-secondary);
}

/* ===========================================
   SECTION HEADER
   =========================================== */
.section-featured__header {
  margin-bottom: 32px;
  max-width: 50%;
}

.section-featured__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 12px;
}

.section-featured__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin: 0;
}

/* ===========================================
   FEATURED GRID (Row 2)
   =========================================== */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ===========================================
   FEATURED CARD
   =========================================== */
.featured-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 400px;
}

.featured-card__link {
  display: block;
  height: 100%;
  text-decoration: none;
}

.featured-card__thumb {
  position: absolute;
  inset: 0;
}

.featured-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-card__thumb img {
  transform: scale(1.05);
}

.featured-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(24, 59, 86, 0.0001) 0%,
    rgba(22, 49, 70, 0.453847) 45.38%,
    #152532 100%
  );
}
.featured-card-main__content .featured-card__cat {
  position: initial;
  width: fit-content;
  text-align: center;
  margin-bottom: 10px;
}

.featured-card__cat {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  display: inline-block;
  padding: 8px 16px;
  background: var(--color-secondary);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.featured-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  z-index: 2;
}

.featured-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card__excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===========================================
   SECTION LIST POSTS
   =========================================== */
.section-list-posts {
  padding: 60px 0;
  background: #ffffff;
}

.list-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media screen and (max-width: 1024px) {
  /* ===========================================
   FEATURED
   =========================================== */
  .section-featured {
    padding-top: 2rem;
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-card-main {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
    position: initial;
    transform: initial;
  }
  .section-featured__header {
    max-width: 100%;
  }
  .section-featured__title {
    text-align: center;
  }
  .featured-card-main__thumb {
    height: 250px;
  }

  .featured-card-main__content {
    padding: 20px;
  }

  .featured-card-main__title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .featured-card {
    min-height: 280px;
  }

  .featured-card__content {
    padding: 24px;
  }

  .featured-card__title {
    font-size: 18px;
  }

  /* ===========================================
   SECTION LIST POSTS
   =========================================== */
  .list-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  /* ===========================================
   HERO
   =========================================== */
  .blog-hero {
    padding-bottom: 75px;
  }

  .blog-hero__title {
    letter-spacing: 4px;
    margin-bottom: 24px;
  }

  .blog-search-form {
    flex-direction: column;
    border-radius: 16px;
    padding: 12px;
    gap: 12px;
  }

  .blog-search-form__icon {
    display: none;
  }

  .blog-search-form__input {
    width: 100%;
    text-align: center;
    padding: 8px 12px;
  }

  .blog-search-form__submit {
    width: 100%;
    padding: 14px 28px;
  }

  .blog-hero__tags {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .blog-hero__tags-label {
    padding-top: 0;
  }

  .blog-hero__tags-list {
    gap: 12px;
  }

  .blog-tag {
    padding: 6px 14px;
  }

  /* ===========================================
   SECTION LIST POSTS
   =========================================== */
  .section-list-posts {
    padding: 40px 0;
  }

  .list-posts-grid {
    gap: 5px;
  }

  .card-blog__content {
    padding: 16px;
  }

  .card-blog__title {
    font-size: 15px;
  }
}
