/* style/fishing-games.css */

/* Base styles for the page content, considering body background is #0a0a0a (dark) */
.page-fishing-games {
    color: #ffffff; /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Inherit from body or shared, ensuring text contrast */
}

/* Section common styles */
.page-fishing-games__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Default for dark sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-fishing-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add padding for mobile content safety */
    box-sizing: border-box;
}

.page-fishing-games__sub-title {
    font-size: 1.8em;
    color: #ffffff; /* Default for dark sections */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__text-block {
    padding: 20px 0;
}

/* Color contrast classes for sections */
.page-fishing-games__dark-bg {
    background-color: #0a0a0a; /* Ensure consistency with body background */
    color: #ffffff;
    padding: 60px 0;
}

.page-fishing-games__light-bg {
    background-color: #ffffff; /* Explicitly light background */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-fishing-games__text-contrast-fix {
    color: #333333; /* Ensure text is dark on light background */
}

/* Links within sections */
.page-fishing-games__dark-bg a {
    color: #FFFF00; /* Yellow for links on dark background for contrast */
    text-decoration: underline;
}
.page-fishing-games__light-bg a {
    color: #017439; /* Brand green for links on light background */
    text-decoration: underline;
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    box-sizing: border-box;
}

.page-fishing-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-fishing-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-fishing-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-fishing-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
}

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

/* Buttons */
.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 are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-fishing-games__btn-primary {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-fishing-games__btn-primary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-fishing-games__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-fishing-games__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Specific button colors for Register/Login */
.page-fishing-games__btn-register {
    background-color: #C30808; /* Custom Register color */
    border-color: #C30808;
    color: #FFFF00; /* Custom font color for Register */
}

.page-fishing-games__btn-register:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-fishing-games__btn-login {
    background-color: #C30808; /* Custom Login color */
    border-color: #C30808;
    color: #FFFF00; /* Custom font color for Login */
}

.page-fishing-games__btn-login:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-fishing-games__btn-small {
    padding: 10px 20px;
    font-size: 1em;
}

.page-fishing-games__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Game Showcase Section */
.page-fishing-games__games-showcase {
    padding-bottom: 80px;
}

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

.page-fishing-games__game-card {
    background-color: #ffffff; /* White card background */
    color: #333333; /* Dark text for card */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
}

.page-fishing-games__game-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-fishing-games__game-card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #017439; /* Brand color for titles on light background */
}

.page-fishing-games__game-card-description {
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Guide Section */
.page-fishing-games__guide-steps {
    display: grid;
    grid-template-columns: 1fr; /* Single column by default */
    gap: 40px;
    margin-top: 40px;
}

.page-fishing-games__guide-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.page-fishing-games__guide-item .page-fishing-games__sub-title {
    color: #ffffff;
}

.page-fishing-games__guide-item p {
    margin-bottom: 20px;
}

.page-fishing-games__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
}

/* 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-card {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-fishing-games__strategy-card-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
    padding-bottom: 80px;
}

.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 {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
}

.page-fishing-games__promotion-card-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-fishing-games__promotion-card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-fishing-games__promotion-card-description {
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* 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: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-fishing-games__benefit-card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-fishing-games__benefit-card-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
}

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

.page-fishing-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

.page-fishing-games__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-fishing-games__faq-title {
    margin: 0;
    color: #ffffff;
}

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

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

/* Conclusion Section */
.page-fishing-games__conclusion-section {
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}

.page-fishing-games__conclusion-section .page-fishing-games__section-description {
    margin-bottom: 30px;
}

/* Global image styles */
.page-fishing-games img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents extra space below images */
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .page-fishing-games__guide-steps {
        grid-template-columns: repeat(2, 1fr); /* Two columns for larger screens */
    }
}

@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 2.8em;
    }
    .page-fishing-games__hero-description {
        font-size: 1.1em;
    }
    .page-fishing-games__section-title {
        font-size: 2em;
    }
    .page-fishing-games__sub-title {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
    }
    .page-fishing-games__hero-title {
        font-size: 2.2em;
    }
    .page-fishing-games__hero-description {
        font-size: 1em;
    }
}