/* style/fishing-games.css */

/* Variables for colors, derived from the provided palette */
:root {
    --page-bg-color: #08160F; /* Background */
    --card-bg-color: #11271B; /* Card B G */
    --text-main-color: #F2FFF6; /* Text Main */
    --text-secondary-color: #A7D9B8; /* Text Secondary */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green-color: #0A4B2C; /* Deep Green */
    --primary-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --primary-color: #11A84E; /* Main color */
    --secondary-color: #22C768; /* Auxiliary color */
}

.page-fishing-games {
    background-color: var(--page-bg-color);
    color: var(--text-main-color); /* Ensure text is visible on dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
}

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

.page-fishing-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for text readability */
}

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

.page-fishing-games__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive H1 size */
    color: var(--text-main-color);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary-color);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-fishing-games__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
    justify-content: center;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container does not overflow */
    box-sizing: border-box;
    overflow: hidden;
}

.page-fishing-games__cta-buttons--center {
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-fishing-games__btn-primary {
    background: var(--primary-button-gradient);
    color: var(--text-main-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-fishing-games__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-fishing-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-fishing-games__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

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

.page-fishing-games__image-content {
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    max-width: 100%; /* Ensure images are responsive */
    height: auto; /* Maintain aspect ratio */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Card Styles */
.page-fishing-games__card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--text-main-color);
}

.page-fishing-games__card-title {
    font-size: 1.5rem;
    color: var(--text-main-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-fishing-games__card-text {
    font-size: 1rem;
    color: var(--text-secondary-color);
    line-height: 1.5;
}

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

/* Intro Section */
.page-fishing-games__intro-section {
    background-color: var(--page-bg-color);
    padding: 60px 0;
}

/* Features Section */
.page-fishing-games__features-section {
    background-color: #0d1a15; /* Slightly lighter dark background for contrast */
    padding: 60px 0;
}

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

/* Promotion Section */
.page-fishing-games__promotion-section {
    background-color: var(--page-bg-color);
    padding: 60px 0;
}

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

.page-fishing-games__promotion-card {
    text-align: center;
}

/* Strategy Section */
.page-fishing-games__strategy-section {
    background-color: #0d1a15; /* Slightly lighter dark background for contrast */
    padding: 60px 0;
}

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

/* Video Section */
.page-fishing-games__video-section {
    background-color: var(--page-bg-color);
    padding: 60px 0;
    text-align: center;
}

.page-fishing-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px; /* Max width for the video */
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    width: 100%; /* Crucial for desktop width */
}

.page-fishing-games__video-link {
    display: block; /* Make the whole area clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-fishing-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Ensure it behaves as a block element */
}

/* FAQ Section */
.page-fishing-games__faq-section {
    background-color: #0d1a15; /* Slightly lighter dark background for contrast */
    padding: 60px 0;
}

.page-fishing-games__faq-list {
    margin-top: 40px;
}

.page-fishing-games__faq-item {
    margin-bottom: 20px;
    overflow: hidden;
    color: var(--text-main-color);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    background-color: var(--deep-green-color); /* Darker green for question background */
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.page-fishing-games__faq-question:hover {
    background-color: var(--primary-color);
}

.page-fishing-games__faq-qtext {
    flex-grow: 1;
    color: var(--text-main-color);
}

.page-fishing-games__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 20px;
    color: var(--gold-color);
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-fishing-games__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary-color);
    background-color: var(--card-bg-color); /* Same as card background */
    border-top: 1px solid var(--divider-color);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    animation: fadein 0.3s ease-out;
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ensure details summary marker is hidden */
.page-fishing-games__faq-item summary {
    list-style: none;
}
.page-fishing-games__faq-item summary::-webkit-details-marker {
    display: none;
}

/* Final CTA Section */
.page-fishing-games__cta-final-section {
    background-color: var(--page-bg-color);
    padding: 80px 0;
    text-align: center;
}

/* Utility classes for dark/light backgrounds to ensure contrast */
.page-fishing-games__dark-section {
    background-color: var(--page-bg-color);
    color: var(--text-main-color);
}

.page-fishing-games__light-bg {
    background-color: #ffffff; /* Example light background */
    color: #333333;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-fishing-games__hero-content {
        padding: 15px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-fishing-games__subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
    .page-fishing-games__section-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 16px; /* Mobile readability */
        line-height: 1.6;
    }
    .page-fishing-games__hero-section {
        padding-bottom: 40px;
    }
    .page-fishing-games__hero-content {
        padding: 15px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-fishing-games__subtitle {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        width: 100% !important; /* Force full width */
        max-width: 100% !important;
        padding: 12px 15px !important;
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-fishing-games__container {
        padding: 30px 15px;
    }
    .page-fishing-games__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }
    .page-fishing-games__text-block {
        font-size: 1rem;
    }
    .page-fishing-games__card {
        padding: 20px;
    }
    .page-fishing-games__card-title {
        font-size: 1.3rem;
    }
    .page-fishing-games__card-text {
        font-size: 0.95rem;
    }

    /* Mobile image responsiveness */
    .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__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, this is small visual top padding */
    }

    /* Mobile video responsiveness */
    .page-fishing-games video,
    .page-fishing-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-fishing-games__video-section,
    .page-fishing-games__video-container,
    .page-fishing-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-fishing-games__video-section {
        padding-top: 10px !important; /* Small top padding for video section */
    }
    .page-fishing-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-fishing-games__feature-grid,
    .page-fishing-games__promotion-cards,
    .page-fishing-games__strategy-grid {
        grid-template-columns: 1fr;
    }
    .page-fishing-games__card-image {
        height: auto; /* Allow image to scale on mobile */
    }
    .page-fishing-games__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-fishing-games__faq-answer {
        padding: 15px 20px;
    }
}