.page-fishing-games {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main); /* Default text color from custom colors */
    background-color: var(--background); /* Default background from custom colors */
}

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

.page-fishing-games__section-title {
    font-size: clamp(28px, 3.5vw, 42px); 
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-fishing-games__text-block {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-fishing-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--deep-green); /* Use a custom background color */
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and text */
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-fishing-games__hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 1; /* Ensure content is above any potential background */
    padding: 0 20px;
}

.page-fishing-games__main-title {
    font-size: clamp(32px, 4.5vw, 56px); /* H1 font size clamp */
    font-weight: 800;
    line-height: 1.1;
    color: var(--gold); /* Use a distinct color for H1 */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__description {
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.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,
.page-fishing-games__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-fishing-games__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-fishing-games__btn-secondary {
    background: var(--background);
    color: var(--glow);
    border: 2px solid var(--glow);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: var(--glow);
    color: var(--background);
}

.page-fishing-games__btn-link {
    background: transparent;
    color: var(--glow);
    border: 1px solid var(--glow);
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 15px;
}

.page-fishing-games__btn-link:hover {
    background: var(--glow);
    color: var(--background);
}

.page-fishing-games__about-section,
.page-fishing-games__promotions-section,
.page-fishing-games__cta-final-section {
    padding: 80px 0;
    background-color: var(--background); /* Light background for contrast */
}

.page-fishing-games__dark-section {
    background-color: var(--card-bg); /* Dark background from custom colors */
    color: var(--text-main); /* Light text on dark background */
}

.page-fishing-games__dark-bg {
    background-color: var(--deep-green);
    color: var(--text-main);
}

.page-fishing-games__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 40px auto;
    object-fit: cover;
}

.page-fishing-games__image-content--center {
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__features-section,
.page-fishing-games__how-to-play-section,
.page-fishing-games__faq-section {
    padding: 80px 0;
}

.page-fishing-games__features-grid,
.page-fishing-games__steps-grid {
    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); /* Card background from custom colors */
    color: var(--text-main); /* Text on card from custom colors */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%; /* Ensure cards have equal height in grid */
    box-sizing: border-box;
}

.page-fishing-games__card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--glow); /* Use a distinct color for card titles */
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-fishing-games__card-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

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

.page-fishing-games__promotion-item {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--divider);
}

.page-fishing-games__promotion-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 10px;
}

.page-fishing-games__promotion-description {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-secondary);
}

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

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

/* FAQ Section */
.page-fishing-games__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

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

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-fishing-games__faq-question:hover {
    background-color: var(--divider);
}

.page-fishing-games__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker */
}

.page-fishing-games__faq-toggle {
    font-size: 24px;
    line-height: 1;
    color: var(--glow);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-toggle {
    transform: rotate(45deg); /* Rotate + to X */
}

.page-fishing-games__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-fishing-games__faq-item[open] .page-fishing-games__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 15px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-fishing-games__section-title {
        font-size: clamp(24px, 4vw, 36px);
    }
    .page-fishing-games__hero-content {
        padding: 0 15px;
    }
    .page-fishing-games__main-title {
        font-size: clamp(28px, 5vw, 48px);
    }
    .page-fishing-games__description {
        font-size: 18px;
    }
    .page-fishing-games__features-grid,
    .page-fishing-games__steps-grid,
    .page-fishing-games__promotion-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-fishing-games__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding for mobile */
    }
    .page-fishing-games__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-fishing-games__main-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    .page-fishing-games__description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary,
    .page-fishing-games__btn-link {
        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__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;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-fishing-games__hero-image,
    .page-fishing-games__image-content,
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-fishing-games__hero-image-wrapper,
    .page-fishing-games__container,
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__feature-card,
    .page-fishing-games__step-card,
    .page-fishing-games__promotion-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__card {
        padding: 20px;
    }
    .page-fishing-games__faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }
    .page-fishing-games__faq-answer {
        padding: 0 20px 15px;
    }
    .page-fishing-games__faq-item[open] .page-fishing-games__faq-answer {
        padding-top: 10px;
    }
}