/* style/tin-tuc.css */

/* Base Styles */
.page-tin-tuc {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main color */
  background-color: #B71C1C; /* Body background color from shared.css */
}

.page-tin-tuc__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-tin-tuc__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFF5E1; /* Text Main color */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-tin-tuc__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FFD86A, #E6B800);
  border-radius: 2px;
}

/* Hero Section */
.page-tin-tuc__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #B71C1C; /* Ensure consistency with body background */
  position: relative;
  overflow: hidden;
}

.page-tin-tuc__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-tin-tuc__hero-content {
  flex: 1 1 50%;
  color: #FFF5E1; /* Text Main color */
  padding-right: 20px;
}

.page-tin-tuc__main-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F4D34D; /* Gold color for main title */
}

.page-tin-tuc__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF5E1; /* Text Main color */
}

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

.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;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-tin-tuc__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc__hero-image {
  flex: 1 1 40%;
  text-align: center;
}

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

/* News List Section */
.page-tin-tuc__news-list-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Body background color */
}

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

.page-tin-tuc__news-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px 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(-8px);
  box-shadow: 0 10px 30px 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 {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-tin-tuc__card-date {
  font-size: 14px;
  color: #FFD86A; /* Gold color */
  margin-bottom: 10px;
}

.page-tin-tuc__card-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFF5E1; /* Text Main color */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-tin-tuc__card-summary {
  font-size: 16px;
  color: #FFF5E1;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tin-tuc__read-more {
  display: inline-block;
  color: #FFD86A; /* Gold color */
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.3s ease;
  align-self: flex-start;
}

.page-tin-tuc__read-more:hover {
  border-bottom-color: #FFD86A;
}

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

/* FAQ Section */
.page-tin-tuc__faq-section {
  padding: 60px 0;
  background-color: #7A0E0E; /* Deep Red for FAQ background */
}

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

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

.page-tin-tuc__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  color: #FFF5E1; /* Text Main color */
  background-color: #D32F2F; /* Card BG */
  transition: background-color 0.3s ease;
}

.page-tin-tuc__faq-item summary:hover {
  background-color: #C91F17; /* Main color on hover */
}

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

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

.page-tin-tuc__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #F2B544; /* Border color */
}

.page-tin-tuc__faq-item[open] .page-tin-tuc__faq-toggle {
  content: '−';
}

.page-tin-tuc__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: #FFF5E1; /* Text Main color */
  line-height: 1.8;
  background-color: #C91F17; /* Main color as answer background */
}

.page-tin-tuc__faq-answer p {
  margin: 0;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tin-tuc__hero-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-tin-tuc__hero-content {
    padding-right: 0;
  }

  .page-tin-tuc__main-title {
    font-size: 42px;
  }

  .page-tin-tuc__hero-image {
    order: -1; /* Image above text on smaller screens */
  }

  .page-tin-tuc__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-tin-tuc__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-tin-tuc__main-title {
    font-size: 32px;
  }

  .page-tin-tuc__description {
    font-size: 16px;
  }

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

  .page-tin-tuc__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .page-tin-tuc__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .page-tin-tuc__card-title {
    font-size: 20px;
  }

  .page-tin-tuc__card-summary {
    font-size: 15px;
  }

  .page-tin-tuc__faq-item summary {
    font-size: 18px;
    padding: 15px 20px;
  }

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

  /* Universal image responsive styles for content area */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-tin-tuc__news-list-section,
  .page-tin-tuc__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-tin-tuc__news-card {
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-tin-tuc__faq-list {
    padding-left: 15px;
    padding-right: 15px;
  }
}