/* style/tai-xiu.css */

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

.page-tai-xiu__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-tai-xiu__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Main brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-tai-xiu__text-block {
    margin-bottom: 1em;
    font-size: 1.1em;
}

.page-tai-xiu .highlight {
    color: #FFD36B; /* Accent color for highlights */
    font-weight: bold;
}

/* Hero Section */
.page-tai-xiu__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #0A0A0A; /* Match body background */
}

.page-tai-xiu__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px 16px;
    gap: 40px; /* Increased gap for better spacing */
    box-sizing: border-box;
}

.page-tai-xiu__hero-content {
    flex: 1 1 50%;
    min-width: 300px; /* Ensure content doesn't get too small */
    color: #FFF6D6; /* Ensure light text on dark background */
}

.page-tai-xiu__main-title {
    font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive H1 font size */
    color: #F2C14E;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-tai-xiu__subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFF6D6;
}

.page-tai-xiu__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #1A1A1A; /* Dark text for bright button background */
    border: 2px solid transparent;
}

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

.page-tai-xiu__btn-secondary {
    background: #111111; /* Card BG color */
    color: #F2C14E; /* Main brand color for text */
    border: 2px solid #F2C14E; /* Border with main brand color */
}

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

.page-tai-xiu__hero-image {
    flex: 1 1 40%;
    text-align: center;
    min-width: 300px;
}

.page-tai-xiu__hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block; /* Remove extra space below image */
}

/* Introduction Section */
.page-tai-xiu__introduction-section {
    background-color: #0A0A0A;
    padding: 60px 0;
}

/* How to Play Section */
.page-tai-xiu__how-to-play-section {
    background-color: #111111; /* Card BG color */
    padding: 60px 0;
}

.page-tai-xiu__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.page-tai-xiu__content-grid.reverse-order {
    flex-direction: row-reverse;
}

.page-tai-xiu__image-wrapper {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

.page-tai-xiu__image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: block;
}

.page-tai-xiu__text-content {
    flex: 1 1 45%;
    min-width: 300px;
}

.page-tai-xiu__ordered-list,
.page-tai-xiu__unordered-list {
    list-style-type: disc; /* Default for ul */
    padding-left: 25px;
    margin-bottom: 1em;
}

.page-tai-xiu__ordered-list li,
.page-tai-xiu__unordered-list li {
    margin-bottom: 0.5em;
    color: #FFF6D6;
}

/* Bet Types Section */
.page-tai-xiu__bet-types-section {
    background-color: #0A0A0A;
    padding: 60px 0;
}

.page-tai-xiu__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-tai-xiu__card {
    background-color: #111111; /* Card BG color */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    color: #FFF6D6;
}

.page-tai-xiu__card-title {
    font-size: 1.5em;
    color: #F2C14E;
    margin-bottom: 10px;
    font-weight: bold;
}