/* style/tai-xiu.css */

/* Base styles for the page */
.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Main text color */
    background: #0A0A0A; /* Page background color */
}

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

.page-tai-xiu__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #F2C14E; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
    line-height: 1.2;
}

.page-tai-xiu__section-title--light {
    color: #FFF6D6; /* Light text for dark sections */
}

.page-tai-xiu__content-block {
    margin-bottom: 30px;
    font-size: 17px;
    text-align: justify;
}

.page-tai-xiu__content-block p {
    margin-bottom: 15px;
}

.page-tai-xiu__content-block strong {
    color: #FFD36B; /* Highlight keywords */
}

/* Buttons */
.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary,
.page-tai-xiu__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Dark text for bright button */
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-tai-xiu__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-tai-xiu__btn-secondary {
    background: transparent;
    color: #FFD36B;
    border: 2px solid #FFD36B;
}

.page-tai-xiu__btn-secondary:hover {
    background: rgba(255, 211, 107, 0.1);
    color: #FFF6D6;
}

.page-tai-xiu__btn-link {
    background: none;
    border: none;
    color: #FFD36B;
    padding: 8px 0;
    font-size: 16px;
    font-weight: normal;
    text-decoration: underline;
}

.page-tai-xiu__btn-link:hover {
    color: #F2C14E;
}

.page-tai-xiu__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-tai-xiu__cta-buttons--center {
    justify-content: center;
}

/* Image styles */
.page-tai-xiu img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-tai-xiu__image-inline {
    margin: 20px auto;
    max-width: 800px;
    border: 1px solid #3A2A12;
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.2);
}

/* Hero Section */
.page-tai-xiu__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 50px;
    background: #0A0A0A;
}

.page-tai-xiu__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Aspect ratio for 1200x675 */
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 0; /* Hero image often goes full width */
}

.page-tai-xiu__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Maintain aspect ratio and cover container */
    border-radius: 0;
}

.page-tai-xiu__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-tai-xiu__main-title {
    font-size: clamp(32px, 4vw, 56px); /* Responsive font size */
    color: #FFD36B;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-tai-xiu__description {
    font-size: clamp(16px, 1.8vw, 20px);
    color: #FFF6D6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Introduction Section */
.page-tai-xiu__introduction-section,
.page-tai-xiu__rules-section,
.page-tai-xiu__strategy-section,
.page-tai-xiu__guide-section,
.page-tai-xiu__faq-section,
.page-tai-xiu__conclusion-section {
    padding: 60px 0;
    border-bottom: 1px solid #1a1a1a;
}

.page-tai-xiu__list {
    list-style: disc;
    padding-left: 30px;
    margin-bottom: 20px;
}

.page-tai-xiu__list li {
    margin-bottom: 10px;
    color: #FFF6D6;
}

.page-tai-xiu__list li strong {
    color: #F2C14E;
}

/* Strategy Section */
.page-tai-xiu__strategy-item {
    background: #111111; /* Card background */
    border: 1px solid #3A2A12;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__strategy-title {
    font-size: 24px;
    color: #FFD36B;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

/* Advantages Section (Dark Background) */
.page-tai-xiu__advantages-section {
    background: #111111; /* Card background */
    padding: 80px 0;
    border-bottom: 1px solid #3A2A12;
}

.page-tai-xiu__grid-advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-tai-xiu__advantage-card {
    background: #0A0A0A; /* Page background for cards within dark section */
    border: 1px solid #3A2A12;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tai-xiu__advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-tai-xiu__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #3A2A12;
}

.page-tai-xiu__card-title {
    font-size: 22px;
    color: #F2C14E;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-tai-xiu__advantage-card p {
    font-size: 16px;
    color: #FFF6D6;
}

/* Guide Section (Step-by-step) */
.page-tai-xiu__step-by-step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-tai-xiu__step-item {
    background: #111111; /* Card background */
    border: 1px solid #3A2A12;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__step-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #3A2A12;
}

.page-tai-xiu__step-title {
    font-size: 22px;
    color: #FFD36B;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-tai-xiu__step-item p {
    font-size: 16px;
    color: #FFF6D6;
    margin-bottom: 20px;
}

/* FAQ Section */
details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #3A2A12;
  overflow: hidden;
  background: #111111; /* Card background */
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF6D6;
  font-weight: 600;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question::-webkit-details-marker {
  display: none;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question:hover {
  background: #1a1a1a; /* Slightly darker hover */
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E; /* Question text color */
}
.page-tai-xiu__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFD36B;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 25px 20px;
  background: #0A0A0A; /* Page background for answer */
  border-radius: 0 0 8px 8px;
  color: #FFF6D6;
}
.page-tai-xiu__faq-answer p {
    margin-bottom: 10px;
    font-size: 16px;
}
.page-tai-xiu__faq-answer a {
    color: #FFD36B;
    text-decoration: underline;
}
.page-tai-xiu__faq-answer a:hover {
    color: #F2C14E;
}


/* Conclusion Section */
.page-tai-xiu__conclusion-section {
    text-align: center;
    padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__section-title {
        font-size: 32px;
    }
    .page-tai-xiu__main-title {
        font-size: clamp(28px, 4.5vw, 48px);
    }
    .page-tai-xiu__description {
        font-size: clamp(15px, 1.8vw, 18px);
    }
    .page-tai-xiu__grid-advantages {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-tai-xiu__step-by-step {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-tai-xiu__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-tai-xiu__section-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding-top: 15px;
    }

    /* HERO 主图区域 */
    .page-tai-xiu__hero-section {
        padding-top: 10px;
        padding-bottom: 30px;
    }
    .page-tai-xiu__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-tai-xiu__hero-image {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        height: auto !important;
    }
    .page-tai-xiu__hero-content {
        padding: 0 15px;
    }
    .page-tai-xiu__main-title {
        font-size: clamp(24px, 7vw, 38px);
        margin-bottom: 15px;
    }
    .page-tai-xiu__description {
        font-size: clamp(14px, 4vw, 16px);
        margin-bottom: 20px;
    }

    /* 按钮与按钮容器 */
    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        margin-bottom: 30px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary,
    .page-tai-xiu__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* 通用图片与容器 */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-tai-xiu__image-inline {
        margin: 15px auto !important;
        max-width: 100% !important;
    }
    .page-tai-xiu__card-image,
    .page-tai-xiu__step-image {
        height: 180px !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Sản phẩm/Ưu điểm lưới (Advantages Grid) */
    .page-tai-xiu__grid-advantages {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        overflow-x: hidden;
    }
    .page-tai-xiu__advantage-card {
        padding: 20px;
    }
    .page-tai-xiu__card-title {
        font-size: 20px;
    }
    .page-tai-xiu__advantage-card p {
        font-size: 15px;
    }

    /* Hướng dẫn từng bước */
    .page-tai-xiu__step-by-step {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .page-tai-xiu__step-title {
        font-size: 20px;
    }
    .page-tai-xiu__step-item p {
        font-size: 15px;
    }

    /* FAQ Section */
    details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
        padding: 15px;
    }
    .page-tai-xiu__faq-qtext {
        font-size: 16px;
    }
    .page-tai-xiu__faq-toggle {
        font-size: 24px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
        padding: 0 15px 15px;
    }
    .page-tai-xiu__faq-answer p {
        font-size: 14px;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-tai-xiu__content-block {
        font-size: 16px;
        text-align: left;
    }
    .page-tai-xiu__list {
        padding-left: 20px;
    }
    .page-tai-xiu__strategy-item {
        padding: 20px;
        margin-bottom: 20px;
    }
    .page-tai-xiu__strategy-title {
        font-size: 20px;
    }
}