/* style/fortune-tiger.css */

/* Base styles for the page-fortune-tiger scope */
.page-fortune-tiger {
    font-family: 'Arial', sans-serif;
    background-color: #08160F; /* Custom Background */
    color: #F2FFF6; /* Custom Text Main */
    line-height: 1.6;
    font-size: 1rem;
}

/* Ensure all links within main content are visible */
.page-fortune-tiger a {
    color: #2AD16F; /* A brighter green for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-fortune-tiger a:hover {
    color: #57E38D; /* Glow color on hover */
    text-decoration: underline;
}

/* Section styling */
.page-fortune-tiger__section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-fortune-tiger__container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px; /* Inner padding for containers */
}

/* Hero Section */
.page-fortune-tiger__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Minimum height for hero */
    background-color: #08160F; /* Matches body background */
}

.page-fortune-tiger__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 20px; /* Space between image and text */
}

.page-fortune-tiger__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-fortune-tiger__hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 15px;
}

.page-fortune-tiger__main-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: #F2FFF6; /* Custom Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-fortune-tiger__hero-description {
    font-size: 1.15rem;
    color: #A7D9B8; /* Custom Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.page-fortune-tiger__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
    color: #F2FFF6; /* White text for contrast */
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-fortune-tiger__cta-button:hover {
    background: linear-gradient(180deg, #57E38D 0%, #2AD16F 100%); /* Lighter gradient on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Section Titles */
.page-fortune-tiger__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #F2FFF6; /* Custom Text Main */
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-fortune-tiger__subsection-title {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: #F2FFF6; /* Custom Text Main */
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Text blocks */
.page-fortune-tiger__text-block {
    font-size: 1.05rem;
    color: #A7D9B8; /* Custom Text Secondary */
    margin-bottom: 20px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-fortune-tiger__text-block strong {
    color: #F2FFF6; /* Emphasize keywords */
}

/* Content Images */
.page-fortune-tiger__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Dark and Light Background sections - contrast handling */
.page-fortune-tiger__dark-bg {
    background-color: #08160F; /* Custom Background */
    color: #F2FFF6; /* Custom Text Main */
}

.page-fortune-tiger__dark-bg .page-fortune-tiger__text-block {
    color: #A7D9B8; /* Custom Text Secondary */
}

.page-fortune-tiger__light-bg {
    background-color: #11271B; /* Custom Card BG, used for alternating sections */
    color: #F2FFF6; /* Custom Text Main */
}

.page-fortune-tiger__light-bg .page-fortune-tiger__section-title,
.page-fortune-tiger__light-bg .page-fortune-tiger__subsection-title {
    color: #F2FFF6; /* Ensure titles are visible on light-ish background */
}

.page-fortune-tiger__light-bg .page-fortune-tiger__text-block {
    color: #A7D9B8; /* Custom Text Secondary */
}

/* Video Section */
.page-fortune-tiger__video-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #08160F; /* Custom Background */
}

.page-fortune-tiger__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 960px; /* Max width for video container */
    width: 100%;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background-color: #000; /* Black background for video area */
}

.page-fortune-tiger__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 10; /* Ensure link is clickable over video */
}

.page-fortune-tiger__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* FAQ Section */
.page-fortune-tiger__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-fortune-tiger__faq-item {
    background-color: #11271B; /* Custom Card BG */
    border: 1px solid #2E7A4E; /* Custom Border */
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px 20px;
    transition: background-color 0.3s ease;
}

.page-fortune-tiger__faq-item:hover {
    background-color: #1E3A2A; /* Darker on hover */
}

.page-fortune-tiger__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #F2FFF6; /* Custom Text Main */
    list-style: none; /* Remove default marker for details summary */
}

/* Hide default marker for details summary */
.page-fortune-tiger__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-fortune-tiger__faq-item summary::marker {
    display: none;
}

.page-fortune-tiger__faq-qtext {
    flex-grow: 1;
    color: #F2FFF6; /* Custom Text Main */
}

.page-fortune-tiger__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 10px;
    color: #57E38D; /* Glow color for toggle */
    transition: transform 0.3s ease;
}

.page-fortune-tiger__faq-item[open] .page-fortune-tiger__faq-toggle {
    transform: rotate(45deg); /* Rotate + to X when open */
}

.page-fortune-tiger__faq-answer {
    font-size: 1rem;
    color: #A7D9B8; /* Custom Text Secondary */
    padding-top: 15px;
    line-height: 1.5;
    text-align: left;
}

/* Conclusion Section */
.page-fortune-tiger__conclusion-section {
    padding-top: 60px;
    padding-bottom: 80px;
    background-color: #0A4B2C; /* Custom Deep Green */
    color: #F2FFF6;
}

.page-fortune-tiger__conclusion-section .page-fortune-tiger__section-title {
    color: #F2FFF6;
    margin-bottom: 20px;
}

.page-fortune-tiger__conclusion-section .page-fortune-tiger__text-block {
    font-size: 1.1rem;
    color: #A7D9B8;
    margin-bottom: 40px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-fortune-tiger__hero-section {
        min-height: 500px;
    }

    .page-fortune-tiger__main-title {
        font-size: clamp(1.8rem, 4.5vw, 3rem);
    }

    .page-fortune-tiger__hero-description {
        font-size: 1rem;
    }

    .page-fortune-tiger__cta-button {
        padding: 12px 25px;
        font-size: 1.1rem;
    }

    .page-fortune-tiger__section {
        padding: 40px 15px;
    }
}

@media (max-width: 768px) {
    .page-fortune-tiger {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .page-fortune-tiger__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        min-height: 400px;
    }

    .page-fortune-tiger__main-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-fortune-tiger__hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-fortune-tiger__cta-button {
        padding: 10px 20px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
        display: block; /* Ensure it takes full width */
    }
    
    /* Ensure button containers also adapt */
    .page-fortune-tiger__hero-content,
    .page-fortune-tiger__video-section .page-fortune-tiger__container,
    .page-fortune-tiger__conclusion-section .page-fortune-tiger__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }


    .page-fortune-tiger__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 20px;
    }

    .page-fortune-tiger__subsection-title {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-fortune-tiger__text-block {
        font-size: 0.9rem;
    }

    /* Images responsiveness */
    .page-fortune-tiger img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-fortune-tiger__hero-image-wrapper,
    .page-fortune-tiger__content-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent image from touching edges */
        padding-right: 15px;
    }

    /* Video responsiveness */
    .page-fortune-tiger__video-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }
    .page-fortune-tiger__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent video from touching edges */
        padding-right: 15px;
    }
    .page-fortune-tiger__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-fortune-tiger__faq-item {
        padding: 10px 15px;
    }

    .page-fortune-tiger__faq-question {
        font-size: 1rem;
    }

    .page-fortune-tiger__faq-answer {
        font-size: 0.9rem;
    }
}

/* Contrast Fixes (if needed based on body background) */
/* Assuming body background is dark based on custom colors, so text should be light */
/* If body background was light, these would be reversed */
.page-fortune-tiger__dark-text {
    color: #F2FFF6; /* Main text color for light-bg sections */
}
.page-fortune-tiger__dark-text strong {
    color: #F2FFF6;
}
/* Ensure links are visible */
.page-fortune-tiger__light-bg a {
    color: #2AD16F;
}
.page-fortune-tiger__light-bg a:hover {
    color: #57E38D;
}