/* style/fishing-games.css */

/* --- Base Styles & Variables --- */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-bg: #C30808;
    --login-button-bg: #C30808;
    --register-login-font: #FFFF00;
    --dark-bg-color: #0a0a0a; /* Body background color */
    --text-light: #ffffff;
    --text-dark: #333333;
    --card-bg-dark: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    --card-bg-light: #ffffff;
    --border-color: #e0e0e0;
}

/* --- Page Specific Styles (Scoped to .page-fishing-games) --- */
.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--dark-bg-color); /* Ensure consistency if needed, though body handles it */
}

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

.page-fishing-games__section-title {
    font-size: 2.5em;
    color: var(--secondary-color); /* White for titles on dark background */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-fishing-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-light); /* White for text on dark background */
    text-align: center;
}

.page-fishing-games__text-block a {
    color: var(--primary-color); /* Primary color for links */
    text-decoration: underline;
}

/* --- Hero Section --- */
.page-fishing-games__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-fishing-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 3;
    color: var(--secondary-color);
    max-width: 900px;
    padding: 20px;
}

.page-fishing-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--secondary-color);
}

.page-fishing-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-fishing-games__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* --- 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;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
    max-width: 100%;
}

.page-fishing-games__btn-primary {
    background-color: var(--register-button-bg); /* Custom color for register/login */
    color: var(--register-login-font); /* Custom font color */
    border: 2px solid var(--register-button-bg);
}

.page-fishing-games__btn-primary:hover {
    background-color: #a30606; /* Slightly darker red on hover */
    border-color: #a30606;
}

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

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

/* --- About Section --- */
.page-fishing-games__about-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Dark section uses primary color as background */
    color: var(--text-light);
}

.page-fishing-games__about-section .page-fishing-games__section-title,
.page-fishing-games__about-section .page-fishing-games__text-block {
    color: var(--text-light); /* Ensure text is white on primary background */
}

/* --- Game Types Section --- */
.page-fishing-games__game-types-section {
    padding: 80px 0;
    background-color: var(--dark-bg-color); /* Default dark background */
}

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

.page-fishing-games__game-card {
    background-color: var(--card-bg-dark); /* Card background on dark body */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-fishing-games__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-fishing-games__game-card-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    padding: 0 15px;
}

.page-fishing-games__game-card-description {
    font-size: 1em;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1; /* Make description take available space */
    padding: 0 15px;
}

/* --- Features Section --- */
.page-fishing-games__features-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Dark section uses primary color as background */
    color: var(--text-light);
}

.page-fishing-games__features-section .page-fishing-games__section-title {
    color: var(--text-light);
}

.page-fishing-games__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-fishing-games__feature-item {
    background-color: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-fishing-games__feature-icon {
    width: 100%; /* Ensure image fills card width */
    height: auto;
    max-height: 200px; /* Limit height */
    object-fit: contain;
    margin-bottom: 20px;
}

.page-fishing-games__feature-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

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

/* --- How to Play Section --- */
.page-fishing-games__how-to-play-section {
    padding: 80px 0;
    background-color: var(--dark-bg-color);
}

.page-fishing-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-fishing-games__guide-item {
    background-color: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
    text-align: center;
}

.page-fishing-games__guide-step-title {
    font-size: 1.8em;
    color: var(--primary-color); /* Primary color for step titles */
    margin-bottom: 10px;
}

.page-fishing-games__guide-item p {
    font-size: 1.1em;
    color: var(--text-light);
}

.page-fishing-games__tips-text {
    margin-top: 30px;
    font-style: italic;
    color: var(--secondary-color);
}

/* --- Promotions Section --- */
.page-fishing-games__promotions-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Dark section uses primary color as background */
    color: var(--text-light);
}

.page-fishing-games__promotions-section .page-fishing-games__section-title {
    color: var(--text-light);
}

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

.page-fishing-games__promo-card {
    background-color: var(--card-bg-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-fishing-games__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-fishing-games__promo-card-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    padding: 0 15px;
}

.page-fishing-games__promo-card-description {
    font-size: 1em;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
    padding: 0 15px;
}

.page-fishing-games__button-group {
    margin-top: 40px;
    text-align: center;
}

/* --- Video Section --- */
.page-fishing-games__video-section {
    padding: 80px 0;
    background-color: var(--dark-bg-color);
}

.page-fishing-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 40px;
}

.page-fishing-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer; /* Indicate clickable */
}

/* --- FAQ Section --- */
.page-fishing-games__faq-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Dark section uses primary color as background */
    color: var(--text-light);
}

.page-fishing-games__faq-section .page-fishing-games__section-title {
    color: var(--text-light);
}

.page-fishing-games__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-fishing-games__faq-item {
    background-color: var(--card-bg-dark);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter for question area */
    transition: background-color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-fishing-games__faq-title {
    font-size: 1.2em;
    color: var(--secondary-color);
    margin: 0;
    flex-grow: 1;
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color); /* Primary color for toggle icon */
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
    font-size: 1em;
}

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

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
    color: var(--secondary-color); /* White for active toggle */
}

.page-fishing-games__faq-answer p {
    margin: 0;
    color: var(--text-light);
}

.page-fishing-games__cta-faq {
    margin-top: 40px;
    text-align: center;
    color: var(--text-light);
}

/* --- CTA Section --- */
.page-fishing-games__cta-section {
    padding: 80px 0;
    background-color: var(--dark-bg-color);
    text-align: center;
}

.page-fishing-games__cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--card-bg-dark);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__cta-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

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

@media (max-width: 768px) {
    /* Mobile specific adjustments */
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-fishing-games__container {
        padding: 0 15px;
    }

    /* Hero Section */
    .page-fishing-games__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
    }
    .page-fishing-games__hero-title {
        font-size: 2.2em;
    }
    .page-fishing-games__hero-description {
        font-size: 1em;
    }
    .page-fishing-games__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Section Titles */
    .page-fishing-games__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-fishing-games__text-block {
        font-size: 1em;
    }

    /* Images */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-fishing-games__game-image,
    .page-fishing-games__promo-image {
        height: auto !important; /* Let height adjust to aspect ratio */
        max-height: 200px !important; /* Cap max height if needed */
    }

    /* Video */
    .page-fishing-games__video-wrapper {
        padding-bottom: 56.25% !important; /* Ensure aspect ratio */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-fishing-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-fishing-games__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for video section */
    }

    /* Cards and Grids */
    .page-fishing-games__game-grid,
    .page-fishing-games__features-grid,
    .page-fishing-games__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__game-card,
    .page-fishing-games__feature-item,
    .page-fishing-games__promo-card,
    .page-fishing-games__guide-item,
    .page-fishing-games__faq-item {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        box-sizing: border-box;
        padding: 20px;
    }

    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-fishing-games__faq-question {
        padding: 15px 20px;
    }
    .page-fishing-games__faq-title {
        font-size: 1.1em;
    }
    .page-fishing-games__faq-answer {
        padding: 0 20px;
    }
    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}

/* Additional specific overrides for mobile to ensure no overflow */
@media (max-width: 768px) {
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__hero-section,
    .page-fishing-games__about-section,
    .page-fishing-games__game-types-section,
    .page-fishing-games__features-section,
    .page-fishing-games__how-to-play-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__video-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-section,
    .page-fishing-games__game-grid,
    .page-fishing-games__features-grid,
    .page-fishing-games__promo-grid,
    .page-fishing-games__hero-buttons,
    .page-fishing-games__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .page-fishing-games__hero-section,
    .page-fishing-games__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}