/* style/tin-tuc.css */

/* Base styles for the page content */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main for dark background */
  background-color: #B71C1C; /* Custom Background */
  padding-top: 10px; /* Small top padding for hero, body padding-top from shared.css */
}

.page-tin-tuc__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Hero Section */
.page-tin-tuc__hero-section {
  padding-bottom: 60px;
  background-color: #C91F17; /* Primary color */
  color: #FFF5E1; /* Text Main */
}

.page-tin-tuc__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
}

.page-tin-tuc__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-tin-tuc__hero-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #F4D34D; /* Gold for emphasis */
  line-height: 1.2;
}

.page-tin-tuc__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-tin-tuc__hero-image {
  flex: 1 1 45%;
  text-align: center;
  min-width: 300px;
}

.page-tin-tuc__hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc__hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* Buttons */
.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary,
.page-tin-tuc__read-more-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-tin-tuc__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom Button Gradient */
  color: #7A0E0E; /* Deep Red for contrast */
  border: 2px solid #F2B544; /* Custom Border */
}

.page-tin-tuc__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  color: #333333; /* Darker text on hover for contrast */
  border-color: #FFCC66; /* Custom Glow */
}

.page-tin-tuc__btn-secondary {
  background-color: transparent;
  color: #F4D34D; /* Gold */
  border: 2px solid #F4D34D; /* Gold */
}

.page-tin-tuc__btn-secondary:hover {
  background-color: #F4D34D; /* Gold */
  color: #7A0E0E; /* Deep Red */
  border-color: #F4D34D;
}

.page-tin-tuc__read-more-btn {
  background-color: #E53935; /* Auxiliary color */
  color: #FFF5E1; /* Text Main */
  border: none;
  font-size: 0.9em;
  padding: 8px 15px;
}

.page-tin-tuc__read-more-btn:hover {
  background-color: #C91F17; /* Primary color */
}


/* Section Titles and Descriptions */
.page-tin-tuc__section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F4D34D; /* Gold */
  padding-top: 40px;
}

.page-tin-tuc__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF5E1; /* Text Main */
}

/* Introduction Section */
.page-tin-tuc__introduction-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Custom Background */
}

.page-tin-tuc__introduction-section p {
  max-width: 900px;
  margin: 0 auto 20px;
  font-size: 1.05em;
  color: #FFF5E1; /* Text Main */
}


/* Latest News Section */
.page-tin-tuc__latest-news-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Custom Background */
}

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

.page-tin-tuc__news-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

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

.page-tin-tuc__news-media {
  height: 200px; /* Fixed height for consistent card images */
  overflow: hidden;
}

.page-tin-tuc__news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-tin-tuc__news-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  color: #FFF5E1; /* Text Main */
}

.page-tin-tuc__news-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tin-tuc__news-title a {
  color: #F4D34D; /* Gold */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tin-tuc__news-title a:hover {
  color: #FFCC66; /* Glow */
}

.page-tin-tuc__news-meta {
  font-size: 0.9em;
  color: #FFCC66; /* Glow */
  margin-bottom: 15px;
}

.page-tin-tuc__news-excerpt {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tin-tuc__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

/* CTA Section */
.page-tin-tuc__cta-section {
  background-color: #C91F17; /* Primary color */
  padding: 80px 0;
  text-align: center;
}

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

.page-tin-tuc__cta-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F4D34D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tin-tuc__cta-description {
  font-size: 1.1em;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 40px;
}

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

/* FAQ Section */
.page-tin-tuc__faq-section {
  padding: 60px 0 80px;
  background-color: #B71C1C; /* Custom Background */
}

.page-tin-tuc__faq-list {
  margin-top: 40px;
}

.page-tin-tuc__faq-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #FFF5E1; /* Text Main */
}

.page-tin-tuc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #E53935; /* Auxiliary color */
  color: #FFF5E1; /* Text Main */
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  list-style: none; /* For <summary> */
  user-select: none;
}

.page-tin-tuc__faq-question::-webkit-details-marker {
  display: none;
}

.page-tin-tuc__faq-question::marker {
  display: none;
}

.page-tin-tuc__faq-qtext {
  flex-grow: 1;
}

.page-tin-tuc__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #F4D34D; /* Gold */
}

.page-tin-tuc__faq-item[open] .page-tin-tuc__faq-toggle {
  transform: rotate(45deg);
}

.page-tin-tuc__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: #FFF5E1; /* Text Main */
}

.page-tin-tuc__faq-answer p {
  margin-top: 15px;
}


/* General image responsiveness */
.page-tin-tuc img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-tin-tuc__hero-title {
    font-size: 2.5em;
  }
  .page-tin-tuc__section-title {
    font-size: 2em;
  }
  .page-tin-tuc__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-tin-tuc {
    padding-top: 10px !important; /* Ensure minimal top padding */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-tin-tuc__hero-section {
    padding-bottom: 40px;
  }

  .page-tin-tuc__hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 20px;
  }

  .page-tin-tuc__hero-content,
  .page-tin-tuc__hero-image {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-tin-tuc__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-tin-tuc__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-tin-tuc__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary,
  .page-tin-tuc a[class*="button"],
  .page-tin-tuc a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-tin-tuc__cta-buttons,
  .page-tin-tuc__button-group,
  .page-tin-tuc__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure buttons stack */
  }

  .page-tin-tuc__section-title {
    font-size: 1.8em;
    padding-top: 30px;
  }

  .page-tin-tuc__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-tin-tuc__introduction-section,
  .page-tin-tuc__latest-news-section,
  .page-tin-tuc__cta-section,
  .page-tin-tuc__faq-section {
    padding: 40px 0;
  }

  .page-tin-tuc__introduction-section p {
    font-size: 1em;
  }

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

  .page-tin-tuc__news-media {
    height: 180px;
  }

  .page-tin-tuc__news-title {
    font-size: 1.2em;
  }

  .page-tin-tuc__news-excerpt {
    font-size: 0.95em;
  }

  .page-tin-tuc__cta-title {
    font-size: 2em;
  }

  .page-tin-tuc__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-tin-tuc__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-tin-tuc__faq-answer {
    padding: 0 20px 15px;
    font-size: 1em;
  }

  /* Universal image max-width for mobile */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-tin-tuc__section,
  .page-tin-tuc__card,
  .page-tin-tuc__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}