/* style/fishing-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --button-register-bg: #C30808;
    --button-register-text: #FFFF00;
    --background-white: #FFFFFF;
    --background-light-grey: #f8f8f8;
    --border-color: #e0e0e0;
}

.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
}

.page-fishing-games__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-fishing-games__light-bg {
    background-color: var(--background-white);
    color: var(--text-dark);
}

.page-fishing-games__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    position: relative;
    overflow: hidden;
}

.page-fishing-games__hero-content {
    max-width: 900px;
    z-index: 1;
    margin-bottom: 30px;
}

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

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

.page-fishing-games__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
    filter: brightness(0.6);
}

.page-fishing-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.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;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
}

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

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

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

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

.page-fishing-games__introduction-section,
.page-fishing-games__features-section,
.page-fishing-games__gameplay-tips-section,
.page-fishing-games__promotions-section,
.page-fishing-games__faq-section,
.page-fishing-games__cta-download-section {
    padding: 60px 20px;
}

.page-fishing-games__content-area {
    max-width: 1200px;
    margin: 0 auto;
}

.page-fishing-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section */
}

.page-fishing-games__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: inherit; /* Inherit color from parent section */
}

.page-fishing-games__image-text-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-fishing-games__image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-fishing-games__content-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__text-content {
    flex: 1;
}

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

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

.page-fishing-games__feature-card,
.page-fishing-games__tip-card,
.page-fishing-games__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--text-light);
}

.page-fishing-games__light-bg .page-fishing-games__feature-card,
.page-fishing-games__light-bg .page-fishing-games__tip-card,
.page-fishing-games__light-bg .page-fishing-games__promo-card {
    background-color: var(--background-light-grey);
    color: var(--text-dark);
}

.page-fishing-games__feature-card:hover,
.page-fishing-games__tip-card:hover,
.page-fishing-games__promo-card:hover {
    transform: translateY(-10px);
}

.page-fishing-games__feature-icon,
.page-fishing-games__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-fishing-games__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: inherit;
}

.page-fishing-games__tip-card .page-fishing-games__card-title {
    color: var(--primary-color);
}

.page-fishing-games__video-wrapper {
    margin-top: 50px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-fishing-games__faq-item {
    background-color: var(--background-light-grey);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-dark);
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

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

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

.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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

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

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

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

    .page-fishing-games__hero-title {
        font-size: 2.2em;
    }

    .page-fishing-games__hero-description {
        font-size: 1em;
    }

    .page-fishing-games__cta-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;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-fishing-games__introduction-section,
    .page-fishing-games__features-section,
    .page-fishing-games__gameplay-tips-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-download-section {
        padding: 40px 15px;
    }

    .page-fishing-games__content-area {
        padding-left: 0;
        padding-right: 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-fishing-games__section-title {
        font-size: 1.8em;
    }

    .page-fishing-games__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-fishing-games__image-text-layout {
        flex-direction: column;
        gap: 30px;
    }

    .page-fishing-games__image-wrapper,
    .page-fishing-games__text-content {
        width: 100%;
    }

    .page-fishing-games__content-image,
    .page-fishing-games__feature-icon,
    .page-fishing-games__promo-image,
    .page-fishing-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-fishing-games__video-wrapper {
        margin-top: 30px;
        padding-bottom: 56.25%; /* Maintain aspect ratio */
        height: 0;
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-fishing-games__features-grid,
    .page-fishing-games__tips-grid,
    .page-fishing-games__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__feature-card,
    .page-fishing-games__tip-card,
    .page-fishing-games__promo-card {
        padding: 25px;
    }

    .page-fishing-games__card-title {
        font-size: 1.3em;
    }

    .page-fishing-games__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

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

    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 15px;
    }

    .page-fishing-games__cta-download-section .page-fishing-games__section-description {
        font-size: 1em;
    }
}

/* Ensure content area images are not too small */
.page-fishing-games img {
    min-width: 200px;
    min-height: 200px;
}

.page-fishing-games__feature-icon,
.page-fishing-games__promo-image {
    min-height: 200px;
    max-height: 400px; /* Limit height for consistency */
}