/* Base styles for the Tin Tức page */
.page-tin-tuc {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background: #B71C1C; /* Background */
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
}

/* Hero Section */
.page-tin-tuc__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden;
}

.page-tin-tuc__hero-image {
  width: 100%;
  max-height: 500px; /* Limit height for desktop hero */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-tin-tuc__hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Cover for desktop */
  display: block;
}

.page-tin-tuc__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 30px;
  padding: 0 20px;
}

.page-tin-tuc__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFF5E1; /* Text Main */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-tin-tuc__description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping for buttons */
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 180px;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-tin-tuc__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red for contrast */
  border: 2px solid #F4D34D; /* Gold border */
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-tin-tuc__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

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

.page-tin-tuc__btn-secondary:hover {
  background: rgba(244, 211, 77, 0.1);
  transform: translateY(-2px);
}

/* General Section Styles */
.page-tin-tuc__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-tin-tuc__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFF5E1; /* Text Main */
}

.page-tin-tuc__section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

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

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

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

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

.page-tin-tuc__card-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistent card images */
  overflow: hidden;
}

.page-tin-tuc__card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-tin-tuc__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-tin-tuc__card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFF5E1; /* Text Main */
  line-height: 1.3;
}

.page-tin-tuc__card-excerpt {
  font-size: 0.95rem;
  color: #f0f0f0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-tin-tuc__card-date {
  font-size: 0.85rem;
  color: #F4D34D; /* Gold */
  display: block;
  text-align: right;
}

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

/* About News Section */
.page-tin-tuc__about-news-section {
  padding: 60px 0;
  background: #C91F17; /* Main Color */
  color: #FFF5E1; /* Text Main */
}

.page-tin-tuc__about-news-section .page-tin-tuc__section-title {
  color: #FFF5E1; /* Text Main */
}

.page-tin-tuc__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-tin-tuc__text-block {
  flex: 1;
}

.page-tin-tuc__text-block p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #f0f0f0;
}

.page-tin-tuc__text-block strong {
  color: #FFD86A; /* Highlight keywords */
}

.page-tin-tuc__image-block {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* CTA Banner Section */
.page-tin-tuc__cta-banner {
  background: #7A0E0E; /* Deep Red for a strong contrast */
  padding: 60px 20px;
  text-align: center;
  color: #FFF5E1; /* Text Main */
}

.page-tin-tuc__banner-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFF5E1; /* Text Main */
}

.page-tin-tuc__banner-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-tin-tuc__faq-section .page-tin-tuc__section-title {
  color: #FFF5E1; /* Text Main */
}

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

details.page-tin-tuc__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #D32F2F; /* Card BG border */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
}
details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF5E1; /* Text Main */
}
details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question::-webkit-details-marker {
  display: none;
}
details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question:hover {
  background: #E53935; /* Auxiliary color for hover */
}
.page-tin-tuc__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF5E1; /* Text Main */
}
.page-tin-tuc__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F4D34D; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-tin-tuc__faq-item .page-tin-tuc__faq-answer {
  padding: 0 25px 20px;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
  border-radius: 0 0 8px 8px;
  color: #f0f0f0;
}
.page-tin-tuc__faq-answer p {
  margin-bottom: 0;
}

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

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  .page-tin-tuc {
    padding-top: 10px; /* Small top padding for mobile */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-tin-tuc__container {
    padding: 30px 15px;
  }

  /* HERO Section */
  .page-tin-tuc__hero-section {
    padding-bottom: 30px;
  }

  .page-tin-tuc__hero-image {
    max-height: 300px; /* Adjust height for mobile */
  }

  .page-tin-tuc__hero-image img {
    object-fit: contain !important; /* Contain for mobile hero */
    aspect-ratio: unset !important;
  }

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

  .page-tin-tuc__description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .page-tin-tuc__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }

  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  /* Latest News Section */
  .page-tin-tuc__latest-news-section {
    padding: 40px 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-tin-tuc__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-tin-tuc__section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-tin-tuc__card-image-wrapper {
    height: 180px;
  }

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

  .page-tin-tuc__card-excerpt {
    font-size: 0.9rem;
  }

  .page-tin-tuc__view-all-button-wrapper {
    margin-top: 30px;
  }

  /* About News Section */
  .page-tin-tuc__about-news-section {
    padding: 40px 0;
  }

  .page-tin-tuc__content-wrapper {
    flex-direction: column; /* Stack content vertically */
    gap: 30px;
  }

  .page-tin-tuc__text-block p {
    font-size: 0.95rem;
  }

  /* CTA Banner Section */
  .page-tin-tuc__cta-banner {
    padding: 40px 15px;
  }

  .page-tin-tuc__banner-title {
    font-size: 1.8rem;
  }

  .page-tin-tuc__banner-description {
    font-size: 0.95rem;
  }

  /* FAQ Section */
  .page-tin-tuc__faq-section {
    padding: 40px 0;
  }

  details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question {
    padding: 15px 15px;
  }
  .page-tin-tuc__faq-qtext {
    font-size: 1rem;
  }
  .page-tin-tuc__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-tin-tuc__faq-item .page-tin-tuc__faq-answer {
    padding: 0 15px 15px;
  }

  /* Ensure all content containers are responsive */
  .page-tin-tuc__section,
  .page-tin-tuc__card,
  .page-tin-tuc__container,
  .page-tin-tuc__content-wrapper,
  .page-tin-tuc__news-grid,
  .page-tin-tuc__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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