/* style/index-review-m88.css */
:root {
    --primary-color: #0A2463;
    --secondary-color: #E3B505;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #0A2463;
    --border-color: #e0e0e0;
}

/* Base styles for the M88 review page */
.page-index-review-m88 {
    font-family: 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--bg-light);
}

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

.page-index-review-m88__section-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

/* Color Contrast Classes */
.page-index-review-m88__dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-index-review-m88__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* General Text Styling */
.page-index-review-m88 h1, .page-index-review-m88 h2, .page-index-review-m88 h3, .page-index-review-m88 h4, .page-index-review-m88 h5, .page-index-review-m88 h6 {
    color: var(--primary-color);
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.2;
}

.page-index-review-m88 h1 {
    font-size: 38px;
    text-align: center;
    color: var(--text-light);
}

.page-index-review-m88 h2 {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    color: var(--primary-color);
}

.page-index-review-m88 h3 {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
}

.page-index-review-m88 p {
    margin-bottom: 1em;
    font-size: 16px;
}

.page-index-review-m88 ul, .page-index-review-m88 ol {
    margin-bottom: 1em;
    padding-left: 25px;
}

.page-index-review-m88 li {
    margin-bottom: 0.5em;
    font-size: 16px;
}

.page-index-review-m88 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index-review-m88 a:hover {
    color: #ffc107;
    text-decoration: underline;
}

/* CTA Button Styles */
.page-index-review-m88__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 20px;
    border: none;
}

.page-index-review-m88__btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index-review-m88__btn-primary:hover {
    background-color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-index-review-m88__btn-secondary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index-review-m88__btn-secondary:hover {
    background-color: #0A2463;
    border-color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Images */
.page-index-review-m88 img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Intro Section */
.page-index-review-m88__intro-section {
    padding: 40px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
    position: relative;
    padding-top: 120px; /* Desktop padding for fixed header */
}

.page-index-review-m88__intro-text {
    font-size: 18px;
    max-width: 900px;
    margin: 20px auto 30px auto;
    line-height: 1.8;
}

.page-index-review-m88__intro-image-wrapper {
    margin: 30px auto;
    max-width: 800px;
}

.page-index-review-m88__intro-image {
    width: 100%;
    border-radius: 12px;
}

/* Review Content Section (Module 1.5 equivalent) */
.page-index-review-m88__review-content-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.page-index-review-m88__review-content-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 40px;
    line-height: 1.7;
}

.page-index-review-m88__review-content-card h2 {
    font-size: 30px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.page-index-review-m88__review-content-card h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 35px;
    margin-bottom: 15px;
}

.page-index-review-m88__review-body p {
    font-size: 17px;
    margin-bottom: 18px;
}

.page-index-review-m88__review-body ul, .page-index-review-m88__review-body ol {
    margin-bottom: 18px;
}

.page-index-review-m88__review-body li {
    font-size: 17px;
    margin-bottom: 8px;
}

.page-index-review-m88__content-image-wrapper {
    margin: 30px auto;
    max-width: 700px;
}

.page-index-review-m88__content-image {
    width: 100%;
    border-radius: 8px;
}

/* FAQ Section */
.page-index-review-m88__faq-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-index-review-m88__faq-section .page-index-review-m88__section-title {
    color: var(--text-light);
}

.page-index-review-m88__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-index-review-m88__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index-review-m88__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-index-review-m88__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-index-review-m88__faq-question:active {
    background: #eeeeee;
}

.page-index-review-m88__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-dark);
}

.page-index-review-m88__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-index-review-m88__faq-item.active .page-index-review-m88__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg);
}

.page-index-review-m88__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
}

.page-index-review-m88__faq-item.active .page-index-review-m88__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
    background: #f0f0f0;
    border-radius: 0 0 8px 8px;
    color: var(--text-dark);
}

.page-index-review-m88__faq-item.active .page-index-review-m88__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #d0d0d0;
}

/* Blog Section */
.page-index-review-m88__blog-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

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

.page-index-review-m88__blog-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-review-m88__blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index-review-m88__blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.page-index-review-m88__blog-content {
    padding: 25px;
}

.page-index-review-m88__blog-content h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-index-review-m88__blog-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index-review-m88__blog-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-index-review-m88__blog-excerpt {
    font-size: 15px;
    color: #666666;
    margin-bottom: 15px;
}

.page-index-review-m88__blog-date {
    font-size: 13px;
    color: #999999;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-review-m88__main-title {
        font-size: 32px;
    }
    .page-index-review-m88__section-title {
        font-size: 28px;
    }
    .page-index-review-m88__review-content-card h2 {
        font-size: 26px;
    }
    .page-index-review-m88__review-content-card h3 {
        font-size: 20px;
    }
    .page-index-review-m88__review-body p, .page-index-review-m88__review-body li {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-index-review-m88__intro-section {
        padding-top: 100px !important; /* Mobile padding for fixed header */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-index-review-m88__container {
        padding: 0 15px;
    }
    .page-index-review-m88__main-title {
        font-size: 28px;
    }
    .page-index-review-m88__intro-text {
        font-size: 16px;
        margin: 15px auto 20px auto;
    }
    .page-index-review-m88__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-index-review-m88__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-index-review-m88__review-content-section {
        padding: 40px 0;
    }
    .page-index-review-m88__review-content-card {
        padding: 25px;
    }
    .page-index-review-m88__review-content-card h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    .page-index-review-m88__review-content-card h3 {
        font-size: 18px;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-index-review-m88__review-body p, .page-index-review-m88__review-body li {
        font-size: 15px;
    }
    .page-index-review-m88__faq-section, .page-index-review-m88__blog-section {
        padding: 40px 0;
    }
    .page-index-review-m88__faq-question {
        padding: 15px;
    }
    .page-index-review-m88__faq-question h3 {
        font-size: 16px;
    }
    .page-index-review-m88__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-index-review-m88__faq-item.active .page-index-review-m88__faq-answer {
        padding: 15px !important;
    }
    .page-index-review-m88__blog-grid {
        grid-template-columns: 1fr;
    }
    .page-index-review-m88__blog-content {
        padding: 20px;
    }
    .page-index-review-m88__blog-content h3 {
        font-size: 18px;
    }
    .page-index-review-m88__blog-excerpt {
        font-size: 14px;
    }
    /* Ensure all images and their containers are responsive */
    .page-index-review-m88 img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-index-review-m88__container,
    .page-index-review-m88__intro-image-wrapper,
    .page-index-review-m88__content-image-wrapper,
    .page-index-review-m88__blog-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-index-review-m88__main-title {
        font-size: 24px;
    }
    .page-index-review-m88__section-title {
        font-size: 20px;
    }
    .page-index-review-m88__review-content-card h2 {
        font-size: 20px;
    }
    .page-index-review-m88__review-content-card h3 {
        font-size: 16px;
    }
    .page-index-review-m88__cta-button {
        font-size: 14px;
        padding: 10px 20px;
    }
    .page-index-review-m88__faq-question h3 {
        font-size: 14px;
    }
    .page-index-review-m88__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
}