/* style/fishing-games.css */

/* Custom properties from palette */
:root {
    --fishing-games-primary-color: #11A84E;
    --fishing-games-secondary-color: #22C768;
    --fishing-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --fishing-games-card-bg: #11271B;
    --fishing-games-bg: #08160F;
    --fishing-games-text-main: #F2FFF6;
    --fishing-games-text-secondary: #A7D9B8;
    --fishing-games-border: #2E7A4E;
    --fishing-games-glow: #57E38D;
    --fishing-games-gold: #F2C14E;
    --fishing-games-divider: #1E3A2A;
    --fishing-games-deep-green: #0A4B2C;
}

.page-fishing-games {
    font-family: 'Arial', sans-serif;
    color: var(--fishing-games-text-main); /* Default text color for dark body bg */
    background-color: var(--fishing-games-bg); /* Ensure content section matches body bg or has appropriate contrast */
    line-height: 1.6;
    padding-bottom: 40px; /* Adjust as needed for footer */
}

/* Container for max-width and centering */
.page-fishing-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-fishing-games__hero-section,
.page-fishing-games__introduction-section,
.page-fishing-games__featured-games-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__benefits-section,
.page-fishing-games__promotions-section,
.page-fishing-games__faq-section,
.page-fishing-games__cta-banner-section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure no overflow */
}

/* Top padding for the first section, not var(--header-offset) */
.page-fishing-games__hero-section {
    padding-top: 10px; /* Small top padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: var(--fishing-games-text-main);
    background-color: var(--fishing-games-deep-green); /* Ensure a consistent background for hero */
}

.page-fishing-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3; /* Slightly dim the background image for text readability */
}

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

.page-fishing-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 */
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--fishing-games-gold); /* Gold for main title */
    line-height: 1.2;
    letter-spacing: 1px;
}

.page-fishing-games__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--fishing-games-text-secondary);
}

.page-fishing-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-fishing-games__btn-primary {
    background: var(--fishing-games-button-gradient);
    color: #ffffff;
    border: none;
}

.page-fishing-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-fishing-games__btn-secondary:hover {
    background: var(--fishing-games-gold);
    color: var(--fishing-games-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Section specific backgrounds */
.page-fishing-games__light-bg {
    background-color: var(--fishing-games-deep-green); /* Use deep green for contrast */
    color: var(--fishing-games-text-main);
}

.page-fishing-games__dark-section {
    background-color: var(--fishing-games-bg);
    color: var(--fishing-games-text-main);
}

.page-fishing-games__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--fishing-games-gold);
    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: var(--fishing-games-primary-color);
    border-radius: 2px;
}

.page-fishing-games__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--fishing-games-text-secondary);
}

.page-fishing-games__image-wrapper {
    margin: 40px auto;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__content-image {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

/* Featured Games */
.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-card {
    background-color: var(--fishing-games-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
    color: var(--fishing-games-text-main);
    border: 1px solid var(--fishing-games-border);
}

.page-fishing-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-fishing-games__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 20px 20px 10px;
    color: var(--fishing-games-gold);
}

.page-fishing-games__card-description {
    font-size: 0.95rem;
    margin: 0 20px 20px;
    flex-grow: 1; /* Push button to bottom */
    color: var(--fishing-games-text-secondary);
}

.page-fishing-games__card-button {
    margin: 0 20px 20px;
    align-self: flex-start; /* Align button to start */
}

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

.page-fishing-games__step-item {
    background-color: var(--fishing-games-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    color: var(--fishing-games-text-main);
    border: 1px solid var(--fishing-games-border);
}

.page-fishing-games__step-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--fishing-games-primary-color);
}

.page-fishing-games__step-description {
    font-size: 1rem;
    color: var(--fishing-games-text-secondary);
}

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

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

.page-fishing-games__benefit-card {
    background-color: var(--fishing-games-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: var(--fishing-games-text-main);
    border: 1px solid var(--fishing-games-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-fishing-games__benefit-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-fishing-games__benefit-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--fishing-games-primary-color);
}

.page-fishing-games__benefit-description {
    font-size: 0.95rem;
    color: var(--fishing-games-text-secondary);
}

/* Promotions Section */
.page-fishing-games__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__promo-item {
    background-color: var(--fishing-games-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
    border-left: 5px solid var(--fishing-games-gold);
    color: var(--fishing-games-text-main);
    border: 1px solid var(--fishing-games-border);
}

.page-fishing-games__promo-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--fishing-games-gold);
}

.page-fishing-games__promo-description {
    font-size: 1rem;
    color: var(--fishing-games-text-secondary);
}

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

.page-fishing-games__faq-item {
    background-color: var(--fishing-games-card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 1px solid var(--fishing-games-border);
    color: var(--fishing-games-text-main);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--fishing-games-primary-color);
    user-select: none;
    list-style: none; /* For details/summary */
}

.page-fishing-games__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details/summary */
}

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

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
    transform: rotate(45deg);
}

.page-fishing-games__faq-answer {
    padding: 0 25px 18px;
    font-size: 1rem;
    color: var(--fishing-games-text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-answer {
    max-height: 500px; /* Arbitrary large value */
    padding-top: 10px;
}

.page-fishing-games__faq-answer p {
    margin: 0;
    color: var(--fishing-games-text-secondary);
}

/* CTA Banner Section */
.page-fishing-games__cta-banner-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:cta_banner:1920x400:fishing_game_cta,98win8_register,bonus_offer]');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}

.page-fishing-games__cta-banner-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--fishing-games-text-main);
}

.page-fishing-games__cta-banner-content .page-fishing-games__section-title {
    color: var(--fishing-games-gold);
}

.page-fishing-games__cta-banner-button {
    margin-top: 20px;
    margin-left: 10px;
    margin-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-fishing-games__hero-content {
        padding: 15px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-fishing-games__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section,
    .page-fishing-games__introduction-section,
    .page-fishing-games__featured-games-section,
    .page-fishing-games__how-to-play-section,
    .page-fishing-games__benefits-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-banner-section {
        padding: 40px 0;
    }

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

    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        width: 100% !important; /* Ensure full width on mobile */
        padding: 12px 20px;
        font-size: 1rem;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0;
    }

    .page-fishing-games__game-list,
    .page-fishing-games__steps-list,
    .page-fishing-games__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__game-card,
    .page-fishing-games__step-item,
    .page-fishing-games__benefit-card,
    .page-fishing-games__promo-item,
    .page-fishing-games__faq-item {
        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;
        min-width: 200px !important; /* Ensure min size */
        min-height: 200px !important; /* Ensure min size */
    }

    .page-fishing-games__card-image {
        height: auto !important; /* Allow auto height for card images on mobile */
    }

    .page-fishing-games__benefit-icon {
        width: 150px !important;
        height: 150px !important;
        min-width: 150px !important;
        min-height: 150px !important;
    }

    /* Video and image containers for mobile responsiveness */
    .page-fishing-games__video-section,
    .page-fishing-games__video-container,
    .page-fishing-games__video-wrapper,
    .page-fishing-games__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-fishing-games__video-section {
        padding-top: 10px !important; /* Small top padding */
    }
}

/* Ensure all links have appropriate color */
.page-fishing-games a {
    color: var(--fishing-games-gold); /* Default link color */
    text-decoration: none;
}

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

/* Contrast fix if needed (though colors are designed for contrast) */
.page-fishing-games__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-fishing-games__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}