/* style/index-core-services.css */

/* Custom Colors */
:root {
    --ranvip-primary: #11A84E;
    --ranvip-secondary: #22C768;
    --ranvip-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --ranvip-card-bg: #11271B;
    --ranvip-background: #08160F;
    --ranvip-text-main: #F2FFF6;
    --ranvip-text-secondary: #A7D9B8;
    --ranvip-border: #2E7A4E;
    --ranvip-glow: #57E38D;
    --ranvip-gold: #F2C14E;
    --ranvip-divider: #1E3A2A;
    --ranvip-deep-green: #0A4B2C;
}

.page-index-core-services {
    font-family: 'Arial', sans-serif;
    color: var(--ranvip-text-main); /* Default text color for dark background */
    background-color: var(--ranvip-background); /* Overall page background */
    line-height: 1.6;
}

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

.page-index-core-services__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--ranvip-text-main);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-index-core-services__section-description {
    font-size: 18px;
    color: var(--ranvip-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-core-services__text-block {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--ranvip-text-main);
}

/* Hero Section */
.page-index-core-services__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--ranvip-deep-green);
    overflow: hidden;
    box-sizing: border-box;
}

.page-index-core-services__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit height to prevent excessive size */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-index-core-services__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-index-core-services__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    padding: 40px 20px 0;
    box-sizing: border-box;
}

.page-index-core-services__main-title {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
    color: var(--ranvip-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-index-core-services__hero-description {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--ranvip-text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-index-core-services__btn-primary,
.page-index-core-services__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-index-core-services__btn-primary {
    background: var(--ranvip-button-gradient);
    color: var(--ranvip-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-index-core-services__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
    opacity: 0.9;
}

.page-index-core-services__btn-secondary {
    background-color: transparent;
    color: var(--ranvip-gold);
    border: 2px solid var(--ranvip-gold);
    box-shadow: 0 2px 10px rgba(242, 193, 78, 0.3);
}

.page-index-core-services__btn-secondary:hover {
    background-color: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.5);
}

.page-index-core-services__btn-center {
    display: block;
    margin: 30px auto 0 auto;
    max-width: 300px;
}

/* Intro Section */
.page-index-core-services__intro-section {
    background-color: var(--ranvip-background);
    padding: 60px 0;
    color: var(--ranvip-text-main);
}

.page-index-core-services__intro-section .page-index-core-services__section-title {
    color: var(--ranvip-gold);
}

/* Services Overview */
.page-index-core-services__services-overview {
    background-color: var(--ranvip-deep-green);
    padding: 80px 0;
}

.page-index-core-services__service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.page-index-core-services__card {
    background-color: var(--ranvip-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--ranvip-text-main);
    border: 1px solid var(--ranvip-border);
    display: flex;
    flex-direction: column;
}

.page-index-core-services__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-index-core-services__card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-index-core-services__card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ranvip-gold);
    padding: 20px 20px 10px;
}

.page-index-core-services__card-text {
    font-size: 15px;
    color: var(--ranvip-text-secondary);
    padding: 0 20px 20px;
    flex-grow: 1;
}

.page-index-core-services__card-button {
    display: inline-block;
    background: var(--ranvip-button-gradient);
    color: var(--ranvip-text-main);
    padding: 10px 20px;
    margin: 0 20px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease;
}

.page-index-core-services__card-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* Registration Guide */
.page-index-core-services__registration-guide {
    background-color: var(--ranvip-background);
    padding: 80px 0;
    color: var(--ranvip-text-main);
}

.page-index-core-services__registration-guide .page-index-core-services__section-title {
    color: var(--ranvip-gold);
}

.page-index-core-services__step-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

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

.page-index-core-services__list-item strong {
    color: var(--ranvip-gold);
}

/* Promotions Section */
.page-index-core-services__promotions-section {
    background-color: var(--ranvip-deep-green);
    padding: 80px 0;
}

.page-index-core-services__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-index-core-services__promo-card {
    background-color: var(--ranvip-card-bg);
    border: 1px solid var(--ranvip-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: var(--ranvip-text-main);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index-core-services__promo-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ranvip-gold);
    margin-bottom: 15px;
}

.page-index-core-services__promo-text {
    font-size: 16px;
    color: var(--ranvip-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Security Section */
.page-index-core-services__security-section {
    background-color: var(--ranvip-background);
    padding: 80px 0;
    color: var(--ranvip-text-main);
}

.page-index-core-services__security-section .page-index-core-services__section-title {
    color: var(--ranvip-gold);
}

/* App Section */
.page-index-core-services__app-section {
    background-color: var(--ranvip-deep-green);
    padding: 80px 0;
}

.page-index-core-services__app-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-index-core-services__app-text {
    flex: 1;
    min-width: 300px;
    color: var(--ranvip-text-main);
}

.page-index-core-services__feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-index-core-services__feature-list .page-index-core-services__list-item {
    background-color: transparent;
    border: none;
    padding: 5px 0;
    margin-bottom: 10px;
    font-size: 17px;
    color: var(--ranvip-text-secondary);
    box-shadow: none;
    position: relative;
    padding-left: 25px;
}

.page-index-core-services__feature-list .page-index-core-services__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--ranvip-gold);
}

.page-index-core-services__app-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-index-core-services__app-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-index-core-services__faq-section {
    background-color: var(--ranvip-background);
    padding: 80px 0;
    color: var(--ranvip-text-main);
}

.page-index-core-services__faq-section .page-index-core-services__section-title {
    color: var(--ranvip-gold);
}

.page-index-core-services__faq-list {
    margin-top: 40px;
}

.page-index-core-services__faq-item {
    background-color: var(--ranvip-card-bg);
    border: 1px solid var(--ranvip-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-index-core-services__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ranvip-text-main);
    cursor: pointer;
    background-color: var(--ranvip-deep-green);
    border-bottom: 1px solid var(--ranvip-border);
    list-style: none; /* For details/summary */
}

.page-index-core-services__faq-question::-webkit-details-marker {
    display: none;
}

.page-index-core-services__faq-qtext {
    flex-grow: 1;
}

.page-index-core-services__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--ranvip-gold);
}

.page-index-core-services__faq-answer {
    padding: 0 20px 20px;
    font-size: 16px;
    color: var(--ranvip-text-secondary);
    line-height: 1.7;
}

.page-index-core-services__faq-item[open] .page-index-core-services__faq-question {
    border-bottom: 1px solid var(--ranvip-border);
}

/* Conclusion Section */
.page-index-core-services__conclusion-section {
    background-color: var(--ranvip-deep-green);
    padding: 80px 0;
    text-align: center;
}

.page-index-core-services__conclusion-section .page-index-core-services__section-title {
    color: var(--ranvip-gold);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-index-core-services {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-index-core-services__container,
    .page-index-core-services__hero-content,
    .page-index-core-services__intro-section .page-index-core-services__container,
    .page-index-core-services__services-overview .page-index-core-services__container,
    .page-index-core-services__registration-guide .page-index-core-services__container,
    .page-index-core-services__promotions-section .page-index-core-services__container,
    .page-index-core-services__security-section .page-index-core-services__container,
    .page-index-core-services__app-section .page-index-core-services__container,
    .page-index-core-services__faq-section .page-index-core-services__container,
    .page-index-core-services__conclusion-section .page-index-core-services__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-index-core-services__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-index-core-services__main-title {
        font-size: clamp(28px, 8vw, 36px);
        letter-spacing: -0.5px;
    }

    .page-index-core-services__hero-description {
        font-size: 16px;
        line-height: 1.4;
    }

    .page-index-core-services__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-index-core-services__btn-primary,
    .page-index-core-services__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto;
    }

    .page-index-core-services__btn-center {
        max-width: 100% !important;
        width: 100% !important;
        margin: 20px auto 0 auto;
    }

    .page-index-core-services__section-title {
        font-size: clamp(24px, 6vw, 32px);
    }

    .page-index-core-services__section-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-index-core-services__card-image,
    .page-index-core-services__app-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-index-core-services__card {
        margin-bottom: 20px;
    }

    .page-index-core-services__app-content {
        flex-direction: column;
    }

    .page-index-core-services__app-image-wrapper {
        order: -1; /* Image above text on mobile */
        margin-bottom: 20px;
    }

    .page-index-core-services__promo-card {
        padding: 20px;
    }

    .page-index-core-services__promo-title {
        font-size: 20px;
    }

    .page-index-core-services__faq-question {
        font-size: 16px;
        padding: 15px;
    }

    .page-index-core-services__faq-answer {
        font-size: 15px;
        padding: 0 15px 15px;
    }

    .page-index-core-services__hero-image {
      max-height: 50vh;
    }
}

/* Ensure content area images are not too small */
.page-index-core-services__card-image,
.page-index-core-services__app-image {
    min-width: 200px;
    min-height: 200px;
}

/* Specific contrast adjustments for light background sections */
.page-index-core-services__intro-section,
.page-index-core-services__registration-guide,
.page-index-core-services__security-section,
.page-index-core-services__faq-section {
    background-color: var(--ranvip-background); /* Using dark background for page sections */
    color: var(--ranvip-text-main);
}

.page-index-core-services__intro-section p,
.page-index-core-services__registration-guide p,
.page-index-core-services__security-section p,
.page-index-core-services__faq-section p,
.page-index-core-services__list-item {
    color: var(--ranvip-text-secondary);
}

/* Ensure no filter on images */
.page-index-core-services img {
    filter: none !important;
}