:root {
  --main-color: #2F6BFF;
  --aux-color: #6FA3FF;
  --card-bg: #FFFFFF;
  --bg-color: #F4F7FB;
  --text-main: #1F2D3D;
  --custom-color-1776249996415: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

/* General styles for .page-tin-tuc */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for light backgrounds */
  background-color: var(--bg-color); /* Default page background */
}

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

/* Hero Section */
.page-tin-tuc__hero-section {
  padding-top: 10px; /* Rely on body padding-top from shared.css */
  background: linear-gradient(180deg, var(--main-color) 0%, #003399 100%); /* Darker blue gradient for hero background */
  color: #ffffff;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
}

.page-tin-tuc__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for hero image */
  margin-bottom: 20px;
}

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

.page-tin-tuc__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.page-tin-tuc__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-tin-tuc__lead-paragraph {
  font-size: 1.15rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Section Titles and Descriptions */
.page-tin-tuc__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 15px;
}

.page-tin-tuc__section-description {
  font-size: 1.05rem;
  color: var(--text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  opacity: 0.8;
}

/* Specific section backgrounds */
.page-tin-tuc__light-bg {
  background-color: var(--bg-color); /* #F4F7FB */
  color: var(--text-main); /* #1F2D3D */
  padding: 60px 0;
}

.page-tin-tuc__dark-bg {
  background-color: var(--main-color); /* #2F6BFF */
  color: #ffffff;
  padding: 60px 0;
}

.page-tin-tuc__dark-bg .page-tin-tuc__section-title,
.page-tin-tuc__dark-bg .page-tin-tuc__section-description {
  color: #ffffff;
}

/* Grids for news, guides, promotions, sports */
.page-tin-tuc__news-grid,
.page-tin-tuc__guides-grid,
.page-tin-tuc__promo-grid,
.page-tin-tuc__sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

/* Card styles */
.page-tin-tuc__news-card,
.page-tin-tuc__guide-card,
.page-tin-tuc__promo-card,
.page-tin-tuc__sports-card {
  background-color: var(--card-bg); /* #FFFFFF */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards in a row have equal height */
}

.page-tin-tuc__news-card:hover,
.page-tin-tuc__guide-card:hover,
.page-tin-tuc__promo-card:hover,
.page-tin-tuc__sports-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.page-tin-tuc__news-image,
.page-tin-tuc__guide-image,
.page-tin-tuc__promo-image,
.page-tin-tuc__sports-image {
  width: 100%;
  height: 220px; /* Fixed height for consistent card image display */
  object-fit: cover;
  display: block;
}

.page-tin-tuc__news-content,
.page-tin-tuc__guide-content,
.page-tin-tuc__promo-content,
.page-tin-tuc__sports-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-tin-tuc__news-title,
.page-tin-tuc__guide-title,
.page-tin-tuc__promo-title,
.page-tin-tuc__sports-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--custom-color-1776249996415); /* #000000 */
  margin-bottom: 10px;
  flex-grow: 1;
}

.page-tin-tuc__news-meta,
.page-tin-tuc__guide-meta,
.page-tin-tuc__promo-meta,
.page-tin-tuc__sports-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 10px;
}

.page-tin-tuc__news-excerpt,
.page-tin-tuc__guide-excerpt,
.page-tin-tuc__promo-excerpt,
.page-tin-tuc__sports-excerpt {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit excerpt to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-tin-tuc__read-more {
  font-size: 1rem;
  color: var(--main-color); /* #2F6BFF */
  font-weight: 600;
  text-decoration: none;
  margin-top: auto; /* Push to bottom */
}

/* Buttons */
.page-tin-tuc__button-group {
  text-align: center;
  margin-top: 20px;
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-tin-tuc__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-tin-tuc__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

.page-tin-tuc__btn-secondary {
  background: #ffffff;
  color: var(--main-color); /* #2F6BFF */
  border: 2px solid var(--main-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-left: 15px;
}

.page-tin-tuc__btn-secondary:hover {
  background: var(--main-color);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.2);
}

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

.page-tin-tuc__faq-item {
  background-color: var(--card-bg); /* #FFFFFF */
  border: 1px solid var(--border-color); /* #D6E2FF */
  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.15rem;
  font-weight: 600;
  color: var(--custom-color-1776249996415); /* #000000 */
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid var(--border-color);
  list-style: none; /* Remove default marker for <summary> */
}

.page-tin-tuc__faq-item[open] .page-tin-tuc__faq-question {
  border-bottom: none;
}

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

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

.page-tin-tuc__faq-toggle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--main-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-tin-tuc__faq-item[open] .page-tin-tuc__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-tin-tuc__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--text-main);
}

/* Ensure text color for dark backgrounds is white */
.page-tin-tuc__dark-bg .page-tin-tuc__news-title,
.page-tin-tuc__dark-bg .page-tin-tuc__news-excerpt,
.page-tin-tuc__dark-bg .page-tin-tuc__read-more,
.page-tin-tuc__dark-bg .page-tin-tuc__news-meta,
.page-tin-tuc__dark-bg .page-tin-tuc__guide-title,
.page-tin-tuc__dark-bg .page-tin-tuc__guide-excerpt,
.page-tin-tuc__dark-bg .page-tin-tuc__guide-meta,
.page-tin-tuc__dark-bg .page-tin-tuc__promo-title,
.page-tin-tuc__dark-bg .page-tin-tuc__promo-excerpt,
.page-tin-tuc__dark-bg .page-tin-tuc__promo-meta,
.page-tin-tuc__dark-bg .page-tin-tuc__sports-title,
.page-tin-tuc__dark-bg .page-tin-tuc__sports-excerpt,
.page-tin-tuc__dark-bg .page-tin-tuc__sports-meta {
  color: #ffffff;
}

/* Specific button styles for dark background sections */
.page-tin-tuc__dark-bg .page-tin-tuc__btn-secondary {
    background: #ffffff;
    color: var(--main-color);
    border: 2px solid #ffffff;
}
.page-tin-tuc__dark-bg .page-tin-tuc__btn-secondary:hover {
    background: var(--main-color);
    color: #ffffff;
    border-color: var(--main-color);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-tin-tuc__container {
    padding: 20px 30px;
  }
  .page-tin-tuc__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-tin-tuc__section-title {
    font-size: 2rem;
  }
  .page-tin-tuc__news-grid,
  .page-tin-tuc__guides-grid,
  .page-tin-tuc__promo-grid,
  .page-tin-tuc__sports-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-tin-tuc__news-image,
  .page-tin-tuc__guide-image,
  .page-tin-tuc__promo-image,
  .page-tin-tuc__sports-image {
    height: 200px;
  }
}

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

  /* HERO 主图区域 */
  .page-tin-tuc__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }
  .page-tin-tuc__main-title {
    font-size: 2rem;
    line-height: 1.3;
  }
  .page-tin-tuc__lead-paragraph {
    font-size: 1rem;
  }

  /* Section Titles */
  .page-tin-tuc__section-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  .page-tin-tuc__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  /* Grids - Single column */
  .page-tin-tuc__news-grid,
  .page-tin-tuc__guides-grid,
  .page-tin-tuc__promo-grid,
  .page-tin-tuc__sports-grid {
    grid-template-columns: 1fr; /* Single column layout for mobile */
    gap: 20px;
  }

  /* 通用图片与容器 */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-tin-tuc__hero-image {
    height: auto !important; /* Ensure hero image is responsive */
  }
  .page-tin-tuc__news-image,
  .page-tin-tuc__guide-image,
  .page-tin-tuc__promo-image,
  .page-tin-tuc__sports-image {
    height: 180px;
  }
}