/* ============================================
   BLOG PAGE STYLES
   ============================================ */

/* ============================================
   BLOG HERO SECTION
   ============================================ */
.blog-hero-section {
  background: linear-gradient(180deg, #eef6f3 0%, #f5f7f7 100%);
  padding: 110px 0 70px;
  text-align: center;
}

.blog-hero-content {
  max-width: 720px;
  margin: 0 auto;
}

/* Title */
.blog-hero-title {
  font-size: 50px;
  font-weight: 800;
  line-height: 1.4;
  color: #0C1B33;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.blog-hero-title .text-green {
  color: #2E8A6E;
}

/* Subtitle */
.blog-hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 36px;
  /* max-width: 600px; */
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   BLOG SEARCH BAR
   ============================================ */
.blog-search-wrapper {
  max-width: 620px;
  margin: 0 auto 28px;
}

.blog-search-bar {
  display: flex;
  align-items: center;
  background-color: var(--white);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 6px;
  box-shadow: 0px 10px 30px -20px rgba(12, 27, 51, 0.3);
  border: 1px solid #E5EAF0;
  gap: 0;
}

.blog-search-icon {
  font-size: 18px;
  color: var(--text-light);
  padding: 0 14px;
  flex-shrink: 0;
}

.blog-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dark);
  padding: 10px 4px;
  min-width: 0;
}

.blog-search-input::placeholder {
  color: #A0AEC0;
  font-weight: 400;
}

.blog-search-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 32px;
  border-radius: var(--radius-pill);
  border: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.blog-search-btn:hover {
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 105, 80, 0.35);
}

/* ============================================
   BLOG CATEGORY PILLS
   ============================================ */
.blog-category-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #E5EAF0;
  background-color: #F5FAF8;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.blog-pill:hover {
  border-color: #2E8A6E;
  color: #2E8A6E;
}

.blog-pill.active {
  background-color: #0C1B33;
  border-color: #0C1B33;
  color: var(--white);
}

/* ============================================
   FEATURED ARTICLE SECTION
   ============================================ */
.blog-featured-section {
  padding: 48px 0 0;
  background-color: var(--page-bg);
}

.blog-featured-card {
  display: flex;
  flex-direction: row;
  background-color: var(--white);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #E5EAF0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--transition-base);
}

.blog-featured-card:hover {
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.07);
}

/* Image Side */
.blog-featured-image-wrapper {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.blog-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #F5D800;
  color: #0C1B33 ;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

/* Content Side */
.blog-featured-content {
  flex: 0 0 50%;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 16px;
}

.blog-featured-meta-item {
  color: #2E8A6E;
  font-weight: 600;
}

.blog-meta-dot {
  color: #D1D5DB;
}

.blog-featured-title {
  font-size: 24px;
  font-weight: 800;
  color: #0C1B33;
  line-height: 1.6;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.blog-featured-desc {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.85;
  color: #45556C;
  margin-bottom: 24px;
}

/* Featured Footer */
.blog-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* Author Block */
.blog-featured-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2E8A6E 0%, #0C1B33 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.blog-author-info {
  display: flex;
  flex-direction: column;
}

.blog-author-name {
  font-size: 15px;
  font-weight: 800;
  color: #0C1B33;
  line-height: 1.4;
}

.blog-author-role {
  font-size: 13px;
  font-weight: 500;
  color: #718096;
  line-height: 1.4;
}

/* Read Link */
.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #2E8A6E;
  transition: all var(--transition-fast);
}

.blog-read-link:hover {
  color: var(--primary);
  gap: 12px;
}

.blog-read-link i {
  font-size: 14px;
  transition: transform var(--transition-fast);
}

.blog-read-link:hover i {
  transform: translateX(-4px);
}

/* ============================================
   LATEST ARTICLES SECTION
   ============================================ */
.blog-latest-section {
  padding: 70px 0 80px;
  background-color: var(--page-bg);
}

/* Section Header */
.blog-section-header {
  text-align: right;
  margin-bottom: 40px;
}

.blog-section-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #2E8A6E;
  background-color: rgba(46, 138, 110, 0.08);
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.blog-section-title {
  font-size: 32px;
  font-weight: 800;
  color: #0C1B33;
  margin-bottom: 0;
  letter-spacing: -0.3px;
}

/* ============================================
   ARTICLE CARDS
   ============================================ */
.blog-article-card {
  background-color: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #E5EAF0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-article-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
  transform: translateY(-4px);
}

/* Card Image */
.blog-card-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-base);
}

.blog-article-card:hover .blog-card-image {
  transform: scale(1.04);
}

.blog-card-category {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 700;
  color: #0C1B33;
  background-color: #ffffff;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

/* Card Body */
.blog-card-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Card Meta */
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.blog-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
}

.blog-card-meta-item i {
  font-size: 13px;
  color: #A0AEC0;
}

/* Card Title */
.blog-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #0E1B34;
  line-height: 1.65;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Description */
.blog-card-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
  color: #62748E;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Card Footer */
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #F0F2F5;
  margin-top: auto;
}

.blog-card-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.blog-card-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #2E8A6E;
  transition: all var(--transition-fast);
}

.blog-card-read-link:hover {
  color: var(--primary);
  gap: 10px;
}

.blog-card-read-link i {
  font-size: 13px;
  transition: transform var(--transition-fast);
}

.blog-card-read-link:hover i {
  transform: translateX(-4px);
}

/* ============================================
   LOAD MORE BUTTON
   ============================================ */
.blog-load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.blog-load-more-btn {
  font-size: 15px;
  font-weight: 700;
  color: #0E1B34;
  background-color: var(--white);
  border: 1.5px solid #E5EAF0;
  border-radius: var(--radius-pill);
  padding: 12px 40px;
  transition: all var(--transition-fast);
}

.blog-load-more-btn:hover {
  border-color: #2E8A6E;
  color: #2E8A6E;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

/* ============================================
   RESPONSIVE - TABLET (max-width: 991px)
   ============================================ */
@media (max-width: 991.98px) {
  .blog-hero-section {
    padding: 80px 0 50px;
  }

  .blog-hero-title {
    font-size: 34px;
  }

  .blog-featured-card {
    flex-direction: column;
  }

  .blog-featured-image-wrapper {
    flex: unset;
    height: 280px;
  }

  .blog-featured-content {
    flex: unset;
    padding: 32px 28px;
  }

  .blog-section-title {
    font-size: 28px;
  }
}

/* ============================================
   RESPONSIVE - MOBILE (max-width: 767px)
   ============================================ */
@media (max-width: 767.98px) {
  .blog-hero-section {
    padding: 60px 0 40px;
  }

  .blog-hero-title {
    font-size: 28px;
    line-height: 1.6;
  }

  .blog-hero-subtitle {
    font-size: 14px;
  }

  .blog-search-wrapper {
    max-width: 100%;
  }

  .blog-search-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .blog-category-pills {
    gap: 8px;
  }

  .blog-pill {
    font-size: 13px;
    padding: 6px 16px;
  }

  .blog-featured-section {
    padding: 32px 0 0;
  }

  .blog-featured-card {
    border-radius: 18px;
  }

  .blog-featured-image-wrapper {
    height: 220px;
  }

  .blog-featured-content {
    padding: 24px 20px;
  }

  .blog-featured-title {
    font-size: 19px;
  }

  .blog-latest-section {
    padding: 50px 0 60px;
  }

  .blog-section-title {
    font-size: 24px;
  }

  .blog-article-card {
    border-radius: 16px;
  }

  .blog-card-image-wrapper {
    height: 180px;
  }

  .blog-card-title {
    font-size: 16px;
  }

  .blog-load-more-btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (max-width: 575px)
   ============================================ */
@media (max-width: 575.98px) {
  .blog-hero-title {
    font-size: 24px;
  }

  .blog-search-bar {
    flex-direction: row;
  }

  .blog-featured-title {
    font-size: 17px;
  }

  .blog-featured-desc {
    font-size: 13px;
  }

  .blog-card-body {
    padding: 18px 16px 16px;
  }
}