/* style/g.css */

/* Custom Properties for Color Scheme */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* Base styles for the page-g scope */
.page-g {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--background-color); /* Body background is dark */
}

/* Section Spacing */
.page-g__section-spacing {
    padding: 60px 0;
}

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

/* Headings */
.page-g__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--gold-color); /* Using gold for main title to stand out */
    text-align: center;
    margin-bottom: 20px;
}

.page-g__section-title {
    font-size: clamp(1.8em, 4vw, 2.8em); /* Responsive font size */
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-g__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

.page-g__list-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

/* Text Blocks */
.page-g__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-align: justify;
}

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

.page-g__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Slight gradient shift */
}

.page-g__cta-button--centered {
    display: block;
    margin: 30px auto 0 auto;
    text-align: center;
    width: fit-content;
}

.page-g__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-g__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Hero Section */
.page-g__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    padding-top: 10px; /* Small padding top, body handles header offset */
    text-align: center;
}

.page-g__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.page-g__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
    display: block; /* Ensure no extra space below image */
}

.page-g__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
    border-radius: 10px;
    margin-top: 50px; /* Adjust as needed to not overlap header */
}

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

/* Dark background section */
.page-g__dark-bg {
    background-color: var(--deep-green-color); /* Using deep green for dark sections */
    color: var(--text-main);
}

/* Light background section (contrast to overall dark theme) */
.page-g__light-bg {
    background-color: #E8F5E9; /* A truly light background */
    color: #333333; /* Dark text for light background */
}
.page-g__light-bg .page-g__section-title,
.page-g__light-bg .page-g__text-block,
.page-g__light-bg .page-g__step-title {
    color: #333333; /* Ensure titles and text are dark on light bg */
}
.page-g__light-bg .page-g__step-description,
.page-g__light-bg .page-g__text-dark-secondary {
    color: #555555; /* Slightly lighter dark text on light bg */
}
.page-g__light-bg .page-g__faq-question {
    background-color: var(--primary-color); /* Use primary color for question header on light bg */
    color: var(--text-main); /* Light text on primary color */
}
.page-g__light-bg .page-g__faq-answer {
    background-color: #F8F8F8; /* Lighter background for answer on light bg */
    color: #333333; /* Dark text for answer */
    border-top: 1px solid #e0e0e0;
}
.page-g__light-bg-card {
    background-color: #ffffff; /* White background for cards within light section */
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.page-g__light-bg-card .page-g__step-number {
    background: var(--primary-color);
}

/* Benefits Section */
.page-g__benefits-grid,
.page-g__types-grid,
.page-g__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-g__benefit-card,
.page-g__type-card,
.page-g__promo-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid var(--divider-color);
    height: 100%; /* Ensure cards are same height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-g__benefit-card:hover,
.page-g__type-card:hover,
.page-g__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-g__benefit-icon,
.page-g__type-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
}

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

.page-g__step-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--divider-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.page-g__step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--glow-color);
}

.page-g__step-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

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

/* Strategy Section */
.page-g__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-g__list-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--primary-color);
    transition: background-color 0.3s ease;
}

.page-g__list-item:hover {
    background-color: var(--deep-green-color);
}

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

/* FAQ Section */
.page-g__faq-list {
    margin-top: 40px;
}

.page-g__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--divider-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-g__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--deep-green-color);
    color: var(--text-main);
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-g__faq-question:hover {
    background-color: var(--primary-color);
}

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

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

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

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

/* Conclusion Section */
.page-g__conclusion-section {
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-g__hero-content {
        margin-top: 0; /* Less margin on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-g__section-spacing {
        padding: 40px 0;
    }

    .page-g__container {
        padding: 0 15px;
    }

    .page-g__main-title {
        font-size: 2.2em;
    }

    .page-g__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-g__hero-content {
        padding: 30px 15px;
    }

    .page-g__hero-description {
        font-size: 1.1em;
        margin-bottom: 20px;
    }

    .page-g__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

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

    .page-g__step-item {
        padding: 25px;
    }

    .page-g__step-number {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }

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

    .page-g__faq-answer {
        padding: 10px 20px 15px 20px;
    }

    /* Mobile image and video responsiveness */
    .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-section {
        padding-top: 10px !important; /* body handles --header-offset */
        min-height: 400px;
    }

    /* Video responsiveness (if any video is added later) */
    .page-g video,
    .page-g__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-g__video-section,
    .page-g__video-container,
    .page-g__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    
    .page-g__video-section {
      padding-top: 10px !important; /* body already handles --header-offset */
    }
    
    .page-g__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    /* Button responsiveness */
    .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;
    }
    
    .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-buttons {
      display: flex;
      flex-direction: column;
    }
}