.page-g {
    color: #333333; /* Default text color for light body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #F5F7FA; /* Body background from shared.css */
}

/* 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; /* Small top padding, body handles header offset */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.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;
    border-radius: 8px;
    overflow: hidden;
}

.page-g__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-g__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px; /* Add some padding for text on desktop */
}

.page-g__hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    color: #E53935;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-g__hero-content p {
    font-size: 1.1rem;
    color: #333333;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* General Section Styles */
.page-g__section {
    padding: 40px 20px;
    margin-bottom: 20px;
    background-color: #FFFFFF; /* Default section background */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-g__introduction-section {
    background-color: #F5F7FA;
    box-shadow: none;
}

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

.page-g__heading {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: #E53935;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-g__heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FF5A4F 0%, #E53935 100%);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.page-g__heading--white {
    color: #ffffff;
}

.page-g__heading--white::after {
    background: #ffffff;
}

.page-g__sub-heading {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 600;
    color: #E53935;
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: left;
}

.page-g__text-block {
    font-size: 1rem;
    color: #333333;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
}

.page-g__text-block--white {
    color: #f0f0f0;
}

.page-g__image-content {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    margin: 30px 0;
    object-fit: cover;
}

.page-g__image-content--centered {
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-g__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #E53935;
    font-weight: bold;
    font-size: 1.2rem;
}

.page-g__list--two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

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

.page-g__card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 220px; /* Ensure cards have minimum height */
}

.page-g__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-g__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #E53935;
    margin-bottom: 15px;
}

.page-g__card-text {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
    flex-grow: 1; /* Allow text to grow */
}

/* CTA Button */
.page-g__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    border: none;
    cursor: pointer;
}

.page-g__cta-button:hover {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-g__cta-button--white {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
}

.page-g__cta-button--white:hover {
    background: #f0f0f0;
    color: #FF5A4F;
    border-color: #FF5A4F;
}

/* Dark Background Section */
.page-g__dark-bg {
    background: #E53935;
    color: #ffffff;
    box-shadow: none;
}

/* Download Section Specifics */
.page-g__download-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-g__step-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-g__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #FF5A4F;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-g__step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-g__step-description {
    font-size: 0.9rem;
    color: #f0f0f0;
    line-height: 1.6;
}

/* FAQ Section */
details.page-g__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #E0E0E0;
    overflow: hidden;
    background: #ffffff;
}
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;
}
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: #f5f5f5;
}
.page-g__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333;
}
.page-g__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    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: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #555555;
}

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

/* Conclusion Section */
.page-g__conclusion-section {
    text-align: center;
    padding-bottom: 60px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-g__hero-content h1 {
        font-size: clamp(2rem, 4.5vw, 3.2rem);
    }
    .page-g__hero-content p {
        font-size: 1rem;
    }
    .page-g__heading {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    }
    .page-g__sub-heading {
        font-size: clamp(1.2rem, 2.8vw, 1.8rem);
    }
    .page-g__card {
        padding: 25px;
        min-height: 200px;
    }
    .page-g__card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .page-g__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-g__hero-image img {
        border-radius: 4px;
    }
    .page-g__hero-content {
        padding: 0;
    }
    .page-g__hero-content h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-g__hero-content p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    .page-g__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100% !important; /* Mobile button full width */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-g__section {
        padding: 30px 15px;
    }
    .page-g__heading {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }
    .page-g__sub-heading {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }
    .page-g__text-block {
        font-size: 0.95rem;
    }
    .page-g__list-item {
        font-size: 0.95rem;
        padding-left: 25px;
    }
    .page-g__list-item::before {
        font-size: 1rem;
    }
    .page-g__card-grid {
        gap: 20px;
    }
    .page-g__card {
        padding: 20px;
        min-height: auto;
    }
    .page-g__card-title {
        font-size: 1.1rem;
    }
    .page-g__card-text {
        font-size: 0.9rem;
    }
    .page-g__download-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-g__step-item {
        padding: 15px;
    }
    .page-g__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    .page-g__step-title {
        font-size: 1.1rem;
    }
    .page-g__step-description {
        font-size: 0.85rem;
    }

    /* FAQ Mobile Styles */
    details.page-g__faq-item summary.page-g__faq-question { padding: 15px; }
    .page-g__faq-qtext { font-size: 15px; }
    .page-g__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    details.page-g__faq-item .page-g__faq-answer {
        padding: 0 15px 15px;
    }

    /* Image responsive rules */
    .page-g img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-g__section,
    .page-g__card,
    .page-g__container,
    .page-g__hero-section,
    .page-g__download-section,
    .page-g__promotions-section,
    .page-g__security-support-section,
    .page-g__faq-section,
    .page-g__conclusion-section,
    .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;
    }
    .page-g__cta-buttons {
        flex-direction: column; /* For multiple buttons */
        gap: 10px;
    }
}