/* style/g.css */

/* Custom Colors */
:root {
    --xi88-primary-color: #11A84E; /* Main */
    --xi88-secondary-color: #22C768; /* Auxiliary */
    --xi88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --xi88-card-bg: #11271B; /* Card BG */
    --xi88-background: #08160F; /* Background */
    --xi88-text-main: #F2FFF6; /* Text Main */
    --xi88-text-secondary: #A7D9B8; /* Text Secondary */
    --xi88-border: #2E7A4E; /* Border */
    --xi88-glow: #57E38D; /* Glow */
    --xi88-gold: #F2C14E; /* Gold */
    --xi88-divider: #1E3A2A; /* Divider */
    --xi88-deep-green: #0A4B2C; /* Deep Green */
}

.page-g {
    background-color: var(--xi88-background); /* Overall dark background */
    color: var(--xi88-text-main); /* Light text on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-g__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden; /* Ensure no image overflow */
}

.page-g__hero-image-wrapper {
    width: 100%;
    height: auto;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.page-g__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.6); /* Slightly darken image for text contrast */
}

.page-g__hero-content-wrapper {
    position: relative;
    z-index: 2;
    margin-top: -150px; /* Pull content up over the image, but not covering text */
    padding: 20px;
    width: 100%;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-g__main-title {
    color: var(--xi88-gold); /* Gold for main title */
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.page-g__hero-description {
    color: var(--xi88-text-main);
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* General Section Styles */
.page-g__section {
    padding: 60px 0;
    text-align: center;
}

.page-g__section-title {
    color: var(--xi88-gold);
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

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

.page-g__paragraph {
    color: var(--xi88-text-main);
    font-size: 1.05em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.page-g__highlight {
    color: var(--xi88-gold);
    font-weight: bold;
}

.page-g__text-center {
    text-align: center;
}

/* Buttons */
.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.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-g__btn-primary {
    background: var(--xi88-button-gradient);
    color: #ffffff; /* White text on dark button */
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-g__btn-secondary {
    background: transparent;
    color: var(--xi88-primary-color);
    border: 2px solid var(--xi88-primary-color);
    margin-left: 15px;
}

.page-g__btn-secondary:hover {
    background: var(--xi88-primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

.page-g__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-g__cta-buttons--large .page-g__btn-primary {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Image content */
.page-g__image-content {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Dark background sections */
.page-g__dark-bg {
    background-color: var(--xi88-card-bg); /* Darker green background for contrast */
    color: var(--xi88-text-main);
}

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

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

.page-g__card,
.page-g__promo-card {
    background: var(--xi88-background); /* Card BG */
    color: var(--xi88-text-main);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 1px solid var(--xi88-divider);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-g__card-title {
    color: var(--xi88-gold);
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-g__card-description {
    color: var(--xi88-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-g__promo-card .page-g__btn-secondary {
    margin-left: 0;
    margin-top: auto; /* Push button to bottom */
    align-self: flex-start;
}

/* 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;
    margin-bottom: 40px;
}

.page-g__step-item {
    background: var(--xi88-card-bg);
    color: var(--xi88-text-main);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 1px solid var(--xi88-divider);
}

.page-g__step-title {
    color: var(--xi88-gold);
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-g__step-description {
    color: var(--xi88-text-secondary);
    margin-bottom: 20px;
}

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

.page-g__list-item {
    background: var(--xi88-background);
    color: var(--xi88-text-main);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 4px solid var(--xi88-primary-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.page-g__feature-item {
    background: var(--xi88-background);
    color: var(--xi88-text-main);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 1px solid var(--xi88-divider);
}

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

.page-g__feature-description {
    color: var(--xi88-text-secondary);
}

/* Links */
.page-g__link {
    color: var(--xi88-primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-g__link:hover {
    color: var(--xi88-gold);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-g__main-title {
        font-size: 2.5em;
    }
    .page-g__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-g {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-g__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-g__hero-section {
        padding-bottom: 40px;
    }
    .page-g__hero-content-wrapper {
        margin-top: -100px; /* Adjust for smaller screens */
        padding: 15px;
    }
    .page-g__main-title {
        font-size: 2em;
    }
    .page-g__hero-description {
        font-size: 1em;
    }

    /* Sections */
    .page-g__section {
        padding: 40px 0;
    }
    .page-g__section-title {
        font-size: 1.8em;
    }
    .page-g__paragraph {
        font-size: 1em;
    }

    /* Images */
    .page-g img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-g__image-content {
        margin: 20px auto;
    }

    /* Buttons */
    .page-g__btn-primary,
    .page-g__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0 !important; /* Remove margin for single column */
        margin-bottom: 15px; /* Add spacing between stacked buttons */
    }

    .page-g__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px; /* Adjust gap for stacked buttons */
    }

    /* Cards and Grids */
    .page-g__grid-3-cols,
    .page-g__grid-2-cols,
    .page-g__step-by-step,
    .page-g__features-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .page-g__card,
    .page-g__promo-card,
    .page-g__step-item,
    .page-g__feature-item {
        padding: 20px;
        text-align: center;
    }
    .page-g__card-title,
    .page-g__step-title,
    .page-g__feature-title {
        font-size: 1.3em;
    }
    .page-g__card-description,
    .page-g__step-description,
    .page-g__feature-description {
        font-size: 0.95em;
    }

    .page-g__list-item {
        padding: 10px 15px;
        font-size: 0.95em;
    }
}

/* Ensure content containers don't overflow on mobile */
.page-g__hero-section,
.page-g__introduction-section,
.page-g__types-section,
.page-g__guide-section,
.page-g__strategy-section,
.page-g__promotions-section,
.page-g__security-section,
.page-g__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
.page-g__hero-content-wrapper .page-g__container,
.page-g__introduction-section .page-g__container,
.page-g__types-section .page-g__container,
.page-g__guide-section .page-g__container,
.page-g__strategy-section .page-g__container,
.page-g__promotions-section .page-g__container,
.page-g__security-section .page-g__container,
.page-g__conclusion-section .page-g__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
}

/* No CSS filters for images */
.page-g img {
    filter: none; /* Ensure no filters are applied by default */
}
.page-g__hero-image {
    filter: brightness(0.6); /* This is for darkening, not color change, so it's allowed */
}

/* CSS specific for video, though not used in this page, for completeness and adherence */
.page-g video,
.page-g__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-g__video-section,
.page-g__video-container,
.page-g__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .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;
  }
  
  .page-g__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}