:root {
  --main-color: #FF8C1A;
  --accent-color: #FFA53A;
  --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  --card-bg-color: #17191F;
  --bg-color: #0D0E12;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange-color: #D96800;
}

.page-tin-tuc {
  font-family: Arial, sans-serif;
  color: var(--text-main-color, #FFF3E6); /* Default text color for dark background */
  background-color: var(--bg-color, #0D0E12); /* Body background from shared */
  line-height: 1.6;
}

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

/* Top Section (Hero-like content, not image banner) */
.page-tin-tuc__top-section {
  padding-top: 10px; /* Small top padding, relies on body padding-top from shared */
  padding-bottom: 60px;
  text-align: center;
  background-color: var(--bg-color, #0D0E12);
}

.page-tin-tuc__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-tin-tuc__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
  color: var(--text-main-color, #FFF3E6);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-tin-tuc__description {
  font-size: 1.1em;
  color: var(--text-main-color, #FFF3E6);
  margin-bottom: 30px;
}

.page-tin-tuc__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-tin-tuc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button adapts to container */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-tin-tuc__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-tin-tuc__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-tin-tuc__btn-secondary {
  background: transparent;
  color: var(--main-color, #FF8C1A);
  border: 2px solid var(--border-color, #A84F0C);
}

.page-tin-tuc__btn-secondary:hover {
  background-color: rgba(255, 140, 26, 0.1);
  transform: translateY(-2px);
}

/* News Section */
.page-tin-tuc__news-section {
  padding: 80px 0;
  background-color: var(--bg-color, #0D0E12);
}

.page-tin-tuc__section-title {
  font-size: 2.5em;
  color: var(--text-main-color, #FFF3E6);
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
}

.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: var(--card-bg-color, #17191F);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-tin-tuc__news-thumbnail {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
  margin: 0;
}

.page-tin-tuc__news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure image covers the area */
  display: block;
}

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

.page-tin-tuc__news-date {
  font-size: 0.9em;
  color: var(--border-color, #A84F0C); /* Border color for date */
  margin-bottom: 10px;
  display: block;
}

.page-tin-tuc__news-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  line-height: 1.4;
  flex-grow: 1; /* Allow title to take available space */
}

.page-tin-tuc__news-title a {
  color: var(--text-main-color, #FFF3E6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tin-tuc__news-title a:hover {
  color: var(--main-color, #FF8C1A);
}

.page-tin-tuc__news-summary {
  font-size: 1em;
  color: #ccc;
  margin-bottom: 20px;
  line-height: 1.5;
}

.page-tin-tuc__read-more {
  display: inline-block;
  color: var(--main-color, #FF8C1A);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-tin-tuc__read-more:hover {
  color: var(--glow-color, #FFB04D);
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* Bottom CTA Section */
.page-tin-tuc__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-orange-color, #D96800); /* Use Deep Orange for bottom CTA */
  color: #ffffff; /* White text for contrast */
}

.page-tin-tuc__cta-bottom-section .page-tin-tuc__section-title {
  color: #ffffff;
}

.page-tin-tuc__cta-bottom-section .page-tin-tuc__description {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-tin-tuc__cta-bottom-section .page-tin-tuc__btn-primary {
  background: linear-gradient(180deg, var(--accent-color, #FFA53A) 0%, var(--main-color, #FF8C1A) 100%); /* Slightly different gradient */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tin-tuc__cta-bottom-section .page-tin-tuc__btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General image responsive styles (important for all images) */
.page-tin-tuc img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-tin-tuc__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }

  .page-tin-tuc__section-title {
    font-size: 2em;
  }

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

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-tin-tuc__top-section {
    padding-top: 10px !important; /* Fixed small top padding */
    padding-bottom: 40px;
  }

  .page-tin-tuc__container {
    padding: 0 15px; /* Adjust container padding for mobile */
  }

  .page-tin-tuc__main-title {
    font-size: clamp(1.5em, 6vw, 2em); /* Further adjustment for mobile */
    margin-bottom: 15px;
  }

  .page-tin-tuc__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-tin-tuc__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding-left: 15px; /* Add padding to button container */
    padding-right: 15px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Force buttons to take full width on mobile */
  .page-tin-tuc__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 2. 单栏长文容器 (News section and bottom CTA section) */
  .page-tin-tuc__news-section,
  .page-tin-tuc__cta-bottom-section {
    padding: 40px 0;
  }

  .page-tin-tuc__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding: 0 15px; /* Add padding for title */
  }

  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr; /* Single column layout for news cards */
    gap: 20px;
    padding: 0 15px; /* Add padding to grid container */
  }

  .page-tin-tuc__news-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-tin-tuc__news-thumbnail {
    height: 180px; /* Adjust height for mobile */
  }

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

  .page-tin-tuc__news-summary {
    font-size: 0.9em;
  }

  /* 3. 通用图片与 figure */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-tin-tuc__news-thumbnail img {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important; /* Keep object-fit cover */
  }

  /* All containers with images should also be responsive */
  .page-tin-tuc__section,
  .page-tin-tuc__card,
  .page-tin-tuc__container,
  .page-tin-tuc__news-grid,
  .page-tin-tuc__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by .page-tin-tuc__container and specific elements */
  }
  
  /* 4. 按钮与按钮容器 (already covered in top section and general btn rules) */
  /* Added specific container padding for buttons */
  .page-tin-tuc__cta-bottom-section .page-tin-tuc__btn-primary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 5. 注册教程与 FAQ 区块 - N/A for this page type directly. But if there were, styles would go here. */
  /* This page does not have a dedicated FAQ or registration tutorial block, so this specific point is not applicable. */
  /* However, if general text blocks are present, they should be readable. */
  .page-tin-tuc p,
  .page-tin-tuc li,
  .page-tin-tuc h3 {
    font-size: 1em;
    line-height: 1.6;
  }
}