/* style/fishing-games.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-btn-bg: #B00000; /* Adjusted for contrast */
    --login-btn-bg: #B00000; /* Adjusted for contrast */
    --btn-text-color: #FFFFFF; /* Ensures contrast on red buttons */
    --dark-text-color: #FFFFFF; /* For text on dark backgrounds */
    --light-text-color: #000000; /* For text on light backgrounds */
    --card-bg: #FFFFFF;
    --section-bg-dark: #1a1a1a; /* Assuming --dark-bg-1 is dark */
    --section-bg-light: #f8f8f8;
}

.page-fishing-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-text-color); /* Default text color for dark body background */
    background-color: var(--dark-bg-1); /* Inherited from shared.css */
}

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

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 70vh;
    background-color: rgba(0, 0, 0, 0.7); /* Overlay for video */
    color: var(--dark-text-color);
    padding: 60px 20px;
    box-sizing: border-box;
}

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

.page-fishing-games__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    background-color: rgba(0, 0, 0, 0.5); /* Slightly darker overlay for text readability */
    padding: 30px;
    border-radius: 10px;
}

.page-fishing-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-fishing-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

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

/* General Section Styles */
.page-fishing-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

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

.page-fishing-games__dark-section {
    background-color: var(--section-bg-dark);
    color: var(--dark-text-color);
    padding: 60px 0;
}

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

.page-fishing-games__intro-section,
.page-fishing-games__guide-section,
.page-fishing-games__features-section,
.page-fishing-games__faq-section {
    padding: 60px 0;
}

/* 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;
    transition: all 0.3s ease;
    font-size: 1.1em;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

.page-fishing-games__btn-primary {
    background-color: var(--register-btn-bg); /* Custom red for register/login */
    color: var(--btn-text-color);
    border: 2px solid var(--register-btn-bg);
}

.page-fishing-games__btn-primary:hover {
    background-color: darken(var(--register-btn-bg), 10%);
    border-color: darken(var(--register-btn-bg), 10%);
}

.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);
}

/* Game Cards */
.page-fishing-games__game-types-section {
    background-color: var(--section-bg-light);
    color: var(--light-text-color);
    padding: 60px 0;
}

.page-fishing-games__game-types-section .page-fishing-games__section-title {
    color: var(--primary-color);
}

.page-fishing-games__game-types-section .page-fishing-games__text-block {
    color: var(--light-text-color);
}

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

.page-fishing-games__card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: var(--light-text-color); /* Text on light card background */
}

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

.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;
    padding: 15px;
    color: var(--primary-color);
}

.page-fishing-games__card-description {
    padding: 0 15px 15px;
    font-size: 0.95em;
    color: #555;
}

/* Guide List */
.page-fishing-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-fishing-games__guide-list li {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
}

.page-fishing-games__guide-list li h3 {
    color: var(--secondary-color);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.page-fishing-games__guide-list li p {
    color: var(--dark-text-color);
}

.page-fishing-games__guide-list li a {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: underline;
}

.page-fishing-games__guide-list li a:hover {
    color: #FFD700;
}

/* Promotions Section */
.page-fishing-games__promotions-section {
    background-color: var(--section-bg-light);
    color: var(--light-text-color);
    padding: 60px 0;
}

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

.page-fishing-games__promotions-section .page-fishing-games__text-block {
    color: var(--light-text-color);
}

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

/* Feature Grid */
.page-fishing-games__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-fishing-games__feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.page-fishing-games__feature-icon {
    width: 150px; /* Enforce min size 200x200 via CSS for display, actual img is larger */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-fishing-games__feature-description {
    font-size: 1em;
    color: var(--dark-text-color);
}

/* Tips List */
.page-fishing-games__tips-section {
    background-color: var(--section-bg-light);
    color: var(--light-text-color);
    padding: 60px 0;
}

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

.page-fishing-games__tips-section .page-fishing-games__text-block {
    color: var(--light-text-color);
}

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

.page-fishing-games__tips-list li {
    background-color: var(--card-bg);
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    color: var(--light-text-color);
}

.page-fishing-games__tips-list li h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.page-fishing-games__tips-list li p {
    color: #555;
}

.page-fishing-games__tips-list li a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-fishing-games__tips-list li a:hover {
    color: darken(var(--primary-color), 10%);
}

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

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

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--secondary-color);
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

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

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

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--dark-text-color);
}

.page-fishing-games__faq-answer p {
    padding-bottom: 15px;
    line-height: 1.8;
}

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

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

.page-fishing-games__faq-answer a {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: underline;
}

.page-fishing-games__faq-answer a:hover {
    color: #FFD700;
}

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

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

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

.page-fishing-games__cta-section .page-fishing-games__btn-primary {
    background-color: var(--login-btn-bg); /* Custom red for register/login */
    border-color: var(--login-btn-bg);
    color: var(--btn-text-color);
}

.page-fishing-games__cta-section .page-fishing-games__btn-primary:hover {
    background-color: darken(var(--login-btn-bg), 10%);
    border-color: darken(var(--login-btn-bg), 10%);
}

.page-fishing-games__cta-section .page-fishing-games__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.page-fishing-games__cta-section .page-fishing-games__btn-secondary:hover {
    background-color: darken(var(--secondary-color), 10%);
    color: var(--primary-color);
}

/* Responsive Design */
@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;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        min-height: 60vh;
        padding: 40px 15px !important; /* Ensure header offset applies and prevents overflow */
    }
    .page-fishing-games__hero-content {
        padding: 20px;
    }
    .page-fishing-games__hero-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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-fishing-games__game-cards,
    .page-fishing-games__promo-cards,
    .page-fishing-games__feature-grid {
        grid-template-columns: 1fr;
    }

    .page-fishing-games__card-image {
        height: 200px;
    }

    .page-fishing-games__feature-icon {
        width: 100px;
        height: 100px;
    }

    .page-fishing-games__container {
        padding: 0 15px;
    }

    .page-fishing-games__section-title {
        font-size: 1.8em;
    }

    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-fishing-games video,
    .page-fishing-games__video {
        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,
    .page-fishing-games__video-section,
    .page-fishing-games__video-container,
    .page-fishing-games__video-wrapper,
    .page-fishing-games__cta-buttons,
    .page-fishing-games__button-group,
    .page-fishing-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }
    .page-fishing-games__cta-buttons {
      flex-direction: column;
      gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-fishing-games__hero-title {
        font-size: 1.8em;
    }
    .page-fishing-games__hero-description {
        font-size: 0.9em;
    }
    .page-fishing-games__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-fishing-games__faq-answer {
        padding: 0 20px;
    }
    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 15px 20px;
    }
}