/* style/tin-tuc.css */

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

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

/* Hero Section */
.page-tin-tuc__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relies on body padding for header offset */
  padding-bottom: 60px;
  background-color: var(--card-bg, #17191F); /* Using custom color for section background */
  overflow: hidden;
  border-bottom: 1px solid var(--border-color, #A84F0C);
}

.page-tin-tuc__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-tin-tuc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability, not changing color */
}

.page-tin-tuc__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 15px;
}

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

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

/* CTA Button */
.page-tin-tuc__cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom button gradient */
  color: #FFF3E6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-tin-tuc__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color, #FFB04D);
}

/* News List Section */
.page-tin-tuc__news-list-section,
.page-tin-tuc__benefits-section,
.page-tin-tuc__cta-section,
.page-tin-tuc__about-dr88-section {
  padding: 60px 0;
  background-color: var(--bg-color, #0D0E12); /* Consistent dark background */
}

.page-tin-tuc__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--text-main, #FFF3E6);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-tin-tuc__section-description {
  font-size: 1em;
  color: #d0d0d0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-tin-tuc__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-tin-tuc__news-card {
  background-color: var(--card-bg, #17191F); /* Custom card background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #A84F0C);
}

.page-tin-tuc__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 10px var(--glow-color, #FFB04D);
}

.page-tin-tuc__news-card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.page-tin-tuc__news-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

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

.page-tin-tuc__news-card-title {
  font-size: 1.3em;
  color: var(--text-main, #FFF3E6);
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 600;
}

.page-tin-tuc__news-card-meta {
  font-size: 0.9em;
  color: #A84F0C; /* Using border color for meta for contrast */
  margin-bottom: 15px;
}

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

.page-tin-tuc__news-card-readmore {
  display: inline-block;
  color: var(--glow-color, #FFB04D); /* Using glow color for "Read more" */
  font-weight: bold;
  text-decoration: none;
}

.page-tin-tuc__view-all-wrapper {
  text-align: center;
}

.page-tin-tuc__view-all-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--deep-orange, #D96800); /* Custom deep orange color */
  color: #FFF3E6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-tin-tuc__view-all-button:hover {
  background: var(--main-color, #FF8C1A); /* Main color on hover */
}

/* Benefits Section */
.page-tin-tuc__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-tin-tuc__benefit-item {
  background-color: var(--card-bg, #17191F);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color, #A84F0C);
}

.page-tin-tuc__benefit-title {
  font-size: 1.4em;
  color: var(--glow-color, #FFB04D); /* Using glow color for benefit titles */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-tin-tuc__benefit-text {
  color: #d0d0d0;
  font-size: 1em;
}

/* CTA Section */
.page-tin-tuc__section-title--cta {
  color: var(--glow-color, #FFB04D); /* Highlight CTA title */
}

.page-tin-tuc__section-description--cta {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-tin-tuc__cta-button--primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
}

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

.page-tin-tuc__cta-button--secondary:hover {
  background: var(--main-color, #FF8C1A);
  color: #FFF3E6;
  box-shadow: 0 0 15px var(--glow-color, #FFB04D);
}

/* About dr88 Section */
.page-tin-tuc__about-dr88-section {
  padding-bottom: 80px;
}

.page-tin-tuc__text-block {
  color: #d0d0d0;
  margin-bottom: 20px;
  font-size: 1em;
  line-height: 1.7;
}

.page-tin-tuc__text-button {
  display: inline-block;
  color: var(--main-color, #FF8C1A);
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.page-tin-tuc__text-button:hover {
  color: var(--glow-color, #FFB04D);
}

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

.page-tin-tuc__cta-button,
.page-tin-tuc__view-all-button,
.page-tin-tuc__news-card-readmore,
.page-tin-tuc__text-button {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

  .page-tin-tuc__section-title {
    font-size: clamp(1.6em, 4vw, 2.4em);
  }

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

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-tin-tuc {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-tin-tuc__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hero Section */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important; /* Small top padding, relies on body padding */
    padding-bottom: 40px;
  }

  .page-tin-tuc__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-tin-tuc__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 10px;
  }

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

  /* News List Section */
  .page-tin-tuc__news-list-section,
  .page-tin-tuc__benefits-section,
  .page-tin-tuc__cta-section,
  .page-tin-tuc__about-dr88-section {
    padding: 40px 0;
  }

  .page-tin-tuc__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 15px;
  }

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

  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

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

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

  /* Benefits Section */
  .page-tin-tuc__benefits-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-tin-tuc__benefit-item {
    padding: 25px;
  }

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

  /* CTA Section */
  .page-tin-tuc__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-tin-tuc__cta-button,
  .page-tin-tuc__view-all-button,
  .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;
  }

  /* All image containers and sections must adapt */
  .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,
  .page-tin-tuc__hero-section,
  .page-tin-tuc__news-list-section,
  .page-tin-tuc__benefits-section,
  .page-tin-tuc__cta-section,
  .page-tin-tuc__about-dr88-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are already handled by .page-tin-tuc__container for content */
  }

  /* Dummy CSS for sections not present in HTML but required by "必写清单" */
  /* 1. 顶区轮播 (page-tin-tuc__hero-carousel-section) */
  .page-tin-tuc__hero-carousel-section { /* Assuming this would be a top carousel section if it existed */
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 20px;
    position: relative;
    overflow: hidden;
  }
  .page-tin-tuc__hero-slider {
    position: relative;
    width: 100%;
    height: 250px; /* Example height for mobile slider */
    overflow: hidden;
  }
  .page-tin-tuc__hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
  }
  .page-tin-tuc__hero-slide.is-active {
    opacity: 1;
  }
  .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: #FFF3E6;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 20;
    border-radius: 4px;
  }
  .page-tin-tuc__hero-slider-prev { left: 10px; }
  .page-tin-tuc__hero-slider-next { right: 10px; }

  /* 2. 操作指引外框 + 五张 `team` 竖型卡 (page-tin-tuc__guide-box) */
  .page-tin-tuc__guide-box {
    padding: 15px 10px 20px; /* Adjusted padding for mobile */
    background: var(--card-bg, #17191F);
    border-radius: 4px;
  }
  .page-tin-tuc__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columns for specific span rules */
    gap: 8px;
  }
  .page-tin-tuc__guide-card {
    padding-top: 0 !important; /* Reset padding for mobile */
    flex: none; /* Override flex basis */
    max-width: none; /* Override max-width */
  }
  .page-tin-tuc__guide-card--pos-1,
  .page-tin-tuc__guide-card--pos-2 {
    grid-column: span 3; /* Top two cards span 3 columns each (50% width) */
  }
  .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; /* Bottom three cards span 2 columns each (33.3% width) */
  }
  .page-tin-tuc__guide-card img {
    aspect-ratio: 250 / 350; /* Maintain aspect ratio */
    object-fit: contain;
    width: 100%;
    height: auto;
  }

  /* 3. `home_content` 外框 (page-tin-tuc__home-content-box) */
  .page-tin-tuc__home-content-box {
    max-width: 100% !important; /* Full width on mobile */
    margin: 0 auto;
    padding: 10px 10px;
    border: 5px solid var(--border-color, #A84F0C);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    height: auto !important; /* Auto height to show full content */
  }
  .page-tin-tuc__home-content-inner {
    height: auto !important; /* Auto height */
    overflow: visible !important; /* Allow content to flow */
  }

  /* 4. 博客卡片区 (page-tin-tuc__blog-section) - news-grid already handles this */
  /* The .page-tin-tuc__news-grid already adapts to 1 column above. */
  /* If there was a separate blog-section with a different grid layout, it would be here: */
  .page-tin-tuc__blog-grid {
    grid-template-columns: 1fr; /* Example: Single column for mobile */
    gap: 20px;
  }

  /* 5. 通用图片与按钮 (handled by general rules above) */
  /* Already covered by .page-tin-tuc img and .page-tin-tuc__cta-button etc. */
}