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

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

.page-tin-tuc__section {
  padding: 60px 0;
}

.page-tin-tuc__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-tin-tuc__section-subtitle {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-tin-tuc__btn-primary {
  display: inline-block;
  background: #26A9E0;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
}

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

.page-tin-tuc__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #26A9E0;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #26A9E0;
}

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

.page-tin-tuc__btn-outline {
  display: inline-block;
  color: #26A9E0;
  border: 1px solid #26A9E0;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  margin-top: auto;
  transition: all 0.3s ease;
}

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

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

/* Hero Section */
.page-tin-tuc__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #f0f8ff; /* Light background for hero section */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-tin-tuc__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
}

.page-tin-tuc__hero-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-tin-tuc__hero-content-wrapper {
  padding: 40px 0;
  text-align: center;
  background-color: #ffffff;
  width: 100%;
  box-sizing: border-box;
}

.page-tin-tuc__hero-title {
  font-size: clamp(2em, 3.5vw, 3.2em);
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 700;
}

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

/* Latest News Section (similar to blog masonry) */
.page-tin-tuc__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-tin-tuc__news-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-tin-tuc__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

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

.page-tin-tuc__news-card-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
}

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

.page-tin-tuc__news-card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-tin-tuc__news-card-meta {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

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

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

/* Promotions & Events Section */
.page-tin-tuc__promotions-events {
  background-color: #f8f8f8;
}

.page-tin-tuc__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-tin-tuc__dark-section .page-tin-tuc__section-subtitle {
  color: #f0f0f0;
}

.page-tin-tuc__promotion-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.page-tin-tuc__promotion-image {
  flex: 1;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tin-tuc__promotion-text {
  flex: 1;
}

.page-tin-tuc__promotion-text p {
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Game Updates Section */
.page-tin-tuc__game-update-content {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-direction: row-reverse; /* Image on right */
}

.page-tin-tuc__game-image {
  flex: 1;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tin-tuc__game-text {
  flex: 1;
}

.page-tin-tuc__game-text p {
  margin-bottom: 20px;
  line-height: 1.8;
}

/* FAQ Section */
.page-tin-tuc__faq-section {
  background-color: #ffffff;
}

.page-tin-tuc__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-tin-tuc__faq-item {
  background-color: #f9f9f9;
  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-size: 1.15em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  list-style: none;
  outline: none;
}

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

.page-tin-tuc__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-tin-tuc__faq-item[open] .page-tin-tuc__faq-toggle {
  transform: rotate(45deg);
}

.page-tin-tuc__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
}

.page-tin-tuc__faq-answer p {
  margin-bottom: 10px;
}

/* Final CTA Section */
.page-tin-tuc__final-cta {
  text-align: center;
}

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

.page-tin-tuc__final-cta .page-tin-tuc__btn-primary {
  margin-top: 30px;
  background: #EA7C07; /* Custom color for login/register */
  border-color: #EA7C07;
}

.page-tin-tuc__final-cta .page-tin-tuc__btn-primary:hover {
  background-color: #d16f06;
}

/* --- Required Homepage CSS Selectors (even if not used in this page's HTML) --- */
/* This block is included to satisfy the strict CSS output requirements */
.page-tin-tuc__home-content {
  border: 1px solid #FBB00D;
  border-radius: 10px;
  height: 650px;
  overflow-y: auto;
  padding: 20px;
  margin-top: 20px;
}
.page-tin-tuc__row-games, .page-tin-tuc__row-sport, .page-tin-tuc__row-coop {
  background-color: #1A202C;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
}
.page-tin-tuc__games-title, .page-tin-tuc__sport-title, .page-tin-tuc__coop-title {
  color: #fff;
  text-align: center;
}
.page-tin-tuc__slider-wrapper {
  overflow: hidden;
  position: relative;
}
.page-tin-tuc__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transition: transform 0.5s ease-in-out;
}
.page-tin-tuc__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
  box-sizing: border-box;
}
.page-tin-tuc__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}
.page-tin-tuc__banner-item img {
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.page-tin-tuc__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.page-tin-tuc__blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.page-tin-tuc__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
}
.page-tin-tuc__blog-slide {
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
  box-sizing: border-box;
}

/* --- Media Queries for Responsive Design --- */
@media (max-width: 1024px) {
  .page-tin-tuc__section-title {
    font-size: 2em;
  }
  .page-tin-tuc__hero-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
  }
  .page-tin-tuc__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-tin-tuc__promotion-content,
  .page-tin-tuc__game-update-content {
    flex-direction: column;
    text-align: center;
  }
  .page-tin-tuc__promotion-image,
  .page-tin-tuc__game-image {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  .page-tin-tuc__promotion-text,
  .page-tin-tuc__game-text {
    text-align: center;
  }
  .page-tin-tuc__promotion-text .page-tin-tuc__btn-primary,
  .page-tin-tuc__game-text .page-tin-tuc__btn-primary {
    margin: 20px auto 0 auto;
  }
  /* Required homepage selectors for 1024px */
  .page-tin-tuc__banners-top-wrapper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-tin-tuc__blog-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-tin-tuc__blog-slide {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-tin-tuc__hero-section {
    padding-top: 10px; /* Consistent small top padding */
  }
  .page-tin-tuc__hero-content-wrapper {
    padding: 30px 15px;
  }
  .page-tin-tuc__hero-title {
    font-size: clamp(1.5em, 6vw, 2em);
    line-height: 1.3;
  }
  .page-tin-tuc__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* 长文金框区 */
  .page-tin-tuc__home-content {
    height: auto;
    overflow-y: visible;
    padding: 15px;
  }

  /* 游戏轮播 */
  .page-tin-tuc__slider-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
  }
  .page-tin-tuc__slider-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  .page-tin-tuc__game-slide {
    flex: 0 0 160px;
    max-width: 160px;
  }

  /* 合作品牌六宫格 */
  .page-tin-tuc__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .page-tin-tuc__banner-item img {
    
    
  }

  /* 博客卡片区 (adapted for news grid) */
  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-tin-tuc__news-card-image {
    height: 180px;
  }
  /* Required homepage selectors for 768px */
  .page-tin-tuc__blog-masonry {
    grid-template-columns: 1fr;
  }
  .page-tin-tuc__blog-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .page-tin-tuc__blog-slider-track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .page-tin-tuc__blog-slider-track::-webkit-scrollbar {
    display: none;
  }

  /* 通用图片与容器 */
  .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__latest-news,
  .page-tin-tuc__promotions-events,
  .page-tin-tuc__game-updates,
  .page-tin-tuc__faq-section,
  .page-tin-tuc__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-tin-tuc__section {
    padding: 40px 0;
  }
  .page-tin-tuc__news-card-title {
    font-size: 1.2em;
  }

  /* 按钮与按钮容器 */
  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary,
  .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;
  }
  .page-tin-tuc__hero-content-wrapper .page-tin-tuc__btn-primary,
  .page-tin-tuc__promotion-text .page-tin-tuc__btn-primary,
  .page-tin-tuc__game-text .page-tin-tuc__btn-primary,
  .page-tin-tuc__final-cta-content .page-tin-tuc__btn-primary,
  .page-tin-tuc__view-all-button-wrapper .page-tin-tuc__btn-secondary {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .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-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  .page-tin-tuc__promotion-content,
  .page-tin-tuc__game-update-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-tin-tuc__promotion-text,
  .page-tin-tuc__game-text {
    order: 2; /* Text below image on mobile */
  }
  .page-tin-tuc__promotion-image,
  .page-tin-tuc__game-image {
    order: 1;
  }
}

@media (max-width: 480px) {
  .page-tin-tuc__section-title {
    font-size: 1.8em;
  }
  .page-tin-tuc__section-subtitle {
    font-size: 0.95em;
  }
  .page-tin-tuc__news-card-title {
    font-size: 1.1em;
  }
  .page-tin-tuc__news-card-excerpt {
    font-size: 0.9em;
  }
  .page-tin-tuc__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-tin-tuc__faq-answer {
    padding: 0 20px 15px 20px;
  }
}