/* style/fortune-tiger.css */

/* Base styles for the page content */
.page-fortune-tiger {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Main text color based on provided scheme */
    background-color: var(--background-color, #B71C1C); /* Fallback to Deep Red if var not set */
}

.page-fortune-tiger__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section specific styling */
.page-fortune-tiger__hero-section,
.page-fortune-tiger__intro-section,
.page-fortune-tiger__how-to-play-section,
.page-fortune-tiger__features-section,
.page-fortune-tiger__why-5u-game-section,
.page-fortune-tiger__strategy-section,
.page-fortune-tiger__other-games-section,
.page-fortune-tiger__faq-section,
.page-fortune-tiger__final-cta-section {
    padding: 60px 0;
    text-align: center;
}

/* Dark and Light background sections for contrast */
.page-fortune-tiger__dark-section {
    background-color: #B71C1C; /* Provided background color */
    color: #FFF5E1; /* Provided main text color */
}

.page-fortune-tiger__light-bg {
    background-color: #f8f8f8; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-fortune-tiger__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 600px; /* Ensure enough space */
}

.page-fortune-tiger__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height for hero */
}

.page-fortune-tiger__hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: 20px; /* Separates content from image */
    background: rgba(19, 1, 1, 0.7); /* Semi-transparent background for readability */
    border-radius: 8px;
}

.page-fortune-tiger__main-title {
    font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F4D34D; /* Gold color for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fortune-tiger__description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #FFF5E1; /* Main text color */
}

/* Buttons */
.page-fortune-tiger__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-fortune-tiger__btn-primary,
.page-fortune-tiger__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button fits container */
    box-sizing: border-box;
}

.page-fortune-tiger__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
    color: #7A0E0E; /* Deep Red for text for contrast */
    border: 2px solid #F2B544; /* Gold border */
}

.page-fortune-tiger__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-fortune-tiger__btn-secondary {
    background-color: #C91F17; /* Main brand color */
    color: #FFF5E1; /* Main text color */
    border: 2px solid #E53935; /* Auxiliary color border */
}

.page-fortune-tiger__btn-secondary:hover {
    background-color: #E53935; /* Auxiliary color on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Titles */
.page-fortune-tiger__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #F4D34D; /* Gold for section titles */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-fortune-tiger__light-bg .page-fortune-tiger__section-title {
    color: #7A0E0E; /* Deep Red for titles on light background */
}

.page-fortune-tiger__card-title,
.page-fortune-tiger__feature-title,
.page-fortune-tiger__game-card-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #F4D34D; /* Gold for card/feature titles */
}
.page-fortune-tiger__light-bg .page-fortune-tiger__card-title,
.page-fortune-tiger__light-bg .page-fortune-tiger__feature-title,
.page-fortune-tiger__light-bg .page-fortune-tiger__game-card-title {
    color: #C91F17; /* Main brand color for titles on light background */
}

/* Text blocks and lists */
.page-fortune-tiger__text-block {
    max-width: 900px;
    margin: 0 auto 20px auto;
    font-size: 1.1rem;
    color: inherit; /* Inherit color from section */
}

.page-fortune-tiger__list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto 30px auto;
    text-align: left;
}

.page-fortune-tiger__list-item {
    background-color: rgba(0, 0, 0, 0.2); /* Slight background for list items on dark section */
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 5px;
    color: #FFF5E1; /* Main text color */
}

.page-fortune-tiger__light-bg .page-fortune-tiger__list-item {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-fortune-tiger__list-item strong {
    color: #FFCC66; /* Glow color for strong text */
}
.page-fortune-tiger__light-bg .page-fortune-tiger__list-item strong {
    color: #C91F17; /* Main brand color for strong text on light background */
}

/* Links within text */
.page-fortune-tiger a {
    color: #FFCC66; /* Glow color for links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.page-fortune-tiger a:hover {
    color: #F4D34D; /* Gold on hover */
    text-decoration: underline;
}

.page-fortune-tiger__light-bg a {
    color: #C91F17; /* Main brand color for links on light background */
}
.page-fortune-tiger__light-bg a:hover {
    color: #E53935; /* Auxiliary color on hover */
}

/* Images */
.page-fortune-tiger__image-wrapper {
    margin: 30px auto;
    max-width: 800px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-fortune-tiger__content-image {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

/* Video styles */
.page-fortune-tiger__video-section {
    padding: 60px 0;
    text-align: center;
    background-color: #7A0E0E; /* Deep Red for video background */
    color: #FFF5E1;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-fortune-tiger__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    width: 100%; /* Ensure width is 100% for desktop */
    box-sizing: border-box;
}

.page-fortune-tiger__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Ensure it behaves as a block element */
    max-width: 100%; /* Ensure video fits container */
    height: auto; /* Maintain aspect ratio */
}

/* Advantage Grid */
.page-fortune-tiger__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-fortune-tiger__advantage-card {
    background-color: #D32F2F; /* Card BG color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 2px solid #F2B544; /* Border color */
    min-height: 200px; /* Ensure content area image size */
    box-sizing: border-box;
}

.page-fortune-tiger__advantage-card .page-fortune-tiger__card-title {
    color: #FFCC66; /* Glow color for titles */
}

.page-fortune-tiger__advantage-card .page-fortune-tiger__card-text {
    color: #FFF5E1; /* Main text color */
    font-size: 1rem;
}

/* Game Cards Grid */
.page-fortune-tiger__game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-fortune-tiger__game-card {
    background-color: #D32F2F; /* Card BG color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 2px solid #F2B544; /* Border color */
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px; /* Ensure content area image size */
    box-sizing: border-box;
}

.page-fortune-tiger__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-fortune-tiger__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

.page-fortune-tiger__game-card-title {
    padding: 15px 10px 5px;
    color: #FFCC66; /* Glow color for titles */
}

.page-fortune-tiger__game-card-text {
    padding: 0 10px 20px;
    color: #FFF5E1; /* Main text color */
    font-size: 0.95rem;
}

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

.page-fortune-tiger__faq-item {
    background-color: #D32F2F; /* Card BG color */
    border: 1px solid #7A0E0E; /* Deep Red border */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-fortune-tiger__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFCC66; /* Glow color for question */
    list-style: none; /* Remove default marker */
    position: relative;
}

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

.page-fortune-tiger__faq-qtext {
    flex-grow: 1;
}

.page-fortune-tiger__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #F4D34D; /* Gold color for toggle */
    margin-left: 15px;
}

.page-fortune-tiger__faq-item[open] .page-fortune-tiger__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-fortune-tiger__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1.1rem;
    color: #FFF5E1; /* Main text color for answer */
    border-top: 1px solid #7A0E0E; /* Deep Red border for separation */
}

.page-fortune-tiger__faq-answer p {
    margin: 0;
    color: inherit;
}

/* Responsive design */
@media (max-width: 768px) {
    .page-fortune-tiger {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-fortune-tiger__hero-content {
        padding: 20px 15px;
        margin-top: 15px;
    }

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

    .page-fortune-tiger__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-fortune-tiger__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-fortune-tiger__btn-primary,
    .page-fortune-tiger__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-fortune-tiger__section-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .page-fortune-tiger__card-title,
    .page-fortune-tiger__feature-title,
    .page-fortune-tiger__game-card-title {
        font-size: 1.5rem;
    }

    .page-fortune-tiger__text-block {
        font-size: 1rem;
        padding: 0 15px;
    }

    .page-fortune-tiger__list {
        padding: 0 15px;
    }

    .page-fortune-tiger__list-item {
        font-size: 1rem;
    }

    .page-fortune-tiger__image-wrapper {
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-fortune-tiger img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px; /* Ensure minimum size is still met for content images */
        min-height: 200px;
    }
    
    .page-fortune-tiger__section,
    .page-fortune-tiger__card,
    .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__video-section {
        padding-top: 10px !important; /* body already handles --header-offset, small padding for aesthetic */
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    .page-fortune-tiger__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-fortune-tiger__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Ensure height is auto for responsive video */
        display: block !important;
    }

    .page-fortune-tiger__advantages-grid,
    .page-fortune-tiger__game-cards-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-fortune-tiger__advantage-card,
    .page-fortune-tiger__game-card {
        padding: 20px;
        min-height: auto;
    }

    .page-fortune-tiger__game-card-image {
        height: auto; /* Allow image height to be auto on mobile */
    }

    .page-fortune-tiger__faq-list {
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-fortune-tiger__faq-item summary {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .page-fortune-tiger__faq-toggle {
        font-size: 1.3rem;
    }

    .page-fortune-tiger__faq-answer {
        font-size: 1rem;
        padding: 10px 20px 15px;
    }
}

/* Ensure no filter on images */
.page-fortune-tiger img {
    filter: none;
}