/* style/fortune-mouse.css */

/* Base styles for the page content, ensuring contrast with body background */
.page-fortune-mouse {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Text Main color, ensuring contrast on dark backgrounds */
    background-color: #B71C1C; /* Background color from custom scheme */
}

/* Hero Section */
.page-fortune-mouse__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure no overflow */
    background-color: #7A0E0E; /* Deep Red for hero background */
}

.page-fortune-mouse__hero-image {
    width: 100%;
    height: auto; /* Responsive height */
    max-height: 700px; /* Limit height for large screens */
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and text content */
}

.page-fortune-mouse__hero-content {
    position: relative; /* Ensure content is above any potential background elements */
    z-index: 2; /* Higher z-index than image if needed */
    max-width: 900px;
    padding: 0 20px;
}

.page-fortune-mouse__main-title {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive font size for H1 */
    color: #FFD86A; /* Gold-like color for title */
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-fortune-mouse__subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem); /* Responsive font size for subtitle */
    color: #FFF5E1;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-fortune-mouse__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for responsive buttons */
    max-width: 600px; /* Limit button group width */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to prevent buttons from touching edges */
}

.page-fortune-mouse__btn-primary,
.page-fortune-mouse__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    flex-grow: 1; /* Allow buttons to grow */
    min-width: 180px; /* Minimum width for buttons */
}

.page-fortune-mouse__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
    color: #7A0E0E; /* Deep Red text for contrast */
    border: 2px solid #F2B544; /* Border from custom scheme */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-fortune-mouse__btn-secondary {
    background-color: transparent;
    color: #FFD86A; /* Gold-like text */
    border: 2px solid #FFD86A; /* Gold-like border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-fortune-mouse__btn-secondary:hover {
    background-color: #FFD86A;
    color: #7A0E0E; /* Deep Red text */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* General Section Styling */
.page-fortune-mouse__introduction-section,
.page-fortune-mouse__how-to-play-section,
.page-fortune-mouse__beto-car-advantage-section,
.page-fortune-mouse__promotions-section,
.page-fortune-mouse__faq-section,
.page-fortune-mouse__cta-final-section {
    padding: 60px 0;
}

.page-fortune-mouse__light-bg {
    background-color: #B71C1C; /* Background color from custom scheme */
    color: #FFF5E1; /* Text Main color */
}

.page-fortune-mouse__dark-bg {
    background-color: #7A0E0E; /* Deep Red from custom scheme */
    color: #FFF5E1; /* Text Main color */
}

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

.page-fortune-mouse__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: #FFD86A; /* Gold-like color for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-fortune-mouse__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
    color: #FFF5E1;
}

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

.page-fortune-mouse__feature-card,
.page-fortune-mouse__advantage-item {
    background-color: #D32F2F; /* Card BG from custom scheme */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #F2B544; /* Border from custom scheme */
    color: #FFF5E1; /* Text Main color */
}

.page-fortune-mouse__feature-card:hover,
.page-fortune-mouse__advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-fortune-mouse__card-image,
.page-fortune-mouse__advantage-icon {
    width: 100%;
    max-width: 300px; /* Max width for images in cards */
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-fortune-mouse__card-title,
.page-fortune-mouse__advantage-title {
    font-size: 1.5rem;
    color: #FFD86A; /* Gold-like color for card titles */
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.page-fortune-mouse__card-text,
.page-fortune-mouse__advantage-text {
    font-size: 1rem;
    color: #FFF5E1;
    text-align: justify;
}

.page-fortune-mouse__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Promotions List */
.page-fortune-mouse__promo-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-fortune-mouse__promo-item {
    background-color: #D32F2F; /* Card BG from custom scheme */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-left: 5px solid #F2B544; /* Gold border accent */
    color: #FFF5E1;
    font-size: 1.05rem;
}

.page-fortune-mouse__promo-item strong {
    color: #FFD86A; /* Gold-like color for strong text */
}

/* FAQ Section */
.page-fortune-mouse__faq-list {
    margin-top: 30px;
}

.page-fortune-mouse__faq-item {
    background-color: #D32F2F; /* Card BG from custom scheme */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Border from custom scheme */
}

.page-fortune-mouse__faq-item summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.15rem;
    color: #FFD86A; /* Gold-like color for FAQ questions */
    background-color: #C91F17; /* Main color for summary background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-fortune-mouse__faq-item summary:hover {
    background-color: #E53935; /* Auxiliary color on hover */
}

.page-fortune-mouse__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-fortune-mouse__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: #FFD86A;
}

.page-fortune-mouse__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: #FFF5E1; /* Text Main color */
    text-align: justify;
}

/* Copyright */
.page-fortune-mouse__copyright {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
    color: #FFF5E1;
    background-color: #7A0E0E; /* Deep Red for footer-like section */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

    .page-fortune-mouse__hero-section {
        padding-top: 10px !important; /* Ensure small padding */
        padding-bottom: 40px;
    }

    .page-fortune-mouse__main-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .page-fortune-mouse__subtitle {
        font-size: clamp(1rem, 3.5vw, 1.2rem);
    }

    .page-fortune-mouse__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 20px; /* Adjust padding for buttons */
    }

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

    .page-fortune-mouse__introduction-section,
    .page-fortune-mouse__how-to-play-section,
    .page-fortune-mouse__beto-car-advantage-section,
    .page-fortune-mouse__promotions-section,
    .page-fortune-mouse__faq-section,
    .page-fortune-mouse__cta-final-section {
        padding: 40px 0;
    }

    .page-fortune-mouse__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-fortune-mouse__text-block {
        font-size: 1rem;
    }

    .page-fortune-mouse__grid-layout {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-fortune-mouse__feature-card,
    .page-fortune-mouse__advantage-item,
    .page-fortune-mouse__promo-item,
    .page-fortune-mouse__faq-item {
        padding: 20px;
    }
    
    .page-fortune-mouse__card-image,
    .page-fortune-mouse__advantage-icon {
        max-width: 250px; /* Ensure images are not too small */
        width: 100% !important; /* Force full width within card */
        height: auto !important;
        display: block !important;
    }

    /* General responsive images */
    .page-fortune-mouse img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-fortune-mouse__container,
    .page-fortune-mouse__hero-section,
    .page-fortune-mouse__introduction-section,
    .page-fortune-mouse__how-to-play-section,
    .page-fortune-mouse__beto-car-advantage-section,
    .page-fortune-mouse__promotions-section,
    .page-fortune-mouse__faq-section,
    .page-fortune-mouse__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

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

    .page-fortune-mouse__faq-answer {
        padding: 15px 20px;
    }
}