/* style/-g.css */

:root {
    --primary-color: #FFD700; /* Vàng kim */
    --secondary-color: #8B0000; /* Đỏ sẫm */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f5f5f5;
    --bg-dark: #1a1a1a;
    --border-color: #e0e0e0;
}

.page--g {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

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

/* Hero Section */
.page--g .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #a32a2a 100%); /* Nền đỏ sẫm */
    color: var(--text-light);
}

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

.page--g .hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 800px; /* Giới hạn kích thước ảnh hero */
}

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

.page--g .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page--g .main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--primary-color); /* Vàng kim cho tiêu đề chính */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.page--g .hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.page--g .hero-description strong {
    color: var(--primary-color);
}

.page--g .cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--primary-color);
    color: var(--secondary-color); /* Đỏ sẫm trên nền vàng */
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.4em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.page--g .cta-button:hover {
    background: #ffc400;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Sections */
.page--g section {
    padding: 60px 0;
}

.page--g section:nth-of-type(even) {
    background-color: #f0f0f0;
}

.page--g .section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

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

.page--g .section-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: var(--text-dark);
}

/* Feature Grid */
.page--g .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.page--g .feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page--g .feature-icon {
    width: 150px; /* Tăng kích thước icon */
    height: 150px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page--g .feature-heading {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* Game Type Grid */
.page--g .game-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page--g .game-type-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page--g .game-type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page--g .game-type-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.page--g .game-type-heading {
    font-size: 1.5em;
    color: var(--secondary-color);
    padding: 20px 15px 10px;
    font-weight: bold;
}

.page--g .game-type-description {
    font-size: 0.95em;
    color: var(--text-dark);
    padding: 0 15px 20px;
}

/* Step-by-Step Guide */
.page--g .step-by-step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

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

.page--g .step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em;
    font-weight: bold;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page--g .step-heading {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page--g .step-description {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.page--g .cta-small-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.page--g .cta-small-button:hover {
    background: #a32a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Promotions List */
.page--g .promo-list {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page--g .promo-item {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.page--g .promo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page--g .promo-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.page--g .promo-heading {
    font-size: 1.6em;
    color: var(--secondary-color);
    padding: 20px 15px 10px;
    font-weight: bold;
}

.page--g .promo-description {
    font-size: 0.95em;
    color: var(--text-dark);
    padding: 0 15px 20px;
}

/* Tips List */
.page--g .tips-list {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

.page--g .tip-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page--g .tip-heading {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* Safety and Support */
.page--g .support-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page--g .support-info-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.page--g .support-heading {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page--g .support-description {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* FAQ Section */
.page--g .faq-list {
    margin-top: 40px;
}

.page--g .faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
}

.page--g .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page--g .faq-question:hover {
    background: #f5f5f5;
}

.page--g .faq-heading {
    font-size: 1.25em;
    color: var(--secondary-color);
    margin: 0;
    font-weight: bold;
}

.page--g .faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page--g .faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--secondary-color);
}

.page--g .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    color: var(--text-dark);
    background-color: #f9f9f9;
}

.page--g .faq-item.active .faq-answer {
    max-height: 500px; /* Đủ lớn để chứa nội dung */
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
}

.page--g .faq-answer p {
    margin-bottom: 10px;
}

.page--g .faq-answer p:last-child {
    margin-bottom: 0;
}

/* Conclusion Section */
.page--g .section-conclusion {
    background: linear-gradient(135deg, #a32a2a 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    text-align: center;
}

.page--g .section-conclusion .section-title {
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page--g .section-conclusion .section-text {
    color: var(--text-light);
    font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page--g .main-title {
        font-size: 2.8em;
    }
    .page--g .hero-description {
        font-size: 1.2em;
    }
    .page--g .section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page--g .hero-section {
        padding: 40px 15px;
    }
    .page--g .main-title {
        font-size: 2.2em;
    }
    .page--g .hero-description {
        font-size: 1em;
    }
    .page--g .cta-button {
        padding: 15px 35px;
        font-size: 1.2em;
    }
    .page--g section {
        padding: 40px 0;
    }
    .page--g .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page--g .section-text {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .page--g .feature-item, .page--g .game-type-card, .page--g .step-item, .page--g .promo-item, .page--g .tip-item, .page--g .support-info-item {
        padding: 25px;
    }
    .page--g .feature-heading, .page--g .game-type-heading, .page--g .step-heading, .page--g .promo-heading, .page--g .tip-heading, .page--g .support-heading {
        font-size: 1.4em;
    }
    .page--g .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
        top: -15px;
    }
    .page--g .faq-question {
        padding: 15px 20px;
    }
    .page--g .faq-heading {
        font-size: 1.1em;
    }
    .page--g .faq-toggle {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .page--g .main-title {
        font-size: 1.8em;
    }
    .page--g .hero-description {
        font-size: 0.9em;
    }
    .page--g .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page--g .section-title {
        font-size: 1.5em;
    }
    .page--g .feature-grid, .page--g .game-type-grid, .page--g .step-by-step, .page--g .promo-list, .page--g .tips-list, .page--g .support-info-grid {
        grid-template-columns: 1fr;
    }
    .page--g .feature-icon {
        width: 100px;
        height: 100px;
    }
    .page--g .step-item {
        padding-top: 50px;
    }
    .page--g .step-number {
        top: -25px;
    }
}