/* style/tin-tuc.css */
:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --body-bg-color: #F5F7FA;
  --border-color: #E0E0E0;
}

/* Base styles for the page content, assuming body background is light (F5F7FA) */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  color: var(--text-main-color); /* Default text color for light background */
  background-color: var(--body-bg-color); /* Page background */
  line-height: 1.6;
}

.page-tin-tuc a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-tin-tuc a:hover {
  text-decoration: underline;
}

.page-tin-tuc__hero-section {
  padding-top: 10px; /* Rely on body padding-top from shared.css, this is minimal top spacing */
  padding-bottom: 40px;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff; /* White text for dark gradient background */
  text-align: center;
}

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

.page-tin-tuc__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-tin-tuc__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.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;
  font-weight: 600;
  font-size: 1em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
  max-width: 100%; /* Ensure button doesn't exceed container */
  box-sizing: border-box;
}

.page-tin-tuc__btn--primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-tin-tuc__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-tin-tuc__btn--secondary {
  background: var(--card-bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-tin-tuc__btn--secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-tin-tuc__section {
  padding: 60px 0;
  background-color: var(--card-bg-color); /* Default section background */
  margin-bottom: 20px;
}

.page-tin-tuc__section:nth-of-type(even) {
  background-color: var(--body-bg-color); /* Alternate section background for visual separation */
}

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

.page-tin-tuc__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-tin-tuc__text-block {
  font-size: 1.05em;
  margin-bottom: 15px;
  line-height: 1.7;
  color: var(--text-main-color);
}

.page-tin-tuc__highlight {
  font-weight: 600;
  color: var(--primary-color);
}

.page-tin-tuc__figure {
  margin: 30px auto;
  text-align: center;
  max-width: 680px; /* Match image placeholder width */
  background-color: var(--body-bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.page-tin-tuc__figure img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px 8px 0 0;
  object-fit: cover;
}

.page-tin-tuc__figcaption {
  font-size: 0.9em;
  color: #666666;
  padding: 10px 15px;
  text-align: center;
  background-color: var(--card-bg-color);
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}

.page-tin-tuc__cta-buttons--bottom {
  margin-top: 50px;
  flex-direction: column; /* Stack buttons vertically at the bottom */
  gap: 15px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important; /* Minimal top spacing */
    padding-bottom: 30px;
  }

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

  .page-tin-tuc__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust for smaller screens */
    margin-bottom: 15px;
  }

  .page-tin-tuc__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-tin-tuc__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px; /* Add padding to button container */
  }
  
  .page-tin-tuc__btn {
    width: 100% !important; /* Ensure buttons take full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }

  /* 2. 单栏长文容器 */
  .page-tin-tuc__section {
    padding: 30px 0;
  }

  .page-tin-tuc__container {
    padding: 0 15px; /* Adjust padding for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-tin-tuc__text-block {
    font-size: 0.95em;
    margin-bottom: 10px;
  }

  /* 3. 通用图片与 figure */
  .page-tin-tuc__figure {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: none; /* Remove shadow for cleaner mobile look */
  }

  .page-tin-tuc__figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 0;
  }

  .page-tin-tuc__figcaption {
    font-size: 0.85em;
    padding: 8px 10px;
    border-radius: 0;
  }

  /* 4. 按钮与按钮容器 */
  .page-tin-tuc__cta-buttons--bottom {
    margin-top: 30px;
    padding: 0 15px;
  }

  /* 5. 注册教程与 FAQ 区块 - Not explicitly present as distinct sections on this News page. */
  /* If such elements were present, their mobile styles would be defined here. */
}