.page-g {
    font-family: 'Arial', sans-serif;
    color: #333333;
    background-color: #F5F7FA;
    line-height: 1.6;
}

.page-g__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, as body handles header offset */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

.page-g__hero-image-container {
    width: 100%;
    max-height: 675px; /* Limit height to maintain aspect ratio */
    overflow: hidden;
}

.page-g__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-g__hero-content-wrapper {
    position: relative;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1;
    color: #ffffff;
}

.page-g__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-g__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-g__hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

.page-g__btn-primary,
.page-g__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-g__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-g__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-g__btn-secondary {
    background-color: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-g__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #E53935;
    transform: translateY(-2px);
}

.page-g__section {
    padding: 60px 20px;
    background-color: #F5F7FA;
}

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

.page-g__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: #E53935;
    text-align: center;
    margin-bottom: 40px;
}

.page-g__text-block {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #333333;
    text-align: justify;
}

.page-g__image-and-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.page-g__content-column,
.page-g__image-column {
    flex: 1;
}

.page-g__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-g__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: #333333;
}

.page-g__list-item {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.page-g__list-item strong {
    color: #E53935;
}

.page-g__inline-link {
    color: #E53935;
    text-decoration: underline;
    font-weight: 600;
}

.page-g__inline-link:hover {
    color: #FF5A4F;
}

.page-g__ordered-list {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 30px;
    color: #333333;
}

.page-g__center-content {
    text-align: center;
    margin-top: 30px;
}

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

.page-g__benefit-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.page-g__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

.page-g__card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #E53935;
    margin-bottom: 15px;
    padding: 0 15px;
}

.page-g__card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
    padding: 0 15px;
    flex-grow: 1;
}

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

.page-g__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-g__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.3s ease;
}

.page-g__faq-question::-webkit-details-marker {
    display: none;
}

.page-g__faq-question:hover {
    background-color: #f9f9f9;
}

.page-g__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: #E53935;
    margin-left: 15px;
}

.page-g__faq-item[open] .page-g__faq-toggle {
    content: '−';
}

.page-g__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

.page-g__conclusion {
    text-align: center;
    padding-bottom: 80px;
}

.page-g__conclusion .page-g__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
    .page-g__hero-image-container {
        max-height: 500px;
    }

    .page-g__hero-content {
        padding: 0 20px;
    }

    .page-g__section {
        padding: 50px 15px;
    }

    .page-g__image-and-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-g__content-column,
    .page-g__image-column {
        width: 100%;
    }

    .page-g__image-column:nth-child(2) {
        order: -1;
    }

    .page-g__benefit-card {
        padding-bottom: 20px;
    }

    .page-g__card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-g__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }

    .page-g__hero-image-container {
        max-height: 300px;
    }

    .page-g__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-g__main-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

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

    .page-g__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .page-g__btn-primary,
    .page-g__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

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

    .page-g__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-g__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .page-g__text-block,
    .page-g__list-item,
    .page-g__card-description,
    .page-g__faq-answer {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .page-g img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-g__image-and-content {
        flex-direction: column;
        gap: 20px;
    }

    .page-g__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-g__card-image {
        height: 160px;
    }

    .page-g__card-title {
        font-size: 1.25rem;
    }

    .page-g__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-g__faq-toggle {
        font-size: 1.3rem;
    }

    .page-g__conclusion {
        padding-bottom: 60px;
    }

    .page-g__section,
    .page-g__about-cockfighting,
    .page-g__betting-types,
    .page-g__guide,
    .page-g__benefits,
    .page-g__tips,
    .page-g__faq,
    .page-g__conclusion {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}