/* style/fishing-games.css */

/* Base styles for the page content */
.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Inherit body background #1a1a2e */
    padding-bottom: 60px; /* Space above footer */
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #017439, #004d2e); /* Brand color gradient */
    overflow: hidden; /* For video/image overflow */
}

.page-fishing-games__hero-content {
    max-width: 900px;
    margin-bottom: 40px;
    z-index: 10;
}

.page-fishing-games__hero-title {
    font-size: 3.2em;
    color: #FFFF00; /* Yellow for title emphasis */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-fishing-games__hero-description {
    font-size: 1.2em;
    color: #ffffff;
    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.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

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

.page-fishing-games__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808; /* Red font on hover */
    transform: translateY(-2px);
}

.page-fishing-games__hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px; /* Max width for the video */
    margin-top: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 5;
}

.page-fishing-games__video-link {
    display: block;
    cursor: pointer;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.page-fishing-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* General Section Styling */
.page-fishing-games__section-title {
    font-size: 2.5em;
    color: #FFFF00; /* Yellow for section titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 60px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

/* Feature Section */
.page-fishing-games__features-section {
    padding: 60px 20px;
    background-color: #1a1a2e; /* Dark background */
}

.page-fishing-games__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-fishing-games__feature-card {
    background-color: #2a2a4a; /* Slightly lighter dark background for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-fishing-games__feature-card:hover {
    transform: translateY(-5px);
}

.page-fishing-games__feature-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

.page-fishing-games__feature-title {
    font-size: 1.5em;
    color: #017439; /* Brand green for sub-titles */
    margin-bottom: 15px;
}

.page-fishing-games__feature-text {
    font-size: 1em;
    color: #e0e0e0;
}

/* Games Showcase Section */
.page-fishing-games__games-showcase {
    padding: 60px 20px;
    background-color: #0d0d1e; /* Even darker background */
}

.page-fishing-games__game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-fishing-games__game-card {
    background-color: #2a2a4a; /* Card background */
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-fishing-games__game-card:hover {
    transform: translateY(-5px);
}

.page-fishing-games__game-image {
    width: 100%;
    height: 280px; /* Fixed height for game images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-fishing-games__game-title {
    font-size: 1.6em;
    color: #017439; /* Brand green */
    margin-bottom: 10px;
}

.page-fishing-games__game-description {
    font-size: 0.95em;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1; /* Make description take available space */
}

/* Guide Section */
.page-fishing-games__guide-section {
    padding: 60px 20px;
    background-color: #1a1a2e; /* Dark background */
}

.page-fishing-games__guide-steps {
    max-width: 900px;
    margin: 0 auto;
}

.page-fishing-games__guide-step {
    background-color: #2a2a4a; /* Card background */
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-fishing-games__guide-step-title {
    font-size: 1.8em;
    color: #FFFF00; /* Yellow for step titles */
    margin-bottom: 15px;
}

.page-fishing-games__guide-step-text {
    font-size: 1.1em;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.page-fishing-games__guide-image {
    width: 100%;
    height: 350px; /* Fixed height for guide images */
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Tips Section */
.page-fishing-games__tips-section {
    padding: 60px 20px;
    background-color: #0d0d1e; /* Even darker background */
}

.page-fishing-games__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-fishing-games__tip-card {
    background-color: #2a2a4a; /* Card background */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.page-fishing-games__tip-title {
    font-size: 1.4em;
    color: #017439; /* Brand green */
    margin-bottom: 10px;
}

.page-fishing-games__tip-text {
    font-size: 1em;
    color: #e0e0e0;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
    padding: 60px 20px;
    background-color: #1a1a2e; /* Dark background */
}

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

.page-fishing-games__promotion-card {
    background-color: #2a2a4a; /* Card background */
    padding: 25px;
    border-radius: 10px;
    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__promotion-image {
    width: 100%;
    height: 200px; /* Fixed height for promo images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-fishing-games__promotion-title {
    font-size: 1.5em;
    color: #017439; /* Brand green */
    margin-bottom: 10px;
}

.page-fishing-games__promotion-text {
    font-size: 1em;
    color: #e0e0e0;
    flex-grow: 1;
}

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

/* FAQ Section */
.page-fishing-games__faq-section {
    padding: 60px 20px;
    background-color: #0d0d1e; /* Even darker background */
}

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

.page-fishing-games__faq-item {
    background-color: #2a2a4a; /* Card background */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

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

.page-fishing-games__faq-question:hover {
    background-color: #005f31;
}

.page-fishing-games__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #ffffff; /* White text on green background */
}

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

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

.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: #2a2a4a; /* Answer background */
    color: #e0e0e0;
}

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

.page-fishing-games__faq-answer p {
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 2.8em;
    }
    .page-fishing-games__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* General mobile padding */
    .page-fishing-games__hero-section,
    .page-fishing-games__features-section,
    .page-fishing-games__games-showcase,
    .page-fishing-games__guide-section,
    .page-fishing-games__tips-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__faq-section {
        padding: 40px 15px;
    }

    /* Hero */
    .page-fishing-games__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-fishing-games__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-fishing-games__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin: 0 auto;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        width: 100% !important; /* Force full width for buttons */
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsiveness */
    .page-fishing-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-fishing-games__feature-image,
    .page-fishing-games__game-image,
    .page-fishing-games__guide-image,
    .page-fishing-games__promotion-image {
        height: auto !important; /* Override fixed height for responsiveness */
        max-height: 250px; /* Max height to prevent excessively tall images */
    }

    /* 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__hero-video-wrapper,
    .page-fishing-games__video-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* Card adjustments */
    .page-fishing-games__feature-card,
    .page-fishing-games__game-card,
    .page-fishing-games__guide-step,
    .page-fishing-games__tip-card,
    .page-fishing-games__promotion-card {
        padding: 20px;
    }
    .page-fishing-games__feature-title,
    .page-fishing-games__game-title,
    .page-fishing-games__tip-title,
    .page-fishing-games__promotion-title {
        font-size: 1.3em;
    }
    .page-fishing-games__section-title {
        font-size: 1.8em;
    }
    .page-fishing-games__section-description {
        font-size: 0.95em;
    }

    /* Ensure content containers don't overflow */
    .page-fishing-games__features-grid,
    .page-fishing-games__game-cards-grid,
    .page-fishing-games__guide-steps,
    .page-fishing-games__tips-grid,
    .page-fishing-games__promotion-cards-grid,
    .page-fishing-games__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* Specific content area image rules */
    .page-fishing-games__hero-section img,
    .page-fishing-games__features-section img,
    .page-fishing-games__games-showcase img,
    .page-fishing-games__guide-section img,
    .page-fishing-games__tips-section img,
    .page-fishing-games__promotions-section img,
    .page-fishing-games__faq-section img {
      min-width: 200px !important; /* Enforce minimum size for content images */
      min-height: 200px !important;
    }
}

@media (max-width: 480px) {
    .page-fishing-games__hero-title {
        font-size: 1.8em;
    }
    .page-fishing-games__section-title {
        font-size: 1.6em;
    }
    .page-fishing-games__hero-description {
        font-size: 0.9em;
    }
}