/* style/g.css */

:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --background-color: #0D0E12;
    --card-background-color: #17191F;
    --text-main-color: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange-color: #D96800;
    --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

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

.page-g__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden;
}

.page-g__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-g__hero-content {
    max-width: 800px;
    text-align: center;
    padding: 0 20px;
    z-index: 1;
}

.page-g__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 0 10px rgba(255,165,58,0.5);
}

.page-g__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-main-color);
}

.page-g__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-g__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-g__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-g__btn-secondary {
    background: var(--card-background-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-g__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 140, 26, 0.4);
}

.page-g__section {
    padding: 60px 20px;
    background-color: var(--background-color);
    text-align: center;
}

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

.page-g__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255,165,58,0.3);
}

.page-g__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--text-main-color);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-g__grid-container--two-col {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-g__card {
    background-color: var(--card-background-color);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
    display: flex;
    flex-direction: column;
}

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

.page-g__card-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-g__card-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-g__list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

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

.page-g__list-item::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-g__list-ordered {
    list-style: decimal;
    padding-left: 25px;
    margin-top: 20px;
}

.page-g__list-ordered .page-g__list-item {
    padding-left: 0;
}

.page-g__list-ordered .page-g__list-item::before {
    content: none;
}

.page-g__list--checklist .page-g__list-item::before {
    content: '✅';
    font-size: 0.9em;
    left: 0;
}

.page-g__cta-wrapper {
    margin-top: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-g__image-content {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}

.page-g__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-g__faq-item {
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main-color);
}

.page-g__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    color: var(--primary-color);
}

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

.page-g__faq-qtext {
    flex-grow: 1;
    color: var(--primary-color);
}

.page-g__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.page-g__faq-item[open] .page-g__faq-toggle {
    transform: rotate(45deg);
}

.page-g__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main-color);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-g__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-g__section-title {
        font-size: 2em;
    }
    .page-g__grid-container--two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-g {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-g__hero-section {
        padding: 40px 0;
        padding-top: 10px !important; 
    }
    .page-g__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }
    .page-g__description {
        font-size: 1em;
    }
    .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-left: 15px;
        padding-right: 15px;
        font-size: 1em;
    }
    .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;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-g__cta-wrapper {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-g__section {
        padding: 40px 15px;
    }
    .page-g__section-title {
        font-size: 1.8em;
    }
    .page-g__text-block {
        font-size: 0.95em;
    }
    .page-g__grid-container {
        grid-template-columns: 1fr;
    }
    .page-g__card {
        padding: 20px;
    }
    .page-g__card-title {
        font-size: 1.5em;
    }
    .page-g img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !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-image-wrapper {
        padding: 0 15px;
    }
    .page-g__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }
    .page-g__faq-answer {
        padding: 0 15px 15px;
    }
    .page-g__image-content {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-g__main-title {
        font-size: clamp(1.2em, 7vw, 2em);
    }
    .page-g__section-title {
        font-size: 1.5em;
    }
    .page-g__card-title {
        font-size: 1.3em;
    }
    .page-g__cta-button {
        padding: 12px 20px;
    }
}