/* style/fishing-games.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-on-dark: #FFFFFF;
    --text-on-light: #333333;
    --button-register-login-bg: #C30808;
    --button-register-login-text: #FFFF00;
    --body-bg: #121212;
}

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

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

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 600px;
    padding: var(--header-offset, 120px) 20px 60px; /* Ensure space below fixed header */
    overflow: hidden;
    color: var(--text-on-dark);
    background-color: var(--primary-color); /* Fallback if video not loaded */
}

.page-fishing-games__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-fishing-games__video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.5); /* Darken video to ensure text contrast */
    cursor: pointer;
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    padding: 30px;
    border-radius: 10px;
}

.page-fishing-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-on-dark);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

/* General Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

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

.page-fishing-games__btn-primary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

.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(--secondary-color);
}

/* Specific button colors for Register/Login */
.page-fishing-games__cta-buttons a[href*="redirect"] {
    background-color: var(--button-register-login-bg);
    color: var(--button-register-login-text);
    border-color: var(--button-register-login-bg);
}

.page-fishing-games__cta-buttons a[href*="redirect"]:hover {
    background-color: #a00606;
    border-color: #a00606;
    color: var(--button-register-login-text);
}

/* Sections */
.page-fishing-games__intro-section,
.page-fishing-games__features-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__faq-section {
    padding: 80px 0;
    color: var(--text-on-light);
    background-color: var(--secondary-color);
}

.page-fishing-games__featured-games-section,
.page-fishing-games__why-choose-section,
.page-fishing-games__promotions-section,
.page-fishing-games__cta-final-section {
    padding: 80px 0;
    color: var(--text-on-dark);
    background-color: var(--body-bg);
}

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

.page-fishing-games__dark-bg .page-fishing-games__section-title {
    color: var(--secondary-color);
}

.page-fishing-games__section-subtitle {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 60px;
    color: #cccccc;
}

.page-fishing-games__light-bg .page-fishing-games__section-subtitle {
    color: #666666;
}

/* Intro Section */
.page-fishing-games__intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-fishing-games__intro-image {
    flex: 1;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    max-width: 100%;
    height: auto;
    display: block;
}

.page-fishing-games__text-block {
    flex: 1.5;
    font-size: 1.1em;
}

.page-fishing-games__text-block p {
    margin-bottom: 15px;
    color: var(--text-on-light);
}

/* Game Cards */
.page-fishing-games__game-cards,
.page-fishing-games__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-fishing-games__card,
.page-fishing-games__promo-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-on-dark);
}

.page-fishing-games__card:hover,
.page-fishing-games__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__card-image,
.page-fishing-games__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    display: block;
}

.page-fishing-games__card-title,
.page-fishing-games__promo-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-fishing-games__card-title a,
.page-fishing-games__promo-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-fishing-games__card-title a:hover,
.page-fishing-games__promo-title a:hover {
    color: var(--secondary-color);
}

.page-fishing-games__card-description,
.page-fishing-games__promo-description {
    font-size: 0.95em;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
    padding: 0 15px;
}

.page-fishing-games__card .page-fishing-games__btn-primary,
.page-fishing-games__promo-card .page-fishing-games__btn-secondary {
    margin-top: auto;
    margin-left: 15px;
    margin-right: 15px;
}

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

.page-fishing-games__feature-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    color: var(--text-on-light);
    border: 1px solid #e0e0e0;
}

.page-fishing-games__feature-item:hover {
    transform: translateY(-5px);
}

.page-fishing-games__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-fishing-games__feature-description {
    font-size: 1em;
    color: #555555;
}

/* Why Choose Section */
.page-fishing-games__why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__why-choose-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-on-dark);
}

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

.page-fishing-games__why-choose-description {
    font-size: 1em;
    color: #cccccc;
}

.page-fishing-games__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* How to Play Section */
.page-fishing-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__step-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: var(--text-on-light);
    border: 1px solid #e0e0e0;
}

.page-fishing-games__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.page-fishing-games__step-description {
    font-size: 1em;
    color: #555555;
}

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

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

/* FAQ Section */
.page-fishing-games__faq-list {
    margin-top: 40px;
}

.page-fishing-games__faq-item {
    background-color: var(--secondary-color);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    color: var(--text-on-light);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

.page-fishing-games__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--primary-color);
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

.page-fishing-games__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
    color: var(--text-on-light);
}

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

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

/* Final CTA Section */
.page-fishing-games__cta-final-section {
    text-align: center;
    padding: 100px 20px;
    background-image: linear-gradient(to right, #017439, #005a2d);
}

.page-fishing-games__cta-final-section .page-fishing-games__section-title {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.page-fishing-games__cta-final-section .page-fishing-games__section-subtitle {
    color: #f0f0f0;
    margin-bottom: 50px;
}

.page-fishing-games__cta-final-section .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__section-title {
        font-size: 2em;
    }
    .page-fishing-games__intro-content {
        flex-direction: column;
    }
    .page-fishing-games__intro-image,
    .page-fishing-games__text-block {
        flex: none;
        width: 100%;
    }
    .page-fishing-games__card-image, .page-fishing-games__promo-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }
    .page-fishing-games__hero-title {
        font-size: 2.2em;
    }
    .page-fishing-games__hero-description {
        font-size: 1.1em;
    }
    .page-fishing-games__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-fishing-games__video {
        filter: brightness(0.4) !important;
    }

    .page-fishing-games__intro-section,
    .page-fishing-games__features-section,
    .page-fishing-games__how-to-play-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__featured-games-section,
    .page-fishing-games__why-choose-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__cta-final-section {
        padding: 40px 0;
    }
    .page-fishing-games__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-fishing-games__section-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-fishing-games__game-cards,
    .page-fishing-games__promo-grid,
    .page-fishing-games__features-grid,
    .page-fishing-games__why-choose-grid,
    .page-fishing-games__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-fishing-games__card-image, .page-fishing-games__promo-image {
        height: 150px;
    }
    .page-fishing-games__container,
    .page-fishing-games__hero-content,
    .page-fishing-games__intro-content,
    .page-fishing-games__game-cards,
    .page-fishing-games__features-grid,
    .page-fishing-games__why-choose-grid,
    .page-fishing-games__steps-grid,
    .page-fishing-games__promo-grid,
    .page-fishing-games__faq-list,
    .page-fishing-games__cta-final-section .page-fishing-games__cta-buttons {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-fishing-games video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-fishing-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column;
    }
    .page-fishing-games__card, .page-fishing-games__promo-card {
        min-width: unset;
    }
    .page-fishing-games__feature-icon {
        min-width: 200px;
        max-width: 100%;
        height: auto;
    }
}