/* ============================================================
   Trang Blog qq99 - CSS chính
   BEM: .page-blog__element-name
   ============================================================ */

.page-blog {
  background: #08160F;
  color: #F2FFF6;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

.page-blog h1,
.page-blog h2,
.page-blog h3,
.page-blog h4 {
  color: #22C768;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.page-blog p {
  color: #F2FFF6;
  margin: 0 0 12px 0;
}

.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-blog a {
  color: #57E38D;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-blog a:hover {
  color: #F2C14E;
}

/* ---------- HERO SECTION ---------- */
.page-blog__hero-section {
  padding-top: 0;
  margin-top: 0;
  padding-bottom: 32px;
  background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%);
}

.page-blog__hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
}

.page-blog__hero-image-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  border: 1px solid #2E7A4E;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

.page-blog__hero-content {
  max-width: 900px;
}

.page-blog__hero-title {
  color: #F2FFF6;
  font-weight: 800;
  letter-spacing: -0.3px;
  max-width: 900px;
  margin-bottom: 14px;
}

.page-blog__hero-desc {
  color: #A7D9B8;
  max-width: 760px;
  margin-bottom: 20px;
}

.page-blog__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- BUTTONS ---------- */
.page-blog__btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.page-blog__btn--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  box-shadow: 0 6px 18px rgba(42, 209, 111, 0.28);
}

.page-blog__btn--primary:hover {
  color: #F2FFF6;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(42, 209, 111, 0.4);
}

.page-blog__btn--outline {
  background: transparent;
  color: #22C768;
  border: 2px solid #2E7A4E;
}

.page-blog__btn--outline:hover {
  background: #11271B;
  color: #57E38D;
  border-color: #57E38D;
}

/* ---------- INTRO SECTION ---------- */
.page-blog__intro-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-blog__section-head {
  margin-bottom: 24px;
  max-width: 860px;
}

.page-blog__section-title {
  color: #22C768;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}

.page-blog__section-sub {
  color: #A7D9B8;
  margin: 0;
}

.page-blog__intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.page-blog__intro-card {
  background: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 14px;
  padding: 22px;
  box-sizing: border-box;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-blog__intro-card:hover {
  transform: translateY(-4px);
  border-color: #57E38D;
}

.page-blog__intro-card-title {
  color: #F2FFF6;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-blog__intro-card-text {
  color: #A7D9B8;
  font-size: 15px;
  margin: 0;
}

/* ---------- POSTS SECTION ---------- */
.page-blog__posts-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px 40px;
  box-sizing: border-box;
}

.page-blog__posts-track {
  display: flex;
  gap: 18px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-blog__post-card {
  flex: 0 0 calc(25% - 14px);
  background: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 14px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-blog__post-card:hover {
  transform: translateY(-4px);
  border-color: #57E38D;
}

.page-blog__post-link {
  display: block;
  color: #F2FFF6;
}

.page-blog__post-image {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}

.page-blog__post-title {
  color: #F2FFF6;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 16px 6px;
  margin: 0;
  line-height: 1.4;
}

.page-blog__post-link:hover .page-blog__post-title {
  color: #57E38D;
}

.page-blog__post-desc {
  color: #A7D9B8;
  font-size: 14px;
  padding: 0 16px;
  margin: 0 0 10px;
}

.page-blog__post-time {
  display: block;
  color: #57E38D;
  font-size: 12px;
  padding: 0 16px;
}

.page-blog__posts-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.page-blog__nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #2E7A4E;
  background: #11271B;
  color: #22C768;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-blog__nav-btn:hover {
  background: #0A4B2C;
  color: #57E38D;
  border-color: #57E38D;
}

.page-blog__posts-dots {
  display: flex;
  gap: 8px;
}

.page-blog__posts-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1E3A2A;
  border: 1px solid #2E7A4E;
  cursor: pointer;
  padding: 0;
}

.page-blog__posts-dot.is-active {
  background: #57E38D;
  border-color: #57E38D;
}

/* ---------- PROMO SECTION ---------- */
.page-blog__promo-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  box-sizing: border-box;
}

.page-blog__promo-wrap {
  display: flex;
  gap: 32px;
  align-items: center;
  background: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 18px;
  padding: 28px;
  box-sizing: border-box;
}

.page-blog__promo-media {
  flex: 0 0 320px;
  border-radius: 14px;
  overflow: hidden;
}

.page-blog__promo-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog__promo-content {
  flex: 1 1 auto;
  min-width: 0;
}

.page-blog__promo-text {
  color: #A7D9B8;
  margin-bottom: 18px;
}

.page-blog__promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- LIST SECTION ---------- */
.page-blog__list-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px 40px;
  box-sizing: border-box;
}

.page-blog__list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.page-blog__list-item {
  background: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 14px;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-blog__list-item:hover {
  transform: translateY(-4px);
  border-color: #57E38D;
}

.page-blog__list-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  display: block;
}

.page-blog__list-title {
  color: #F2FFF6;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-blog__list-text {
  color: #A7D9B8;
  font-size: 14px;
  margin-bottom: 14px;
  flex: 1 1 auto;
}

.page-blog__list-link {
  color: #57E38D;
  font-weight: 700;
  font-size: 14px;
  margin-top: auto;
}

/* ---------- DEEP SECTION ---------- */
.page-blog__deep-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  box-sizing: border-box;
}

.page-blog__deep-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.page-blog__deep-card {
  background: #11271B;
  border-left: 4px solid #22C768;
  border-radius: 12px;
  padding: 22px;
  box-sizing: border-box;
}

.page-blog__deep-title {
  color: #F2FFF6;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-blog__deep-text {
  color: #A7D9B8;
  font-size: 15px;
  margin: 0;
}

/* ---------- FAQ SECTION ---------- */
.page-blog__faq-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 16px 40px;
  box-sizing: border-box;
}

.page-blog__faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-blog__faq-item {
  background: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-blog__faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #F2FFF6;
  font-size: 16px;
  font-weight: 700;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
}

.page-blog__faq-question::after {
  content: '+';
  color: #57E38D;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.page-blog__faq-item.is-open .page-blog__faq-question::after {
  content: '−';
  color: #F2C14E;
}

.page-blog__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog__faq-item.is-open .page-blog__faq-answer {
  max-height: 420px;
  padding-bottom: 18px;
}

.page-blog__faq-answer p {
  color: #A7D9B8;
  margin: 0;
  font-size: 15px;
}

/* ---------- OVERLAY SECTION ---------- */
.page-blog__overlay-section {
  position: relative;
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-blog__overlay-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-blog__overlay-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 15, 0.82);
  z-index: 1;
}

.page-blog__overlay-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 32px 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-blog__overlay-title {
  color: #F2FFF6;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-blog__overlay-text {
  color: #F2FFF6;
  margin-bottom: 20px;
}

/* ---------- CTA SECTION ---------- */
.page-blog__cta-section {
  width: 100%;
  background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%);
  padding: 40px 16px 56px;
  box-sizing: border-box;
}

.page-blog__cta-wrap {
  max-width: 1000px;
  margin: 0 auto;
  background: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  box-sizing: border-box;
}

.page-blog__cta-image {
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto 20px;
  border-radius: 14px;
  display: block;
}

.page-blog__cta-title {
  color: #22C768;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-blog__cta-text {
  color: #A7D9B8;
  margin-bottom: 22px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ============================================================
   MEDIA QUERIES — 768px
   ============================================================ */
@media (max-width: 768px) {

  .page-blog {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-blog img {
    max-width: 100% !important;
    height: auto !important;
    width: auto;
  }

  .page-blog__hero-section {
    padding-top: 0;
    margin-top: 0;
    padding-bottom: 24px;
  }

  .page-blog__hero-container {
    padding: 10px 14px 0;
    gap: 18px;
)  }

  .page-blog__hero-image-wrap {
    border-radius: 12px;
  }

  .page-blog__hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .page-blog__btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }

  .page-blog__intro-section,
  .page-blog__posts-section,
  .page-blog__promo-section,
  .page-blog__list-section,
  .page-blog__deep-section,
  .page-blog__faq-section {
    padding: 28px 14px;
  }

  .page-blog__intro-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .page-blog__posts-track {
    gap: 14px;
  }

  .page-blog__post-card {
    flex: 0 0 100%;
  }

  .page-blog__post-image {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .page-blog__posts-nav {
    gap: 12px;
  }

  .page-blog__promo-wrap {
    flex-direction: column;
    padding: 20px;
    gap: 18px;
  }

  .page-blog__promo-media {
    flex: 0 0 auto;
    width: 100%;
  }

  .page-blog__promo-image {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .page-blog__promo-actions {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .page-blog__list-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .page-blog__list-image {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .page-blog__deep-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .page-blog__overlay-section {
    min-height: 260px;
  }

  .page-blog__overlay-content {
    padding: 26px 16px;
  }

  .page-blog__cta-section {
    padding: 28px 14px 36px;
  }

  .page-blog__cta-wrap {
    padding: 20px;
  }

  .page-blog__cta-image {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .page-blog__cta-actions {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }
}