/* style/fishing-games.css */

/* Biến CSS cho màu sắc tùy chỉnh */
:root {
    --page-fishing-games-primary-color: #017439;
    --page-fishing-games-secondary-color: #FFFFFF;
    --page-fishing-games-register-btn-bg: #C30808;
    --page-fishing-games-login-btn-bg: #C30808;
    --page-fishing-games-btn-text-color: #FFFF00;
    --page-fishing-games-dark-text: #333333;
    --page-fishing-games-light-text: #FFFFFF;
    --page-fishing-games-card-bg: #FFFFFF;
    --page-fishing-games-border-color: #e0e0e0;
}

/* Reset và Base Styles */
.page-fishing-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-fishing-games-light-text); /* Mặc định chữ trắng vì body background tối */
    background-color: transparent; /* Body đã có màu nền */
}

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

.page-fishing-games__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: var(--page-fishing-games-light-text);
}

.page-fishing-games__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-fishing-games-light-text);
}

/* Dark/Light Background Sections */
.page-fishing-games__dark-bg {
    background-color: var(--page-fishing-games-primary-color);
    color: var(--page-fishing-games-light-text);
}

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

.page-fishing-games__light-bg .page-fishing-games__section-title,
.page-fishing-games__light-bg .page-fishing-games__section-description,
.page-fishing-games__light-bg h3,
.page-fishing-games__light-bg p,
.page-fishing-games__light-bg li {
    color: var(--page-fishing-games-dark-text);
}

/* Buttons */
.page-fishing-games__btn-primary,
.page-fishing-games__btn-secondary,
.page-fishing-games__btn-register,
.page-fishing-games__btn-login {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

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

.page-fishing-games__btn-primary:hover {
    background-color: darken(var(--page-fishing-games-primary-color), 10%);
    border-color: darken(var(--page-fishing-games-primary-color), 10%);
}

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

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

.page-fishing-games__btn-register,
.page-fishing-games__btn-login {
    background-color: var(--page-fishing-games-register-btn-bg);
    color: var(--page-fishing-games-btn-text-color);
    border: 2px solid var(--page-fishing-games-register-btn-bg);
}

.page-fishing-games__btn-register:hover,
.page-fishing-games__btn-login:hover {
    background-color: darken(var(--page-fishing-games-register-btn-bg), 10%);
    border-color: darken(var(--page-fishing-games-register-btn-bg), 10%);
}

.page-fishing-games__btn-small {
    padding: 8px 18px;
    font-size: 0.9em;
}

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

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

/* Hero Section */
.page-fishing-games__hero-section {
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Đảm bảo không bị header che */
}

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

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

.page-fishing-games__description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--page-fishing-games-light-text);
}

.page-fishing-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4; /* Làm mờ ảnh nền để text dễ đọc */
}

/* Intro Video Section */
.page-fishing-games__intro-video-section {
    padding: 80px 0;
}

.page-fishing-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto;
    border-radius: 12px;
}

.page-fishing-games__video-wrapper .page-fishing-games__video,
.page-fishing-games__video-wrapper .page-fishing-games__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.page-fishing-games__video-link {
    display: block;
    cursor: pointer;
}

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

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

.page-fishing-games__feature-card {
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--page-fishing-games-dark-text);
}

.page-fishing-games__feature-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-fishing-games__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--page-fishing-games-dark-text);
}

.page-fishing-games__feature-text {
    font-size: 1em;
    color: var(--page-fishing-games-dark-text);
}

/* Games Showcase Section */
.page-fishing-games__games-showcase {
    padding: 80px 0;
}

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

.page-fishing-games__game-card {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--page-fishing-games-dark-text);
}

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

.page-fishing-games__game-title {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-fishing-games__game-title a {
    color: var(--page-fishing-games-dark-text);
    text-decoration: none;
}

.page-fishing-games__game-title a:hover {
    color: var(--page-fishing-games-primary-color);
}

.page-fishing-games__game-description {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: var(--page-fishing-games-dark-text);
}

/* Guide Section */
.page-fishing-games__guide-section {
    padding: 80px 0;
}

.page-fishing-games__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-fishing-games__step-card {
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--page-fishing-games-dark-text);
}

.page-fishing-games__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--page-fishing-games-primary-color);
    margin-bottom: 15px;
}

.page-fishing-games__step-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--page-fishing-games-dark-text);
}

.page-fishing-games__step-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--page-fishing-games-dark-text);
}

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

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

.page-fishing-games__promo-card {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--page-fishing-games-light-text);
}

.page-fishing-games__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-fishing-games__promo-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--page-fishing-games-light-text);
}

.page-fishing-games__promo-text {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: var(--page-fishing-games-light-text);
}

/* Tips Section */
.page-fishing-games__tips-section {
    padding: 80px 0;
}

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

.page-fishing-games__tip-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.5;
    color: var(--page-fishing-games-light-text);
}

.page-fishing-games__tip-item strong {
    color: var(--page-fishing-games-light-text);
}

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

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

.page-fishing-games__faq-item {
    background-color: var(--page-fishing-games-card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: var(--page-fishing-games-dark-text);
}

.page-fishing-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-fishing-games-dark-text);
    transition: background-color 0.3s ease;
}

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

.page-fishing-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--page-fishing-games-primary-color);
}

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

.page-fishing-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--page-fishing-games-dark-text);
}

.page-fishing-games__faq-item.active .page-fishing-games__faq-answer {
    max-height: 1000px !important; /* Đảm bảo đủ cao để chứa nội dung */
    padding: 15px 20px 20px;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-fishing-games__main-title {
        font-size: 3em;
    }
    .page-fishing-games__description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-fishing-games {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-fishing-games__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-fishing-games__main-title {
        font-size: 2.2em;
    }

    .page-fishing-games__description {
        font-size: 1em;
    }

    .page-fishing-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-fishing-games__btn-primary,
    .page-fishing-games__btn-secondary,
    .page-fishing-games__btn-register,
    .page-fishing-games__btn-login,
    .page-fishing-games a[class*="button"],
    .page-fishing-games a[class*="btn"] {
        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__section-title {
        font-size: 1.8em;
    }

    .page-fishing-games__section-description {
        font-size: 0.9em;
    }

    /* Image Responsive */
    .page-fishing-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-fishing-games__section,
    .page-fishing-games__card,
    .page-fishing-games__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video Responsive */
    .page-fishing-games video,
    .page-fishing-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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;
    }
    .page-fishing-games__intro-video-section .page-fishing-games__video-wrapper {
        padding-bottom: 75%; /* Adjust for smaller screens, e.g., 4:3 or more vertical */
    }
}

@media (max-width: 480px) {
    .page-fishing-games__main-title {
        font-size: 1.8em;
    }
    .page-fishing-games__hero-section {
        min-height: 350px;
    }
    .page-fishing-games__section-title {
        font-size: 1.5em;
    }
}