/* style/g.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không được viết lại */

.page-g {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    line-height: 1.6;
}

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

.page-g__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 60px;
    padding-top: 10px;
    overflow: hidden;
}

.page-g__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-g__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-g__main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: bold;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0px 0px 10px rgba(242, 193, 78, 0.5);
}

.page-g__hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.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.1rem;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-g__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    color: #F2FFF6;
    border: none;
}

.page-g__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px rgba(42, 209, 111, 0.6);
}

.page-g__btn-secondary {
    background-color: transparent;
    color: #2AD16F;
    border: 2px solid #2AD16F;
}

.page-g__btn-secondary:hover {
    background-color: #2AD16F;
    color: #F2FFF6;
    box-shadow: 0 0 15px rgba(42, 209, 111, 0.6);
}

.page-g__section {
    padding: 60px 0;
    border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-g__section:last-of-type {
    border-bottom: none;
}

.page-g__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

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

.page-g__sub-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #22C768; /* Auxiliary Color */
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.page-g__paragraph {
    font-size: 1.1rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    text-align: justify;
}

.page-g__highlight {
    color: #F2C14E; /* Gold */
    font-weight: bold;
}

.page-g__image-wrapper {
    text-align: center;
    margin: 30px 0;
}

.page-g__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

.page-g__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-g__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #F2FFF6;
}

.page-g__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #2AD16F;
    font-size: 1.2em;
    line-height: 1;
}

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

.page-g__feature-item {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-g__feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-g__feature-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-g__feature-title {
    font-size: 1.5rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

.page-g__feature-description {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    text-align: justify;
}

/* Step-by-step guide */
.page-g__step-by-step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-g__step-item {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    padding-top: 70px;
}

.page-g__step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    color: #F2FFF6;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    border: 4px solid #08160F; /* Background color */
    box-shadow: 0 0 0 5px #2AD16F; /* Glow */
}

.page-g__step-title {
    font-size: 1.4rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    text-align: center;
}

.page-g__step-description {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    text-align: justify;
}

.page-g__troubleshooting {
    background-color: #0A4B2C; /* Deep Green */
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Video Section */
.page-g__video-section {
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-g__video-link {
    display: block;
    text-decoration: none;
    margin: 30px auto;
    max-width: 800px;
    width: 100%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

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

.page-g__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.page-g__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.page-g__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.page-g__video-link:hover .page-g__video-overlay {
    opacity: 1;
}

.page-g__play-icon {
    font-size: 4rem;
    color: #F2C14E; /* Gold */
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.8);
}

.page-g__video-caption {
    font-size: 0.9rem;
    color: #A7D9B8;
    margin-top: 15px;
}

/* Type Grid (for cockfighting types) */
.page-g__type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-g__type-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-g__type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-g__type-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-g__type-title {
    font-size: 1.5rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 10px;
    text-align: center;
}

.page-g__type-description {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    text-align: justify;
}

/* Strategy List */
.page-g__strategy-list {
    list-style: none;
    padding-left: 0;
    margin-top: 40px;
}

.page-g__strategy-item {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-g__strategy-item:last-child {
    margin-bottom: 0;
}

.page-g__strategy-sub-title {
    font-size: 1.4rem;
    color: #2AD16F; /* Green from Button gradient */
    margin-bottom: 15px;
}

.page-g__strategy-description {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    text-align: justify;
}

/* Promotions List */
.page-g__promotions-list {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
}

.page-g__promotions-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #F2FFF6;
}

.page-g__promotions-item::before {
    content: '🎁';
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1;
}

/* FAQ Section */
.page-g__faq-list {
    margin-top: 40px;
}

.page-g__faq-item {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.page-g__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: #F2FFF6;
    background-color: #0A4B2C; /* Deep Green */
    border-bottom: 1px solid #1E3A2A;
    list-style: none;
}

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

.page-g__faq-item[open] summary {
    color: #F2C14E; /* Gold when open */
    border-bottom: 1px solid #2AD16F; /* Green when open */
}

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

.page-g__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: #2AD16F;
}

.page-g__faq-item[open] .page-g__faq-toggle {
    color: #F2C14E; /* Gold when open */
}

.page-g__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    background-color: #11271B; /* Card BG */
    border-top: none;
}

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

/* Call to Action Center */
.page-g__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-g__container {
        padding: 0 15px;
    }

    .page-g__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important;
    }

    .page-g__hero-content {
        padding: 0 10px;
    }

    .page-g__main-title {
        font-size: 2rem;
    }

    .page-g__hero-description {
        font-size: 1rem;
    }

    .page-g__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-g__btn-primary,
    .page-g__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-g__section {
        padding: 40px 0;
    }

    .page-g__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-g__sub-title {
        font-size: 1.2rem;
    }

    .page-g__paragraph,
    .page-g__list-item,
    .page-g__feature-description,
    .page-g__step-description,
    .page-g__strategy-description,
    .page-g__promotions-item,
    .page-g__faq-answer {
        font-size: 0.95rem;
    }

    .page-g__feature-grid,
    .page-g__step-by-step,
    .page-g__type-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-g__step-item {
        padding-top: 60px;
    }

    .page-g__step-number {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    /* Mobile image responsiveness */
    .page-g img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-g__image-wrapper,
    .page-g__feature-item,
    .page-g__step-item,
    .page-g__type-card,
    .page-g__strategy-item,
    .page-g__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Mobile video responsiveness */
    .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: 10px;
        padding-right: 10px;
        overflow: hidden !important;
    }

    .page-g__video-section {
        padding-top: 10px !important;
    }

    .page-g__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-g__faq-item summary {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .page-g__faq-answer {
        padding: 15px 20px;
    }
}

/* Color contrast enforcement - Ensure text is readable on backgrounds */
/* Main text on background #08160F is #F2FFF6 (light text on dark background) - Good contrast */
/* Card backgrounds #11271B, text #F2FFF6 or #A7D9B8 - Good contrast */
/* Button primary background linear-gradient, text #F2FFF6 - Good contrast */
/* Button secondary background transparent, text #2AD16F, border #2AD16F - Good contrast on dark #08160F */
/* Section titles #F2C14E (Gold) on #08160F - Good contrast */
/* Sub titles #22C768 (Auxiliary Green) on #08160F - Good contrast */
/* Highlighted text #F2C14E on #08160F (inside paragraph) - Good contrast */

/* Ensure all links have proper styling and contrast */
.page-g a {
    color: #57E38D; /* Glow color for links */
    text-decoration: underline;
}

.page-g a:hover {
    color: #F2C14E; /* Gold on hover */
}