:root {
    --primary-color: #C91F17;
    --secondary-color: #E53935;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --card-bg-color: #D32F2F;
    --section-dark-bg-color: #B71C1C;
    --text-main-color: #FFF5E1;
    --border-color: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red-color: #7A0E0E;
    --body-bg-color: #f0f2f5; /* From shared.css body */
}

.page-blog-xin88-app-core-features {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light body background */
    line-height: 1.6;
    padding-bottom: 40px;
}

.page-blog-xin88-app-core-features__section--light-bg {
    background-color: var(--body-bg-color);
    color: #333333;
}

.page-blog-xin88-app-core-features__section--dark-bg {
    background-color: var(--section-dark-bg-color);
    color: var(--text-main-color);
}

.page-blog-xin88-app-core-features__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-blog-xin88-app-core-features__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    line-height: 1.2;
}

.page-blog-xin88-app-core-features__section-title--light {
    color: var(--text-main-color);
}

/* HERO Section */
.page-blog-xin88-app-core-features__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 as body handles header offset */
    background-color: var(--section-dark-bg-color);
    color: var(--text-main-color);
}

.page-blog-xin88-app-core-features__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-blog-xin88-app-core-features__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-blog-xin88-app-core-features__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
}

.page-blog-xin88-app-core-features__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-blog-xin88-app-core-features__hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--gold-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog-xin88-app-core-features__intro-text {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-main-color);
}

.page-blog-xin88-app-core-features__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: var(--deep-red-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-blog-xin88-app-core-features__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

/* Content Area */
.page-blog-xin88-app-core-features__content-area {
    padding: 60px 20px;
}

.page-blog-xin88-app-core-features__content-area p {
    font-size: 17px;
    margin-bottom: 1.5em;
    color: #333333;
}

/* Features Section */
.page-blog-xin88-app-core-features__features-section {
    padding: 80px 20px;
}

.page-blog-xin88-app-core-features__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-blog-xin88-app-core-features__feature-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 30px;
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
}

.page-blog-xin88-app-core-features__feature-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.page-blog-xin88-app-core-features__feature-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--gold-color);
    padding: 0 20px;
}

.page-blog-xin88-app-core-features__feature-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main-color);
    padding: 0 20px;
}

.page-blog-xin88-app-core-features__cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
}

.page-blog-xin88-app-core-features__cta-button--primary {
    background: var(--button-gradient);
    color: var(--deep-red-color);
}

.page-blog-xin88-app-core-features__cta-button--secondary {
    background: var(--deep-red-color);
    color: var(--text-main-color);
    border: 2px solid var(--border-color);
}

.page-blog-xin88-app-core-features__cta-button--secondary:hover {
    background: var(--primary-color);
    border-color: var(--gold-color);
}

/* Why Choose Section */
.page-blog-xin88-app-core-features__why-choose-section {
    padding: 80px 20px;
}

.page-blog-xin88-app-core-features__why-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.page-blog-xin88-app-core-features__why-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e0e0e0;
}

.page-blog-xin88-app-core-features__why-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-blog-xin88-app-core-features__why-item p {
    font-size: 16px;
    color: #555555;
}

.page-blog-xin88-app-core-features__image-with-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.page-blog-xin88-app-core-features__image-with-text img {
    flex: 1 1 400px;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-blog-xin88-app-core-features__text-block {
    flex: 1 1 400px;
    max-width: 50%;
}

.page-blog-xin88-app-core-features__text-block h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-blog-xin88-app-core-features__text-block p {
    font-size: 17px;
    margin-bottom: 15px;
    color: #333333;
}

/* FAQ Section */
.page-blog-xin88-app-core-features__faq-section {
    padding: 80px 20px;
}

details.page-blog-xin88-app-core-features__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
details.page-blog-xin88-app-core-features__faq-item summary.page-blog-xin88-app-core-features__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-blog-xin88-app-core-features__faq-item summary.page-blog-xin88-app-core-features__faq-question::-webkit-details-marker {
    display: none;
}
details.page-blog-xin88-app-core-features__faq-item summary.page-blog-xin88-app-core-features__faq-question:hover {
    background: #f5f5f5;
}
.page-blog-xin88-app-core-features__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333;
}
.page-blog-xin88-app-core-features__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-blog-xin88-app-core-features__faq-item .page-blog-xin88-app-core-features__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #555555;
}

/* Conclusion Section */
.page-blog-xin88-app-core-features__conclusion-section {
    padding: 80px 20px;
    text-align: center;
}

.page-blog-xin88-app-core-features__conclusion-text {
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0 auto 25px auto;
    color: var(--text-main-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-blog-xin88-app-core-features__hero-image img {
        height: 500px;
    }
    .page-blog-xin88-app-core-features__image-with-text img,
    .page-blog-xin88-app-core-features__text-block {
        max-width: 100%;
        flex: 1 1 100%;
    }
    .page-blog-xin88-app-core-features__image-with-text {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-blog-xin88-app-core-features__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-blog-xin88-app-core-features__hero-image img {
        border-radius: 4px;
        height: 300px;
    }

    .page-blog-xin88-app-core-features__hero-content h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-blog-xin88-app-core-features__intro-text {
        font-size: 1rem;
    }

    .page-blog-xin88-app-core-features__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }

    .page-blog-xin88-app-core-features__cta-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-blog-xin88-app-core-features__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-blog-xin88-app-core-features__feature-card img {
        height: 200px;
    }

    .page-blog-xin88-app-core-features__feature-title {
        font-size: 20px;
    }

    .page-blog-xin88-app-core-features__text-block h3 {
        font-size: 24px;
    }

    .page-blog-xin88-app-core-features__why-item {
        padding: 25px 15px;
    }

    .page-blog-xin88-app-core-features__why-title {
        font-size: 20px;
    }

    .page-blog-xin88-app-core-features__image-with-text {
        padding: 20px;
    }

    .page-blog-xin88-app-core-features__container {
        padding: 0 15px;
    }

    .page-blog-xin88-app-core-features__content-area,
    .page-blog-xin88-app-core-features__features-section,
    .page-blog-xin88-app-core-features__why-choose-section,
    .page-blog-xin88-app-core-features__faq-section,
    .page-blog-xin88-app-core-features__conclusion-section {
        padding: 40px 0;
    }

    /* Mobile image overflow fix */
    .page-blog-xin88-app-core-features img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-blog-xin88-app-core-features__section,
    .page-blog-xin88-app-core-features__card,
    .page-blog-xin88-app-core-features__container,
    .page-blog-xin88-app-core-features__feature-grid,
    .page-blog-xin88-app-core-features__why-list,
    .page-blog-xin88-app-core-features__image-with-text {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    details.page-blog-xin88-app-core-features__faq-item summary.page-blog-xin88-app-core-features__faq-question { padding: 15px; }
    .page-blog-xin88-app-core-features__faq-qtext { font-size: 15px; }
}

@media (max-width: 480px) {
    .page-blog-xin88-app-core-features__hero-image img {
        height: 200px;
    }
    .page-blog-xin88-app-core-features__hero-content h1 {
        font-size: clamp(1.8rem, 10vw, 2.2rem);
    }
    .page-blog-xin88-app-core-features__feature-grid {
        grid-template-columns: 1fr;
    }
    .page-blog-xin88-app-core-features__why-list {
        grid-template-columns: 1fr;
    }
}