/* style/tin-tuc.css */
.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: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-tin-tuc__section-title {
  font-size: 2.5em;
  color: #F4D34D; /* Gold */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-tin-tuc__sub-section-title {
  font-size: 1.8em;
  color: #FFD86A;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* Hero Carousel Section */
.page-tin-tuc__hero-carousel-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-tin-tuc__hero-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-tin-tuc__hero-slide {
  display: none;
  position: relative;
  width: 100%;
}

.page-tin-tuc__hero-slide.is-active {
  display: block;
}

.page-tin-tuc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-tin-tuc__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 5%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: #ffffff;
  text-align: center;
}

.page-tin-tuc__hero-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #F4D34D; /* Gold */
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-tin-tuc__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 20px;
  color: #FFF5E1;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tin-tuc__hero-slider-prev,
.page-tin-tuc__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 1.5em;
  z-index: 10;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.page-tin-tuc__hero-slider-prev:hover,
.page-tin-tuc__hero-slider-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.page-tin-tuc__hero-slider-prev {
  left: 10px;
}

.page-tin-tuc__hero-slider-next {
  right: 10px;
}

/* Guide Box Section */
.page-tin-tuc__guide-box {
  padding: 30px 20px 40px;
  background-color: #D32F2F; /* Card BG */
  border-radius: 8px;
  margin-bottom: 40px;
  border: 2px solid #F2B544; /* Border */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc__guide-grid {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-tin-tuc__guide-card {
  flex: 0 0 calc(20% - 12px); /* 5 cards per row */
  max-width: calc(20% - 12px);
  display: block;
  text-align: center;
  text-decoration: none;
  color: #FFF5E1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-tin-tuc__guide-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 250 / 350; /* Fixed aspect ratio for vertical images */
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #F2B544;
}

.page-tin-tuc__guide-card--pos-1,
.page-tin-tuc__guide-card--pos-5 {
  padding-top: 50px; /* Staggered effect */
}

.page-tin-tuc__guide-card--pos-2,
.page-tin-tuc__guide-card--pos-4 {
  padding-top: 25px; /* Staggered effect */
}

/* News Section (using blog grid for articles) */
.page-tin-tuc__news-section {
  padding: 40px 0;
  background-color: #7A0E0E; /* Deep Red */
  margin-bottom: 40px;
}

.page-tin-tuc__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

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

.page-tin-tuc__blog-card:hover {
  transform: translateY(-8px);
}

.page-tin-tuc__blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-tin-tuc__blog-card-content {
  padding: 20px;
}

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

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

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

.page-tin-tuc__blog-card-date {
  font-size: 0.9em;
  color: #FFF5E1;
  margin-bottom: 15px;
  display: block;
}

.page-tin-tuc__blog-card-excerpt {
  font-size: 1em;
  color: #FFF5E1;
  margin-bottom: 15px;
}

.page-tin-tuc__blog-card-link {
  display: inline-block;
  color: #FFD86A;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-tin-tuc__blog-card-link:hover {
  color: #FFCC66;
  text-decoration: underline;
}

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

/* Home Content Box (long text content) */
.page-tin-tuc__home-content-box {
  max-width: 91%;
  margin: 0 auto 40px auto;
  padding: 10px 16px;
  border: 5px solid #F2B544; /* Border */
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(244, 211, 77, 0.7);
  height: 700px; /* Fixed height for desktop with scroll */
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
}

.page-tin-tuc__home-content-inner {
  height: 100%;
  overflow-y: auto;
  padding-right: 15px; /* Space for scrollbar */
}

.page-tin-tuc__home-content-inner h2,
.page-tin-tuc__home-content-inner h3 {
  color: #F4D34D;
}

.page-tin-tuc__home-content-inner p {
  margin-bottom: 1em;
}

/* CTA Buttons */
.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  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%); /* Button */
  color: #7A0E0E; /* Deep Red */
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.page-tin-tuc__btn-secondary {
  background-color: #C91F17; /* Primary */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Border */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  background-color: #E53935; /* Secondary */
}

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

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

.page-tin-tuc__faq-item {
  background-color: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF5E1;
}

.page-tin-tuc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #C91F17; /* Primary */
  color: #F4D34D; /* Gold */
  border-bottom: 1px solid #F2B544;
}

.page-tin-tuc__faq-item[open] .page-tin-tuc__faq-question {
  border-bottom: 1px solid #F2B544;
}

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

.page-tin-tuc__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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: 20px 25px;
  font-size: 1em;
  color: #FFF5E1;
}

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

/* Scrollbar for home-content-inner */
.page-tin-tuc__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-tin-tuc__home-content-inner::-webkit-scrollbar-track {
  background: #7A0E0E;
  border-radius: 10px;
}

.page-tin-tuc__home-content-inner::-webkit-scrollbar-thumb {
  background: #F4D34D;
  border-radius: 10px;
}

.page-tin-tuc__home-content-inner::-webkit-scrollbar-thumb:hover {
  background: #FFCC66;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-tin-tuc__guide-card {
    flex: 0 0 calc(33.333% - 10px); /* 3 cards per row */
    max-width: calc(33.333% - 10px);
  }

  .page-tin-tuc__blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-tin-tuc__hero-content {
    padding: 20px 5%;
  }

  .page-tin-tuc__hero-title {
    font-size: clamp(1.6em, 2.5vw, 2.2em);
  }

  .page-tin-tuc__hero-description {
    font-size: clamp(0.9em, 1.3vw, 1.1em);
  }
}

@media (max-width: 768px) {
  .page-tin-tuc__container {
    padding: 15px;
  }

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

  .page-tin-tuc__sub-section-title {
    font-size: 1.5em;
  }

  /* Hero Carousel Mobile */
  .page-tin-tuc__hero-carousel-section {
    padding-top: 10px !important;
    margin-bottom: 20px;
  }

  .page-tin-tuc__hero-content {
    padding: 15px 5%;
  }

  .page-tin-tuc__hero-title {
    font-size: 1.8em;
  }

  .page-tin-tuc__hero-description {
    font-size: 1em;
  }

  .page-tin-tuc__hero-slider-prev,
  .page-tin-tuc__hero-slider-next {
    padding: 10px;
    font-size: 1.2em;
    width: 40px;
    height: 40px;
  }

  /* Guide Box Mobile (上二下三) */
  .page-tin-tuc__guide-box {
    padding: 20px 15px 30px;
  }

  .page-tin-tuc__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }

  .page-tin-tuc__guide-card {
    padding-top: 0 !important; /* Reset staggered padding */
    flex: auto;
    max-width: 100%;
  }

  .page-tin-tuc__guide-card--pos-1,
  .page-tin-tuc__guide-card--pos-2 {
    grid-column: span 3;
  }

  .page-tin-tuc__guide-card--pos-3,
  .page-tin-tuc__guide-card--pos-4,
  .page-tin-tuc__guide-card--pos-5 {
    grid-column: span 2;
  }

  .page-tin-tuc__guide-card img {
    aspect-ratio: 250 / 350; /* Maintain aspect ratio */
    width: 100%;
    height: auto;
  }

  /* News Section Mobile */
  .page-tin-tuc__news-section {
    padding: 20px 0;
  }

  .page-tin-tuc__blog-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }

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

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

  /* Home Content Box Mobile */
  .page-tin-tuc__home-content-box {
    max-width: 100%;
    height: auto; /* Full height on mobile */
    padding: 10px 15px;
    margin-bottom: 20px;
  }

  .page-tin-tuc__home-content-inner {
    height: auto; /* Full height on mobile */
    overflow: visible; /* No scrollbar on mobile */
    padding-right: 0;
  }

  /* CTA Buttons Mobile */
  .page-tin-tuc__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  /* FAQ Section Mobile */
  .page-tin-tuc__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

  /* General Image & Container Mobile */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-tin-tuc__container,
  .page-tin-tuc__hero-carousel-section,
  .page-tin-tuc__guide-box,
  .page-tin-tuc__news-section,
  .page-tin-tuc__home-content-box,
  .page-tin-tuc__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-tin-tuc__guide-grid {
    grid-template-columns: repeat(1, 1fr); /* Single column for very small screens */
  }

  .page-tin-tuc__guide-card--pos-1,
  .page-tin-tuc__guide-card--pos-2,
  .page-tin-tuc__guide-card--pos-3,
  .page-tin-tuc__guide-card--pos-4,
  .page-tin-tuc__guide-card--pos-5 {
    grid-column: span 1;
  }

  .page-tin-tuc__hero-title {
    font-size: 1.5em;
  }

  .page-tin-tuc__hero-description {
    font-size: 0.9em;
  }
}