/* style/fishing-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --accent-color-register: #C30808;
    --accent-color-login: #C30808;
    --text-color-register-login: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-light: #e0e0e0;
}

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

/* Ensure main content has padding-top if shared doesn't provide for body */
.page-fishing-games {
    padding-top: var(--header-offset, 120px); /* Adjust if shared.css already applies to body */
}

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

.page-fishing-games__section {
    padding: 60px 0;
    text-align: center;
}

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

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

.page-fishing-games__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-fishing-games__light-bg .page-fishing-games__section-title {
    color: var(--primary-color);
}

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

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

.page-fishing-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__highlight {
    color: var(--primary-color);
    font-weight: bold;
}

.page-fishing-games__dark-section .page-fishing-games__highlight {
    color: var(--text-light);
}

.page-fishing-games__text-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-fishing-games__dark-section .page-fishing-games__text-link {
    color: var(--text-light);
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.page-fishing-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

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

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

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

.page-fishing-games__btn-register:hover {
    background-color: darken(var(--accent-color-register), 10%);
    transform: translateY(-2px);
}

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

.page-fishing-games__btn-login:hover {
    background-color: darken(var(--accent-color-login), 10%);
    transform: translateY(-2px);
}

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

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

/* General Image Styling */
.page-fishing-games__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-fishing-games__game-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

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

.page-fishing-games__game-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
}

.page-fishing-games__game-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-fishing-games__game-description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    flex-grow: 1;
}

/* Guide Section */
.page-fishing-games__list {
    list-style: disc inside;
    text-align: left;
    max-width: 900px;
    margin: 20px auto;
    padding-left: 20px;
}

.page-fishing-games__list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-fishing-games__list-ordered {
    list-style: decimal inside;
    text-align: left;
    max-width: 900px;
    margin: 20px auto;
    padding-left: 20px;
}

.page-fishing-games__list-ordered li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Promotions Section */
.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(--secondary-color);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

.page-fishing-games__promo-card:hover {
    transform: translateY(-5px);
}

.page-fishing-games__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
}

.page-fishing-games__promo-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

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

.page-fishing-games__cta-buttons {
    margin-top: 40px;
}

.page-fishing-games__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-fishing-games__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
}

/* Why Choose Section */
.page-fishing-games__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-fishing-games__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

.page-fishing-games__feature-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-fishing-games__feature-description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    flex-grow: 1;
}

/* Download App Section */
.page-fishing-games__app-download-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-fishing-games__app-platform {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    width: 100%;
    box-sizing: border-box;
}

.page-fishing-games__app-icon {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-height: 200px; /* Enforce min image size */
}

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

.page-fishing-games__app-description {
    font-size: 1em;
    margin-bottom: 25px;
    color: var(--text-dark);
}

/* FAQ Section */
.page-fishing-games__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-fishing-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px 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.15);
    transition: background-color 0.3s ease;
}

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

.page-fishing-games__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-light);
    flex-grow: 1;
}

.page-fishing-games__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--text-light);
    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;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

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

.page-fishing-games__faq-answer p {
    margin-bottom: 15px;
    font-size: 1em;
}

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

@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-fishing-games__section {
        padding: 40px 0;
    }
    .page-fishing-games__container {
        padding: 15px;
    }
    .page-fishing-games__section-title {
        font-size: 1.8em;
    }
    .page-fishing-games__hero-section {
        min-height: 450px;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-fishing-games__hero-title {
        font-size: 2em;
    }
    .page-fishing-games__hero-description {
        font-size: 1em;
    }
    .page-fishing-games__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-fishing-games__btn-register,
    .page-fishing-games__btn-login,
    .page-fishing-games__btn-primary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-fishing-games__game-list,
    .page-fishing-games__promo-grid,
    .page-fishing-games__feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-fishing-games__app-download-grid {
        flex-direction: column;
        gap: 20px;
    }
    .page-fishing-games__app-platform {
        max-width: 100%;
    }
    .page-fishing-games__image-content,
    .page-fishing-games__game-thumbnail,
    .page-fishing-games__promo-image,
    .page-fishing-games__app-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 200px; /* Still enforce minimum size */
    }
    /* Ensure all image containers are responsive */
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__game-item,
    .page-fishing-games__promo-card,
    .page-fishing-games__feature-item,
    .page-fishing-games__app-platform {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-fishing-games__faq-question h3 {
        font-size: 1em;
    }
    .page-fishing-games__faq-toggle {
        font-size: 1.5em;
    }
}