/* style/fishing-games.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f8f8;
    --bg-dark: #1a1a1a;
    --button-login: #EA7C07;
}

.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--background-color, var(--secondary-color)); /* Ensure this matches body background from shared.css */
}

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

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

.page-fishing-games__text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-fishing-games__text-link:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
}

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

.page-fishing-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

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

.page-fishing-games__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-fishing-games__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: var(--text-light);
}

/* CTA Buttons */
.page-fishing-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.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;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.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(--text-light);
    transform: translateY(-2px);
}

/* Introduction Section */
.page-fishing-games__introduction-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Why Choose Section */
.page-fishing-games__why-choose-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-fishing-games__why-choose-section .page-fishing-games__section-title {
    color: var(--text-light);
}

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

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

.page-fishing-games__feature-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-fishing-games__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__feature-card .page-fishing-games__card-image {
    width: 100%; /* Ensure image takes full width of card */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-fishing-games__feature-card .page-fishing-games__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-fishing-games__feature-card .page-fishing-games__card-text {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
}

.page-fishing-games__feature-card .page-fishing-games__text-link {
    color: var(--secondary-color);
}

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

/* Popular Games Section */
.page-fishing-games__popular-games-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

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

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

.page-fishing-games__game-card .page-fishing-games__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-fishing-games__game-card .page-fishing-games__card-title {
    font-size: 1.6em;
    padding: 20px 20px 0;
    color: var(--primary-color);
}

.page-fishing-games__game-card .page-fishing-games__card-text {
    font-size: 1em;
    padding: 0 20px 20px;
    flex-grow: 1;
}

.page-fishing-games__game-card .page-fishing-games__btn-link {
    display: block;
    text-align: center;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 10px 10px;
    transition: background-color 0.3s ease;
}

.page-fishing-games__game-card .page-fishing-games__btn-link:hover {
    background-color: #1e87b8;
}

/* How to Play Section */
.page-fishing-games__how-to-play-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-fishing-games__ordered-list {
    list-style: none;
    counter-reset: item;
    padding: 0;
    margin-top: 40px;
}

.page-fishing-games__ordered-list li {
    counter-increment: item;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
}

.page-fishing-games__ordered-list li::before {
    content: counter(item);
    background-color: var(--primary-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

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

/* Tips & Strategies Section */
.page-fishing-games__tips-strategies-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

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

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

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

.page-fishing-games__unordered-list .page-fishing-games__list-title {
    color: var(--secondary-color);
}

.page-fishing-games__unordered-list p {
    color: rgba(255, 255, 255, 0.9);
}

.page-fishing-games__unordered-list .page-fishing-games__text-link {
    color: var(--secondary-color);
}

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

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

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

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

.page-fishing-games__promo-card .page-fishing-games__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-fishing-games__promo-card .page-fishing-games__card-title {
    font-size: 1.4em;
    padding: 20px 20px 0;
    color: var(--primary-color);
}

.page-fishing-games__promo-card .page-fishing-games__card-text {
    font-size: 1em;
    padding: 0 20px 20px;
    flex-grow: 1;
}

.page-fishing-games__promo-card .page-fishing-games__text-link {
    color: var(--primary-color);
}

/* Video Section */
.page-fishing-games__video-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
}

.page-fishing-games__video-section .page-fishing-games__section-title {
    color: var(--text-light);
}

.page-fishing-games__video-section .page-fishing-games__section-title::after {
    background-color: var(--text-light);
}

.page-fishing-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 40px;
    border-radius: 10px;
}

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

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

/* FAQ Section */
.page-fishing-games__faq-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-fishing-games__faq-list {
    margin-top: 40px;
}

.page-fishing-games__faq-item {
    background-color: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.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(--primary-color);
    cursor: pointer;
    background-color: var(--secondary-color);
    border-bottom: 1px solid #eee;
}

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

.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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

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

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

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

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

.page-fishing-games__cta-final-section .page-fishing-games__text-block {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

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

/* General image styling for content area */
.page-fishing-games img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__hero-title {
        font-size: 3em;
    }
    .page-fishing-games__hero-description {
        font-size: 1.2em;
    }
    .page-fishing-games__section-title {
        font-size: 2em;
    }
    .page-fishing-games__feature-card .page-fishing-games__card-image,
    .page-fishing-games__game-card .page-fishing-games__card-image,
    .page-fishing-games__promo-card .page-fishing-games__card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-fishing-games__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-fishing-games__hero-title {
        font-size: 2.5em;
    }

    .page-fishing-games__hero-description {
        font-size: 1.1em;
    }

    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
    }

    .page-fishing-games__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-fishing-games__introduction-section,
    .page-fishing-games__why-choose-section,
    .page-fishing-games__popular-games-section,
    .page-fishing-games__how-to-play-section,
    .page-fishing-games__tips-strategies-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__video-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-final-section {
        padding: 60px 0;
    }

    .page-fishing-games__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-fishing-games__feature-card,
    .page-fishing-games__game-card,
    .page-fishing-games__promo-card {
        margin-left: auto;
        margin-right: auto;
        max-width: 400px; /* Constrain card width on small screens */
    }
    
    .page-fishing-games__feature-card .page-fishing-games__card-image,
    .page-fishing-games__game-card .page-fishing-games__card-image,
    .page-fishing-games__promo-card .page-fishing-games__card-image {
        height: 200px; /* Maintain minimum image height */
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    .page-fishing-games__ordered-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-fishing-games__ordered-list li::before {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .page-fishing-games__video-wrapper {
        padding-bottom: 75%; /* Adjust for common mobile aspect ratio like 4:3 or allow video to dictate */
    }

    .page-fishing-games video,
    .page-fishing-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-fishing-games__video-section,
    .page-fishing-games__video-container,
    .page-fishing-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

@media (max-width: 480px) {
    .page-fishing-games__hero-title {
        font-size: 2em;
    }
    .page-fishing-games__hero-description {
        font-size: 1em;
    }
    .page-fishing-games__section-title {
        font-size: 1.5em;
    }
    .page-fishing-games__ordered-list li::before {
        width: 35px;
        height: 35px;
        font-size: 1.2em;
    }
    .page-fishing-games__list-title {
        font-size: 1.4em;
    }
}