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

.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color); /* Body background is white, so default text is dark */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

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

.page-fishing-games__dark-bg {
    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: 36px;
    margin-bottom: 40px;
    font-weight: bold;
    color: inherit;
}

.page-fishing-games__dark-bg .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 p {
    font-size: 17px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px 80px; /* Adjust padding-top based on --header-offset in main */
    background-color: var(--primary-color);
    color: var(--text-light);
    overflow: hidden;
}

.page-fishing-games__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-fishing-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-fishing-games__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-fishing-games__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 900;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-fishing-games__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.5;
    color: var(--text-light);
}

.page-fishing-games__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--button-register); /* Using #C30808 for CTA buttons */
    color: var(--button-text-yellow); /* Using #FFFF00 for button text */
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-fishing-games__cta-button:hover {
    background: #a30606; /* Slightly darker red on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__btn-primary {
    background: var(--button-register);
    color: var(--button-text-yellow);
    border: none;
}

.page-fishing-games__btn-primary:hover {
    background: #a30606;
}

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

.page-fishing-games__btn-secondary:hover {
    background: #f0f0f0;
    color: #005f2c;
}

.page-fishing-games__btn-small {
    padding: 10px 25px;
    font-size: 16px;
    border-radius: 6px;
    margin-top: 15px;
}

/* Image Wrapper */
.page-fishing-games__image-wrapper {
    margin: 40px auto;
    max-width: 1000px;
}

.page-fishing-games__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Game List */
.page-fishing-games__game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-fishing-games__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-fishing-games__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    max-width: 100%; /* Ensure images are responsive */
}

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

.page-fishing-games__game-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

/* Step List (Guide) */
.page-fishing-games__step-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__step-item {
    background: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

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

.page-fishing-games__step-item p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Strategy Grid */
.page-fishing-games__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__strategy-item {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: var(--text-dark);
    height: 100%;
}

/* Promotions */
.page-fishing-games__promo-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0;
    max-width: 900px;
    text-align: left;
}

.page-fishing-games__promo-item {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.page-fishing-games__promo-item .page-fishing-games__card-title {
    color: var(--primary-color);
}

/* Feature Grid (Safety & Support) */
.page-fishing-games__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__feature-item {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: var(--text-dark);
    height: 100%;
}

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

.page-fishing-games__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    text-align: left;
}

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-fishing-games__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-fishing-games__faq-question:active {
    background: #eeeeee;
}

.page-fishing-games__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none;
}

.page-fishing-games__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    color: #333;
    transform: rotate(45deg); /* Change to X or rotate for minus */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__main-title {
        font-size: 40px;
    }
    .page-fishing-games__section-title {
        font-size: 30px;
    }
    .page-fishing-games p {
        font-size: 16px;
    }
    .page-fishing-games__cta-button {
        padding: 15px 35px;
        font-size: 18px;
    }
    .page-fishing-games__game-card img {
        
    }
}

@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-fishing-games__container {
        padding: 15px;
    }
    .page-fishing-games__section {
        padding: 40px 0;
    }

    /* Hero Section Mobile */
    .page-fishing-games__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-fishing-games__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-fishing-games__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-fishing-games__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-fishing-games__btn-small {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Image Responsiveness */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-fishing-games__image-wrapper,
    .page-fishing-games__game-list,
    .page-fishing-games__step-list,
    .page-fishing-games__strategy-grid,
    .page-fishing-games__promo-list,
    .page-fishing-games__feature-grid,
    .page-fishing-games__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    /* Card Specifics */
    .page-fishing-games__game-card,
    .page-fishing-games__step-item,
    .page-fishing-games__strategy-item,
    .page-fishing-games__promo-item,
    .page-fishing-games__feature-item {
        padding: 20px;
    }
    .page-fishing-games__card-title {
        font-size: 18px;
    }
    .page-fishing-games__game-card img {
        height: auto;
    }

    /* FAQ Mobile */
    .page-fishing-games__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-fishing-games__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-fishing-games__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-fishing-games__faq-answer {
        padding: 0 15px;
    }
    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 15px !important;
    }
}