/* style/g.css */

/* Custom Variables based on provided color scheme */
:root {
    --page-g-primary-color: #11A84E; /* Main color */
    --page-g-secondary-color: #22C768; /* Auxiliary color */
    --page-g-bg-color: #08160F; /* Background */
    --page-g-card-bg: #11271B; /* Card BG */
    --page-g-text-main: #F2FFF6; /* Text Main */
    --page-g-text-secondary: #A7D9B8; /* Text Secondary */
    --page-g-border-color: #2E7A4E; /* Border */
    --page-g-glow-color: #57E38D; /* Glow */
    --page-g-gold-color: #F2C14E; /* Gold */
    --page-g-divider-color: #1E3A2A; /* Divider */
    --page-g-deep-green: #0A4B2C; /* Deep Green */
    --page-g-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button Gradient */
}

.page-g {
    font-family: Arial, sans-serif;
    color: var(--page-g-text-main); /* Default text color for the page */
    background-color: var(--page-g-bg-color); /* Page background, assuming body has dark bg */
}

/* Base styles for sections and containers */
.page-g__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-g__section--light {
    background-color: var(--page-g-card-bg); /* Using card bg 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.5em;
    font-weight: bold;
    color: var(--page-g-gold-color); /* Use gold for prominent titles */
    margin-bottom: 30px;
    line-height: 1.2;
}

.page-g__text-block {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--page-g-text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-g__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--page-g-bg-color);
}

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

.page-g__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-g__hero-content {
    position: relative; /* Not absolute, for upper-image-lower-text */
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    color: var(--page-g-text-main);
}

.page-g__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 */
    font-weight: 800;
    color: var(--page-g-gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-g__subtitle {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--page-g-text-secondary);
}

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

/* Buttons */
.page-g__btn-primary,
.page-g__btn-secondary {
    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;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-g__btn-primary {
    background: var(--page-g-button-gradient);
    color: #ffffff; /* White text for primary button */
    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-gold-color); /* Gold text for secondary button */
    border: 2px solid var(--page-g-gold-color);
}

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

.page-g__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Image content */
.page-g__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

/* Card Grid */
.page-g__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-g__card {
    background-color: var(--page-g-card-bg);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--page-g-divider-color);
    min-height: 350px; /* Ensure cards have a minimum height */
    box-sizing: border-box;
}

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

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

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

/* Step List (Ordered List) */
.page-g__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* Feature List (Unordered List) */
.page-g__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    text-align: left;
}

.page-g__feature-item {
    background-color: var(--page-g-card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--page-g-divider-color);
}

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

/* Strategy Grid */
.page-g__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-g__strategy-card {
    background-color: var(--page-g-card-bg);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--page-g-divider-color);
    min-height: 380px; /* Ensure strategy cards have minimum height */
    box-sizing: border-box;
}

.page-g__strategy-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

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

.page-g__strategy-text {
    font-size: 1em;
    line-height: 1.6;
    color: var(--page-g-text-secondary);
}

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

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

.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: transparent;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.page-g__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

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

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

.page-g__faq-item[open] .page-g__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

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

/* For details tag, hide default marker */
.page-g__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-g__faq-item summary::marker {
    display: none;
}


/* Final CTA Section */
.page-g__section--final-cta {
    padding-bottom: 80px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-g__hero-image-wrapper {
        margin-bottom: 30px;
    }
    .page-g__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }
    .page-g__section-title {
        font-size: 2em;
    }
    .page-g__text-block {
        font-size: 1em;
    }
    .page-g__card-grid,
    .page-g__feature-list,
    .page-g__strategy-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-g__section {
        padding: 40px 0;
    }
    .page-g__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-g__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-g__hero-content {
        padding: 0 15px;
    }
    .page-g__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-g__subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-g__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .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__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-g__text-block {
        font-size: 0.95em;
    }
    .page-g__container {
        padding: 0 15px;
    }
    .page-g img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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__card-grid,
    .page-g__feature-list,
    .page-g__strategy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-g__card,
    .page-g__strategy-card,
    .page-g__list-item,
    .page-g__feature-item,
    .page-g__faq-item {
        padding: 20px;
    }
    .page-g__card-image,
    .page-g__strategy-image {
        height: auto; /* Allow height to adjust for mobile */
    }
    .page-g__card-title,
    .page-g__list-title,
    .page-g__feature-title {
        font-size: 1.3em;
    }
    .page-g__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-g__faq-answer {
        padding: 0 20px 15px 20px;
    }
}