/* style/tin-tuc.css */

/* Base styles for the page */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background color from custom palette */
}

.page-tin-tuc__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero Section */
.page-tin-tuc__hero-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  padding-top: 10px; /* Assuming shared.css handles body padding-top */
}

.page-tin-tuc__hero-image-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
  background-color: #140C0C; /* Fallback for image loading */
}

.page-tin-tuc__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-tin-tuc__hero-content {
  text-align: center;
  padding: 40px 20px;
  background: rgba(20, 12, 12, 0.8); /* Semi-transparent background for readability */
}

.page-tin-tuc__main-title {
  font-size: 3.2em;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-tin-tuc__description {
  font-size: 1.2em;
  color: #FFF1E8;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button - General */
.page-tin-tuc__cta-button,
.page-tin-tuc__view-all-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button color from custom palette */
  color: #ffffff; /* Ensure white text for contrast */
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-tin-tuc__cta-button:hover,
.page-tin-tuc__view-all-button:hover {
  background: linear-gradient(180deg, #F3C54D 0%, #FFB04A 100%); /* Lighter gradient on hover */
}

/* News Section */
.page-tin-tuc__news-section {
  padding: 40px 0;
  background-color: #140C0C; /* Background */
}

.page-tin-tuc__section-title {
  font-size: 2.5em;
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-tin-tuc__section-description {
  font-size: 1.1em;
  color: #FFF1E8;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-tin-tuc__news-card {
  background: #2A1212; /* Card B G */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-tin-tuc__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc__news-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-tin-tuc__news-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-tin-tuc__news-card-title {
  font-size: 1.5em;
  color: #F3C54D; /* Gold */
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1; /* Allow title to take up space */
}

.page-tin-tuc__news-card-meta {
  font-size: 0.9em;
  color: #7E0D0D; /* Deep Red */
  margin-bottom: 15px;
}

.page-tin-tuc__news-card-excerpt {
  font-size: 1em;
  color: #FFF1E8;
  margin-bottom: 20px;
}

.page-tin-tuc__read-more {
  display: inline-block;
  color: #FFB04A;
  font-weight: bold;
  text-decoration: none;
  margin-top: auto; /* Push to bottom */
}

.page-tin-tuc__read-more:hover {
  text-decoration: underline;
}

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

/* Info Section (Dark Background) */
.page-tin-tuc__info-section {
  padding: 60px 0;
  background-color: #C61F1F; /* Main color */
  color: #ffffff; /* Forced white text for contrast */
}

.page-tin-tuc__dark-bg .page-tin-tuc__section-title {
  color: #F3C54D; /* Gold */
}

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

.page-tin-tuc__info-item {
  background: rgba(0, 0, 0, 0.3); /* Darker overlay for card effect */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-tin-tuc__info-item-title {
  font-size: 1.8em;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
}

.page-tin-tuc__info-item p {
  font-size: 1em;
  color: #ffffff;
}

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

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

.page-tin-tuc__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-tin-tuc__faq-item {
  background: #2A1212; /* Card B G */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tin-tuc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  cursor: pointer;
  background: #2A1212;
  position: relative;
  list-style: none; /* For details/summary */
}

/* Hide default details marker */
.page-tin-tuc__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-tin-tuc__faq-item summary::marker {
  display: none;
}


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

.page-tin-tuc__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFB04A;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.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: 1em;
  color: #FFF1E8;
}

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

/* Mobile Responsive */
@media (max-width: 1024px) {
  .page-tin-tuc__main-title {
    font-size: 2.8em;
  }
  .page-tin-tuc__section-title {
    font-size: 2em;
  }
  .page-tin-tuc__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-tin-tuc {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Hero Section */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important; /* Specific instruction for mobile */
    margin-bottom: 20px;
  }
  .page-tin-tuc__hero-content {
    padding: 20px 15px;
  }
  .page-tin-tuc__main-title {
    font-size: 2em !important;
    max-width: 100% !important;
  }
  .page-tin-tuc__description {
    font-size: 1em !important;
    max-width: 100% !important;
  }

  /* News Section */
  .page-tin-tuc__news-section {
    padding: 20px 0;
  }
  .page-tin-tuc__section-title {
    font-size: 1.8em !important;
    margin-bottom: 15px;
  }
  .page-tin-tuc__section-description {
    font-size: 0.9em !important;
    margin-bottom: 30px;
  }
  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr !important; /* Single column for news cards */
    gap: 20px;
  }
  .page-tin-tuc__news-card-title {
    font-size: 1.3em !important;
  }
  .page-tin-tuc__news-card-image {
    height: 180px !important; /* Adjust image height for mobile cards */
  }
  .page-tin-tuc__news-card-content {
    padding: 15px !important;
  }

  /* Info Section */
  .page-tin-tuc__info-section {
    padding: 40px 0;
  }
  .page-tin-tuc__info-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .page-tin-tuc__info-item-title {
    font-size: 1.5em !important;
  }

  /* FAQ Section */
  .page-tin-tuc__faq-section {
    padding: 40px 0;
  }
  .page-tin-tuc__faq-question {
    font-size: 1.1em !important;
    padding: 15px 20px !important;
  }
  .page-tin-tuc__faq-answer {
    padding: 0 20px 15px !important;
  }

  /* General image responsive */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-tin-tuc__hero-image-wrapper,
  .page-tin-tuc__news-card,
  .page-tin-tuc__info-item,
  .page-tin-tuc__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Button responsive */
  .page-tin-tuc__cta-button,
  .page-tin-tuc__view-all-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: auto;
    margin-right: auto;
  }
  .page-tin-tuc__view-all-wrapper,
  .page-tin-tuc__cta-bottom {
    padding-left: 15px;
    padding-right: 15px;
  }
}