/* style/tai-xiu.css */
.page-tai-xiu {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    line-height: 1.6;
}

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

.page-tai-xiu__section {
    padding: 60px 0;
    text-align: center;
}

.page-tai-xiu__section-title {
    font-size: 2.8em;
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-tai-xiu__section-description {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-tai-xiu__hero-carousel-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, not --header-offset */
    background-color: #0A4B2C; /* Deep Green */
}

.page-tai-xiu__hero-slider {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
}

.page-tai-xiu__hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.page-tai-xiu__hero-slide.is-active {
    opacity: 1;
}

.page-tai-xiu__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-tai-xiu__hero-content {
    position: relative;
    z-index: 2;
    color: #F2FFF6;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.page-tai-xiu__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.03em;
}

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

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

.page-tai-xiu__cta-buttons--center {
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-tai-xiu__btn-primary,
.page-tai-xiu__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-tai-xiu__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    border: 2px solid transparent;
}

.page-tai-xiu__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-tai-xiu__btn-secondary {
    background: #11271B; /* Card BG */
    color: #2AD16F;
    border: 2px solid #2AD16F;
}

.page-tai-xiu__btn-secondary:hover {
    background: #2AD16F;
    color: #11271B;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-tai-xiu__hero-slider-prev,
.page-tai-xiu__hero-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #F2FFF6;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 2em;
    z-index: 3;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-tai-xiu__hero-slider-prev {
    left: 20px;
}

.page-tai-xiu__hero-slider-next {
    right: 20px;
}

.page-tai-xiu__hero-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.page-tai-xiu__hero-slider-dots > div {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.page-tai-xiu__hero-slider-dots > div.is-active {
    background: #F2FFF6;
}

.page-tai-xiu__guide-box {
    background-color: #11271B; /* Card BG */
    padding: 40px 20px;
    border-radius: 12px;
    margin: 40px auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.page-tai-xiu__guide-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-tai-xiu__guide-card {
    flex: 0 0 calc(20% - 16px); /* 5 cards per row, accounting for gap */
    max-width: calc(20% - 16px);
    text-decoration: none;
    color: #F2FFF6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.page-tai-xiu__guide-card img {
    aspect-ratio: 250 / 350;
    object-fit: cover;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.page-tai-xiu__guide-card--pos-1, .page-tai-xiu__guide-card--pos-5 {
    padding-top: 50px;
}

.page-tai-xiu__guide-card--pos-2, .page-tai-xiu__guide-card--pos-4 {
    padding-top: 25px;
}

.page-tai-xiu__guide-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

.page-tai-xiu__home-content-section {
    padding: 40px 0;
}

.page-tai-xiu__home-content-box {
    max-width: 91%;
    margin: 0 auto;
    padding: 10px 16px;
    border: 5px solid #2E7A4E; /* Border */
    border-radius: 15px;
    box-shadow: 0 0 20px #57E38D; /* Glow */
    height: 700px;
    background-color: rgba(17, 39, 27, 0.8); /* Slightly transparent Card BG */
    text-align: left;
}

.page-tai-xiu__home-content-inner {
    height: 100%;
    overflow-y: auto;
    padding-right: 15px; /* For scrollbar */
}

.page-tai-xiu__home-content-inner h3 {
    font-size: 1.8em;
    color: #F2C14E;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-tai-xiu__home-content-inner h4 {
    font-size: 1.4em;
    color: #2AD16F;
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-tai-xiu__home-content-inner p {
    margin-bottom: 15px;
    color: #F2FFF6;
}

.page-tai-xiu__home-content-inner ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    color: #F2FFF6;
}

.page-tai-xiu__home-content-inner li {
    margin-bottom: 8px;
}

.page-tai-xiu__home-content-inner a {
    color: #57E38D;
    text-decoration: none;
}

.page-tai-xiu__home-content-inner a:hover {
    text-decoration: underline;
}

.page-tai-xiu__blog-section {
    padding: 60px 0;
}

.page-tai-xiu__blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-tai-xiu__blog-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-tai-xiu__blog-card:hover {
    transform: translateY(-5px);
}

.page-tai-xiu__blog-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-tai-xiu__blog-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-tai-xiu__blog-card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-tai-xiu__blog-card-title a {
    color: #F2C14E; /* Gold */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tai-xiu__blog-card-title a:hover {
    color: #57E38D;
}

.page-tai-xiu__blog-card-meta {
    font-size: 0.9em;
    color: #A7D9B8;
    margin-bottom: 15px;
}

.page-tai-xiu__blog-card-excerpt {
    font-size: 1em;
    color: #F2FFF6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tai-xiu__blog-read-more {
    display: inline-block;
    color: #2AD16F;
    text-decoration: none;
    font-weight: bold;
}

.page-tai-xiu__blog-read-more:hover {
    text-decoration: underline;
}

.page-tai-xiu__view-all-button-wrapper {
    margin-top: 50px;
}

.page-tai-xiu__section--conclusion {
    padding-bottom: 80px;
}

.page-tai-xiu__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-tai-xiu__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-tai-xiu__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #F2C14E; /* Gold */
    list-style: none; /* Hide default marker */
}

.page-tai-xiu__faq-question::-webkit-details-marker {
    display: none;
}

.page-tai-xiu__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #2AD16F;
}

.page-tai-xiu__faq-item[open] .page-tai-xiu__faq-toggle {
    transform: rotate(45deg);
}

.page-tai-xiu__faq-answer {
    padding: 0 20px 20px;
    color: #F2FFF6;
    font-size: 1em;
    line-height: 1.5;
}

/* General image and button responsive styles */
.page-tai-xiu img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-tai-xiu__cta-button,
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tai-xiu__cta-buttons,
.page-tai-xiu__button-group,
.page-tai-xiu__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile responsive styles */
@media (max-width: 1024px) {
    .page-tai-xiu__guide-card {
        flex: 0 0 calc(33.333% - 14px); /* 3 cards per row */
        max-width: calc(33.333% - 14px);
    }
    .page-tai-xiu__blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .page-tai-xiu__hero-slider {
        height: 500px;
    }
    .page-tai-xiu__main-title {
        font-size: clamp(2em, 4vw, 3em);
    }
    .page-tai-xiu__section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-tai-xiu__container {
        padding: 15px;
    }

    .page-tai-xiu__section {
        padding: 40px 0;
    }

    .page-tai-xiu__hero-carousel-section {
        padding-top: 10px !important;
    }

    .page-tai-xiu__hero-slider {
        height: 400px;
    }

    .page-tai-xiu__hero-slider-prev,
    .page-tai-xiu__hero-slider-next {
        padding: 10px;
        font-size: 1.5em;
        width: 40px;
        height: 40px;
    }

    .page-tai-xiu__hero-slider-prev {
        left: 10px;
    }

    .page-tai-xiu__hero-slider-next {
        right: 10px;
    }

    .page-tai-xiu__hero-content {
        padding: 15px;
    }

    .page-tai-xiu__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 10px;
    }

    .page-tai-xiu__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-tai-xiu__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-tai-xiu__btn-primary,
    .page-tai-xiu__btn-secondary {
        padding: 12px 20px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .page-tai-xiu__section-title {
        font-size: 1.8em;
    }

    .page-tai-xiu__section-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-tai-xiu__guide-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }

    .page-tai-xiu__guide-card {
        padding-top: 0 !important; /* Reset specific padding */
        flex: unset; /* Override flex basis */
        max-width: 100%;
    }
    
    .page-tai-xiu__guide-card--pos-1, .page-tai-xiu__guide-card--pos-2 {
        grid-column: span 3;
    }

    .page-tai-xiu__guide-card--pos-3, .page-tai-xiu__guide-card--pos-4, .page-tai-xiu__guide-card--pos-5 {
        grid-column: span 2;
    }

    .page-tai-xiu__home-content-box {
        max-width: 100%;
        height: auto;
        border-width: 3px;
        padding: 10px;
    }

    .page-tai-xiu__home-content-inner {
        height: auto;
        overflow: visible;
        padding-right: 0;
    }

    .page-tai-xiu__home-content-inner h3 {
        font-size: 1.5em;
    }

    .page-tai-xiu__home-content-inner h4 {
        font-size: 1.2em;
    }

    .page-tai-xiu__blog-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .page-tai-xiu__blog-image {
        height: 180px;
    }

    .page-tai-xiu__blog-card-title {
        font-size: 1.2em;
    }

    .page-tai-xiu__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-tai-xiu__faq-answer {
        padding: 0 15px 15px;
    }

    /* General image and button forced responsive styles */
    .page-tai-xiu img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-tai-xiu__section,
    .page-tai-xiu__card,
    .page-tai-xiu__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-tai-xiu__cta-button,
    .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-left: 15px;
        padding-right: 15px;
    }
    .page-tai-xiu__cta-buttons,
    .page-tai-xiu__button-group,
    .page-tai-xiu__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-tai-xiu__cta-buttons {
        flex-direction: column !important;
    }
}

@media (max-width: 480px) {
    .page-tai-xiu__blog-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .page-tai-xiu__guide-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .page-tai-xiu__guide-card--pos-1, .page-tai-xiu__guide-card--pos-2, .page-tai-xiu__guide-card--pos-3, .page-tai-xiu__guide-card--pos-4, .page-tai-xiu__guide-card--pos-5 {
        grid-column: span 1;
    }
    .page-tai-xiu__hero-slider {
        height: 300px;
    }
    .page-tai-xiu__hero-slider-prev,
    .page-tai-xiu__hero-slider-next {
        width: 30px;
        height: 30px;
        font-size: 1.2em;
    }
}