/* ===== Tin Tức page styles (BEM scoped to .page-tin-tuc) ===== */

.page-tin-tuc {
  color: #F3F8FF;
  background-color: #08162B;
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------- HERO ---------- */
.page-tin-tuc__hero-section {
  width: 100%;
  padding-top: 10px;
  margin-top: 0;
  background: linear-gradient(180deg, #10233F 0%, #08162B 100%);
}
.page-tin-tuc__hero-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 24px;
  box-sizing: border-box;
}
.page-tin-tuc__hero-image {
  width: 100%;
  margin-bottom: 20px;
}
.page-tin-tuc__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid #244D84;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.page-tin-tuc__hero-content {
  width: 100%;
}
.page-tin-tuc__main-title {
  color: #F3F8FF;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.2px;
  max-width: 900px;
  margin: 0 0 14px;
}
.page-tin-tuc__hero-desc {
  color: #AFC4E8;
  font-size: 16px;
  line-height: 1.7;
  max-width: 860px;
  margin: 0 0 20px;
}
.page-tin-tuc__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

/* ---------- BUTTONS ---------- */
.page-tin-tuc__btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  line-height: 1.3;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.page-tin-tuc__btn--primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #FFFFFF;
  border: 1px solid #4FA8FF;
  box-shadow: 0 6px 18px rgba(43, 115, 246, 0.35);
}
.page-tin-tuc__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(79, 168, 255, 0.45);
}
.page-tin-tuc__btn--ghost {
  background: transparent;
  color: #F3F8FF;
  border: 1px solid #4FA8FF;
}
.page-tin-tuc__btn--ghost:hover {
  background: rgba(79, 168, 255, 0.12);
  transform: translateY(-2px);
}

/* ---------- BANNER THUMBS ---------- */
.page-tin-tuc__banner-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
  box-sizing: border-box;
}
.page-tin-tuc__banner-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.page-tin-tuc__banner-thumbs img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 1px solid #244D84;
  background-color: #10233F;
}

/* ---------- SHARED SECTION ---------- */
.page-tin-tuc__intro-section,
.page-tin-tuc__posts-section,
.page-tin-tuc__promo-section,
.page-tin-tuc__list-section,
.page-tin-tuc__faq-section,
.page-tin-tuc__cta-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  box-sizing: border-box;
}
.page-tin-tuc__section-title {
  color: #F3F8FF;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1B3357;
  letter-spacing: 0.2px;
}

/* ---------- INTRO ---------- */
.page-tin-tuc__intro-text {
  color: #AFC4E8;
  font-size: 15.5px;
  line-height: 1.8;
  margin: 0 0 16px;
}

/* ---------- POSTS ---------- */
.page-tin-tuc__posts-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.page-tin-tuc__post-card {
  flex: 0 0 calc(25% - 14px);
  min-width: 240px;
  background-color: #10233F;
  border: 1px solid #244D84;
  border-radius: 14px;
  padding: 12px;
  box-sizing: border-box;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.page-tin-tuc__post-card:hover {
  border-color: #4FA8FF;
  transform: translateY(-3px);
}
.page-tin-tuc__post-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin-bottom: 12px;
  background-color: #08162B;
}
.page-tin-tuc__post-title {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 8px;
}
.page-tin-tuc__post-title a {
  color: #F3F8FF;
  text-decoration: none;
}
.page-tin-tuc__post-title a:hover {
  color: #4FA8FF;
  text-decoration: underline;
}
.page-tin-tuc__post-excerpt {
  color: #AFC4E8;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- PROMO ---------- */
.page-tin-tuc__promo-section {
  padding-top: 20px;
}
.page-tin-tuc__promo-box {
  background: linear-gradient(135deg, #10233F 0%, #113B7A 100%);
  border: 1px solid #244D84;
  border-radius: 16px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-tin-tuc__promo-title {
  color: #F2C14E;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}
.page-tin-tuc__promo-box img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 1px solid #244D84;
}
.page-tin-tuc__promo-text {
  color: #F3F8FF;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
  max-width: 760px;
}

/* ---------- OVERLAY ---------- */
.page-tin-tuc__overlay-section {
  width: 100%;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  margin: 12px 0;
}
.page-tin-tuc__overlay-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}
.page-tin-tuc__overlay-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 43, 0.72);
  z-index: 1;
}
.page-tin-tuc__overlay-content {
  position: relative;
  z-index: 2;
  padding: 32px 20px;
  max-width: 800px;
  box-sizing: border-box;
}
.page-tin-tuc__overlay-title {
  color: #F3F8FF;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 12px;
}
.page-tin-tuc__overlay-text {
  color: #F3F8FF;
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 20px;
}

/* ---------- LIST ---------- */
.page-tin-tuc__list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.page-tin-tuc__list-item {
  background-color: #10233F;
  border: 1px solid #244D84;
  border-radius: 14px;
  padding: 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.page-tin-tuc__list-item:hover {
  border-color: #4FA8FF;
  transform: translateY(-3px);
}
.page-tin-tuc__list-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin-bottom: 12px;
  background-color: #08162B;
}
.page-tin-tuc__list-title {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 8px;
}
.page-tin-tuc__list-title a {
  color: #F3F8FF;
  text-decoration: none;
}
.page-tin-tuc__list-title a:hover {
  color: #4FA8FF;
  text-decoration: underline;
}
.page-tin-tuc__list-text {
  color: #AFC4E8;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* ---------- FAQ ---------- */
.page-tin-tuc__faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-tin-tuc__faq-item {
  background-color: #10233F;
  border: 1px solid #244D84;
  border-radius: 12px;
  overflow: hidden;
}
.page-tin-tuc__faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #F3F8FF;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  padding: 16px 18px;
  cursor: pointer;
  box-sizing: border-box;
  font-family: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.page-tin-tuc__faq-question:hover {
  color: #4FA8FF;
}
.page-tin-tuc__faq-question::after {
  content: "+";
  color: #4FA8FF;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}
.page-tin-tuc__faq-item.is-open .page-tin-tuc__faq-question::after {
  content: "−";
}
.page-tin-tuc__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 18px;
  box-sizing: border-box;
}
.page-tin-tuc__faq-item.is-open .page-tin-tuc__faq-answer {
  max-height: 500px;
  padding-bottom: 16px;
}
.page-tin-tuc__faq-answer p {
  color: #AFC4E8;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}

/* ---------- CTA ---------- */
.page-tin-tuc__cta-inner {
  background: linear-gradient(135deg, #113B7A 0%, #10233F 100%);
  border: 1px solid #244D84;
  border-radius: 16px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.page-tin-tuc__cta-inner img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 1px solid #244D84;
}
.page-tin-tuc__cta-title {
  color: #F3F8FF;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}
.page-tin-tuc__cta-text {
  color: #AFC4E8;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  max-width: 760px;
}
.page-tin-tuc__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  .page-tin-tuc__hero-section {
    padding-top: 8px;
  }
  .page-tin-tuc__hero-container {
    padding: 0 14px 20px;
  }
  .page-tin-tuc__hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .page-tin-tuc__btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
  }
  .page-tin-tuc__banner-thumbs {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .page-tin-tuc__intro-section,
  .page-tin-tuc__posts-section,
  .page-tin-tuc__promo-section,
  .page-tin-tuc__list-section,
  .page-tin-tuc__faq-section,
  .page-tin-tuc__cta-section {
    padding: 24px 14px;
  }
  .page-tin-tuc__section-title {
    font-size: 21px;
  }
  .page-tin-tuc__posts-track {
    flex-direction: column;
    overflow-x: visible;
    gap: 14px;
  }
  .page-tin-tuc__post-card {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }
  .page-tin-tuc__list-grid {
    grid-template-columns: 1fr;
  }
  .page-tin-tuc__promo-box,
  .page-tin-tuc__cta-inner {
    padding: 18px;
  }
  .page-tin-tuc__promo-title,
  .page-tin-tuc__overlay-title,
  .page-tin-tuc__cta-title {
    font-size: 20px;
  }
  .page-tin-tuc__overlay-section {
    min-height: 240px;
  }
  .page-tin-tuc__overlay-content {
    padding: 24px 16px;
  }
  .page-tin-tuc__cta-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-tin-tuc img {
    max-width: 100%;
    height: auto;
  }
  .page-tin-tuc {
    max-width: 100%;
    overflow-x: hidden;
  }
}