/* style/g.css */

:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --text-main-color: #F3F8FF;
    --text-secondary-color: #AFC4E8;
    --card-bg-color: #10233F;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

.page-g {
    background-color: var(--deep-navy);
    color: var(--text-main-color);
    font-family: 'Arial', sans-serif;
}

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

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

.page-g__section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    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(--gold-color);
    border-radius: 2px;
}

.page-g__paragraph {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
    color: var(--text-secondary-color);
}

/* 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;
}

.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%;
}

.page-g__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-g__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
}

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

.page-g__main-title {
    font-size: clamp(32px, 5vw, 56px);
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
    font-weight: 700;
}

.page-g__hero-description {
    font-size: 19px;
    line-height: 1.6;
    color: var(--text-secondary-color);
    max-width: 900px;
    margin: 0 auto 30px auto;
}

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

.page-g__cta-button {
    display: inline-block;
    padding: 16px 36px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.page-g__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-g__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
}

.page-g__btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--text-main-color);
}

.page-g__btn-secondary:hover {
    background: var(--secondary-color);
    color: #ffffff;
}

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

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

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

.page-g__card img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    border: 1px solid var(--divider-color);
}

.page-g__feature-title, .page-g__security-title {
    font-size: 24px;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-g__feature-description, .page-g__security-description {
    font-size: 16px;
    color: var(--text-secondary-color);
    line-height: 1.7;
}

/* How-to-play Section */
.page-g__light-bg {
    background-color: #f9f9f9;
    color: #333333;
}

.page-g__light-bg .page-g__section-title {
    color: var(--primary-color);
}

.page-g__light-bg .page-g__paragraph {
    color: #555555;
}

.page-g__light-bg .page-g__card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    color: #333333;
}

.page-g__light-bg .page-g__card img {
    border: 1px solid #e0e0e0;
}

.page-g__light-bg .page-g__step-title {
    color: var(--primary-color);
}

.page-g__light-bg .page-g__step-description {
    color: #555555;
}

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

.page-g__step-item {
    padding: 30px;
    text-align: center;
}

.page-g__step-item img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 8px;
}

.page-g__step-title {
    font-size: 26px;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-g__step-description {
    font-size: 16px;
    color: var(--text-secondary-color);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Tips & Strategies */
.page-g__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-g__list-item {
    background-color: var(--card-bg-color);
    border-left: 5px solid var(--secondary-color);
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

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

.page-g__list-title {
    font-size: 22px;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-g__list-description {
    font-size: 16px;
    color: var(--text-secondary-color);
    line-height: 1.7;
}

.page-g__tips-strategies img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-color);
}

/* Mobile App Section */
.page-g__app-features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.page-g__app-image {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    text-align: center;
}

.page-g__app-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
}

.page-g__app-list {
    flex: 2;
    list-style: none;
    padding: 0;
    min-width: 300px;
}

.page-g__app-list .page-g__list-item {
    background-color: #ffffff;
    border-left-color: var(--primary-color);
    color: #333333;
}

.page-g__app-list .page-g__list-title {
    color: var(--primary-color);
}

.page-g__app-list .page-g__list-description {
    color: #555555;
}

/* Security & Support */
.page-g__security-support img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 2px solid var(--border-color);
}

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

details.page-g__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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-main-color);
    font-weight: bold;
    font-size: 18px;
}

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: rgba(var(--primary-color), 0.2);
}

.page-g__faq-qtext {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main-color);
}

.page-g__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-g__faq-item .page-g__faq-answer {
    padding: 0 25px 20px;
    background: rgba(var(--card-bg-color), 0.8);
    border-top: 1px solid var(--divider-color);
    border-radius: 0 0 10px 10px;
}

details.page-g__faq-item .page-g__faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary-color);
    margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-g__container {
        padding: 30px 15px;
    }

    .page-g__section {
        padding: 40px 0;
    }

    .page-g__main-title {
        font-size: clamp(28px, 4.5vw, 48px);
    }

    .page-g__hero-description {
        font-size: 18px;
    }

    .page-g__cta-button {
        padding: 14px 30px;
        font-size: 17px;
    }

    .page-g__feature-title, .page-g__security-title {
        font-size: 22px;
    }

    .page-g__step-title {
        font-size: 24px;
    }

    .page-g__list-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .page-g img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-g__section,
    .page-g__card,
    .page-g__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-g__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-g__main-title {
        font-size: clamp(24px, 6vw, 38px);
        margin-bottom: 15px;
    }

    .page-g__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

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

    .page-g__cta-button,
    .page-g__btn-primary,
    .page-g__btn-secondary,
    .page-g a[class*="button"],
    .page-g 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: 12px 20px;
        font-size: 16px;
    }

    .page-g__feature-grid, .page-g__security-grid, .page-g__step-by-step {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-g__card {
        padding: 25px;
    }

    .page-g__feature-title, .page-g__security-title {
        font-size: 20px;
    }

    .page-g__step-title {
        font-size: 22px;
    }

    .page-g__tips-list {
        margin-top: 30px;
    }

    .page-g__list-item {
        padding: 20px;
    }

    .page-g__list-title {
        font-size: 18px;
    }

    .page-g__app-features {
        flex-direction: column;
        gap: 30px;
    }

    .page-g__app-image,
    .page-g__app-list {
        min-width: unset;
        width: 100%;
    }

    details.page-g__faq-item summary.page-g__faq-question {
        padding: 15px;
    }

    .page-g__faq-qtext {
        font-size: 15px;
    }

    details.page-g__faq-item .page-g__faq-answer {
        padding: 0 15px 15px;
    }

    details.page-g__faq-item .page-g__faq-answer p {
        font-size: 15px;
    }
}