/* style/-g.css */

/* Biến CSS */
:root {
    --page-g-primary-color: #FFD700; /* Vàng kim */
    --page-g-secondary-color: #8B0000; /* Đỏ sẫm */
    --page-g-text-dark: #333333;
    --page-g-text-light: #ffffff;
    --page-g-bg-light: #f9f9f9;
    --page-g-bg-dark: #222222;
    --page-g-border-color: #e0e0e0;
}

/* Thiết lập chung cho trang */
.page--g {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-g-text-dark);
    background-color: var(--page-g-bg-light);
}

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

.page--g__section {
    padding: 60px 0;
    text-align: center;
}

.page--g__section:nth-of-type(even) {
    background-color: var(--page-g-bg-dark);
    color: var(--page-g-text-light);
}

.page--g__section:nth-of-type(even) .page--g__section-title,
.page--g__section:nth-of-type(even) .page--g__section-description,
.page--g__section:nth-of-type(even) .page--g__feature-title,
.page--g__section:nth-of-type(even) .page--g__feature-text,
.page--g__section:nth-of-type(even) .page--g__list-title,
.page--g__section:nth-of-type(even) .page--g__list-text,
.page--g__section:nth-of-type(even) .page--g__tip-title,
.page--g__section:nth-of-type(even) .page--g__tip-text,
.page--g__section:nth-of-type(even) .page--g__faq-question,
.page--g__section:nth-of-type(even) .page--g__faq-answer {
    color: var(--page-g-text-light);
}

.page--g__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--page-g-secondary-color);
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.page--g__section:nth-of-type(even) .page--g__section-title {
    color: var(--page-g-primary-color);
}

.page--g__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--page-g-primary-color);
    border-radius: 2px;
}

.page--g__section:nth-of-type(even) .page--g__section-title::after {
    background-color: var(--page-g-secondary-color);
}

.page--g__section-description {
    font-size: 1.15em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-g-text-dark);
}

.page--g__section:nth-of-type(even) .page--g__section-description {
    color: var(--page-g-text-light);
}

.page--g__highlight {
    color: var(--page-g-secondary-color);
    font-weight: bold;
}

.page--g__section:nth-of-type(even) .page--g__highlight {
    color: var(--page-g-primary-color);
}

.page--g__btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.page--g__btn--primary {
    background-color: var(--page-g-primary-color);
    color: var(--page-g-text-dark);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page--g__btn--primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page--g__btn--secondary {
    background-color: var(--page-g-secondary-color);
    color: var(--page-g-text-light);
    border: 2px solid var(--page-g-primary-color);
    margin-left: 20px;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.page--g__btn--secondary:hover {
    background-color: #b30000;
    border-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.6);
}

.page--g__btn--sm {
    padding: 8px 18px;
    font-size: 0.95em;
    border-radius: 30px;
    margin-top: 15px;
}

/* Hero Section */
.page--g__hero-section {
    background: linear-gradient(135deg, var(--page-g-primary-color) 0%, var(--page-g-secondary-color) 100%);
    padding: 100px 0;
    color: var(--page-g-text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page--g__hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: page-g-bubble 15s infinite ease-in-out alternate;
}

.page--g__hero-section::after {
    content: '';
    position: absolute;
    bottom: -70px;
    right: -70px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: page-g-bubble 20s infinite ease-in-out reverse alternate;
}

@keyframes page-g-bubble {
    0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    50% { transform: translate(20px, 30px) scale(1.1); opacity: 1; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
}

.page--g__hero-title {
    font-size: 4em;
    margin-bottom: 25px;
    color: var(--page-g-text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page--g__hero-description {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.9);
}

.page--g__hero-actions .page--g__btn {
    margin: 0 10px;
}

/* Features Grid */
.page--g__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page--g__feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.page--g__section:nth-of-type(even) .page--g__feature-item {
    background-color: var(--page-g-bg-dark);
    border: 1px solid var(--page-g-primary-color);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.15);
}

.page--g__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page--g__section:nth-of-type(even) .page--g__feature-item:hover {
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.page--g__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page--g__feature-title {
    font-size: 1.6em;
    color: var(--page-g-secondary-color);
    margin-bottom: 15px;
}

.page--g__section:nth-of-type(even) .page--g__feature-title {
    color: var(--page-g-primary-color);
}

.page--g__feature-text {
    font-size: 1em;
    color: var(--page-g-text-dark);
}

.page--g__section:nth-of-type(even) .page--g__feature-text {
    color: var(--page-g-text-light);
}

/* How-to-play Steps */
.page--g__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page--g__step-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page--g__section:nth-of-type(even) .page--g__step-item {
    background-color: var(--page-g-bg-dark);
    border: 1px solid var(--page-g-primary-color);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.15);
}

.page--g__step-number {
    font-size: 3em;
    font-weight: bold;
    color: var(--page-g-primary-color);
    margin-bottom: 15px;
    line-height: 1;
}

.page--g__step-title {
    font-size: 1.5em;
    color: var(--page-g-secondary-color);
    margin-bottom: 10px;
}

.page--g__step-text {
    font-size: 1em;
    color: var(--page-g-text-dark);
}

.page--g__section:nth-of-type(even) .page--g__step-title {
    color: var(--page-g-primary-color);
}

.page--g__section:nth-of-type(even) .page--g__step-text {
    color: var(--page-g-text-light);
}

/* Betting Types List */
.page--g__list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page--g__list-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: left;
    border-left: 5px solid var(--page-g-primary-color);
    transition: transform 0.3s ease;
}

.page--g__section:nth-of-type(even) .page--g__list-item {
    background-color: var(--page-g-bg-dark);
    border-left-color: var(--page-g-secondary-color);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.15);
}

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

.page--g__list-title {
    font-size: 1.6em;
    color: var(--page-g-secondary-color);
    margin-bottom: 10px;
}

.page--g__section:nth-of-type(even) .page--g__list-title {
    color: var(--page-g-primary-color);
}

.page--g__list-text {
    font-size: 1em;
    color: var(--page-g-text-dark);
}

.page--g__section:nth-of-type(even) .page--g__list-text {
    color: var(--page-g-text-light);
}

/* Tips Section */
.page--g__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page--g__tip-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.page--g__section:nth-of-type(even) .page--g__tip-item {
    background-color: var(--page-g-bg-dark);
    border: 1px solid var(--page-g-primary-color);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.15);
}

.page--g__tip-item:hover {
    transform: translateY(-10px);
}

.page--g__tip-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page--g__tip-title {
    font-size: 1.5em;
    color: var(--page-g-secondary-color);
    margin-bottom: 10px;
}

.page--g__section:nth-of-type(even) .page--g__tip-title {
    color: var(--page-g-primary-color);
}

.page--g__tip-text {
    font-size: 1em;
    color: var(--page-g-text-dark);
}

.page--g__section:nth-of-type(even) .page--g__tip-text {
    color: var(--page-g-text-light);
}

/* FAQ Section */
.page--g__faq-items {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page--g__faq-item {
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page--g__section:nth-of-type(even) .page--g__faq-item {
    background-color: #333333; /* Darker background for FAQ items in dark sections */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page--g__faq-question {
    font-size: 1.3em;
    color: var(--page-g-secondary-color);
    padding: 20px 25px;
    cursor: pointer;
    position: relative;
    margin: 0;
    transition: background-color 0.3s ease;
}

.page--g__section:nth-of-type(even) .page--g__faq-question {
    color: var(--page-g-primary-color);
}

.page--g__faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page--g__faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page--g__faq-answer {
    font-size: 1em;
    color: var(--page-g-text-dark);
    padding: 0 25px 20px 25px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page--g__section:nth-of-type(even) .page--g__faq-answer {
    color: var(--page-g-text-light);
}

.page--g__faq-answer.active {
    max-height: 200px; /* Adjust as needed */
    padding-top: 10px;
}

.page--g__link {
    color: var(--page-g-secondary-color);
    text-decoration: underline;
}

.page--g__section:nth-of-type(even) .page--g__link {
    color: var(--page-g-primary-color);
}

.page--g__link:hover {
    color: var(--page-g-primary-color);
}

.page--g__section:nth-of-type(even) .page--g__link:hover {
    color: var(--page-g-secondary-color);
}

/* CTA Section */
.page--g__cta-section {
    background: var(--page-g-secondary-color);
    color: var(--page-g-text-light);
    padding: 80px 0;
    text-align: center;
}

.page--g__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--page-g-primary-color);
}

.page--g__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.9);
}

.page--g__cta-actions .page--g__btn {
    margin: 0 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page--g__hero-title {
        font-size: 3em;
    }

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

    .page--g__cta-title {
        font-size: 2.5em;
    }

    .page--g__hero-actions .page--g__btn,
    .page--g__cta-actions .page--g__btn {
        margin: 10px 0;
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .page--g__btn--secondary {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .page--g__hero-title {
        font-size: 2.5em;
    }

    .page--g__hero-description {
        font-size: 1.1em;
    }

    .page--g__section-title {
        font-size: 1.8em;
    }

    .page--g__features-grid,
    .page--g__steps-grid,
    .page--g__list,
    .page--g__tips-grid {
        grid-template-columns: 1fr;
    }

    .page--g__feature-item,
    .page--g__step-item,
    .page--g__list-item,
    .page--g__tip-item {
        padding: 25px;
    }

    .page--g__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .page--g__hero-title {
        font-size: 2em;
    }

    .page--g__section-title {
        font-size: 1.6em;
    }

    .page--g__hero-section,
    .page--g__section,
    .page--g__cta-section {
        padding: 50px 0;
    }

    .page--g__btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    .page--g__hero-actions .page--g__btn--secondary {
        margin-top: 15px;
        margin-left: auto;
    }
}