/* style/g.css */

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

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

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

.page-g__section-title {
    font-size: 2.5em;
    color: var(--g-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-g__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--g-text-secondary);
    text-align: justify;
}

.page-g__list-item {
    margin-bottom: 10px;
    color: var(--g-text-main);
}

.page-g__dark-section {
    background-color: var(--g-background);
    color: var(--g-text-main);
    padding: 60px 0;
}

.page-g__light-bg {
    background-color: #0d1e16; /* Slightly lighter dark for contrast */
    color: var(--g-text-main);
    padding: 60px 0;
}

/* Hero Section */
.page-g__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
}

.page-g__hero-image-wrapper {
    width: 100%;
    position: relative;
    height: 100%;
    max-height: 700px; /* Limit hero image height */
    overflow: hidden;
}

.page-g__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6);
}

.page-g__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

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

.page-g__intro-text {
    font-size: clamp(1em, 2vw, 1.3em);
    color: var(--g-text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-g__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-g__btn-primary {
    background: var(--g-button-gradient);
    color: #ffffff; /* Always white for primary buttons */
    border: none;
}

.page-g__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 20px var(--g-glow);
}

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

.page-g__btn-secondary:hover {
    background-color: var(--g-glow);
    color: var(--g-background);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* About Section */
.page-g__about-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--g-divider);
}

.page-g__image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.page-g__grid-item {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.page-g__features-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--g-divider);
}

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

.page-g__feature-card {
    background-color: var(--g-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--g-border);
}

.page-g__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--g-glow);
}

.page-g__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--g-glow));
}

.page-g__feature-title {
    font-size: 1.5em;
    color: var(--g-gold);
    margin-bottom: 15px;
    font-weight: 700;
}

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

.page-g__center-cta {
    text-align: center;
    margin-top: 50px;
}

/* Guide Section */
.page-g__guide-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--g-divider);
}

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

.page-g__step-card {
    background-color: var(--g-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--g-border);
}

.page-g__step-number {
    font-size: 3em;
    color: var(--g-gold);
    font-weight: 900;
    margin-bottom: 15px;
    display: block;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

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

/* Tips Section */
.page-g__tips-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--g-divider);
}

.page-g__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-g__tips-list .page-g__list-item {
    background-color: var(--g-card-bg);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-left: 5px solid var(--g-gold);
    color: var(--g-text-main);
    font-size: 1.1em;
}

.page-g__tips-list .page-g__list-item strong {
    color: var(--g-gold);
}

/* FAQ Section */
.page-g__faq-section {
    padding: 60px 0;
}

.page-g__faq-list {
    margin-top: 40px;
}

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

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

.page-g__faq-question:hover {
    background-color: #0c5a38;
}

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

.page-g__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--g-glow);
    margin-left: 15px;
}

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

.page-g__faq-item[open] .page-g__faq-question {
    border-bottom: 1px solid var(--g-divider);
}

.page-g__faq-item[open] .page-g__faq-toggle {
    content: '−';
}

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

.page-g__faq-item summary {
    list-style: none;
}

/* CTA Section */
.page-g__cta-section {
    padding: 80px 0;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-g__main-title {
        font-size: clamp(2.2em, 4.5vw, 3.5em);
    }
    .page-g__intro-text {
        font-size: clamp(0.9em, 1.8vw, 1.2em);
    }
    .page-g__section-title {
        font-size: 2em;
    }
    .page-g__feature-grid, .page-g__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-g {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-g__hero-section {
        min-height: 500px;
        padding-bottom: 40px;
    }
    .page-g__hero-content {
        padding: 15px;
    }
    .page-g__main-title {
        font-size: clamp(2em, 8vw, 2.8em);
        margin-bottom: 15px;
    }
    .page-g__intro-text {
        font-size: clamp(0.9em, 3.5vw, 1.1em);
        margin-bottom: 25px;
    }
    .page-g__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-g__cta-button {
        width: 100% !important; /* Mobile button full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
    }

    .page-g__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-g__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-g__paragraph {
        font-size: 1em;
    }
    .page-g__grid-item {
        height: 250px;
    }
    .page-g__feature-grid, .page-g__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-g__feature-card, .page-g__step-card {
        padding: 25px;
    }
    .page-g__tips-list .page-g__list-item {
        font-size: 1em;
        padding: 15px;
    }
    .page-g__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-g__faq-answer {
        font-size: 0.95em;
        padding: 0 15px 15px 15px;
    }
    
    /* Mobile image responsiveness */
    .page-g img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-g__hero-image-wrapper,
    .page-g__image-grid,
    .page-g__feature-card,
    .page-g__step-card,
    .page-g__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-g__hero-image {
        height: 300px; /* Adjust hero image height for mobile */
    }
    .page-g__hero-content {
        position: static; /* Remove absolute positioning on mobile */
        transform: none;
        padding-top: 20px; /* Add some space from image if not absolute */
    }
    .page-g__hero-section {
        flex-direction: column; /* Stack image and content vertically */
        padding-top: 10px !important;
    }

    /* Video section (if any) */
    .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;
    }
}