/* style/fishing-games.css */

/* Variables for colors */
:root {
    --page-fishing-games-primary-color: #11A84E;
    --page-fishing-games-secondary-color: #22C768;
    --page-fishing-games-text-main: #F2FFF6;
    --page-fishing-games-text-secondary: #A7D9B8;
    --page-fishing-games-card-bg: #11271B;
    --page-fishing-games-background: #08160F;
    --page-fishing-games-border: #2E7A4E;
    --page-fishing-games-glow: #57E38D;
    --page-fishing-games-gold: #F2C14E;
    --page-fishing-games-divider: #1E3A2A;
    --page-fishing-games-deep-green: #0A4B2C;
    --page-fishing-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);

    /* Fallback for text on light backgrounds if needed */
    --page-fishing-games-text-on-light: #333333;
    --page-fishing-games-text-on-dark: #F2FFF6; /* Main text color */
    --page-fishing-games-light-bg-color: #ffffff; /* For light background sections */
}

/* Base styles for the page content area */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-fishing-games-text-on-dark); /* Default text color for dark body background */
    background-color: var(--page-fishing-games-background); /* Overall page background */
}

/* Sections for general styling */
.page-fishing-games__section-title {
    font-size: clamp(1.8rem, 2.5vw, 2.8rem);
    color: var(--page-fishing-games-text-main);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-fishing-games__section-text {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--page-fishing-games-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

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

/* Color contrast enforcement */
.page-fishing-games__dark-bg {
    background-color: var(--page-fishing-games-background);
    color: var(--page-fishing-games-text-main);
}

.page-fishing-games__light-bg {
    background-color: var(--page-fishing-games-light-bg-color); /* Use light background color */
    color: var(--page-fishing-games-text-on-light); /* Use dark text color on light background */
}

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

.page-fishing-games__light-bg .page-fishing-games__section-text {
    color: var(--page-fishing-games-text-on-light);
}

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding */
    background-color: var(--page-fishing-games-background);
    overflow: hidden;
}

.page-fishing-games__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit height to prevent image from being too tall */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-fishing-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text contrast, allowed as it's not changing color */
}

.page-fishing-games__hero-content {
    max-width: 1200px;
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is above image if any overlap */
    margin-top: -80px; /* Pull content up slightly over image for visual flow */
    position: relative;
}

.page-fishing-games__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--page-fishing-games-text-main);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-fishing-games__hero-description {
    font-size: clamp(1.1rem, 1.3vw, 1.3rem);
    color: var(--page-fishing-games-text-secondary);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-fishing-games__hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* 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;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 100%; /* For responsive */
    box-sizing: border-box; /* For responsive */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-fishing-games__btn-primary {
    background: var(--page-fishing-games-button-gradient);
    color: #ffffff; /* White text on dark button */
    border: none;
}

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

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

.page-fishing-games__btn-secondary:hover {
    background-color: var(--page-fishing-games-primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General content image styling */
.page-fishing-games__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* Features Section */
.page-fishing-games__features-section {
    padding: 60px 0;
}

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

.page-fishing-games__feature-item {
    background-color: var(--page-fishing-games-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-fishing-games-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-fishing-games__feature-icon {
    width: 100%; /* Ensure image fills card width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Cover the area */
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-fishing-games__feature-title {
    font-size: 1.5rem;
    color: var(--page-fishing-games-text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__feature-description {
    font-size: 1rem;
    color: var(--page-fishing-games-text-secondary);
}

/* Popular Games Section */
.page-fishing-games__popular-games-section {
    padding: 60px 0;
}

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

.page-fishing-games__game-card {
    background-color: var(--page-fishing-games-card-bg);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-fishing-games-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-fishing-games__game-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-fishing-games__game-title {
    font-size: 1.6rem;
    color: var(--page-fishing-games-text-main);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-fishing-games__game-description {
    font-size: 1rem;
    color: var(--page-fishing-games-text-secondary);
    margin-bottom: 20px;
}

/* How to Play Section */
.page-fishing-games__how-to-play-section {
    padding: 60px 0;
}

.page-fishing-games__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-fishing-games__step-item {
    background-color: var(--page-fishing-games-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-fishing-games-border);
    text-align: center;
}

.page-fishing-games__step-title {
    font-size: 1.8rem;
    color: var(--page-fishing-games-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__step-description {
    font-size: 1.05rem;
    color: var(--page-fishing-games-text-secondary);
    margin-bottom: 15px;
}

/* Strategy & Tips Section */
.page-fishing-games__strategy-tips-section {
    padding: 60px 0;
}

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

.page-fishing-games__tips-item {
    background-color: var(--page-fishing-games-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-fishing-games-border);
    text-align: center;
}

.page-fishing-games__tips-title {
    font-size: 1.5rem;
    color: var(--page-fishing-games-primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__tips-description {
    font-size: 1rem;
    color: var(--page-fishing-games-text-secondary);
}

/* Promotions Section */
.page-fishing-games__promotions-section {
    padding: 60px 0;
}

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

.page-fishing-games__promo-card {
    background-color: var(--page-fishing-games-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-fishing-games-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-fishing-games__promo-title {
    font-size: 1.6rem;
    color: var(--page-fishing-games-glow);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-fishing-games__promo-description {
    font-size: 1rem;
    color: var(--page-fishing-games-text-secondary);
    margin-bottom: 20px;
}

/* FAQ Section */
.page-fishing-games__faq-section {
    padding: 60px 0;
}

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

.page-fishing-games__faq-item {
    background-color: var(--page-fishing-games-card-bg);
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--page-fishing-games-divider);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--page-fishing-games-text-main);
    user-select: none;
    transition: background-color 0.3s ease;
}

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

.page-fishing-games__faq-qtext {
    flex-grow: 1;
    color: var(--page-fishing-games-text-main); /* Ensure color on dark background */
}

.page-fishing-games__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--page-fishing-games-primary-color);
    margin-left: 15px;
}

/* For <details> tag, hide default marker */
.page-fishing-games__faq-item summary {
    list-style: none;
}
.page-fishing-games__faq-item summary::-webkit-details-marker {
    display: none;
}

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

.page-fishing-games__faq-answer p {
    margin: 0;
    color: var(--page-fishing-games-text-secondary); /* Ensure paragraph text color */
}

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

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

/* CTA Section */
.page-fishing-games__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-fishing-games__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-fishing-games__hero-content {
        margin-top: -60px;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-content {
        padding: 30px 15px;
        margin-top: -40px;
    }

    .page-fishing-games__hero-title {
        font-size: 2rem;
    }

    .page-fishing-games__hero-description {
        font-size: 1rem;
    }

    .page-fishing-games__hero-cta {
        flex-direction: column;
        gap: 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;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

    .page-fishing-games__section-text {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

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

    .page-fishing-games__hero-image-wrapper {
        max-height: 50vh;
    }

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

    .page-fishing-games__feature-icon,
    .page-fishing-games__game-image {
        height: 180px; /* Adjust height for mobile */
    }

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

    .page-fishing-games__step-title,
    .page-fishing-games__feature-title,
    .page-fishing-games__game-title,
    .page-fishing-games__promo-title,
    .page-fishing-games__tips-title {
        font-size: 1.3rem;
    }

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

    .page-fishing-games__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95rem;
    }

    .page-fishing-games__video-section {
      padding-top: 10px !important; /* body đã có padding-top, tránh double */
    }

    /* Ensure video containers are also responsive, though no video currently */
    .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;
    }
}

@media (max-width: 480px) {
    .page-fishing-games__hero-content {
        margin-top: -20px;
    }
    .page-fishing-games__hero-title {
        font-size: 1.8rem;
    }
    .page-fishing-games__hero-description {
        font-size: 0.9rem;
    }
    .page-fishing-games__section-title {
        font-size: 1.6rem;
    }
}