/* style/fishing-games.css */

/* Biến CSS */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --accent-color-login: #EA7C07;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-color-light: #f5f5f5;
    --background-color-white: #ffffff;
    --border-color: #e0e0e0;
}

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

/* Sections */
.page-fishing-games__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-fishing-games__sub-title {
    font-size: 24px;
    color: var(--text-color-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-fishing-games__sub-title--centered {
    text-align: center;
}

.page-fishing-games__paragraph {
    font-size: 18px;
    max-width: 900px;
    margin: 0 auto 30px auto;
    line-height: 1.8;
}

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

/* HERO Section */
.page-fishing-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background: linear-gradient(135deg, var(--primary-color), #40c0f0); /* Slightly darker variant of primary */
    color: var(--text-color-light);
}

.page-fishing-games__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-fishing-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-fishing-games__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 40px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    color: var(--text-color-light);
}

.page-fishing-games__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-fishing-games__intro-text {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
}

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

.page-fishing-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-fishing-games__btn-primary:hover {
    background: #1e87c0; /* Slightly darker primary */
    border-color: #1e87c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-fishing-games__btn-secondary:hover {
    background: #e0e0e0; /* Slightly darker secondary */
    color: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* About Fishing Games Section */
.page-fishing-games__about-fishing-games {
    background-color: var(--background-color-white);
    color: var(--text-color-dark);
}

.page-fishing-games__image-with-text {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-fishing-games__image-with-text img {
    width: 50%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__text-block {
    width: 50%;
}

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

.page-fishing-games__feature-list li {
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.5;
    position: relative;
    padding-left: 30px;
}

.page-fishing-games__feature-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.page-fishing-games__list-highlight {
    color: var(--primary-color);
}

/* Game Types Section */
.page-fishing-games__game-types {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-fishing-games__game-types .page-fishing-games__section-title,
.page-fishing-games__game-types .page-fishing-games__sub-title,
.page-fishing-games__game-types .page-fishing-games__paragraph {
    color: var(--text-color-light);
}

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

.page-fishing-games__card {
    background: var(--background-color-white);
    color: var(--text-color-dark);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-fishing-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.page-fishing-games__card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-fishing-games__card-description {
    font-size: 16px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-fishing-games__instruction-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-fishing-games__instruction-list li {
    background: var(--text-color-light);
    color: var(--text-color-dark);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 17px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Thomo Integration Section */
.page-fishing-games__thomo-integration {
    background-color: var(--background-color-light);
    color: var(--text-color-dark);
}

.page-fishing-games__image-highlight {
    position: relative;
    margin: 40px auto;
    max-width: 1000px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-fishing-games__image-highlight img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-fishing-games__image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    padding: 30px;
    color: var(--text-color-light);
    text-align: left;
}

.page-fishing-games__image-caption .page-fishing-games__sub-title {
    color: var(--text-color-light);
    margin-top: 0;
    font-size: 28px;
}

.page-fishing-games__image-caption p {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 700px;
}

/* Promotions Section */
.page-fishing-games__promotions {
    background-color: var(--background-color-white);
}

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

/* Security & Support Section */
.page-fishing-games__security-support {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-fishing-games__security-support .page-fishing-games__section-title,
.page-fishing-games__security-support .page-fishing-games__paragraph {
    color: var(--text-color-light);
}

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

.page-fishing-games__info-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-fishing-games__info-item .page-fishing-games__sub-title {
    color: var(--text-color-light);
    margin-top: 0;
}

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

.page-fishing-games__cta-group--centered {
    margin-top: 40px;
}

/* FAQ Section */
.page-fishing-games__faq {
    background-color: var(--background-color-light);
}

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

/* FAQ容器样式 */
.page-fishing-games__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

/* FAQ mặc định - ẩn câu trả lời */
.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 15px;
    opacity: 0;
}

/* FAQ trạng thái mở rộng - 🚨 Sử dụng!important và max-height đủ lớn để đảm bảo mở rộng */
.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

/* Question style */
.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    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;
}

/* Question title style */
.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; /* Prevent h3 from blocking click events */
    color: var(--text-color-dark);
}

/* Toggle icon */
.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; /* Prevent icon from blocking click events */
    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); /* Rotate for 'x' effect, or simply change text */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__main-title {
        font-size: 40px;
    }
    .page-fishing-games__intro-text {
        font-size: 18px;
    }
    .page-fishing-games__section-title {
        font-size: 32px;
    }
    .page-fishing-games__paragraph {
        font-size: 16px;
    }
    .page-fishing-games__image-with-text {
        flex-direction: column;
        text-align: center;
    }
    .page-fishing-games__image-with-text img,
    .page-fishing-games__text-block {
        width: 100%;
        max-width: 100%;
    }
    .page-fishing-games__image-with-text img {
        margin-bottom: 20px;
    }
    .page-fishing-games__game-cards,
    .page-fishing-games__promo-cards,
    .page-fishing-games__support-info {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-fishing-games__image-caption .page-fishing-games__sub-title {
        font-size: 24px;
    }
    .page-fishing-games__image-caption p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-fishing-games__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-fishing-games__hero-image img {
        border-radius: 4px;
    }
    .page-fishing-games__hero-content {
        padding: 30px 20px;
    }
    .page-fishing-games__main-title {
        font-size: 32px;
        line-height: 1.3;
    }
    .page-fishing-games__intro-text {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-fishing-games__cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-fishing-games__cta-button {
        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__section {
        padding: 40px 0;
    }
    .page-fishing-games__section-title {
        font-size: 28px;
    }
    .page-fishing-games__sub-title {
        font-size: 20px;
    }
    .page-fishing-games__paragraph {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-fishing-games__image-highlight {
        border-radius: 8px;
    }
    .page-fishing-games__image-caption {
        padding: 20px;
    }
    .page-fishing-games__image-caption .page-fishing-games__sub-title {
        font-size: 20px;
    }
    .page-fishing-games__image-caption p {
        font-size: 14px;
    }
    .page-fishing-games__card {
        padding: 20px;
    }
    .page-fishing-games__card img {
        
    }
    .page-fishing-games__card-title {
        font-size: 20px;
    }
    .page-fishing-games__instruction-list li {
        font-size: 15px;
        padding: 12px 15px;
    }
    .page-fishing-games__info-item {
        padding: 20px;
    }
    .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;
    }

    /* Ensure all images are responsive and do not overflow */
    .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__about-fishing-games,
    .page-fishing-games__game-types,
    .page-fishing-games__thomo-integration,
    .page-fishing-games__promotions,
    .page-fishing-games__security-support,
    .page-fishing-games__faq {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-fishing-games__cta-group,
    .page-fishing-games__button-group,
    .page-fishing-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-fishing-games__cta-group {
        flex-direction: column;
    }
}

/* Color Contrast Fixes for dark backgrounds */
.page-fishing-games__dark-bg {
    background: #26A9E0;
    color: #ffffff;
}

.page-fishing-games__dark-bg .page-fishing-games__section-title,
.page-fishing-games__dark-bg .page-fishing-games__sub-title,
.page-fishing-games__dark-bg .page-fishing-games__paragraph,
.page-fishing-games__dark-bg .page-fishing-games__list-highlight {
    color: #ffffff;
}

/* Specific button color for Login (if used) */
.page-fishing-games__btn-login {
    background-color: #EA7C07;
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}
.page-fishing-games__btn-login:hover {
    background-color: #d16b05;
    border-color: #d16b05;
}