/* style/fishing-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-on-dark: #FFFFFF;
    --text-on-light: #333333;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-text-color: #FFFFFF;
    --background-light: #f8f8f8;
    --background-dark: #0a0a0a;
}

.page-fishing-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark); /* Body background is dark, so default text is light */
    background-color: var(--background-dark);
}

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

/* Hero Section */
.page-fishing-games__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background-color: var(--background-dark);
    color: var(--text-on-dark);
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-fishing-games__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-fishing-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.page-fishing-games__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-width: 1000px;
    margin-top: 40px;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-fishing-games__about-section, 
.page-fishing-games__games-showcase, 
.page-fishing-games__tips-section, 
.page-fishing-games__promotions-section {
    background-color: var(--background-light);
    color: var(--text-on-light);
    padding: 60px 20px;
}

.page-fishing-games__why-choose-section, 
.page-fishing-games__how-to-play-section, 
.page-fishing-games__security-section, 
.page-fishing-games__faq-section, 
.page-fishing-games__cta-final-section {
    background-color: var(--background-dark);
    color: var(--text-on-dark);
    padding: 60px 20px;
}

.page-fishing-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    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(--primary-color);
    border-radius: 2px;
}

.page-fishing-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: inherit;
}

.page-fishing-games__text-block a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 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;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow word breaking */
}

.page-fishing-games__btn-primary {
    background-color: var(--button-register-bg); /* #C30808 */
    color: var(--button-text-color); /* #FFFFFF for contrast */
    border: 2px solid var(--button-register-bg);
}

.page-fishing-games__btn-primary:hover {
    background-color: darken(var(--button-register-bg), 10%); /* Assuming a darken function, or a slightly darker hex */
    border-color: darken(var(--button-register-bg), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

/* Why Choose Section */
.page-fishing-games__why-choose-section .page-fishing-games__section-title {
    color: var(--secondary-color);
}

.page-fishing-games__why-choose-section .page-fishing-games__section-title::after {
    background-color: var(--secondary-color);
}

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

.page-fishing-games__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-fishing-games__feature-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-fishing-games__feature-description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

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

/* Games Showcase Section */
.page-fishing-games__games-showcase .page-fishing-games__section-title {
    color: var(--primary-color);
}

.page-fishing-games__games-showcase .page-fishing-games__section-title::after {
    background-color: var(--primary-color);
}

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

.page-fishing-games__card {
    background-color: var(--secondary-color);
    color: var(--text-on-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-fishing-games__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-fishing-games__card-title {
    font-size: 1.5em;
    margin: 20px 20px 10px 20px;
    color: var(--primary-color);
}

.page-fishing-games__card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-fishing-games__card-title a:hover {
    text-decoration: underline;
}

.page-fishing-games__card-description {
    font-size: 0.95em;
    padding: 0 20px 20px 20px;
    flex-grow: 1;
}

.page-fishing-games__card-button {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px 20px;
    padding: 12px 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-fishing-games__card-button:hover {
    background-color: darken(var(--primary-color), 10%);
}

/* How to Play Section */
.page-fishing-games__how-to-play-section .page-fishing-games__section-title {
    color: var(--secondary-color);
}

.page-fishing-games__how-to-play-section .page-fishing-games__section-title::after {
    background-color: var(--secondary-color);
}

.page-fishing-games__numbered-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin-top: 30px;
}

.page-fishing-games__numbered-list li {
    margin-bottom: 30px;
    padding-left: 60px;
    position: relative;
}

.page-fishing-games__numbered-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.page-fishing-games__numbered-list li p {
    color: rgba(255, 255, 255, 0.8);
}

.page-fishing-games__video-section {
    margin-top: 60px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.page-fishing-games__video-title {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.page-fishing-games__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 0 auto 20px auto;
    max-width: 800px; /* Max width for video */
    border-radius: 8px;
}

.page-fishing-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

.page-fishing-games__video-description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
}

/* Tips Section */
.page-fishing-games__tips-section .page-fishing-games__section-title {
    color: var(--primary-color);
}

.page-fishing-games__tips-section .page-fishing-games__section-title::after {
    background-color: var(--primary-color);
}

.page-fishing-games__bullet-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-fishing-games__bullet-list li {
    margin-bottom: 20px;
    padding-left: 40px;
    position: relative;
}

.page-fishing-games__bullet-list li::before {
    content: '★'; /* Star icon */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-size: 1.5em;
    line-height: 1;
}

.page-fishing-games__bullet-list li p {
    color: var(--text-on-light);
}

/* Security Section */
.page-fishing-games__security-section .page-fishing-games__section-title {
    color: var(--secondary-color);
}

.page-fishing-games__security-section .page-fishing-games__section-title::after {
    background-color: var(--secondary-color);
}

.page-fishing-games__security-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-fishing-games__security-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__security-text {
    text-align: justify;
    color: rgba(255, 255, 255, 0.8);
}

/* Promotions Section */
.page-fishing-games__promotions-section .page-fishing-games__section-title {
    color: var(--primary-color);
}

.page-fishing-games__promotions-section .page-fishing-games__section-title::after {
    background-color: var(--primary-color);
}

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

/* FAQ Section */
.page-fishing-games__faq-section .page-fishing-games__section-title {
    color: var(--secondary-color);
}

.page-fishing-games__faq-section .page-fishing-games__section-title::after {
    background-color: var(--secondary-color);
}

.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;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
    background-color: var(--primary-color);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

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

.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); /* Change + to X or similar */
}

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 20px;
}

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

/* Final CTA Section */
.page-fishing-games__cta-final-section {
    text-align: center;
    padding: 80px 20px;
}

.page-fishing-games__cta-final-section .page-fishing-games__section-title {
    color: var(--secondary-color);
}

.page-fishing-games__cta-final-section .page-fishing-games__section-title::after {
    background-color: var(--secondary-color);
}

.page-fishing-games__cta-content {
    max-width: 800px;
}

.page-fishing-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__hero-section {
        padding: 60px 20px;
    }
    .page-fishing-games__main-title {
        font-size: 3em;
    }
    .page-fishing-games__section-title {
        font-size: 2em;
    }
    .page-fishing-games__hero-image-wrapper {
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-fishing-games__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
    }
    .page-fishing-games__main-title {
        font-size: 2.2em;
    }
    .page-fishing-games__hero-description {
        font-size: 1em;
    }
    .page-fishing-games__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-fishing-games__btn-primary, .page-fishing-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 15px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-fishing-games__section-title {
        font-size: 1.8em;
    }
    .page-fishing-games__features-grid, .page-fishing-games__game-cards, .page-fishing-games__promo-cards {
        grid-template-columns: 1fr;
    }
    .page-fishing-games__feature-item, .page-fishing-games__card {
        padding: 20px;
    }
    .page-fishing-games__card-image {
        height: auto;
        min-height: 200px; /* Ensure minimum size */
    }
    .page-fishing-games__numbered-list li, .page-fishing-games__bullet-list li {
        padding-left: 0;
    }
    .page-fishing-games__numbered-list li::before, .page-fishing-games__bullet-list li::before {
        position: static;
        margin-right: 10px;
        display: inline-flex;
        vertical-align: middle;
    }
    .page-fishing-games__video-wrapper {
        padding-bottom: 75%; /* Adjust for 4:3 or similar for better mobile fit if needed, or keep 16:9 */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-fishing-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-fishing-games__security-content {
        flex-direction: column;
    }
    .page-fishing-games__security-image {
        max-width: 100%;
    }
    .page-fishing-games__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-fishing-games__faq-answer {
        padding: 0 15px;
    }
    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 15px;
    }
    .page-fishing-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-fishing-games__section, .page-fishing-games__card, .page-fishing-games__container, .page-fishing-games__hero-section, .page-fishing-games__video-section, .page-fishing-games__video-container, .page-fishing-games__video-wrapper, .page-fishing-games__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-fishing-games__main-title {
        font-size: 1.8em;
    }
    .page-fishing-games__section-title {
        font-size: 1.5em;
    }
    .page-fishing-games__hero-buttons {
        gap: 10px;
    }
    .page-fishing-games__faq-question {
        font-size: 0.9em;
    }
}

/* Color Contrast Fixes (if needed) */
.page-fishing-games__dark-bg h2, .page-fishing-games__dark-bg h3 {
    color: var(--secondary-color); /* Ensure headings are light on dark background */
}

.page-fishing-games__dark-bg p, .page-fishing-games__dark-bg li {
    color: rgba(255, 255, 255, 0.9); /* Ensure paragraphs are light on dark background */
}

.page-fishing-games__light-bg h2, .page-fishing-games__light-bg h3 {
    color: var(--primary-color); /* Ensure headings are primary color on light background */
}

.page-fishing-games__light-bg p, .page-fishing-games__light-bg li {
    color: var(--text-on-light); /* Ensure paragraphs are dark on light background */
}

/* Specific contrast for custom button colors */
.page-fishing-games__btn-primary {
    background-color: #C30808; /* Register/Login BG */
    color: #FFFFFF; /* White text for contrast */
    border-color: #C30808;
}

.page-fishing-games__btn-primary:hover {
    background-color: #a30707; /* Darker red */
    border-color: #a30707;
}