/* style/game-guides.css */

:root {
    --page-game-guides__primary-color: #017439;
    --page-game-guides__secondary-color: #FFFFFF;
    --page-game-guides__text-dark: #333333;
    --page-game-guides__text-light: #ffffff;
    --page-game-guides__background-dark: #0a0a0a; /* From shared.css */
    --page-game-guides__background-light: #f8f9fa;
    --page-game-guides__register-btn: #C30808;
    --page-game-guides__login-btn: #C30808;
    --page-game-guides__register-login-font: #FFFF00;
}

.page-game-guides {
    color: var(--page-game-guides__text-light); /* Body background is dark, so text is light */
    background-color: var(--page-game-guides__background-dark);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-game-guides__hero-section {
    position: relative;
    padding: 100px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    text-align: center;
    background-color: var(--page-game-guides__primary-color);
    color: var(--page-game-guides__text-light);
}

.page-game-guides__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--page-game-guides__register-login-font); /* Using specific font color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-guides__subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--page-game-guides__secondary-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-game-guides__btn-primary {
    background-color: var(--page-game-guides__register-btn);
    color: var(--page-game-guides__register-login-font);
    border: 2px solid var(--page-game-guides__register-btn);
}

.page-game-guides__btn-primary:hover {
    background-color: #e00b0b;
    transform: translateY(-2px);
}

.page-game-guides__btn-secondary {
    background-color: transparent;
    color: var(--page-game-guides__secondary-color);
    border: 2px solid var(--page-game-guides__secondary-color);
}

.page-game-guides__btn-secondary:hover {
    background-color: var(--page-game-guides__secondary-color);
    color: var(--page-game-guides__primary-color);
    transform: translateY(-2px);
}

.page-game-guides__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-game-guides__register-login-font); /* Default for titles */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-game-guides__introduction-section {
    padding: 60px 0;
    background-color: var(--page-game-guides__background-dark);
    color: var(--page-game-guides__text-light);
}

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

.page-game-guides__text-block {
    flex: 1;
    min-width: 300px;
}

.page-game-guides__text-block p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

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

.page-game-guides__image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    display: block;
    margin: 0 auto;
}

.page-game-guides__rules-section {
    padding: 60px 0;
    background-color: var(--page-game-guides__primary-color);
    color: var(--page-game-guides__text-light);
}

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

.page-game-guides__card {
    background-color: var(--page-game-guides__secondary-color);
    color: var(--page-game-guides__text-dark);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-game-guides__card:hover {
    transform: translateY(-5px);
}

.page-game-guides__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--page-game-guides__primary-color);
}

.page-game-guides__card p {
    font-size: 1em;
    line-height: 1.5;
}

.page-game-guides__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    margin-top: 40px;
}

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

.page-game-guides__video-caption {
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
    color: var(--page-game-guides__secondary-color);
}

.page-game-guides__bet-types-section {
    padding: 60px 0;
    background-color: var(--page-game-guides__background-dark);
    color: var(--page-game-guides__text-light);
}

.page-game-guides__bet-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-game-guides__bet-type-grid .page-game-guides__card {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--page-game-guides__text-light);
}

.page-game-guides__bet-type-grid .page-game-guides__card-title {
    color: var(--page-game-guides__register-login-font);
}

.page-game-guides__info-text {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
}

.page-game-guides__cta-buttons--center {
    justify-content: center;
}

.page-game-guides__strategy-section {
    padding: 60px 0;
    background-color: var(--page-game-guides__primary-color);
    color: var(--page-game-guides__text-light);
}

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

.page-game-guides__strategy-grid .page-game-guides__card {
    background-color: var(--page-game-guides__secondary-color);
    color: var(--page-game-guides__text-dark);
}

.page-game-guides__strategy-grid .page-game-guides__card-title {
    color: var(--page-game-guides__primary-color);
}

.page-game-guides__image-wrapper--full-width {
    margin-top: 40px;
}

.page-game-guides__registration-guide-section {
    padding: 60px 0;
    background-color: var(--page-game-guides__background-dark);
    color: var(--page-game-guides__text-light);
}

.page-game-guides__step-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    counter-reset: step-counter;
}

.page-game-guides__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 70px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-game-guides__list-item::before {
    counter-increment: step-counter;
    content: "Bước " counter(step-counter);
    position: absolute;
    left: 20px;
    top: 25px;
    background-color: var(--page-game-guides__register-btn);
    color: var(--page-game-guides__register-login-font);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

.page-game-guides__list-title {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--page-game-guides__register-login-font);
}

.page-game-guides__list-item p {
    font-size: 1em;
    color: var(--page-game-guides__secondary-color);
}

.page-game-guides__advantages-section {
    padding: 60px 0;
    background-color: var(--page-game-guides__primary-color);
    color: var(--page-game-guides__text-light);
}

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

.page-game-guides__feature-item {
    background-color: var(--page-game-guides__secondary-color);
    color: var(--page-game-guides__text-dark);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-game-guides__feature-item:hover {
    transform: translateY(-5px);
}

.page-game-guides__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%; /* Ensure icons are circular if designed so */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-game-guides__feature-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--page-game-guides__primary-color);
}

.page-game-guides__feature-item p {
    font-size: 1em;
    line-height: 1.5;
}

.page-game-guides__faq-section {
    padding: 60px 0;
    background-color: var(--page-game-guides__background-dark);
    color: var(--page-game-guides__text-light);
}

.page-game-guides__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-game-guides__faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.page-game-guides__faq-question {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--page-game-guides__secondary-color);
    transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-game-guides__faq-question h3 {
    margin: 0;
    color: inherit;
}

.page-game-guides__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-game-guides__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--page-game-guides__secondary-color);
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 15px 25px;
}

.page-game-guides__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.5;
}

.page-game-guides__cta-bottom-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--page-game-guides__primary-color);
    color: var(--page-game-guides__text-light);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-game-guides__main-title {
        font-size: 2.8em;
    }
    .page-game-guides__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-game-guides {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-game-guides__hero-section {
        padding: 80px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-game-guides__main-title {
        font-size: 2.2em;
    }
    .page-game-guides__subtitle {
        font-size: 1.1em;
        margin-bottom: 30px;
    }
    .page-game-guides__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-game-guides__content-wrapper {
        flex-direction: column;
    }
    .page-game-guides__image-wrapper {
        margin-top: 30px;
    }
    .page-game-guides__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-game-guides__content-grid,
    .page-game-guides__bet-type-grid,
    .page-game-guides__strategy-grid,
    .page-game-guides__feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-game-guides__card {
        padding: 20px;
    }
    .page-game-guides__card-title {
        font-size: 1.3em;
    }
    .page-game-guides__list-item {
        padding: 20px 15px 20px 60px;
    }
    .page-game-guides__list-item::before {
        left: 15px;
        top: 20px;
        width: 35px;
        height: 35px;
        font-size: 0.8em;
    }
    .page-game-guides__list-title {
        font-size: 1.2em;
    }
    .page-game-guides__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-game-guides__faq-answer {
        padding: 10px 20px;
    }

    /* Ensure all content sections do not overflow */
    .page-game-guides__container,
    .page-game-guides__hero-section,
    .page-game-guides__introduction-section,
    .page-game-guides__rules-section,
    .page-game-guides__bet-types-section,
    .page-game-guides__strategy-section,
    .page-game-guides__registration-guide-section,
    .page-game-guides__advantages-section,
    .page-game-guides__faq-section,
    .page-game-guides__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    /* Mobile image and video specific overrides */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides video,
    .page-game-guides__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides__video-wrapper {
        overflow: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-game-guides__main-title {
        font-size: 1.8em;
    }
    .page-game-guides__section-title {
        font-size: 1.5em;
    }
    .page-game-guides__subtitle {
        font-size: 1em;
    }
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        padding: 10px 15px;
    }
}