/* style/g.css */

/* Custom Colors */
:root {
    --page-g-bg-color: #08160F;
    --page-g-card-bg: #11271B;
    --page-g-text-main: #F2FFF6;
    --page-g-text-secondary: #A7D9B8;
    --page-g-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-g-border-color: #2E7A4E;
    --page-g-glow-color: #57E38D;
    --page-g-gold-color: #F2C14E;
    --page-g-divider-color: #1E3A2A;
    --page-g-deep-green: #0A4B2C;
}

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

/* Base section styling */
.page-g__section {
    padding: 80px 0;
    text-align: center;
}

.page-g__section--light {
    background-color: var(--page-g-bg-color);
    color: var(--page-g-text-main);
}

.page-g__dark-section {
    background-color: var(--page-g-card-bg); /* Darker background for contrast */
    color: var(--page-g-text-main);
}

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

.page-g__section-title {
    font-size: 2.8em;
    color: var(--page-g-gold-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-g__section-description {
    font-size: 1.2em;
    color: var(--page-g-text-secondary);
    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;
    padding: 10px 0 80px 0; /* body handles top padding, this is decorative */
    overflow: hidden;
    background-color: var(--page-g-bg-color); /* Fallback */
}

.page-g__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and content */
}

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

.page-g__hero-content {
    position: relative; /* Ensure content is above image if needed, but not overlapping */
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    margin-top: -80px; /* Pull content up slightly, but not over the image */
}

.page-g__main-title {
    font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size */
    color: var(--page-g-gold-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-g__description {
    font-size: 1.3em;
    color: var(--page-g-text-main);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-g__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-g__cta-buttons--center {
    justify-content: center;
}

.page-g__btn-primary,
.page-g__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    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(--page-g-btn-gradient);
    color: #ffffff; /* White text for contrast */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-g__btn-secondary {
    background: transparent;
    color: var(--page-g-glow-color); /* Green glow color for text */
    border: 2px solid var(--page-g-glow-color);
}

.page-g__btn-secondary:hover {
    background: var(--page-g-glow-color);
    color: var(--page-g-card-bg); /* Dark text on hover */
    transform: translateY(-3px);
}

/* General Grid Layout */
.page-g__grid {
    display: grid;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.page-g__grid--2-cols {
    grid-template-columns: 1fr 1fr;
}

.page-g__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-g__image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.page-g__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-g__text-block {
    text-align: left;
}

.page-g__text-block p {
    margin-bottom: 15px;
    color: var(--page-g-text-main);
}

/* Card Styling */
.page-g__card {
    background-color: var(--page-g-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-g-border-color);
    height: 100%; /* Ensure cards in grid have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-g__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

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

.page-g__card-text {
    font-size: 1em;
    color: var(--page-g-text-secondary);
    flex-grow: 1; /* Push content to bottom */
}

/* Feature List */
.page-g__feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

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

.page-g__list-title {
    font-size: 1.4em;
    color: var(--page-g-gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-g__list-description {
    font-size: 1em;
    color: var(--page-g-text-secondary);
}

/* Step Guide */
.page-g__step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-g__step-card {
    background-color: var(--page-g-bg-color); /* Lighter background for steps on dark section */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--page-g-border-color);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-g__step-icon {
    width: 60px;
    height: 60px;
    background: var(--page-g-btn-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(42, 209, 111, 0.5);
}

.page-g__step-title {
    font-size: 1.5em;
    color: var(--page-g-gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-g__step-text {
    font-size: 1em;
    color: var(--page-g-text-secondary);
}

/* Promotions Section */
.page-g__promo-card {
    background-color: var(--page-g-bg-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--page-g-border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.page-g__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

/* FAQ Section */
.page-g__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

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

.page-g__faq-item summary {
    list-style: none; /* Hide default marker */
}

.page-g__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-g__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-g-gold-color);
    cursor: pointer;
    background-color: var(--page-g-deep-green);
    border-bottom: 1px solid var(--page-g-divider-color);
}

.page-g__faq-question:hover {
    background-color: var(--page-g-deep-green);
}

.page-g__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--page-g-glow-color);
    transition: transform 0.3s ease;
}

.page-g__faq-item[open] .page-g__faq-toggle {
    transform: rotate(45deg); /* Rotate + to become X or - */
}

.page-g__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--page-g-text-secondary);
    border-top: 1px solid var(--page-g-divider-color);
    background-color: var(--page-g-card-bg);
}

.page-g__faq-answer p {
    margin-bottom: 0;
}

/* Final CTA Section */
.page-g__cta-final-section {
    padding: 100px 0;
}

.page-g__cta-final-content {
    background-color: var(--page-g-deep-green);
    padding: 60px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--page-g-border-color);
}

.page-g__cta-final-content .page-g__section-title {
    color: var(--page-g-gold-color);
    margin-bottom: 25px;
}

.page-g__cta-final-content .page-g__section-description {
    color: var(--page-g-text-main);
    margin-bottom: 50px;
}

/* For links inside p/li, ensure color contrast */
.page-g p a,
.page-g li a {
    color: var(--page-g-glow-color); /* Use a distinct color for links */
    text-decoration: underline;
}

.page-g p a:hover,
.page-g li a:hover {
    color: var(--page-g-gold-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-g__section-title {
        font-size: 2.2em;
    }
    .page-g__description {
        font-size: 1.1em;
    }
    .page-g__grid--2-cols {
        grid-template-columns: 1fr;
    }
    .page-g__grid > .page-g__image-wrapper {
        order: -1; /* Image first on mobile for some sections */
    }
}

@media (max-width: 768px) {
    .page-g__section {
        padding: 40px 0;
    }
    .page-g__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-g__main-title {
        font-size: clamp(2em, 8vw, 2.8em);
    }
    .page-g__section-title {
        font-size: 1.8em;
    }
    .page-g__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-g__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
    .page-g__btn-primary,
    .page-g__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-g__container,
    .page-g__cta-final-content,
    .page-g__grid,
    .page-g__step-grid,
    .page-g__faq-list,
    .page-g__text-block,
    .page-g__card,
    .page-g__promo-card,
    .page-g__feature-list,
    .page-g__step-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-g img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-g__hero-image-wrapper,
    .page-g__image-wrapper,
    .page-g__card-image,
    .page-g__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-g__card-image,
    .page-g__promo-image {
        height: 180px; /* Adjust height for smaller screens */
    }

    .page-g__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-g__faq-answer {
        padding: 15px 20px;
    }
}