/* style/tai-xiu.css */

/* Variables from custom color scheme */
:root {
    --page-tai-xiu-primary-color: #2F6BFF;
    --page-tai-xiu-secondary-color: #6FA3FF;
    --page-tai-xiu-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --page-tai-xiu-card-bg: #FFFFFF;
    --page-tai-xiu-background: #F4F7FB;
    --page-tai-xiu-text-main: #1F2D3D;
    --page-tai-xiu-text-dark: #000000;
    --page-tai-xiu-border-color: #D6E2FF;
    --page-tai-xiu-glow-color: #A5C4FF;
}

.page-tai-xiu {
    font-family: 'Arial', sans-serif; /* Placeholder font */
    color: var(--page-tai-xiu-text-main); /* Default text color for the page */
    background-color: var(--page-tai-xiu-background);
    line-height: 1.6;
}

/* Hero Section */
.page-tai-xiu__hero-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 50px; /* Space below content */
    padding-top: 10px; /* Small top padding, relies on body padding-top for header offset */
    background-color: var(--page-tai-xiu-primary-color); /* Fallback/accent color for hero area */
}

.page-tai-xiu__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 500px; /* Fixed height for desktop hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-tai-xiu__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 30px auto 0 auto;
    text-align: center;
    padding: 0 20px;
    color: #ffffff; /* White text on hero section */
}

.page-tai-xiu__main-title {
    font-size: clamp(2.5rem, 4vw, 3.2rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-tai-xiu__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-tai-xiu__hero-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General Buttons */
.page-tai-xiu__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt */
    word-wrap: break-word; /* Allow text to wrap */
    white-space: normal;
}

.page-tai-xiu__btn--primary {
    background: var(--page-tai-xiu-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

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

.page-tai-xiu__btn--secondary {
    background-color: #ffffff;
    color: var(--page-tai-xiu-primary-color);
    border: 2px solid var(--page-tai-xiu-primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-tai-xiu__btn--secondary:hover {
    background-color: var(--page-tai-xiu-primary-color);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.page-tai-xiu__btn--small {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 6px;
}

/* Content Sections */
.page-tai-xiu__content-section {
    padding: 60px 0;
}

.page-tai-xiu__article-wrap {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-tai-xiu__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--page-tai-xiu-text-dark);
    text-align: center;
    margin-bottom: 40px;
    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: var(--page-tai-xiu-primary-color);
    border-radius: 2px;
}

.page-tai-xiu__sub-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--page-tai-xiu-primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-tai-xiu p {
    margin-bottom: 1em;
    font-size: 1.05rem;
    color: var(--page-tai-xiu-text-main);
}

.page-tai-xiu__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1em;
}

.page-tai-xiu__list-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--page-tai-xiu-text-main);
}

.page-tai-xiu__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--page-tai-xiu-primary-color);
    font-weight: bold;
}

.page-tai-xiu__sub-list {
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
}

.page-tai-xiu__sub-list-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 5px;
    color: var(--page-tai-xiu-text-main);
}

.page-tai-xiu__sub-list-item::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--page-tai-xiu-secondary-color);
    font-weight: bold;
}

.page-tai-xiu__list-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--page-tai-xiu-primary-color);
    margin-bottom: 5px;
}

/* Image and Figure */
.page-tai-xiu__figure {
    margin: 30px auto;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
}

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

.page-tai-xiu__figcaption {
    font-size: 0.95rem;
    color: #666;
    margin-top: 10px;
}

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

.page-tai-xiu__card {
    background-color: var(--page-tai-xiu-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--page-tai-xiu-text-main);
}

.page-tai-xiu__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.page-tai-xiu__card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--page-tai-xiu-primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.page-tai-xiu__card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--page-tai-xiu-text-main);
    flex-grow: 1;
}

/* Two Columns List */
.page-tai-xiu__list--two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    margin-top: 30px;
    list-style: none;
    padding-left: 0;
}

.page-tai-xiu__list--two-columns .page-tai-xiu__list-item {
    padding-left: 0;
    margin-bottom: 0;
}

.page-tai-xiu__list--two-columns .page-tai-xiu__list-item::before {
    content: none;
}

.page-tai-xiu__list--two-columns .page-tai-xiu__list-item h3 {
    font-size: 1.3rem;
    color: var(--page-tai-xiu-primary-color);
    margin-bottom: 8px;
}

.page-tai-xiu__list--two-columns .page-tai-xiu__list-item p {
    font-size: 1rem;
    color: var(--page-tai-xiu-text-main);
}

/* Steps Grid */
.page-tai-xiu__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-tai-xiu__step-card {
    background-color: var(--page-tai-xiu-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--page-tai-xiu-text-main);
}