/* style/resources-nk88-app-benefits.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --background-color-dark-body: #1a1a2e;
    --register-button-bg: #C30808;
    --login-button-bg: #C30808;
    --button-text-color: #FFFF00;
    --card-bg-light: #FFFFFF;
    --card-border-light: #e0e0e0;
}

.page-resources-nk88-app-benefits {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark-bg); /* Default text color for dark body background */
    background-color: var(--background-color-dark-body);
}

.page-resources-nk88-app-benefits__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-resources-nk88-app-benefits__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Apply header offset */
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-color);
}

.page-resources-nk88-app-benefits__hero-section.page-resources-nk88-app-benefits__dark-bg {
    background-color: var(--background-color-dark-body);
    color: var(--text-color-dark-bg);
}

.page-resources-nk88-app-benefits__hero-content {
    max-width: 700px;
    z-index: 1;
    text-align: left;
}

.page-resources-nk88-app-benefits__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-resources-nk88-app-benefits__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-color-dark-bg);
}

.page-resources-nk88-app-benefits__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    margin-top: 30px;
}

.page-resources-nk88-app-benefits__btn-primary,
.page-resources-nk88-app-benefits__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    text-align: center;
}

.page-resources-nk88-app-benefits__btn-primary {
    background-color: var(--register-button-bg); /* Use custom color for register */
    color: var(--button-text-color); /* Use custom color for button text */
    border: 2px solid var(--register-button-bg);
}

.page-resources-nk88-app-benefits__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-resources-nk88-app-benefits__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources-nk88-app-benefits__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-resources-nk88-app-benefits__hero-image-wrapper {
    flex-shrink: 0;
    margin-left: 50px;
    max-width: 400px; /* Adjust as needed */
    width: 100%;
    z-index: 0;
}

.page-resources-nk88-app-benefits__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-resources-nk88-app-benefits__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.3;
}

.page-resources-nk88-app-benefits__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-resources-nk88-app-benefits__light-bg {
    background-color: var(--card-bg-light);
    color: var(--text-color-light-bg);
    padding: 60px 0;
}

.page-resources-nk88-app-benefits__dark-bg {
    background-color: var(--background-color-dark-body);
    color: var(--text-color-dark-bg);
    padding: 60px 0;
}

/* Advantages Section */
.page-resources-nk88-app-benefits__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources-nk88-app-benefits__card {
    background-color: var(--card-bg-light);
    color: var(--text-color-light-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--card-border-light);
}

.page-resources-nk88-app-benefits__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources-nk88-app-benefits__card-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-resources-nk88-app-benefits__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources-nk88-app-benefits__card-text {
    font-size: 1em;
    line-height: 1.7;
    flex-grow: 1;
}

/* Download Guide Section */
.page-resources-nk88-app-benefits__download-guide-section {
    background-color: var(--primary-color);
}

.page-resources-nk88-app-benefits__download-guide-section .page-resources-nk88-app-benefits__section-title,
.page-resources-nk88-app-benefits__download-guide-section .page-resources-nk88-app-benefits__section-description {
    color: var(--text-color-dark-bg);
}

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

.page-resources-nk88-app-benefits__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: var(--text-color-dark-bg);
}

.page-resources-nk88-app-benefits__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-resources-nk88-app-benefits__step-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-resources-nk88-app-benefits__step-text {
    font-size: 1em;
    line-height: 1.7;
}

.page-resources-nk88-app-benefits__cta-center {
    text-align: center;
    margin-top: 50px;
}

.page-resources-nk88-app-benefits__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* FAQ Section */
.page-resources-nk88-app-benefits__faq-list {
    margin-top: 40px;
}

.page-resources-nk88-app-benefits__faq-item {
    background-color: var(--card-bg-light);
    border: 1px solid var(--card-border-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-color-light-bg);
}

.page-resources-nk88-app-benefits__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
    color: var(--text-color-light-bg);
}

.page-resources-nk88-app-benefits__faq-question:hover {
    background-color: #f0f0f0;
}

.page-resources-nk88-app-benefits__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.page-resources-nk88-app-benefits__faq-item.active .page-resources-nk88-app-benefits__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-nk88-app-benefits__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-resources-nk88-app-benefits__faq-item.active .page-resources-nk88-app-benefits__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 15px 25px 25px 25px;
}

.page-resources-nk88-app-benefits__faq-answer p {
    margin-bottom: 0;
    color: var(--text-color-light-bg);
}

/* Final CTA Section */
.page-resources-nk88-app-benefits__cta-final-section {
    background-color: var(--background-color-dark-body);
    padding: 80px 0;
    text-align: center;
}

.page-resources-nk88-app-benefits__cta-final-section .page-resources-nk88-app-benefits__section-title,
.page-resources-nk88-app-benefits__cta-final-section .page-resources-nk88-app-benefits__section-description {
    color: var(--text-color-dark-bg);
}

.page-resources-nk88-app-benefits__cta-final-section .page-resources-nk88-app-benefits__cta-buttons {
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-nk88-app-benefits__hero-section .page-resources-nk88-app-benefits__container {
        flex-direction: column;
        text-align: center;
    }

    .page-resources-nk88-app-benefits__hero-content {
        text-align: center;
        margin-bottom: 40px;
    }

    .page-resources-nk88-app-benefits__hero-image-wrapper {
        margin-left: 0;
        max-width: 600px;
    }

    .page-resources-nk88-app-benefits__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-resources-nk88-app-benefits {
        font-size: 15px;
        line-height: 1.6;
    }

    .page-resources-nk88-app-benefits__hero-title {
        font-size: 2.5em;
    }

    .page-resources-nk88-app-benefits__hero-description {
        font-size: 1em;
    }

    .page-resources-nk88-app-benefits__section-title {
        font-size: 2em;
    }

    .page-resources-nk88-app-benefits__section-description {
        font-size: 0.95em;
    }

    .page-resources-nk88-app-benefits__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-nk88-app-benefits__btn-primary,
    .page-resources-nk88-app-benefits__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsive */
    .page-resources-nk88-app-benefits img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-nk88-app-benefits__hero-image-wrapper,
    .page-resources-nk88-app-benefits__card,
    .page-resources-nk88-app-benefits__step-item,
    .page-resources-nk88-app-benefits__faq-item,
    .page-resources-nk88-app-benefits__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-resources-nk88-app-benefits__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
    }

    .page-resources-nk88-app-benefits__card-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

@media (max-width: 480px) {
    .page-resources-nk88-app-benefits__hero-title {
        font-size: 2em;
    }

    .page-resources-nk88-app-benefits__section-title {
        font-size: 1.8em;
    }

    .page-resources-nk88-app-benefits__card-title {
        font-size: 1.4em;
    }

    .page-resources-nk88-app-benefits__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-resources-nk88-app-benefits__faq-answer {
        padding: 0 20px;
    }

    .page-resources-nk88-app-benefits__faq-item.active .page-resources-nk88-app-benefits__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}