/* Base styles for the Tài Xỉu page */
.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    background-color: #f9f9f9; /* Slightly off-white background for content sections */
}

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

.page-tai-xiu__section {
    padding: 40px 0;
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-tai-xiu__section:nth-child(even) {
    background-color: #fefefe;
}

.page-tai-xiu__section-title {
    font-size: 32px;
    font-weight: 700;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.page-tai-xiu__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

.page-tai-xiu__sub-title {
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    margin-top: 30px;
    margin-bottom: 15px;
}

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

.page-tai-xiu__content-block-text {
    text-align: center;
    margin-top: 30px;
    font-size: 18px;
    color: #555555;
}

/* Hero Section */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    background: linear-gradient(135deg, #26A9E0, #4AD9F9);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 40px;
    border-radius: 0;
    box-shadow: none;
}

.page-tai-xiu__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.2;
}

.page-tai-xiu__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-tai-xiu__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-tai-xiu__main-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsive font size */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-tai-xiu__intro-text {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-tai-xiu__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-tai-xiu__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-tai-xiu__btn-primary:hover {
    background-color: #D46F00;
    border-color: #D46F00;
    transform: translateY(-2px);
}

.page-tai-xiu__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #ffffff;
}

.page-tai-xiu__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-tai-xiu__btn-primary--large {
    font-size: 20px;
    padding: 18px 35px;
}

/* Content Block Images */
.page-tai-xiu__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__content-image--right {
    float: right;
    margin-left: 30px;
    margin-bottom: 15px;
    width: 40%; /* Adjust width for desktop layout */
    min-width: 300px; /* Minimum width for desktop image */
}

.page-tai-xiu__content-block::after {
    content: '';
    display: table;
    clear: both;
}

/* Lists */
.page-tai-xiu__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    padding: 0;
}

.page-tai-xiu__list li {
    margin-bottom: 10px;
    font-size: 16px;
}

/* Card Grid */
.page-tai-xiu__grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-tai-xiu__card {
    background-color: #fefefe;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tai-xiu__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__card-title {
    font-size: 20px;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-tai-xiu__card-text {
    font-size: 16px;
    color: #555555;
}

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

.page-tai-xiu__advantage-card {
    background-color: #fefefe;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tai-xiu__advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__advantage-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-tai-xiu__advantage-title {
    font-size: 22px;
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-tai-xiu__advantage-description {
    font-size: 16px;
    color: #555555;
}

.page-tai-xiu__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
details.page-tai-xiu__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #f5f5f5;
}
.page-tai-xiu__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-tai-xiu__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tai-xiu__main-title {
        font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    }
    .page-tai-xiu__intro-text {
        font-size: 1.1rem;
    }
    .page-tai-xiu__section-title {
        font-size: 28px;
    }
    .page-tai-xiu__sub-title {
        font-size: 22px;
    }
    .page-tai-xiu__content-image--right {
        width: 45%;
        margin-left: 20px;
    }
    .page-tai-xiu__grid-cards, .page-tai-xiu__grid-advantages {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-tai-xiu__container {
        padding: 15px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-tai-xiu__section {
        padding: 30px 0;
        border-radius: 0;
        box-shadow: none;
    }
    .page-tai-xiu__hero-section {
        padding-top: 10px;
        padding-bottom: 30px;
    }
    .page-tai-xiu__hero-image-wrapper img {
        object-fit: contain !important; /* HERO 主图区域 */
        aspect-ratio: unset !important;
    }
    .page-tai-xiu__hero-content {
        padding: 40px 15px;
    }
    .page-tai-xiu__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-tai-xiu__intro-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 15px;
        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 a[class*="button"],
    .page-tai-xiu 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: 12px 20px;
        font-size: 16px;
    }
    .page-tai-xiu__btn-primary--large {
        padding: 15px 25px;
        font-size: 18px;
    }
    .page-tai-xiu__section-title {
        font-size: 24px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    .page-tai-xiu__sub-title {
        font-size: 20px;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-tai-xiu__content-block {
        text-align: left;
    }
    .page-tai-xiu__content-image {
        margin: 15px auto !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-tai-xiu__content-image--right {
        float: none;
        margin: 15px auto;
        width: 100%;
        min-width: unset;
    }
    .page-tai-xiu__grid-cards {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }
    .page-tai-xiu__card {
        padding: 20px;
    }
    .page-tai-xiu__card-title {
        font-size: 18px;
    }
    .page-tai-xiu__grid-advantages {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    .page-tai-xiu__advantage-card {
        padding: 25px;
    }
    .page-tai-xiu__advantage-title {
        font-size: 20px;
    }
    details.page-tai-xiu__faq-item summary.page-tai-xiu__faq-question { padding: 15px; }
    .page-tai-xiu__faq-qtext { font-size: 15px; }
    details.page-tai-xiu__faq-item .page-tai-xiu__faq-answer {
        padding: 0 15px 15px;
    }
    .page-tai-xiu__cta-bottom {
        margin-top: 40px;
    }
    .page-tai-xiu__content-area, .page-tai-xiu__text-block, .page-tai-xiu p, .page-tai-xiu li {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}