/* style/fishing-games.css */
/* Base styles and variables */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-color-light: #f8f8f8;
    --background-color-white: #ffffff;
    --border-color: #e0e0e0;
    --button-login-color: #EA7C07; /* Custom color for login */
}

/* Page-specific wrapper */
.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default dark text for light body background */
    background-color: var(--background-color-white);
}

/* Fixed header offset - apply to the first main content section */
.page-fishing-games__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Container for content width */
.page-fishing-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-fishing-games__hero-section,
.page-fishing-games__introduction-section,
.page-fishing-games__video-section,
.page-fishing-games__reasons-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__strategy-section,
.page-fishing-games__promotions-section,
.page-fishing-games__support-section,
.page-fishing-games__faq-section,
.page-fishing-games__cta-final-section {
    padding: 60px 0;
    background-color: var(--background-color-white);
}

.page-fishing-games__hero-section {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 30px; /* Adjust as image is below content */
}

.page-fishing-games__hero-content {
    max-width: 800px;
    margin-bottom: 40px;
}

.page-fishing-games__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-color-light);
    line-height: 1.2;
}

.page-fishing-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
}


.page-fishing-games__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-fishing-games__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-fishing-games__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-fishing-games__paragraph a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-fishing-games__paragraph a:hover {
    text-decoration: underline;
}

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    min-width: 150px;
    text-align: center;
    box-sizing: border-box;
}

.page-fishing-games__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid var(--primary-color);
}

.page-fishing-games__btn-primary:hover {
    background-color: #1e87b7; /* Darken primary color */
    border-color: #1e87b7; /* Darken primary color */
}

.page-fishing-games__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-fishing-games__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-fishing-games__hero-cta-buttons,
.page-fishing-games__cta-center,
.page-fishing-games__cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    margin-top: 30px;
    gap: 15px;
}

/* Video Section */
.page-fishing-games__video-section {
    background-color: var(--background-color-light);
    text-align: center;
}

.page-fishing-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px; /* Constrain video width */
    margin: 0 auto 20px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.page-fishing-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer; /* Indicate clickable */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-fishing-games__video-caption {
    font-style: italic;
    color: #666;
    margin-top: 20px;
}

/* Reason Grid (4 columns) */
.page-fishing-games__reasons-section {
    background-color: var(--background-color-white);
}

.page-fishing-games__reason-grid,
.page-fishing-games__promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__reason-card,
.page-fishing-games__promotion-card {
    background-color: var(--background-color-white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color); /* Ensure contrast */
    color: var(--text-color-dark); /* Ensure contrast */
}

.page-fishing-games__reason-card:hover,
.page-fishing-games__promotion-card:hover {
    transform: translateY(-10px);
}

.page-fishing-games__reason-icon,
.page-fishing-games__promotion-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-fishing-games__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-fishing-games__card-description {
    font-size: 1em;
    color: var(--text-color-dark);
}

/* How-to-play list */
.page-fishing-games__step-list,
.page-fishing-games__strategy-list,
.page-fishing-games__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-fishing-games__list-item {
    background-color: var(--background-color-light);
    border-left: 5px solid var(--primary-color);
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    color: var(--text-color-dark); /* Ensure contrast */
}

.page-fishing-games__list-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-fishing-games__list-description {
    font-size: 1em;
    color: var(--text-color-dark);
}

/* FAQ Section */
.page-fishing-games__faq-section {
    background-color: var(--background-color-light);
}

.page-fishing-games__faq-list {
    margin-top: 40px;
}

.page-fishing-games__faq-item {
    background-color: var(--background-color-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-color-dark); /* Ensure contrast */
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--background-color-white);
    transition: background-color 0.3s ease;
    color: var(--primary-color); /* Question title in primary color */
    font-weight: bold;
}

.page-fishing-games__faq-question:hover {
    background-color: #f0f0f0;
}

.page-fishing-games__faq-title {
    font-size: 1.2em;
    margin: 0;
    flex-grow: 1;
}

.page-fishing-games__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    transform: rotate(45deg);
}

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--background-color-white);
    color: var(--text-color-dark); /* Answer text in dark color */
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 1000px !important; /* Sufficient height to show content */
    padding: 15px 25px 20px 25px; /* Padding when active */
}

.page-fishing-games__faq-answer p {
    margin-bottom: 0;
}

/* Contact Info */
.page-fishing-games__contact-info {
    margin-top: 30px;
    text-align: center;
}

.page-fishing-games__contact-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-fishing-games__contact-list .page-fishing-games__list-item {
    border: none;
    border-radius: 8px;
    padding: 15px 25px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-weight: bold;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 2.8em;
    }
    .page-fishing-games__section-title {
        font-size: 2em;
    }
    .page-fishing-games__hero-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-fishing-games__hero-title {
        font-size: 2.2em;
    }
    .page-fishing-games__section-title {
        font-size: 1.8em;
    }
    .page-fishing-games__hero-description,
    .page-fishing-games__paragraph,
    .page-fishing-games__card-description,
    .page-fishing-games__list-description {
        font-size: 1em;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important; /* Force full width */
        width: 100% !important; /* Force full width */
        box-sizing: border-box !important;
        white-space: normal !important; /* Allow text wrap */
        word-wrap: break-word !important; /* Allow text wrap */
    }
    .page-fishing-games__hero-cta-buttons,
    .page-fishing-games__cta-center,
    .page-fishing-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px; /* Add padding to prevent overflow */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-fishing-games__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure image takes full container width if needed */
        height: auto !important;
        display: block !important;
    }
    .page-fishing-games__hero-image-wrapper,
    .page-fishing-games__reason-card,
    .page-fishing-games__promotion-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Video responsiveness */
    .page-fishing-games video,
    .page-fishing-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-fishing-games__video-section,
    .page-fishing-games__video-container,
    .page-fishing-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-fishing-games__contact-list {
        flex-direction: column;
        align-items: center;
    }
    .page-fishing-games__contact-list .page-fishing-games__list-item {
        width: 100%;
        max-width: 300px; /* Constrain individual item width */
    }
}

@media (max-width: 480px) {
    .page-fishing-games__hero-title {
        font-size: 1.8em;
    }
    .page-fishing-games__section-title {
        font-size: 1.5em;
    }
    .page-fishing-games__hero-description {
        font-size: 0.95em;
    }
    .page-fishing-games__hero-section,
    .page-fishing-games__introduction-section,
    .page-fishing-games__video-section,
    .page-fishing-games__reasons-section,
    .page-fishing-games__how-to-play-section,
    .page-fishing-games__strategy-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__support-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-final-section {
        padding: 40px 0;
    }
}