/* style/fishing-games.css */
/* Colors */
:root {
    --j88-primary-color: #11A84E;
    --j88-secondary-color: #22C768;
    --j88-button-gradient-start: #2AD16F;
    --j88-button-gradient-end: #13994A;
    --j88-card-bg: #11271B;
    --j88-background: #08160F;
    --j88-text-main: #F2FFF6;
    --j88-text-secondary: #A7D9B8;
    --j88-border-color: #2E7A4E;
    --j88-glow-color: #57E38D;
    --j88-gold-color: #F2C14E;
    --j88-divider-color: #1E3A2A;
    --j88-deep-green: #0A4B2C;
}

.page-fishing-games {
    background-color: var(--j88-background);
    color: var(--j88-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-fishing-games__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Darken image slightly for text contrast */
}

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

.page-fishing-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Using clamp for responsive font-size */
    color: var(--j88-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-fishing-games__hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--j88-text-secondary);
    margin-bottom: 30px;
    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 {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-fishing-games__btn-primary {
    background: var(--j88-button-gradient-start);
    background: linear-gradient(180deg, var(--j88-button-gradient-start) 0%, var(--j88-button-gradient-end) 100%);
    color: var(--j88-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.page-fishing-games__btn-secondary {
    background: transparent;
    color: var(--j88-primary-color);
    border: 2px solid var(--j88-primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__btn-secondary:hover {
    background: var(--j88-primary-color);
    color: var(--j88-text-main);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--j88-gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    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(--j88-primary-color);
    border-radius: 2px;
}

.page-fishing-games__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--j88-primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__text-block {
    font-size: 1.1rem;
    color: var(--j88-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-fishing-games__light-bg {
    background-color: var(--j88-card-bg);
    color: var(--j88-text-main);
    padding: 60px 0;
}

.page-fishing-games__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-fishing-games__list-item {
    font-size: 1.1rem;
    color: var(--j88-text-secondary);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-fishing-games__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

.page-fishing-games__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

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

.page-fishing-games__card {
    background-color: var(--j88-card-bg);
    border: 1px solid var(--j88-border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--j88-text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-fishing-games__card-title {
    font-size: 1.4rem;
    color: var(--j88-primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__card-description {
    font-size: 1rem;
    color: var(--j88-text-secondary);
    line-height: 1.5;
}

.page-fishing-games__game-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-fishing-games__btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: 15px;
}

.page-fishing-games__numbered-list {
    list-style: none;
    padding: 0;
}

.page-fishing-games__numbered-list .page-fishing-games__list-item {
    margin-bottom: 25px;
    padding-left: 0;
}

.page-fishing-games__numbered-list .page-fishing-games__list-item::before {
    content: counter(item) '. ';
    counter-increment: item;
    font-weight: bold;
    color: var(--j88-gold-color);
    font-size: 1.2rem;
    position: static;
    margin-right: 10px;
}

.page-fishing-games__numbered-list .page-fishing-games__list-item h3 {
    display: inline;
    font-size: 1.2rem;
    margin: 0;
}

.page-fishing-games__numbered-list .page-fishing-games__list-item p {
    margin-top: 10px;
    margin-left: 40px; /* Indent paragraph to align with text */
}

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

.page-fishing-games__promo-list .page-fishing-games__list-item {
    background-color: var(--j88-deep-green);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__promo-list .page-fishing-games__list-item::before {
    content: '⭐';
}

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

.page-fishing-games__faq-item {
    background-color: var(--j88-card-bg);
    border: 1px solid var(--j88-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--j88-primary-color);
    cursor: pointer;
    background-color: var(--j88-deep-green);
    border-bottom: 1px solid var(--j88-border-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-fishing-games__faq-item[open] > .page-fishing-games__faq-question {
    background-color: var(--j88-primary-color);
    color: var(--j88-text-main);
}

.page-fishing-games__faq-question::-webkit-details-marker {
    display: none;
}

.page-fishing-games__faq-question:hover {
    background-color: var(--j88-primary-color);
    color: var(--j88-text-main);
}

.page-fishing-games__faq-qtext {
    flex-grow: 1;
}

.page-fishing-games__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
}

.page-fishing-games__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: var(--j88-text-secondary);
    line-height: 1.6;
}

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

.page-fishing-games__cta-final-section {
    padding: 80px 0;
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__hero-content {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__container {
        padding: 0 15px;
    }

    .page-fishing-games__hero-section {
        padding-bottom: 40px;
    }

    .page-fishing-games__hero-image-wrapper {
        max-height: 400px;
    }

    .page-fishing-games__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .page-fishing-games__hero-description {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    .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% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-fishing-games__section-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 30px;
    }

    .page-fishing-games__sub-title {
        font-size: clamp(1.3rem, 5vw, 1.7rem);
        margin-top: 25px;
    }

    .page-fishing-games__text-block,
    .page-fishing-games__list-item,
    .page-fishing-games__card-description,
    .page-fishing-games__faq-answer p {
        font-size: 1rem;
    }

    .page-fishing-games__image,
    .page-fishing-games__game-thumbnail {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-fishing-games__introduction-section,
    .page-fishing-games__features-section,
    .page-fishing-games__popular-games-section,
    .page-fishing-games__guide-section,
    .page-fishing-games__tips-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__support-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-final-section {
        padding: 40px 0;
    }

    .page-fishing-games__feature-grid,
    .page-fishing-games__game-card-grid,
    .page-fishing-games__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .page-fishing-games__card {
        padding: 20px;
    }

    .page-fishing-games__card-title {
        font-size: 1.2rem;
    }

    .page-fishing-games__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-fishing-games__faq-toggle {
        font-size: 1.2rem;
    }

    .page-fishing-games__faq-answer {
        padding: 10px 20px 15px;
    }
    
    /* Ensure all containers and sections adapt to mobile width */
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container,
    .page-fishing-games__hero-section,
    .page-fishing-games__introduction-section,
    .page-fishing-games__features-section,
    .page-fishing-games__popular-games-section,
    .page-fishing-games__guide-section,
    .page-fishing-games__tips-section,
    .page-fishing-games__promotions-section,
    .page-fishing-games__support-section,
    .page-fishing-games__faq-section,
    .page-fishing-games__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left and padding-right handled by .page-fishing-games__container */
    }

    /* Specific padding for sections if they don't use .page-fishing-games__container directly */
    .page-fishing-games__introduction-section > div,
    .page-fishing-games__features-section > div,
    .page-fishing-games__popular-games-section > div,
    .page-fishing-games__guide-section > div,
    .page-fishing-games__tips-section > div,
    .page-fishing-games__promotions-section > div,
    .page-fishing-games__support-section > div,
    .page-fishing-games__faq-section > div,
    .page-fishing-games__cta-final-section > div {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-fishing-games__hero-image {
        filter: brightness(0.6) !important; /* Slightly darker for mobile text contrast */
    }
}

@media (max-width: 480px) {
    .page-fishing-games__main-title {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
    }

    .page-fishing-games__hero-description {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
    }

    .page-fishing-games__section-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    .page-fishing-games__sub-title {
        font-size: clamp(1.2rem, 6vw, 1.5rem);
    }
}