/* style/g.css */

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

/* Base styles for the page-g scope */
.page-g {
    font-family: 'Arial', sans-serif; /* Example font */
    background-color: var(--page-g-bg); /* Dark background */
    color: var(--page-g-text-main); /* Light text for dark background */
    line-height: 1.6;
    font-size: 16px;
    padding-bottom: 50px; /* Ensure space above footer */
}

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

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

.page-g__section-title {
    font-size: 2.8em;
    color: var(--page-g-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-g__paragraph {
    font-size: 1.1em;
    color: var(--page-g-text-secondary);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-g__highlight {
    color: var(--page-g-gold);
    font-weight: bold;
}

.page-g__list {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 800px;
    text-align: left;
}

.page-g__list-item {
    background-color: var(--page-g-card-bg);
    border: 1px solid var(--page-g-border);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: var(--page-g-text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-g__list-item::before {
    content: '✓';
    color: var(--page-g-glow);
    font-weight: bold;
    font-size: 1.2em;
}

.page-g__list-ordered {
    list-style: decimal;
    padding-left: 25px;
    margin: 20px auto;
    max-width: 800px;
    text-align: left;
    color: var(--page-g-text-main);
}

.page-g__list-ordered li {
    margin-bottom: 15px;
}

.page-g__list-ordered li strong {
    color: var(--page-g-glow);
}

/* Hero Section */
.page-g__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0; /* Remove top padding as body handles header offset */
    text-align: center;
    overflow: hidden; /* Ensure no image overflow */
}

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

.page-g__hero-content {
    max-width: 900px;
    padding: 0 20px 60px; /* Bottom padding for the section */
    box-sizing: border-box;
}

.page-g__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    color: var(--page-g-text-main);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-g__intro-text {
    font-size: 1.2em;
    color: var(--page-g-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-g__btn-primary,
.page-g__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure text breaks */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-g__btn-primary {
    background: var(--page-g-btn-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-g__btn-primary:hover {
    background: var(--page-g-btn-gradient-hover);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.page-g__btn-secondary {
    background: transparent;
    color: var(--page-g-glow);
    border: 2px solid var(--page-g-glow);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-g__btn-secondary:hover {
    background: var(--page-g-glow);
    color: var(--page-g-bg); /* Dark text on glow background */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Image styles */
.page-g__image-full {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 40px auto;
    max-width: 1000px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Dark and Light Background sections/cards for contrast */
.page-g__dark-section {
    background-color: var(--page-g-deep-green);
    color: var(--page-g-text-main);
}

.page-g__dark-section .page-g__section-title,
.page-g__dark-section .page-g__sub-title {
    color: var(--page-g-text-main);
}

.page-g__dark-section .page-g__paragraph {
    color: var(--page-g-text-secondary);
}

.page-g__light-bg {
    background-color: var(--page-g-card-bg); /* Using card bg for light bg contrast on dark section */
    color: var(--page-g-text-main);
    border: 1px solid var(--page-g-border);
}

/* Grid Layouts */
.page-g__grid-3-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-g__grid-2-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Card Styles */
.page-g__card {
    background-color: var(--page-g-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--page-g-border);
}

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

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

.page-g__card-title {
    font-size: 1.5em;
    color: var(--page-g-text-main);
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}

.page-g__card-text {
    font-size: 1em;
    color: var(--page-g-text-secondary);
    flex-grow: 1; /* Ensures text takes available space */
}

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

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

.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-text-main);
    cursor: pointer;
    background-color: var(--page-g-card-bg);
    position: relative;
    list-style: none; /* For details/summary */
}

.page-g__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker */
}

.page-g__faq-question::marker {
    display: none; /* Hide default marker */
}

.page-g__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

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

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

.page-g__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.1em;
    color: var(--page-g-text-secondary);
    line-height: 1.6;
    text-align: left;
}

.page-g__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* Call to Action Section */
.page-g__call-to-action {
    padding: 80px 0;
    background-color: var(--page-g-deep-green); /* Ensure good contrast */
    color: var(--page-g-text-main);
}

.page-g__center-text {
    text-align: center;
}

/* Links within content */
.page-g a {
    color: var(--page-g-glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-g a:hover {
    color: var(--page-g-gold);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-g__section-title {
        font-size: 2.5em;
    }
    .page-g__main-title {
        font-size: clamp(2em, 7vw, 3em);
    }
    .page-g__grid-3-cols,
    .page-g__grid-2-cols {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    .page-g__card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-g {
        font-size: 15px;
        line-height: 1.6;
    }
    .page-g__container {
        padding: 0 15px;
    }
    .page-g__section {
        padding: 40px 0;
    }
    .page-g__section-title {
        font-size: 2em;
    }
    .page-g__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }
    .page-g__intro-text {
        font-size: 1.1em;
    }
    .page-g__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-g__btn-primary,
    .page-g__btn-secondary {
        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;
    }
    .page-g__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-g__hero-content {
        padding-bottom: 40px;
    }
    .page-g__card-image {
        height: 180px;
    }
    .page-g__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-g__faq-answer {
        padding: 0 20px 15px;
        font-size: 1em;
    }

    /* Mobile image, video, and container adaptations */
    .page-g img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-g video,
    .page-g__video { /* Assuming a video might be added later */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-g__section,
    .page-g__card,
    .page-g__container,
    .page-g__hero-section,
    .page-g__cta-buttons,
    .page-g__button-group,
    .page-g__btn-container,
    .page-g__video-section, /* If video is present */
    .page-g__video-container,
    .page-g__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
        padding-left: 15px; /* Add horizontal padding for content */
        padding-right: 15px;
    }
    /* Adjust specific section padding if needed, ensuring small top padding for first section */
    .page-g__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
    }
}

/* Ensure images meet minimum size requirements and no filters */
.page-g img {
    min-width: 200px;
    min-height: 200px;
    filter: none; /* No image filters */
}

/* Specific content area images (not header/footer) */
.page-g .page-g__image-full,
.page-g .page-g__card-image {
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
}

/* Ensure no filter on images */
.page-g img[style*="filter"],
.page-g img[class*="filter"] {
    filter: none !important;
}

/* For links within content (not buttons) */
.page-g a:not([class*="btn"]):not([class*="button"]) {
    color: var(--page-g-glow); /* Text color for links */
    text-decoration: underline;
}

.page-g a:not([class*="btn"]):not([class*="button"]):hover {
    color: var(--page-g-gold);
}