/* style/resources-latest-tai-xiu-no-hu-promotions.css */

/* Variables and Base Styles */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --button-register-login-bg: #C30808;
    --button-register-login-text: #FFFF00;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --card-border-color: #e0e0e0;
}

/* Page content wrapper for BEM scoping */
.page-resources-latest-tai-xiu-no-hu-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark-bg); /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#1a1a2e) */
    overflow-x: hidden; /* Prevent horizontal scroll for the main content area */
}

/* Hero Section */
.page-resources-latest-tai-xiu-no-hu-promotions__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-resources-latest-tai-xiu-no-hu-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    max-width: 100%; /* Ensure responsiveness */
    display: block;
}

.page-resources-latest-tai-xiu-no-hu-promotions__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: -1;
}

.page-resources-latest-tai-xiu-no-hu-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    color: var(--text-color-dark-bg);
}

.page-resources-latest-tai-xiu-no-hu-promotions__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-color-dark-bg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources-latest-tai-xiu-no-hu-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-color-dark-bg);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* General Section Styles */
.page-resources-latest-tai-xiu-no-hu-promotions__section {
    padding: 60px 20px;
    background-color: #1a1a2e; /* Inherit from body or use a subtle dark shade */
    color: var(--text-color-dark-bg);
}

.page-resources-latest-tai-xiu-no-hu-promotions__section.page-resources-latest-tai-xiu-no-hu-promotions__dark-bg {
    background-color: var(--primary-color); /* Brand primary for dark sections */
    color: var(--text-color-dark-bg);
}

.page-resources-latest-tai-xiu-no-hu-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent padding for content */
    box-sizing: border-box;
}

.page-resources-latest-tai-xiu-no-hu-promotions__container--center {
    text-align: center;
}

.page-resources-latest-tai-xiu-no-hu-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color-dark-bg);
}

.page-resources-latest-tai-xiu-no-hu-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-color-dark-bg);
}

.page-resources-latest-tai-xiu-no-hu-promotions__text-block--cta {
    text-align: center;
    margin-top: 40px;
    font-weight: bold;
}

.page-resources-latest-tai-xiu-no-hu-promotions__text-block--tips {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
}

/* Buttons */
.page-resources-latest-tai-xiu-no-hu-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-resources-latest-tai-xiu-no-hu-promotions__btn-primary,
.page-resources-latest-tai-xiu-no-hu-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    min-width: 180px; /* Ensure buttons are not too small */
}

.page-resources-latest-tai-xiu-no-hu-promotions__btn-primary {
    background-color: var(--button-register-login-bg); /* #C30808 */
    color: var(--button-register-login-text); /* #FFFF00 */
    border: 2px solid var(--button-register-login-bg);
}

.page-resources-latest-tai-xiu-no-hu-promotions__btn-primary:hover {
    background-color: #a30707; /* Manual darken of #C30808 */
    border-color: #a30707;
}

.page-resources-latest-tai-xiu-no-hu-promotions__btn-secondary {
    background-color: transparent;
    color: var(--text-color-dark-bg);
    border: 2px solid var(--text-color-dark-bg);
}

.page-resources-latest-tai-xiu-no-hu-promotions__btn-secondary:hover {
    background-color: var(--text-color-dark-bg);
    color: #1a1a2e; /* Dark text for light background */
    border-color: var(--text-color-dark-bg);
}

/* Promo Grid */
.page-resources-latest-tai-xiu-no-hu-promotions__promo-grid,
.page-resources-latest-tai-xiu-no-hu-promotions__steps-grid,
.page-resources-latest-tai-xiu-no-hu-promotions__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-latest-tai-xiu-no-hu-promotions__card,
.page-resources-latest-tai-xiu-no-hu-promotions__step-card,
.page-resources-latest-tai-xiu-no-hu-promotions__feature-item {
    background-color: var(--card-bg-dark-mode); /* Semi-transparent white on dark background */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color-dark-bg);
    height: 100%; /* Ensure cards have equal height */
    box-sizing: border-box;
}

.page-resources-latest-tai-xiu-no-hu-promotions__card-image,
.page-resources-latest-tai-xiu-no-hu-promotions__step-image {
    width: 100%;
    max-width: 400px; /* Constrain image width within card */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Min size for content images */
    min-width: 200px; /* Min size for content images */
    display: block;
}