/* style/g.css */

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

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

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

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

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

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

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

.page-g__main-title {
    color: var(--text-main);
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-g__subtitle {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

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

.page-g__btn-primary,
.page-g__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

.page-g__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-g__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

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

.page-g__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-g__cta-buttons--center {
    margin-top: 40px;
}

/* General Section Styles */
.page-g__introduction-section,
.page-g__thomo-section,
.page-g__types-section,
.page-g__guide-section,
.page-g__strategy-section,
.page-g__promotions-section,
.page-g__security-section,
.page-g__faq-section,
.page-g__conclusion-section {
    padding: 80px 0;
    position: relative;
}

.page-g__dark-bg {
    background-color: var(--page-bg);
    color: var(--text-main);
}

.page-g__card-bg {
    background-color: var(--card-bg);
    color: var(--text-main);
}

.page-g__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

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

.page-g__text-block {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-g__text-block--center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-g__text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-g__text-link:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* Content Grid */
.page-g__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-g__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-g__content-grid .page-g__text-content,
.page-g__content-grid .page-g__image-wrapper {
    flex: 1;
}

.page-g__image-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-g__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-g__image:hover {
    transform: scale(1.02);
}

/* Types Grid */
.page-g__types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

.page-g__type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-g__type-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-g__type-card .page-g__text-block {
    font-size: 1rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

.page-g__type-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-g__step-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-g__step-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-g__step-item .page-g__text-block {
    font-size: 1rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

.page-g__step-item .page-g__btn-primary,
.page-g__step-item .page-g__btn-secondary {
    margin-top: 20px;
    width: auto;
    min-width: 150px;
    padding: 10px 20px;
    font-size: 1rem;
}

/* Strategy Section */
.page-g__list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-g__list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main);
}

.page-g__list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    top: 0;
}

/* Promotions Section */
.page-g__promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-g__promo-card {
    background-color: var(--page-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-g__promo-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-g__promo-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-g__promo-card .page-g__text-block {
    font-size: 1rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

.page-g__promo-card .page-g__btn-primary,
.page-g__promo-card .page-g__btn-secondary {
    margin-top: 20px;
    width: auto;
    min-width: 150px;
    padding: 10px 20px;
    font-size: 1rem;
}

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

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

.page-g__faq-item[open] {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

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

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

.page-g__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-g__faq-toggle {
    font-size: 1.5rem;
    margin-left: 20px;
    color: var(--gold-color);
}

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

.page-g__faq-item[open] .page-g__faq-answer {
    padding-top: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-g__content-grid {
        flex-direction: column;
    }
    .page-g__content-grid--reverse {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-g__hero-section {
        padding-bottom: 40px;
    }
    .page-g__main-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    .page-g__subtitle {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }
    .page-g__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-g__btn-primary,
    .page-g__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-g__introduction-section,
    .page-g__thomo-section,
    .page-g__types-section,
    .page-g__guide-section,
    .page-g__strategy-section,
    .page-g__promotions-section,
    .page-g__security-section,
    .page-g__faq-section,
    .page-g__conclusion-section {
        padding: 50px 0;
    }

    .page-g__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 40px;
    }

    .page-g__text-block {
        font-size: 1rem;
        line-height: 1.7;
    }

    .page-g__content-grid,
    .page-g__content-grid--reverse {
        flex-direction: column;
        gap: 30px;
    }
    
    .page-g__image-wrapper,
    .page-g__type-image,
    .page-g__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .page-g__container,
    .page-g__types-grid,
    .page-g__guide-steps,
    .page-g__promos-grid,
    .page-g__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-g__list li {
        font-size: 1rem;
        padding-left: 25px;
    }

    .page-g__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-g__faq-answer {
        font-size: 0.95rem;
        padding: 0 20px 15px 20px;
    }

    .page-g__step-item .page-g__btn-primary,
    .page-g__step-item .page-g__btn-secondary,
    .page-g__promo-card .page-g__btn-primary,
    .page-g__promo-card .page-g__btn-secondary {
        width: 100% !important;
    }
}

/* Ensure images within content areas are not too small on mobile */
.page-g img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure content area images maintain minimum size where appropriate, but responsive */
.page-g__content-grid .page-g__image {
    min-width: 200px;
    min-height: 200px;
}

.page-g__type-image, .page-g__promo-image {
    min-width: 200px;
    min-height: 200px;
}

/* Contrast Fixes - Ensure text is always readable */
.page-g h1, .page-g h2, .page-g h3 {
    color: var(--text-main);
}

.page-g__dark-bg .page-g__text-block, .page-g__dark-bg .page-g__list li {
    color: var(--text-main);
}

.page-g__card-bg .page-g__text-block, .page-g__card-bg .page-g__list li {
    color: var(--text-main);
}

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

.page-g__faq-toggle {
    color: var(--gold-color);
}

.page-g__faq-answer {
    color: var(--text-secondary);
}

/* Specific overrides for text on dark backgrounds if needed */
.page-g__text-content p, .page-g__text-content li {
    color: var(--text-main);
}

/* Ensure all buttons have white text on their gradient background */
.page-g__btn-primary {
    color: #ffffff;
}

.page-g__btn-secondary {
    color: var(--primary-color);
}

.page-g__btn-secondary:hover {
    color: #ffffff;
}