/* style/fishing-games.css */

/* Variables and base styles for the page */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-fishing-games {
    background-color: var(--color-background);
    color: var(--color-text-main);
    font-family: 'Arial', sans-serif; /* Placeholder font */
    line-height: 1.6;
}

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

/* Hero Section */
.page-fishing-games__hero-section {
    display: flex;
    flex-direction: column; /* Stack image and content vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small padding, body handles header offset */
    background-color: var(--color-background); /* Background for the whole section */
    padding-bottom: 60px;
}

.page-fishing-games__hero-visual {
    width: 100%;
    max-width: 1920px; /* Max width for the image */
    margin-bottom: 30px; /* Space between image and content */
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

.page-fishing-games__hero-content {
    max-width: 900px; /* Content width */
    padding: 0 20px; /* Adjust padding for content */
}

.page-fishing-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-fishing-games__main-description {
    font-size: 1.2rem;
    color: var(--color-text-main);
    margin-bottom: 30px;
}

.page-fishing-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller 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: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

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

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

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

.page-fishing-games__btn-secondary:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

/* Video Section */
.page-fishing-games__video-section {
    padding-top: 10px; /* Small padding, body handles header offset */
    padding-bottom: 80px;
    background-color: var(--color-background);
}

.page-fishing-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    width: 100%; /* desktop width */
    max-width: 1200px;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

.page-fishing-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

/* Section Common Styles */
.page-fishing-games__introduction-section,
.page-fishing-games__game-types-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__strategy-section,
.page-fishing-games__promotions-section,
.page-fishing-games__benefits-section,
.page-fishing-games__faq-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-fishing-games__card-bg {
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
}

.page-fishing-games__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--color-gold);
    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: var(--color-primary);
    border-radius: 2px;
}

.page-fishing-games__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

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

.page-fishing-games__game-card {
    background-color: var(--color-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    text-align: left;
}

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

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

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

.page-fishing-games__game-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    padding: 0 20px 20px 20px;
}

/* How-to-play Guide */
.page-fishing-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-fishing-games__guide-item {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.page-fishing-games__guide-title {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.page-fishing-games__guide-description {
    font-size: 1.1rem;
    color: var(--color-text-main);
}

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

.page-fishing-games__strategy-item {
    background-color: var(--color-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.page-fishing-games__strategy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

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

.page-fishing-games__strategy-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    padding: 0 20px 20px 20px;
}

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

.page-fishing-games__promotion-card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.page-fishing-games__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

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

.page-fishing-games__promotion-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    padding: 0 20px 20px 20px;
}

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

.page-fishing-games__benefits-item {
    background-color: var(--color-background);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 1px solid var(--color-border);
}

.page-fishing-games__benefits-title {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.page-fishing-games__benefits-description {
    font-size: 1.1rem;
    color: var(--color-text-main);
}

/* FAQ Section */
.page-fishing-games__faq-list {
    margin-top: 40px;
    text-align: left;
}

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

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-gold);
    cursor: pointer;
    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.8rem;
    line-height: 1;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

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

.page-fishing-games__faq-item[open] .page-fishing-games__faq-answer {
    max-height: 500px; /* Adjust as needed for content height */
    padding-top: 10px;
}

/* Ensure all images meet minimum size requirements */
.page-fishing-games img {
    min-width: 200px;
    min-height: 200px;
    filter: none; /* Ensure no filter on images */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-fishing-games__container {
        padding: 0 15px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-fishing-games__section-title {
        font-size: clamp(1.6rem, 4vw, 2.4rem);
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-content {
        padding: 0 15px;
    }
    .page-fishing-games__main-title {
        font-size: 2.2rem;
    }
    .page-fishing-games__main-description {
        font-size: 1rem;
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-fishing-games__introduction-section,
    .page-fishing-games__game-types-section,
    .page-fishing-games__how-to-play-section,
    .page-fishing-games__strategy-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__benefits-section,
    .page-fishing-games__faq-section {
        padding: 50px 0;
    }

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

    .page-fishing-games__text-block {
        font-size: 0.95rem;
    }

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

    .page-fishing-games__game-card,
    .page-fishing-games__strategy-item,
    .page-fishing-games__promotion-card,
    .page-fishing-games__benefits-item {
        margin: 0 15px; /* Add horizontal margin to cards */
        box-sizing: border-box;
    }

    .page-fishing-games__guide-item,
    .page-fishing-games__faq-item {
        margin: 0 15px 15px 15px;
        box-sizing: border-box;
    }

    /* All images must be responsive */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containing elements for images and video must be responsive */
    .page-fishing-games__hero-visual,
    .page-fishing-games__game-grid,
    .page-fishing-games__game-card,
    .page-fishing-games__strategy-grid,
    .page-fishing-games__strategy-item,
    .page-fishing-games__promotion-grid,
    .page-fishing-games__promotion-card,
    .page-fishing-games__benefits-list,
    .page-fishing-games__benefits-item,
    .page-fishing-games__guide-list,
    .page-fishing-games__guide-item,
    .page-fishing-games__faq-list,
    .page-fishing-games__faq-item,
    .page-fishing-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Ensure no horizontal overflow */
    }

    /* Specific padding for mobile sections */
    .page-fishing-games__hero-section,
    .page-fishing-games__video-section {
        padding-top: 10px !important; /* Small padding, body handles header offset */
    }

    .page-fishing-games__video-wrapper {
        margin: 20px auto !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Text contrast fix for mobile if needed, though dark background with light text should be fine */
    .page-fishing-games {
      font-size: 16px;
      line-height: 1.6;
    }
}