/* style/g.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --card-bg: #111111;
    --body-bg: #0A0A0A;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
}

.page-g {
    font-family: 'Arial', sans-serif;
    color: var(--text-main);
    background-color: var(--body-bg);
    line-height: 1.6;
    font-size: 16px;
}

.page-g h1, .page-g h2, .page-g h3, .page-g h4, .page-g h5, .page-g h6 {
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.3;
}

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

/* 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 */
    background-color: var(--body-bg);
}

.page-g__hero-container {
    position: relative;
    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;
}

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

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

.page-g__hero-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
    color: var(--text-main);
}

.page-g__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main);
}

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

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

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

.page-g__cta-button--secondary {
    background: none;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: none;
}

.page-g__cta-button--secondary:hover {
    background: rgba(255, 211, 107, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-g__cta-button--small {
    padding: 10px 25px;
    font-size: 16px;
}

/* General Section Styles */
.page-g__section {
    padding: 80px 0;
    background-color: var(--body-bg);
    border-bottom: 1px solid var(--border-color);
}

.page-g__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-main);
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.2);
}

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

.page-g__sub-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-main);
}

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

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

.page-g__card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-g__card-text {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-main);
}

/* About Section */
.page-g__image-content-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-g__image-content-block img {
    flex: 1;
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.2);
}

.page-g__text-block {
    flex: 1;
}

.page-g__list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-g__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--text-main);
    position: relative;
    padding-left: 25px;
}

.page-g__list-item::before {
    content: '★';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* Features Section */
.page-g__feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-g__feature-card {
    text-align: center;
}

/* Guide Section */
.page-g__guide-section {
    background-color: var(--card-bg);
}

.page-g__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-g__guide-step {
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.page-g__guide-step img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(255, 211, 107, 0.1);
}

.page-g__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--button-gradient);
    color: #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid var(--border-color);
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.5);
}

/* Bet Types Section */
.page-g__bet-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

.page-g__promo-card img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(255, 211, 107, 0.1);
}

.page-g__button-container {
    text-align: center;
    margin-top: 40px;
}

/* Security & Support Section */
.page-g__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-g__security-card img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(255, 211, 107, 0.1);
}

/* FAQ Section */
.page-g__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

details.page-g__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    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;
}

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(255, 211, 107, 0.05);
}

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

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

details.page-g__faq-item .page-g__faq-answer {
    padding: 0 25px 25px;
    background: rgba(17, 17, 17, 0.8);
    border-radius: 0 0 8px 8px;
    color: var(--text-main);
}

.page-g__faq-answer p {
    margin: 0;
    padding-top: 10px;
}

/* News & Blog Section */
.page-g__blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-g__blog-card a {
    text-decoration: none;
    color: inherit;
}

.page-g__blog-card .page-g__card-title {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.page-g__blog-card:hover .page-g__card-title {
    color: var(--primary-color);
}

.page-g__blog-date {
    display: block;
    font-size: 0.9em;
    color: #999;
    margin-top: 15px;
}

/* Dark Background Sections */
.page-g__dark-section {
    background-color: var(--card-bg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-g__image-content-block {
        flex-direction: column;
    }
    .page-g__image-content-block img, .page-g__text-block {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-g {
        font-size: 15px;
    }
    .page-g__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-g__hero-title {
        font-size: clamp(2em, 8vw, 3em);
    }
    .page-g__hero-description {
        font-size: 1em;
    }
    .page-g__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-g__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        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--secondary {
        border-color: var(--secondary-color) !important;
        color: var(--secondary-color) !important;
    }
    .page-g__section {
        padding: 50px 0;
    }
    .page-g__section-title {
        font-size: 2em;
    }
    .page-g__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-g__sub-title {
        font-size: 1.5em;
    }
    .page-g__list-item {
        font-size: 1em;
    }
    .page-g__card {
        padding: 20px;
    }
    .page-g__card-title {
        font-size: 1.3em;
    }
    .page-g__card-text {
        font-size: 0.95em;
    }
    .page-g__image-content-block img,
    .page-g__guide-step img,
    .page-g__promo-card img,
    .page-g__security-card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-g__container,
    .page-g__section,
    .page-g__card,
    .page-g__image-content-block,
    .page-g__feature-cards,
    .page-g__guide-steps,
    .page-g__bet-types-grid,
    .page-g__promo-grid,
    .page-g__security-grid,
    .page-g__faq-list,
    .page-g__blog-cards,
    .page-g__button-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    details.page-g__faq-item summary.page-g__faq-question {
        padding: 15px;
    }
    .page-g__faq-qtext {
        font-size: 1em;
    }
    details.page-g__faq-item .page-g__faq-answer {
        padding: 0 15px 15px;
    }
    .page-g__blog-card .page-g__card-title {
        font-size: 1.1em;
    }
    .page-g__blog-date {
        font-size: 0.85em;
    }
}