/* style/fishing-games.css */

/* Base styles for the page content */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background: #FFFFFF; /* Default body background is light */
}

/* Ensure all images are responsive by default */
.page-fishing-games img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents extra space below images */
}

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

/* Section titles */
.page-fishing-games__section-title {
    font-size: clamp(28px, 4vw, 42px); /* Responsive font size */
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Brand primary color for titles */
    line-height: 1.2;
}

.page-fishing-games__section-title--white {
    color: #FFFFFF;
}

/* Descriptions */
.page-fishing-games__description {
    font-size: 18px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    color: #333333;
}

.page-fishing-games__description--white {
    color: #f0f0f0;
}

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-fishing-games__btn-primary {
    background: #C30808; /* Custom color for primary action (Register/Login) */
    color: #FFFF00; /* Custom font color for primary button */
    border: 2px solid #C30808;
    box-shadow: 0 4px 15px rgba(195, 8, 8, 0.3);
}

.page-fishing-games__btn-primary:hover {
    background: #e00b0b;
    border-color: #e00b0b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(195, 8, 8, 0.4);
}

.page-fishing-games__btn-secondary {
    background: #017439; /* Brand primary color */
    color: #FFFFFF; /* White text for contrast */
    border: 2px solid #017439;
    box-shadow: 0 4px 15px rgba(1, 116, 57, 0.2);
}

.page-fishing-games__btn-secondary:hover {
    background: #005a2d;
    border-color: #005a2d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 116, 57, 0.3);
}

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

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

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding for hero section */
    overflow: hidden;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    background-color: #017439; /* Fallback background */
}

.page-fishing-games__hero-image {
    width: 100%;
    max-height: 675px; /* Max height for desktop hero */
    overflow: hidden;
    position: relative;
    z-index: 1; /* Ensure image is below content for visual stacking, but content is not overlapping */
}

.page-fishing-games__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, may crop sides */
    display: block;
}

.page-fishing-games__hero-content {
    position: relative; /* Relative positioning for content below image */
    z-index: 2;
    padding: 60px 20px;
    text-align: center;
    width: 100%;
    background: #FFFFFF; /* Light background for content */
    color: #333333;
    box-sizing: border-box;
}

.page-fishing-games__main-title {
    font-size: clamp(36px, 5vw, 56px); /* Responsive font size for H1 */
    font-weight: 800;
    margin-bottom: 20px;
    color: #017439; /* Brand primary color */
    line-height: 1.1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section (Features Grid) */
.page-fishing-games__about-section {
    padding: 80px 0;
    background: #f8f8f8; /* Light background */
}

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

.page-fishing-games__feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #FFFFFF;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-fishing-games__feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-fishing-games__feature-card img {
    width: 100%;
    height: 200px; /* Fixed height for feature images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.page-fishing-games__card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #017439;
    line-height: 1.3;
}

.page-fishing-games__feature-card p {
    font-size: 16px;
    color: #555555;
    flex-grow: 1; /* Allow paragraph to grow */
}

/* Popular Games Section */
.page-fishing-games__popular-games-section {
    padding: 80px 0;
    background: #017439; /* Brand primary color for dark section */
    color: #FFFFFF;
}

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

.page-fishing-games__game-card {
    background: #FFFFFF;
    color: #333333;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-fishing-games__game-card .page-fishing-games__card-title {
    color: #017439;
    margin-bottom: 10px;
}

.page-fishing-games__game-card p {
    font-size: 15px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-fishing-games__game-card .page-fishing-games__btn-primary {
    padding: 10px 25px;
    font-size: 16px;
    width: fit-content;
    margin-top: auto; /* Push button to the bottom */
}

/* How to Play Section (Article Body) */
.page-fishing-games__how-to-play-section,
.page-fishing-games__tips-strategies-section {
    padding: 80px 0;
    background: #FFFFFF;
}

.page-fishing-games__article-body {
    max-width: 900px;
    margin: 50px auto 0;
    font-size: 17px;
    color: #333333;
    line-height: 1.7;
    text-align: justify;
}

.page-fishing-games__article-body p {
    margin-bottom: 20px;
}

.page-fishing-games__article-body h3.page-fishing-games__article-subtitle {
    font-size: 26px;
    font-weight: 700;
    color: #017439;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.page-fishing-games__article-body ul.page-fishing-games__bullet-list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-fishing-games__article-body ul.page-fishing-games__bullet-list li {
    margin-bottom: 10px;
}

.page-fishing-games__article-body a {
    color: #017439;
    text-decoration: underline;
}

.page-fishing-games__article-body a:hover {
    color: #005a2d;
}

.page-fishing-games__article-figure {
    margin: 30px 0;
    text-align: center;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.page-fishing-games__article-figure img {
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-fishing-games__article-figure figcaption {
    margin-top: 15px;
    font-size: 15px;
    color: #666;
    font-style: italic;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
    padding: 80px 0;
    background: #017439;
    color: #FFFFFF;
}

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

.page-fishing-games__promotion-card {
    background: #FFFFFF;
    color: #333333;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-fishing-games__promotion-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-fishing-games__promotion-card .page-fishing-games__card-title {
    color: #017439;
    margin-bottom: 10px;
}

.page-fishing-games__promotion-card p {
    font-size: 15px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-fishing-games__promotion-card .page-fishing-games__btn-primary {
    padding: 10px 25px;
    font-size: 16px;
    width: fit-content;
    margin-top: auto;
}

/* FAQ Section */
.page-fishing-games__faq-section {
    padding: 80px 0;
    background: #f8f8f8; /* Light background */
}

details.page-fishing-games__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    font-size: 18px; /* Slightly larger for questions */
    font-weight: 600;
    color: #333333;
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question::-webkit-details-marker {
    display: none;
}
details.page-fishing-games__faq-item summary.page-fishing-games__faq-question:hover {
    background: #f5f5f5;
}
.page-fishing-games__faq-qtext {
    flex: 1;
    font-size: 16px; /* Actual text size */
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #017439; /* Brand color for question text */
}
.page-fishing-games__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    font-size: 16px;
    color: #555555;
}
.page-fishing-games__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .page-fishing-games__container {
        padding: 20px 15px;
    }
    .page-fishing-games__section-title {
        font-size: clamp(26px, 3.5vw, 38px);
        margin-bottom: 30px;
    }
    .page-fishing-games__description {
        font-size: 16px;
        margin-bottom: 40px;
    }
    .page-fishing-games__hero-content {
        padding: 40px 15px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(32px, 4.5vw, 48px);
    }
    .page-fishing-games__cta-buttons {
        gap: 15px;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-fishing-games__feature-card img,
    .page-fishing-games__game-card img,
    .page-fishing-games__promotion-card img {
         /* Adjust image heights for tablet */
    }
    .page-fishing-games__card-title {
        font-size: 22px;
    }
    .page-fishing-games__feature-card p {
        font-size: 16px;
    }
    .page-fishing-games__article-body {
        font-size: 16px;
    }
    .page-fishing-games__article-body h3.page-fishing-games__article-subtitle {
        font-size: 24px;
    }
    details.page-fishing-games__faq-item summary.page-fishing-games__faq-question {
        padding: 15px 18px;
        font-size: 16px;
    }
    .page-fishing-games__faq-qtext {
        font-size: 15px;
    }
    .page-fishing-games__faq-toggle {
        font-size: 22px;
        width: 26px;
    }
    details.page-fishing-games__faq-item .page-fishing-games__faq-answer {
        padding: 0 18px 18px;
        font-size: 15px;
    }
}

@media (max-width: 849px) {
    .page-fishing-games__hero-image img {
        object-fit: contain !important; /* Prevent cropping on smaller screens */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
        height: auto !important; /* Allow height to adjust automatically */
    }
}

@media (max-width: 768px) {
    /* General content area padding */
    .page-fishing-games__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* Section titles */
    .page-fishing-games__section-title {
        font-size: clamp(24px, 6vw, 32px);
        margin-bottom: 25px;
    }

    /* Hero Section */
    .page-fishing-games__hero-section {
        padding-top: 10px;
        margin-bottom: 40px;
    }
    .page-fishing-games__hero-content {
        padding: 30px 15px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(28px, 7vw, 40px);
        margin-bottom: 15px;
    }
    .page-fishing-games__description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        margin-top: 25px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
}