/* style/tin-tuc.css */

/* Base styles for page-tin-tuc */
.page-tin-tuc {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
}

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

.page-tin-tuc__section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: #F4D34D; /* Gold */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

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

.page-tin-tuc__card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #F2B544; /* Border */
}

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

/* HERO Section */
.page-tin-tuc__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #C91F17; /* Main Color */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-tin-tuc__hero-text-content {
  flex: 1 1 50%;
  min-width: 300px;
  text-align: left;
  color: #FFF5E1;
}

.page-tin-tuc__hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: #FFCC66; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tin-tuc__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF5E1;
}

.page-tin-tuc__hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
}

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

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

/* Buttons */
.page-tin-tuc__cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  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 */
  color: #7A0E0E; /* Deep Red for contrast */
  border: 2px solid #FFCC66; /* Glow */
}

.page-tin-tuc__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  box-shadow: 0 0 15px #FFCC66;
}

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

.page-tin-tuc__btn-secondary:hover {
  background-color: #FFCC66;
  color: #7A0E0E; /* Deep Red for contrast */
  box-shadow: 0 0 15px #FFCC66;
}

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

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

.page-tin-tuc__news-card {
  display: flex;
  flex-direction: column;
}

.page-tin-tuc__news-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: block;
}

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

.page-tin-tuc__news-card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

.page-tin-tuc__news-card-excerpt {
  font-size: 16px;
  color: #FFF5E1;
  margin-bottom: 15px;
}

.page-tin-tuc__news-card-date {
  font-size: 14px;
  color: rgba(255, 245, 225, 0.7);
  margin-top: auto;
}

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

/* Categories Section */
.page-tin-tuc__categories-section {
  padding: 60px 0;
  background-color: #C91F17; /* Main Color */
}

.page-tin-tuc__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-tin-tuc__category-card {
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #FFF5E1;
  background-color: #D32F2F; /* Card BG */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-tin-tuc__category-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #F4D34D; /* Gold */
}

.page-tin-tuc__category-excerpt {
  font-size: 16px;
  color: #FFF5E1;
}

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

.page-tin-tuc__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-tin-tuc__faq-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  border: 1px solid #F2B544; /* Border */
  color: #FFF5E1;
}

.page-tin-tuc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: #F4D34D; /* Gold */
  list-style: none;
}

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

.page-tin-tuc__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  margin-left: 15px;
  color: #FFCC66; /* Glow */
}

.page-tin-tuc__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: #FFF5E1;
}

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

  .page-tin-tuc__hero-text-content {
    text-align: center;
  }

  .page-tin-tuc__hero-cta-group {
    justify-content: center;
  }

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

  .page-tin-tuc__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important; /* Fixed header spacing */
    padding-bottom: 40px;
  }

  .page-tin-tuc__hero-content-wrapper {
    padding: 20px 15px;
    gap: 30px;
  }

  .page-tin-tuc__hero-title {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 15px;
  }

  .page-tin-tuc__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

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

  .page-tin-tuc__cta-button {
    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: 16px;
  }
  
  /* General container and image adaptation */
  .page-tin-tuc__container,
  .page-tin-tuc__news-grid,
  .page-tin-tuc__category-grid,
  .page-tin-tuc__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

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

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

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

  .page-tin-tuc__news-card-image {
    height: 200px; /* Adjust height for mobile */
  }

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

  .page-tin-tuc__news-card-excerpt {
    font-size: 15px;
  }

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

  .page-tin-tuc__category-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-tin-tuc__category-card {
    padding: 25px;
  }

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

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

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

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

  .page-tin-tuc__faq-toggle {
    font-size: 20px;
  }
}