/* style/tin-tuc.css */

/* --- Base Styles --- */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #f8f8f8; /* Light background for the page content */
  line-height: 1.6;
}

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

.page-tin-tuc__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for main titles */
}

/* --- Buttons --- */
.page-tin-tuc__btn-primary {
  display: inline-block;
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tin-tuc__btn-primary:hover {
  background-color: #1e87c2;
}

.page-tin-tuc__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #26A9E0; /* Primary brand color */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid #26A9E0;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tin-tuc__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* --- Hero Section --- */
.page-tin-tuc__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 50px;
  background-color: #ffffff; /* Fallback background */
}

.page-tin-tuc__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 35.15625%; /* 16:9 aspect ratio for 1920x675 (675/1920 * 100) */
  overflow: hidden;
}

.page-tin-tuc__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-tin-tuc__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 40px auto 0 auto;
  padding: 0 20px;
  color: #333333;
}

.page-tin-tuc__hero-title {
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  font-size: clamp(2em, 3.5vw, 3em); /* H1 font size clamp */
}

.page-tin-tuc__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

.page-tin-tuc__hero-button {
  margin-top: 20px;
}

/* --- Intro Section (Dark Background) --- */
.page-tin-tuc__intro-section {
  background-color: #26A9E0; /* Brand color for dark section */
  color: #ffffff;
  padding: 60px 0;
}

.page-tin-tuc__intro-title {
  font-size: 2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-tin-tuc__intro-text {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-tin-tuc__intro-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto 0 auto;
  border-radius: 8px;
}

/* --- Blog Section (News List) --- */
.page-tin-tuc__blog-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-tin-tuc__blog-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-tin-tuc__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-tin-tuc__blog-card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-tin-tuc__blog-card-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0; /* Brand color for blog titles */
  line-height: 1.4;
}

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

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

.page-tin-tuc__blog-read-more {
  font-weight: 600;
  color: #26A9E0;
  display: inline-block;
  margin-top: auto; /* Push to bottom */
}

.page-tin-tuc__blog-read-more:hover {
  text-decoration: underline;
}

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

/* --- CTA Section --- */
.page-tin-tuc__cta-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  text-align: center;
}

.page-tin-tuc__cta-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 25px;
}

.page-tin-tuc__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  width: 100%; /* Ensure container responsiveness */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-tin-tuc__cta-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

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

.page-tin-tuc__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-tin-tuc__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  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-weight: 600;
  font-size: 1.1em;
  color: #333333;
  cursor: pointer;
  background-color: #fefefe;
  transition: background-color 0.3s ease;
  list-style: none; /* For <details> summary */
}

.page-tin-tuc__faq-item[open] .page-tin-tuc__faq-question {
  background-color: #eaf6fc; /* Lighter shade of brand color */
  color: #26A9E0;
}

.page-tin-tuc__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-tin-tuc__faq-question::marker {
  display: none; /* Hide default marker for Firefox */
}

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

.page-tin-tuc__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

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

.page-tin-tuc__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

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

/* --- Responsive Design (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .page-tin-tuc__container {
    padding: 15px;
  }

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

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

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

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

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

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

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

/* --- Responsive Design (max-width: 768px) - MUST INCLUDE ALL REQUIRED BLOCKS --- */
@media (max-width: 768px) {
  /* 1. HERO 主图区域 */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }

  .page-tin-tuc__hero-image-wrapper {
    padding-bottom: 56.25%; /* 16:9 for mobile */
  }

  .page-tin-tuc__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }

  .page-tin-tuc__hero-title {
    font-size: clamp(1.5em, 6vw, 2em) !important; /* Smaller H1 for mobile */
    margin-bottom: 15px;
  }

  .page-tin-tuc__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-tin-tuc__hero-button {
    width: 100% !important;
    padding: 12px 15px !important;
  }

  /* 2. 深色导语区 */
  .page-tin-tuc__intro-section {
    padding: 40px 0;
  }

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

  .page-tin-tuc__intro-text {
    font-size: 0.95em;
    padding: 0 15px;
  }

  /* 3. 博客网格 */
  .page-tin-tuc__blog-section {
    padding: 40px 0;
  }

  .page-tin-tuc__blog-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
    padding: 0 15px;
  }

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

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

  .page-tin-tuc__view-all-button-wrapper {
    padding: 0 15px;
  }

  /* 4. 通用图片与容器 */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-tin-tuc__section,
  .page-tin-tuc__card,
  .page-tin-tuc__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 5. 按钮与按钮容器 */
  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary,
  .page-tin-tuc a[class*="button"],
  .page-tin-tuc a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center; /* Center text if button is full width */
  }
  
  .page-tin-tuc__cta-buttons,
  .page-tin-tuc__button-group,
  .page-tin-tuc__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }
  
  /* 6. FAQ 与其他模块 */
  .page-tin-tuc__faq-section {
    padding: 30px 0;
  }

  .page-tin-tuc__faq-list {
    padding: 0 15px;
  }

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

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

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

  .page-tin-tuc__cta-section {
    padding: 50px 0;
  }

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

  .page-tin-tuc__cta-description {
    font-size: 1em;
    padding: 0 15px;
    margin-bottom: 30px;
  }
}

/* General styles for all elements to prevent overflow */
.page-tin-tuc {
  overflow-x: hidden;
}