/* style/g.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm padding-top cho main hoặc các section đầu tiên. */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --card-bg-color: #11271B;
    --background-color: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-g {
    color: var(--text-main-color); /* Mặc định chữ sáng trên nền tối */
    background-color: var(--background-color);
}

.page-g__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px 60px; /* Nhỏ hơn cho top, lớn hơn cho bottom */
    background-color: var(--deep-green-color);
    text-align: center;
    overflow: hidden;
}

.page-g__hero-image-wrapper {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
}

.page-g__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-g__hero-content {
    position: relative;
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
    z-index: 10;
}

.page-g__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

.page-g__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-secondary-color);
    margin-bottom: 30px;
}

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

.page-g__btn-primary,
.page-g__btn-secondary {
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-g__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: var(--text-main-color);
    border: 2px solid transparent;
}

.page-g__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(87, 227, 141, 0.4);
}

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

.page-g__btn-secondary:hover {
    background: var(--glow-color);
    color: var(--deep-green-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(87, 227, 141, 0.4);
}

.page-g__section {
    padding: 80px 20px;
    position: relative;
    z-index: 5;
}

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

.page-g__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-g__section-description {
    font-size: 1.1em;
    color: var(--text-secondary-color);
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.page-g__about-section .page-g__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-direction: row;
}

.page-g__about-section .page-g__text-block {
    flex: 1;
    line-height: 1.7;
    font-size: 1.05em;
    color: var(--text-secondary-color);
}

.page-g__about-section .page-g__text-block p {
    margin-bottom: 1em;
}

.page-g__about-section .page-g__image-block {
    flex: 1;
    min-width: 200px;
}

.page-g__about-section .page-g__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

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

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

.page-g__card {
    background-color: var(--deep-green-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main-color);
    max-width: 100%; /* Ensure cards don't overflow */
    box-sizing: border-box;
}

.page-g__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(87, 227, 141, 0.2);
}

.page-g__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

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

.page-g__card-description {
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0 20px 20px;
    color: var(--text-secondary-color);
    flex-grow: 1;
}

.page-g__button-center {
    margin-top: 50px;
}

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

.page-g__step-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-g__step-item:hover {
    transform: translateY(-5px);
}

.page-g__step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: var(--text-main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 auto 20px;
}

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

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

.page-g__why-choose-section .page-g__grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-g__feature-item {
    background-color: var(--deep-green-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-g__feature-icon {
    width: 100px; /* Min size 200x200, but display size can be smaller */
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-g__feature-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-secondary-color);
}

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

.page-g__promo-cards .page-g__card {
    padding-bottom: 20px;
}

.page-g__promo-cards .page-g__btn-secondary {
    margin-top: auto; /* Push button to bottom */
    align-self: center;
}

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

.page-g__faq-item {
    background-color: var(--deep-green-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-g__faq-item[open] {
    background-color: var(--card-bg-color);
}

.page-g__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text-main-color);
    list-style: none;
    position: relative;
}

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

.page-g__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--glow-color);
    line-height: 1;
    margin-left: 15px;
}

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

.page-g__faq-answer p {
    margin-bottom: 10px;
}

.page-g__cta-bottom {
    padding-top: 60px;
    padding-bottom: 80px;
    background-color: var(--deep-green-color);
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-g__hero-content {
        margin-top: 30px;
    }
    .page-g__main-title {
        font-size: 2.2em;
    }
    .page-g__section-title {
        font-size: 2em;
    }
    .page-g__about-section .page-g__content-wrapper {
        flex-direction: column;
    }
    .page-g__grid-3-col, .page-g__why-choose-section .page-g__grid-2-col, .page-g__promo-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-g {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-g__hero-section {
        padding: 10px 15px 40px;
    }
    .page-g__hero-content {
        margin-top: 20px;
        padding: 0 15px;
    }
    .page-g__main-title {
        font-size: 1.8em;
    }
    .page-g__hero-description {
        font-size: 1em;
    }
    .page-g__section {
        padding: 60px 15px;
    }
    .page-g__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-g__section-description {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .page-g__about-section .page-g__content-wrapper {
        gap: 30px;
    }
    .page-g__grid-3-col, .page-g__why-choose-section .page-g__grid-2-col, .page-g__promo-cards, .page-g__guide-steps {
        grid-template-columns: 1fr;
    }
    .page-g__card-image {
        height: 200px;
    }
    .page-g__card-title {
        font-size: 1.2em;
    }
    .page-g__card-description {
        font-size: 0.9em;
    }
    .page-g__btn-primary,
    .page-g__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-g__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-g__container {
        padding: 0;
    }
    .page-g__image,
    .page-g__hero-image,
    .page-g__card-image,
    .page-g__feature-icon {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-g__about-section .page-g__image-block,
    .page-g__hero-image-wrapper,
    .page-g__card,
    .page-g__feature-item,
    .page-g__step-item,
    .page-g__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-g__cta-bottom {
        padding: 40px 15px;
    }
    .page-g__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-g__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .page-g__main-title {
        font-size: 1.6em;
    }
    .page-g__section-title {
        font-size: 1.6em;
    }
    .page-g__cta-buttons {
        gap: 10px;
    }
}