/* style/fishing-games.css */
:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --dark-background: #121212;
    --light-text: #ffffff;
    --dark-text: #333333;
    --card-background: rgba(255, 255, 255, 0.1);
    --border-color: #e0e0e0;
}

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

/* Ensure content is not hidden by fixed header */
.page-fishing-games__hero-section {
    padding-top: 100px; /* Adjust based on actual header height */
}

.page-fishing-games__section {
    padding: 60px 20px;
    text-align: center;
}

.page-fishing-games__dark-bg {
    background-color: var(--dark-background);
    color: var(--light-text);
}

.page-fishing-games__light-bg {
    background-color: #ffffff;
    color: var(--dark-text);
}

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

.page-fishing-games__section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: var(--light-text);
}

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

.page-fishing-games__light-bg .page-fishing-games__section-title {
    color: var(--dark-text);
}

.page-fishing-games__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--light-text);
}

.page-fishing-games__light-bg .page-fishing-games__text-block {
    color: var(--dark-text);
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
    padding: 100px 20px 60px; /* Adjusted padding-top */
    overflow: hidden;
}

.page-fishing-games__hero-container {
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.page-fishing-games__hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--light-text);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    word-wrap: normal;
}

.page-fishing-games__btn-primary {
    background: var(--secondary-color);
    color: var(--dark-text);
}

.page-fishing-games__btn-primary:hover {
    background: #e6b000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-fishing-games__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* About Fishing Games Section */
.page-fishing-games__about-fishing-games .page-fishing-games__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 17px;
}

.page-fishing-games__image-full-width {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Popular Games Section */
.page-fishing-games__popular-games {
    background: linear-gradient(135deg, var(--dark-background), #2a2a2a);
}

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

.page-fishing-games__game-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-fishing-games__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__game-card .page-fishing-games__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__game-card .page-fishing-games__card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-fishing-games__game-card .page-fishing-games__card-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    color: rgba(255, 255, 255, 0.85);
}

.page-fishing-games__game-card .page-fishing-games__btn-primary {
    width: auto;
    margin-top: auto; /* Push button to bottom */
    align-self: flex-start;
}

/* How to Play Section */
.page-fishing-games__how-to-play {
    background-color: #f8f9fa;
    color: var(--dark-text);
}

.page-fishing-games__how-to-play .page-fishing-games__section-title {
    color: var(--dark-text);
}

.page-fishing-games__how-to-play .page-fishing-games__text-block {
    color: var(--dark-text);
}

.page-fishing-games__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-fishing-games__step-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-fishing-games__step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-fishing-games__step-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-fishing-games__step-item p {
    font-size: 16px;
    color: var(--dark-text);
}

.page-fishing-games__how-to-play .page-fishing-games__cta-buttons {
    margin-top: 50px;
}

/* Promotions Section */
.page-fishing-games__promotions {
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
}

.page-fishing-games__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-fishing-games__promo-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.page-fishing-games__promo-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.page-fishing-games__promo-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-fishing-games__promo-item p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.page-fishing-games__promotions .page-fishing-games__cta-buttons {
    margin-top: 50px;
}

/* App Download Section */
.page-fishing-games__app-download {
    background-color: #f8f9fa;
    color: var(--dark-text);
}

.page-fishing-games__app-download .page-fishing-games__section-title {
    color: var(--dark-text);
}

.page-fishing-games__app-download .page-fishing-games__text-block {
    color: var(--dark-text);
}

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

.page-fishing-games__feature-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.page-fishing-games__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-fishing-games__feature-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-fishing-games__feature-item p {
    font-size: 16px;
    color: var(--dark-text);
}

.page-fishing-games__app-download .page-fishing-games__cta-buttons {
    margin-top: 50px;
}

/* Security Section */
.page-fishing-games__security {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
}

.page-fishing-games__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-fishing-games__security-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: var(--light-text);
}

.page-fishing-games__security-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-fishing-games__security-item p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

/* FAQ Section */
.page-fishing-games__faq-section {
    background-color: #f8f9fa;
    color: var(--dark-text);
}

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

.page-fishing-games__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.page-fishing-games__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--dark-text);
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-fishing-games__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-toggle {
    transform: rotate(45deg);
    color: var(--secondary-color);
}

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    background: #f9f9f9;
    border-top: 1px solid var(--border-color);
    color: var(--dark-text);
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px !important;
    opacity: 1;
}

.page-fishing-games__faq-answer p {
    margin: 0;
    font-size: 16px;
    color: var(--dark-text);
}

/* Global image responsive */
.page-fishing-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__section-title {
        font-size: 32px;
    }

    .page-fishing-games__hero-title {
        font-size: 42px;
    }

    .page-fishing-games__hero-description {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding-top: 80px !important; /* Mobile adjust */
        min-height: 500px;
    }

    .page-fishing-games__section {
        padding: 40px 15px;
    }

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

    .page-fishing-games__hero-title {
        font-size: 36px;
    }

    .page-fishing-games__hero-description {
        font-size: 16px;
    }

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-fishing-games__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-fishing-games__game-list,
    .page-fishing-games__steps-list,
    .page-fishing-games__promo-list,
    .page-fishing-games__app-features,
    .page-fishing-games__security-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__game-card,
    .page-fishing-games__step-item,
    .page-fishing-games__promo-item,
    .page-fishing-games__feature-item,
    .page-fishing-games__security-item {
        padding: 20px;
    }

    .page-fishing-games__card-title,
    .page-fishing-games__step-title,
    .page-fishing-games__promo-title,
    .page-fishing-games__feature-title,
    .page-fishing-games__security-title {
        font-size: 20px;
    }

    .page-fishing-games__text-block,
    .page-fishing-games__card-description,
    .page-fishing-games__step-item p,
    .page-fishing-games__promo-item p,
    .page-fishing-games__feature-item p,
    .page-fishing-games__security-item p,
    .page-fishing-games__faq-question h3,
    .page-fishing-games__faq-answer p {
        font-size: 15px;
    }

    .page-fishing-games__promo-icon,
    .page-fishing-games__feature-icon {
        width: 60px;
        height: 60px;
    }

    .page-fishing-games__faq-question {
        padding: 15px;
    }

    .page-fishing-games__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }

    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 15px !important;
    }
    
    /* Ensure all images and containers are fully responsive */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-fishing-games__container,
    .page-fishing-games__hero-section,
    .page-fishing-games__section,
    .page-fishing-games__game-card,
    .page-fishing-games__step-item,
    .page-fishing-games__promo-item,
    .page-fishing-games__feature-item,
    .page-fishing-games__security-item,
    .page-fishing-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-fishing-games__hero-cta-buttons,
    .page-fishing-games__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-fishing-games__hero-title {
        font-size: 30px;
    }

    .page-fishing-games__section-title {
        font-size: 24px;
    }

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary {
        padding: 10px 20px;
        font-size: 15px;
    }
}