/* style/web-tai-xiu.css */

/* Biến CSS */
:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #0a0a0a;
    --background-light: #f1f3f5;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
}

.page-web-tai-xiu {
    color: var(--text-light); /* Body background is dark, so main page text is light */
    background-color: var(--background-dark);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.page-web-tai-xiu__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-web-tai-xiu__main-title,
.page-web-tai-xiu__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-web-tai-xiu__description {
    font-size: 18px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: var(--text-dark);
}

/* Sections */
.page-web-tai-xiu__intro-section,
.page-web-tai-xiu__core-game-section,
.page-web-tai-xiu__top-platforms-section,
.page-web-tai-xiu__promotions-section,
.page-web-tai-xiu__news-section,
.page-web-tai-xiu__faq-section {
    padding: 80px 0;
}

.page-web-tai-xiu__light-bg {
    background-color: var(--background-light);
}

/* Fixed navigation bar spacing */
.page-web-tai-xiu__intro-section {
    padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

/* CTA Buttons */
.page-web-tai-xiu__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-web-tai-xiu__cta-group--center {
    margin-top: 50px;
}

.page-web-tai-xiu__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
}

.page-web-tai-xiu__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-web-tai-xiu__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-web-tai-xiu__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border: 2px solid var(--secondary-color);
}

.page-web-tai-xiu__btn-secondary:hover {
    background-color: darken(var(--secondary-color), 10%);
    border-color: darken(var(--secondary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Core Game Section */
.page-web-tai-xiu__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-web-tai-xiu__grid-item {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-web-tai-xiu__grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-web-tai-xiu__grid-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-web-tai-xiu__item-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-web-tai-xiu__item-description {
    font-size: 16px;
    line-height: 1.7;
}

/* Top Platforms Section */
.page-web-tai-xiu__platform-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.page-web-tai-xiu__platform-card {
    background-color: var(--card-background);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-web-tai-xiu__platform-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 50%;
    background-color: var(--background-light);
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-web-tai-xiu__platform-name {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-web-tai-xiu__platform-name a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-web-tai-xiu__platform-name a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-web-tai-xiu__platform-desc {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Promotions Section */
.page-web-tai-xiu__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-web-tai-xiu__promo-card {
    background-color: var(--card-background);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-web-tai-xiu__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-web-tai-xiu__promo-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-web-tai-xiu__promo-desc {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* News Section */
.page-web-tai-xiu__article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-web-tai-xiu__article-card {
    background-color: var(--card-background);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-web-tai-xiu__article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-web-tai-xiu__article-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    flex-grow: 1;
}

.page-web-tai-xiu__article-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-web-tai-xiu__article-title a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-web-tai-xiu__article-summary {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.page-web-tai-xiu__article-date {
    font-size: 14px;
    color: #666;
}

/* FAQ Section */
.page-web-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-web-tai-xiu__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-web-tai-xiu__faq-item.active .page-web-tai-xiu__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-web-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark);
}

.page-web-tai-xiu__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-web-tai-xiu__faq-question:active {
  background: #eeeeee;
}

.page-web-tai-xiu__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
}

.page-web-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-web-tai-xiu__faq-item.active .page-web-tai-xiu__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

.page-web-tai-xiu__faq-answer p {
    color: var(--text-dark);
    font-size: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-web-tai-xiu__main-title {
        font-size: 32px;
    }
    .page-web-tai-xiu__section-title {
        font-size: 28px;
    }
    .page-web-tai-xiu__description {
        font-size: 16px;
    }
    .page-web-tai-xiu__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-web-tai-xiu__platform-icon {
        width: 100px;
        height: 100px;
    }
    .page-web-tai-xiu__platform-name {
        font-size: 20px;
    }
    .page-web-tai-xiu__promo-title,
    .page-web-tai-xiu__article-title {
        font-size: 20px;
    }
    .page-web-tai-xiu__grid-image,
    .page-web-tai-xiu__promo-image,
    .page-web-tai-xiu__article-image {
        height: 180px;
    }
    .page-web-tai-xiu__intro-section {
        padding-top: 100px; /* Tablet: Adjust based on fixed header height */
    }
}

@media (max-width: 768px) {
    .page-web-tai-xiu__intro-section,
    .page-web-tai-xiu__core-game-section,
    .page-web-tai-xiu__top-platforms-section,
    .page-web-tai-xiu__promotions-section,
    .page-web-tai-xiu__news-section,
    .page-web-tai-xiu__faq-section {
        padding: 50px 0;
    }
    .page-web-tai-xiu__container {
        padding: 0 15px;
    }
    .page-web-tai-xiu__main-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    .page-web-tai-xiu__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-web-tai-xiu__description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-web-tai-xiu__cta-group {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 30px;
    }
    .page-web-tai-xiu__cta-button {
        width: 100%;
        max-width: 280px;
        font-size: 16px;
        padding: 12px 20px;
    }
    .page-web-tai-xiu__grid-item,
    .page-web-tai-xiu__platform-card,
    .page-web-tai-xiu__promo-card,
    .page-web-tai-xiu__article-card {
        padding: 20px;
    }
    .page-web-tai-xiu__grid-image,
    .page-web-tai-xiu__promo-image,
    .page-web-tai-xiu__article-image {
        height: 150px;
    }
    .page-web-tai-xiu__item-title,
    .page-web-tai-xiu__platform-name,
    .page-web-tai-xiu__promo-title,
    .page-web-tai-xiu__article-title {
        font-size: 18px;
    }
    .page-web-tai-xiu__item-description,
    .page-web-tai-xiu__platform-desc,
    .page-web-tai-xiu__promo-desc,
    .page-web-tai-xiu__article-summary {
        font-size: 14px;
    }
    /* Mobile image adaptation */
    .page-web-tai-xiu img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    .page-web-tai-xiu__section,
    .page-web-tai-xiu__card,
    .page-web-tai-xiu__container,
    .page-web-tai-xiu__grid-item,
    .page-web-tai-xiu__platform-card,
    .page-web-tai-xiu__promo-card,
    .page-web-tai-xiu__article-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-web-tai-xiu__intro-section {
        padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
    }
    .page-web-tai-xiu__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-web-tai-xiu__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-web-tai-xiu__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-web-tai-xiu__faq-answer {
        padding: 0 15px;
    }
    .page-web-tai-xiu__faq-item.active .page-web-tai-xiu__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-web-tai-xiu__main-title {
        font-size: 24px;
    }
    .page-web-tai-xiu__section-title {
        font-size: 20px;
    }
    .page-web-tai-xiu__cta-button {
        font-size: 14px;
        padding: 10px 15px;
        min-width: unset;
    }
    .page-web-tai-xiu__grid-image,
    .page-web-tai-xiu__promo-image,
    .page-web-tai-xiu__article-image {
        height: 120px;
    }
    .page-web-tai-xiu__platform-icon {
        width: 80px;
        height: 80px;
    }
    .page-web-tai-xiu__platform-name {
        font-size: 16px;
    }
    .page-web-tai-xiu__promo-title,
    .page-web-tai-xiu__article-title {
        font-size: 16px;
    }
    .page-web-tai-xiu__article-date {
        font-size: 12px;
    }
}