/* style/g.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --card-bg: #111111;
    --body-bg: #0A0A0A;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
}

.page-g {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Sử dụng màu chữ chính */
    background-color: var(--body-bg); /* Sử dụng màu nền body */
    line-height: 1.6;
}

.page-g__section {
    padding: 60px 20px;
    background-color: var(--body-bg);
    text-align: center;
}

.page-g__section--about {
    padding-top: 40px;
}

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

.page-g__heading {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-g__text {
    font-size: 17px;
    margin-bottom: 20px;
    color: var(--text-main-color);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* HERO Section */
.page-g__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Nhỏ hơn so với default 60px để tránh khoảng trống lớn dưới header */
    background-color: var(--body-bg);
}

.page-g__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width within max-width */
}

.page-g__hero-image {
    width: 100%;
    margin-bottom: 30px;
    order: 1; /* Image first */
}

.page-g__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(242, 193, 78, 0.4);
}

.page-g__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    order: 2; /* Content after image */
}

.page-g__main-title {
    font-size: clamp(32px, 5vw, 56px);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 0 0 15px var(--glow-color);
}

.page-g__description {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-main-color);
    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;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-g__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-g__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
    opacity: 0.9;
}

.page-g__cta-button--secondary {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.page-g__cta-button--secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-g__image-wrapper {
    margin: 40px auto;
    max-width: 1000px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(242, 193, 78, 0.3);
}

.page-g__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

.page-g__card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main-color);
}

.page-g__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color);
}

.page-g__card-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-g__card-text {
    font-size: 16px;
    color: var(--text-main-color);
}

.page-g__list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 800px;
    margin: 40px auto;
}

.page-g__list-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 17px;
    color: var(--text-main-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-g__list-item strong {
    color: var(--primary-color);
}

.page-g__list--checked .page-g__list-item {
    position: relative;
    padding-left: 40px;
}

.page-g__list--checked .page-g__list-item::before {
    content: '✅';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.page-g__cta-wrapper {
    margin-top: 50px;
    text-align: center;
}

.page-g__cta-button--download {
    background: var(--secondary-color);
    color: var(--body-bg);
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-g__cta-button--download:hover {
    background: var(--primary-color);
    box-shadow: 0 8px 20px rgba(255, 211, 107, 0.6);
}

.page-g__cta-button--contact {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

/* FAQ Section */
details.page-g__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    color: var(--text-main-color);
    text-align: left;
}
details.page-g__faq-item summary.page-g__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main-color);
}
details.page-g__faq-item summary.page-g__faq-question::-webkit-details-marker {
    display: none;
}
details.page-g__faq-item summary.page-g__faq-question:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
}
.page-g__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--primary-color);
}
.page-g__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-g__faq-item .page-g__faq-answer {
    padding: 0 20px 20px;
    background: rgba(var(--card-bg-rgb), 0.8);
    border-radius: 0 0 5px 5px;
    color: var(--text-main-color);
    font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-g__heading {
        font-size: clamp(26px, 3.5vw, 38px);
    }
    .page-g__main-title {
        font-size: clamp(28px, 4.5vw, 48px);
    }
    .page-g__text, .page-g__card-text, .page-g__list-item {
        font-size: 16px;
    }
    .page-g__card-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .page-g__section {
        padding: 40px 15px;
    }
    .page-g__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-g__main-title {
        font-size: clamp(24px, 7vw, 40px);
        margin-bottom: 15px;
    }
    .page-g__description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-g__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 90%;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-g__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .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__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-g__card {
        padding: 25px;
    }
    .page-g__list-item {
        padding: 15px;
        font-size: 15px;
    }
    .page-g__list--checked .page-g__list-item {
        padding-left: 35px;
    }
    .page-g__list--checked .page-g__list-item::before {
        font-size: 18px;
    }
    details.page-g__faq-item summary.page-g__faq-question {
        padding: 15px;
    }
    .page-g__faq-qtext {
        font-size: 16px;
    }
    .page-g__faq-toggle {
        font-size: 20px;
    }
    details.page-g__faq-item .page-g__faq-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }

    /* Mobile image responsiveness */
    .page-g img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-g__section, .page-g__card, .page-g__container, .page-g__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}