/* style/fishing-games.css */

/* Root variables for consistent colors */
:root {
    --primary-color: #0A2463;
    --secondary-color: #E0B73B;
    --accent-color: #FF0000; /* Bright red for CTA/emphasis */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #121212;
    --bg-light: #f8f8f8;
    --border-color: #e0e0e0;
}

/* Base styles for the page content, ensuring contrast with body background */
.page-fishing-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Ensure sections define their own backgrounds */
    padding-top: 10px; /* Initial padding for fixed header */
}

/* Helper classes for background and text colors */
.page-fishing-games__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

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

.page-fishing-games__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: inherit; /* Inherit color from parent section */
}

/* Hero Section */
.page-fishing-games__hero-section {
    padding: 120px 20px 80px; /* Adjusted padding-top for fixed header */
    background: linear-gradient(rgba(10, 36, 99, 0.9), rgba(10, 36, 99, 0.7)), url('[GALLERY:hero:w88,ban_ca,background_hero]') center/cover no-repeat;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-fishing-games__hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.page-fishing-games__hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

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

.page-fishing-games__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

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

/* Introduction Section */
.page-fishing-games__intro-section .page-fishing-games__section-title {
    color: var(--primary-color);
}

.page-fishing-games__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.page-fishing-games__text-content {
    flex: 1;
    min-width: 300px;
}

.page-fishing-games__text-content p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.page-fishing-games__text-content a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-fishing-games__text-content a:hover {
    color: var(--secondary-color);
}

.page-fishing-games__image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-fishing-games__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* Why W88 Section */
.page-fishing-games__why-w88-section .page-fishing-games__section-title {
    color: var(--text-light);
}

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

.page-fishing-games__feature-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: var(--text-light);
}

.page-fishing-games__feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-fishing-games__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-fishing-games__feature-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.page-fishing-games__feature-card a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-fishing-games__feature-card a:hover {
    color: var(--text-light);
}

/* Popular Games Section */
.page-fishing-games__popular-games-section .page-fishing-games__section-title {
    color: var(--primary-color);
}

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

.page-fishing-games__game-card {
    background-color: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

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

.page-fishing-games__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-fishing-games__game-card h3 {
    padding: 20px 20px 10px;
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
}

.page-fishing-games__game-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-fishing-games__game-card h3 a:hover {
    color: var(--secondary-color);
}

.page-fishing-games__game-description {
    padding: 0 20px 20px;
    font-size: 15px;
    color: var(--text-dark);
}

.page-fishing-games__game-description a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-fishing-games__game-description a:hover {
    color: var(--secondary-color);
}

/* How to Play Section */
.page-fishing-games__how-to-play-section .page-fishing-games__section-title {
    color: var(--primary-color);
}

.page-fishing-games__how-to-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.page-fishing-games__how-to-item {
    background-color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.page-fishing-games__how-to-item::before {
    counter-increment: step-counter;
    content: "Bước " counter(step-counter);
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
}

.page-fishing-games__how-to-step-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 10px;
    margin-bottom: 10px;
}

.page-fishing-games__how-to-item p {
    color: var(--text-dark);
}

.page-fishing-games__how-to-item a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-fishing-games__how-to-item a:hover {
    color: var(--secondary-color);
}

/* Video Showcase Section */
.page-fishing-games__video-showcase-section {
    padding: 60px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-fishing-games__video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.page-fishing-games__video-showcase-section .page-fishing-games__section-title {
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-fishing-games__video-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.page-fishing-games__video-link {
    display: block;
    text-decoration: none;
    position: relative;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.page-fishing-games__video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    box-sizing: border-box;
}

.page-fishing-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    object-fit: cover;
    pointer-events: none; /* Prevent video controls from blocking click event */
    max-width: 100%;
    display: block;
}

.page-fishing-games__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.page-fishing-games__video-link:hover .page-fishing-games__video-overlay {
    opacity: 1;
}

.page-fishing-games__video-click-hint {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    background: rgba(0, 123, 255, 0.8);
    border-radius: 5px;
    white-space: nowrap;
}

.page-fishing-games__video-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-fishing-games__play-now-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-fishing-games__play-now-button:hover {
    background: #cfa830;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__play-now-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Tips Section */
.page-fishing-games__tips-section .page-fishing-games__section-title {
    color: var(--primary-color);
}

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

.page-fishing-games__tip-item {
    background-color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

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

.page-fishing-games__tip-item p {
    color: var(--text-dark);
}

.page-fishing-games__tip-item a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-fishing-games__tip-item a:hover {
    color: var(--secondary-color);
}

/* Platform Advantages Section */
.page-fishing-games__platform-advantages-section .page-fishing-games__section-title {
    color: var(--text-light);
}

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

.page-fishing-games__advantage-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: var(--text-light);
}

.page-fishing-games__advantage-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-fishing-games__advantage-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-fishing-games__advantage-item a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-fishing-games__advantage-item a:hover {
    color: var(--text-light);
}

.page-fishing-games__cta-center {
    text-align: center;
}

/* FAQ Section */
.page-fishing-games__faq-section .page-fishing-games__section-title {
    color: var(--primary-color);
}

.page-fishing-games__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-fishing-games__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.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;
    padding: 0 15px;
    opacity: 0;
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-dark);
}

.page-fishing-games__faq-answer p {
    color: var(--text-dark);
}

.page-fishing-games__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-fishing-games__faq-answer a:hover {
    color: var(--secondary-color);
}

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

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

.page-fishing-games__faq-question:active {
    background: #eeeeee;
}

.page-fishing-games__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}

.page-fishing-games__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

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

/* Global CTA Section */
.page-fishing-games__global-cta-section {
    background-color: var(--primary-color);
    padding: 80px 20px;
    text-align: center;
    color: var(--text-light);
}

.page-fishing-games__cta-flex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-fishing-games__global-cta-title {
    font-size: 40px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-fishing-games__global-cta-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 800px;
}

.page-fishing-games__global-cta-description a {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-fishing-games__global-cta-description a:hover {
    color: var(--text-light);
}

/* Brand Introduction Section */
.page-fishing-games__brand-intro-section .page-fishing-games__section-title {
    color: var(--primary-color);
}

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

.page-fishing-games__brand-item {
    background-color: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 30px;
    color: var(--text-dark);
}

.page-fishing-games__brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-fishing-games__brand-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

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

.page-fishing-games__brand-item a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-fishing-games__brand-item a:hover {
    color: var(--secondary-color);
}

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

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

@media (max-width: 768px) {
    .page-fishing-games {
        padding-top: 10px !important; /* Mobile: Adjust padding-top for mobile fixed header */
    }

    .page-fishing-games__hero-section {
        padding: 100px 15px 60px; /* Mobile: Adjust padding */
    }

    .page-fishing-games__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-fishing-games__hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-fishing-games__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !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: 28px;
        margin-bottom: 40px;
    }

    .page-fishing-games__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-fishing-games__text-content, .page-fishing-games__image-wrapper {
        min-width: unset;
        width: 100%;
    }

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

    .page-fishing-games__features-grid, .page-fishing-games__game-cards-grid, .page-fishing-games__advantages-grid, .page-fishing-games__brand-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-fishing-games__feature-card, .page-fishing-games__game-card, .page-fishing-games__advantage-item, .page-fishing-games__brand-item {
        padding: 20px;
    }

    .page-fishing-games__feature-title, .page-fishing-games__game-card h3, .page-fishing-games__advantage-title, .page-fishing-games__brand-item-title {
        font-size: 20px;
    }

    .page-fishing-games__how-to-item {
        padding: 20px;
    }

    .page-fishing-games__how-to-item::before {
        top: -12px;
        left: 15px;
        padding: 3px 10px;
        font-size: 12px;
    }

    .page-fishing-games__how-to-step-title {
        font-size: 18px;
        margin-top: 5px;
    }

    .page-fishing-games__video-showcase-section {
        padding: 40px 15px;
    }

    .page-fishing-games__video-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-fishing-games__video-container {
        padding-left: 0;
        padding-right: 0;
    }

    .page-fishing-games__video-link {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-fishing-games__video-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 4px;
    }

    .page-fishing-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
        object-fit: contain; /* Ensure video fits within bounds */
    }

    .page-fishing-games__video-click-hint {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }

    .page-fishing-games__video-cta {
        margin-top: 20px;
        padding: 0 15px;
    }

    .page-fishing-games__play-now-button {
        padding: 12px 30px !important;
        font-size: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-fishing-games__tip-item {
        padding: 20px;
    }

    .page-fishing-games__tip-title {
        font-size: 18px;
    }

    .page-fishing-games__global-cta-section {
        padding: 60px 15px;
    }

    .page-fishing-games__global-cta-title {
        font-size: 32px;
    }

    .page-fishing-games__global-cta-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-fishing-games__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-fishing-games__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-fishing-games__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-fishing-games__faq-answer {
        padding: 0 15px;
    }
    
    .page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
        padding: 15px !important;
    }
}