/* style/g.css */

/* Custom Properties for Colors */
:root {
    --primary-color: #FF8C1A; /* Main Orange */
    --secondary-color: #FFA53A; /* Lighter Orange */
    --bg-dark: #0D0E12; /* Page background */
    --card-bg: #17191F; /* Card background */
    --text-light: #FFF3E6; /* Main text color */
    --border-color: #A84F0C; /* Border color */
    --glow-color: #FFB04D;
    --deep-orange: #D96800; /* Darker Orange for gradients */
    --button-gradient: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
}

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

.page-g a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-g a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-g__section {
    padding: 60px 0;
    position: relative;
}

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

.page-g__section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
}

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

/* HERO Section */
.page-g__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
    background-color: var(--bg-dark); /* Ensure background is dark */
}

.page-g__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Important for flex child */
}

.page-g__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-g__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
}

.page-g__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-g__main-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

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

.page-g__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff; /* White text on button */
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-g__cta-button:hover {
    background: linear-gradient(180deg, var(--deep-orange) 0%, var(--secondary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-g__cta-button--large {
    padding: 18px 50px;
    font-size: 22px;
}

/* General Content Sections */
.page-g__content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
}

.page-g__content-wrapper p {
    flex: 1;
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.page-g__image-content {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    filter: none; /* Ensure no filter is applied */
}

.page-g__image-right {
    order: 1; /* Puts image on right */
}

.page-g__about-dagac3 .page-g__content-wrapper p {
    flex: 2; /* Adjust flex for content */
}
.page-g__about-dagac3 .page-g__image-content {
    flex: 1; /* Adjust flex for image */
}

/* Grid Cards for Game Types */
.page-g__grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-g__card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-g__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-g__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    filter: none; /* Ensure no filter is applied */
}

.page-g__card-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.page-g__card-text {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text to take available space */
}

.page-g__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-g__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-g__step-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.page-g__step-item:hover {
    transform: translateY(-3px);
}

.page-g__step-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-g__step-item p {
    font-size: 16px;
    color: var(--text-light);
}

.page-g__final-tip {
    font-size: 18px;
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: var(--glow-color);
}

/* Why dagac3 uy tín List */
.page-g__list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 2;
}

.page-g__list li {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 17px;
    color: var(--text-light);
    border-left: 5px solid var(--primary-color);
    transition: background-color 0.3s ease;
}

.page-g__list li:hover {
    background-color: rgba(23, 25, 31, 0.8);
}

.page-g__list li strong {
    color: var(--secondary-color);
}

.page-g__summary-text {
    font-size: 18px;
    text-align: center;
    margin-top: 40px;
    color: var(--text-light);
}

/* Promotions Section */
.page-g__grid-promos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-g__promo-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-g__promo-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-g__promo-text {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-g__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--button-gradient);
    color: #ffffff;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-g__btn-primary:hover {
    background: linear-gradient(180deg, var(--deep-orange) 0%, var(--secondary-color) 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-g__action-text {
    font-size: 18px;
    text-align: center;
    margin-top: 40px;
    color: var(--text-light);
}

/* FAQ Section */
.page-g__faq-section {
    background-color: var(--bg-dark); /* Ensure it matches body background */
}

.page-g__faq-list {
    margin-top: 40px;
}

details.page-g__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
details.page-g__faq-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

details.page-g__faq-item summary.page-g__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-light);
}
details.page-g__faq-item summary.page-g__faq-question::-webkit-details-marker {
    display: none;
}
details.page-g__faq-item summary.page-g__faq-question:hover {
    background-color: rgba(23, 25, 31, 0.8);
}

.page-g__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--secondary-color);
}
.page-g__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-g__faq-item .page-g__faq-answer {
    padding: 0 25px 25px;
    background-color: var(--card-bg);
    border-radius: 0 0 12px 12px;
    font-size: 16px;
    color: var(--text-light);
}
details.page-g__faq-item .page-g__faq-answer p {
    margin-bottom: 0;
}

/* Final CTA Section */
.page-g__cta-final {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    border-top: 5px solid var(--glow-color);
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.3);
}

.page-g__cta-container {
    max-width: 900px;
}

.page-g__cta-final .page-g__section-title {
    color: #ffffff;
    font-size: 42px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-g__cta-final .page-g__section-description {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-g__hero-image {
        margin-bottom: 20px;
    }
    .page-g__main-title {
        font-size: 42px;
    }
    .page-g__intro-text {
        font-size: 18px;
    }
    .page-g__section-title {
        font-size: 32px;
    }
    .page-g__section-description {
        font-size: 16px;
    }
    .page-g__content-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .page-g__image-right {
        order: 0; /* Reset order for smaller screens */
    }
    .page-g__image-content {
        max-width: 100%;
        margin-bottom: 30px;
    }
    .page-g__list {
        width: 100%;
    }
    .page-g__card {
        padding: 25px;
    }
    .page-g__card-title {
        font-size: 22px;
    }
    .page-g__card-text {
        font-size: 15px;
    }
    .page-g__step-title {
        font-size: 20px;
    }
    .page-g__faq-qtext {
        font-size: 17px;
    }
    .page-g__faq-toggle {
        font-size: 24px;
    }
    .page-g__cta-final .page-g__section-title {
        font-size: 36px;
    }
    .page-g__cta-final .page-g__section-description {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-g__section {
        padding: 40px 0;
    }
    .page-g__container {
        padding: 0 15px;
    }
    .page-g__hero-section {
        padding-top: 10px !important; /* Keep small top padding */
        padding-bottom: 30px;
    }
    .page-g__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-g__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-g__cta-button {
        padding: 12px 30px;
        font-size: 18px;
        margin-top: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-g__cta-button--large {
        padding: 15px 40px;
        font-size: 20px;
    }
    .page-g__section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .page-g__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-g__content-wrapper {
        gap: 20px;
    }
    .page-g__image-content {
        margin-bottom: 20px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-g__grid-cards, .page-g__steps, .page-g__grid-promos {
        gap: 20px;
    }
    .page-g__card, .page-g__step-item, .page-g__promo-card {
        padding: 20px;
    }
    .page-g__card-image {
        height: 180px;
    }
    .page-g__card-title {
        font-size: 20px;
    }
    .page-g__card-text {
        font-size: 14px;
    }
    .page-g__btn-secondary, .page-g__btn-primary {
        padding: 10px 20px;
        font-size: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    details.page-g__faq-item summary.page-g__faq-question {
        padding: 15px 18px;
    }
    .page-g__faq-qtext {
        font-size: 16px;
    }
    .page-g__faq-toggle {
        font-size: 22px;
        width: 25px;
    }
    details.page-g__faq-item .page-g__faq-answer {
        padding: 0 18px 18px;
    }
    .page-g__cta-final {
        padding: 50px 0;
    }
    .page-g__cta-final .page-g__section-title {
        font-size: 30px;
    }
    .page-g__cta-final .page-g__section-description {
        font-size: 16px;
    }

    /* Ensure all content containers are constrained */
    .page-g__section,
    .page-g__card,
    .page-g__container,
    .page-g__cta-buttons,
    .page-g__button-group,
    .page-g__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-g__cta-buttons {
        flex-direction: column; /* For multiple buttons */
        gap: 10px;
    }
}

/* Ensure all images have responsive properties */
.page-g img {
    max-width: 100%;
    height: auto;
    display: block;
}
/* No filter property on images */
.page-g img {
    filter: none;
}