/* style/fishing-games.css */

/* Base Styles */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--dark-bg-1); /* Assuming shared.css defines a dark background */
}

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

.page-fishing-games__section-title {
    font-size: 36px;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-fishing-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439; /* Brand color */
    border-radius: 2px;
}

.page-fishing-games__text-block {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
    color: #f0f0f0;
}

.page-fishing-games__text-block a {
    color: #FFFF00; /* Register/Login font color */
    text-decoration: underline;
}

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

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__btn-promo,
.page-fishing-games__inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-fishing-games__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-fishing-games__btn-primary:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
    transform: translateY(-2px);
}

.page-fishing-games__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand color */
    border: 2px solid #017439;
}

.page-fishing-games__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-fishing-games__btn-promo {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 20px;
}

.page-fishing-games__btn-promo:hover {
    background-color: #02a04e;
    border-color: #02a04e;
}

.page-fishing-games__inline-link {
    color: #FFFF00; /* Register/Login font color */
    text-decoration: underline;
    font-size: 16px;
    padding: 0;
    border: none;
    background: none;
}

.page-fishing-games__inline-link:hover {
    color: #FFF;
    text-decoration: none;
}

.page-fishing-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    width: 100%;
    height: 700px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 0; /* Assuming shared.css handles body padding */
    box-sizing: border-box;
}

.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: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    z-index: 2;
}

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

.page-fishing-games__hero-title {
    font-size: 58px;
    color: #FFFF00; /* Register/Login font color for impact */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-fishing-games__hero-description {
    font-size: 22px;
    color: #f0f0f0;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Introduction Section */
.page-fishing-games__introduction {
    padding: 80px 0;
}

/* Features Section */
.page-fishing-games__features {
    padding: 80px 0;
    background-color: #1a1a1a; /* A slightly lighter dark background for contrast */
}

.page-fishing-games__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-fishing-games__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-fishing-games__card-title {
    font-size: 24px;
    color: #017439; /* Brand color */
    margin-bottom: 15px;
}

.page-fishing-games__card-description {
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
}

/* Game Providers Section */
.page-fishing-games__game-providers {
    padding: 80px 0;
}

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

.page-fishing-games__list-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-fishing-games__list-item-title {
    font-size: 22px;
    color: #FFFF00; /* Register/Login font color for key titles */
    margin-bottom: 10px;
}

.page-fishing-games__list-item-description {
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
}

/* How To Play Section */
.page-fishing-games__how-to-play {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.page-fishing-games__steps-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-fishing-games__steps-list .page-fishing-games__list-item {
    position: relative;
    padding-left: 70px;
    text-align: left;
}

.page-fishing-games__steps-list .page-fishing-games__list-item::before {
    counter-increment: step-counter;
    content: "0" counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 48px;
    font-weight: bold;
    color: #017439; /* Brand color */
    line-height: 1;
}

.page-fishing-games__steps-list .page-fishing-games__list-item-title {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 10px;
}

/* Promotions Section */
.page-fishing-games__promotions {
    padding: 80px 0;
}

.page-fishing-games__promo-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-fishing-games__promo-title {
    font-size: 22px;
    color: #FFFF00; /* Register/Login font color */
    margin-bottom: 10px;
}

.page-fishing-games__promo-description {
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
    flex-grow: 1; /* Allow description to take available space */
}

/* Safety & Security Section */
.page-fishing-games__safety-security {
    padding: 80px 0;
    background-color: #1a1a1a;
}

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

.page-fishing-games__security-list .page-fishing-games__list-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

/* FAQ Section */
.page-fishing-games__faq {
    padding: 80px 0;
}

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

.page-fishing-games__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #017439; /* Brand color */
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-fishing-games__faq-title {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
}

.page-fishing-games__faq-toggle {
    font-size: 28px;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.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); /* Lighter background for answer */
    color: #e0e0e0;
}

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

.page-fishing-games__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #e0e0e0;
}
.page-fishing-games__faq-answer .page-fishing-games__inline-link {
    display: block;
    margin-top: 10px;
    text-align: left;
}


/* Final CTA Section */
.page-fishing-games__final-cta {
    padding: 80px 0;
    text-align: center;
}

/* Dark background sections */
.page-fishing-games__dark-section {
    background-color: #0d0d0d; /* A darker shade for differentiation */
}


/* Responsive Design */
/* Tablet and Mobile */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 48px;
    }
    .page-fishing-games__hero-description {
        font-size: 20px;
    }
    .page-fishing-games__section-title {
        font-size: 32px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
    }

    .page-fishing-games__hero-title {
        font-size: 38px;
    }

    .page-fishing-games__hero-description {
        font-size: 18px;
    }

    .page-fishing-games__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary,
    .page-fishing-games__btn-promo,
    .page-fishing-games a[class*="button"],
    .page-fishing-games a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-fishing-games__cta-buttons,
    .page-fishing-games__button-group,
    .page-fishing-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        overflow: hidden !important;
    }

    .page-fishing-games__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-fishing-games__text-block {
        font-size: 16px;
    }

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

    .page-fishing-games__grid {
        grid-template-columns: 1fr;
    }

    .page-fishing-games__card,
    .page-fishing-games__promo-card,
    .page-fishing-games__list-item {
        padding: 20px;
    }

    .page-fishing-games__card-image,
    .page-fishing-games__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px; /* Ensure minimum size */
        min-height: 200px; /* Ensure minimum size */
    }

    /* Content area images */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-fishing-games__steps-list .page-fishing-games__list-item {
        padding-left: 0;
        text-align: center;
    }

    .page-fishing-games__steps-list .page-fishing-games__list-item::before {
        position: static;
        display: block;
        margin-bottom: 10px;
    }

    .page-fishing-games__faq-question {
        padding: 15px 20px;
        font-size: 18px;
    }

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

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

/* Ensure content area images meet minimum size requirements */
.page-fishing-games__hero-image,
.page-fishing-games__card-image,
.page-fishing-games__promo-image,
.page-fishing-games img {
    min-width: 200px;
    min-height: 200px;
}

/* Specific CSS for content area images, ensuring min-width/height is respected */
/* This rule applies to any img within .page-fishing-games, regardless of specific class name */
.page-fishing-games img {
    /* Existing responsive rules */
    max-width: 100%;
    height: auto;
    display: block;
}