/* style/tin-tuc.css */
.page-tin-tuc {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background */
}

.page-tin-tuc__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 40px;
  background-color: #f8f8f8;
}

.page-tin-tuc__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 8px;
}

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

.page-tin-tuc__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-tin-tuc__main-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tin-tuc__description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-tin-tuc__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-tin-tuc__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-tin-tuc__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-tin-tuc__btn-primary:hover {
  background-color: #1a8cc7;
  border-color: #1a8cc7;
}

.page-tin-tuc__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-tin-tuc__btn-secondary:hover {
  background-color: #e0f2fa;
  color: #26A9E0;
}

.page-tin-tuc__content-area {
  padding: 50px 0;
  background-color: #FFFFFF;
}

.page-tin-tuc__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-tin-tuc__section-title {
  font-size: 2em;
  font-weight: 700;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
}

.page-tin-tuc p {
  margin-bottom: 1em;
  color: #333333;
}

.page-tin-tuc__figure {
  margin: 30px auto;
  max-width: 680px;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tin-tuc__figure-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-tin-tuc__figure-caption {
  font-size: 0.9em;
  color: #666666;
  padding: 10px 15px;
  background-color: #f0f0f0;
}

.page-tin-tuc__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-tin-tuc__news-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-tin-tuc__news-card:hover {
  transform: translateY(-5px);
}

.page-tin-tuc__card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-tin-tuc__card-content {
  padding: 20px;
  flex-grow: 1;
}

.page-tin-tuc__card-title {
  font-size: 1.25em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-tin-tuc__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-tin-tuc__card-title a:hover {
  text-decoration: underline;
}

.page-tin-tuc__card-meta {
  font-size: 0.85em;
  color: #888888;
  margin-bottom: 15px;
}

.page-tin-tuc__card-text {
  font-size: 0.95em;
  color: #555555;
}

.page-tin-tuc__cta-center {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 50px;
}

.page-tin-tuc__guide-list,
.page-tin-tuc__benefits-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 30px;
  color: #333333;
}

.page-tin-tuc__guide-list li,
.page-tin-tuc__benefits-list li {
  margin-bottom: 10px;
}

.page-tin-tuc__guide-list li a {
  color: #26A9E0;
  text-decoration: none;
}

.page-tin-tuc__guide-list li a:hover {
  text-decoration: underline;
}

.page-tin-tuc__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
}

.page-tin-tuc__faq-question {
  font-size: 1.15em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-tin-tuc__faq-answer {
  font-size: 1em;
  color: #555555;
}

.page-tin-tuc__promo-box {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 50px;
  border-radius: 10px;
  text-align: center;
  margin-top: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-tin-tuc__promo-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-tin-tuc__promo-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tin-tuc__btn-lg {
  padding: 15px 35px;
  font-size: 1.1em;
  background-color: #EA7C07; /* Login color for prominent CTA */
  border-color: #EA7C07;
}

.page-tin-tuc__btn-lg:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-tin-tuc {
    font-size: 15px;
    line-height: 1.5;
  }

  /* 1. Top Section (Hero) & CTA */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }

  .page-tin-tuc__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em);
    margin-bottom: 15px;
  }

  .page-tin-tuc__description {
    font-size: 1em;
    margin-bottom: 25px;
    padding: 0 15px;
  }

  .page-tin-tuc__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-tin-tuc__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 2. Single Column Long Text Container */
  .page-tin-tuc__article-wrap {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tin-tuc__section-title {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-tin-tuc p {
    font-size: 0.95em;
  }

  /* 3. General Images & Figure */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-tin-tuc__figure {
    margin: 20px auto;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tin-tuc__figure-caption {
    font-size: 0.8em;
    padding: 8px 10px;
  }

  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .page-tin-tuc__card-image {
    height: 180px; /* Adjust height for smaller screens */
  }

  .page-tin-tuc__card-title {
    font-size: 1.1em;
  }

  .page-tin-tuc__card-text {
    font-size: 0.9em;
  }

  /* 4. Buttons and Button Containers */
  .page-tin-tuc__cta-center .page-tin-tuc__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 5. Tutorial & FAQ Blocks */
  .page-tin-tuc__guide-list,
  .page-tin-tuc__benefits-list {
    margin-left: 15px;
    padding-right: 15px;
  }

  .page-tin-tuc__faq-item {
    padding: 15px;
  }

  .page-tin-tuc__faq-question {
    font-size: 1em;
  }

  .page-tin-tuc__faq-answer {
    font-size: 0.95em;
  }

  .page-tin-tuc__promo-box {
    padding: 30px 20px;
    margin-top: 40px;
  }

  .page-tin-tuc__promo-title {
    font-size: 1.8em;
  }

  .page-tin-tuc__promo-text {
    font-size: 1em;
  }

  .page-tin-tuc__btn-lg {
    font-size: 1em;
    padding: 12px 25px;
  }
}