/* style/index-about-fb88.css */
.page-index-about-fb88 {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though body is default white */
}

/* Fixed header offset for main content */
.page-index-about-fb88__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Brand primary color for hero background */
    color: #FFFFFF; /* White text for dark background */
    padding-bottom: 60px;
}

.page-index-about-fb88__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    z-index: 1; /* Ensure content is above image if layered */
}

.page-index-about-fb88__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

.page-index-about-fb88__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.page-index-about-fb88__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-index-about-fb88__btn-primary,
.page-index-about-fb88__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
    max-width: 100%; /* Ensure button doesn't exceed container */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-index-about-fb88__btn-primary {
    background-color: #C30808; /* Register button color */
    color: #FFFFFF; /* Changed from #FFFF00 to #FFFFFF for contrast */
    border: 2px solid #C30808;
}

.page-index-about-fb88__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-index-about-fb88__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-index-about-fb88__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
}

.page-index-about-fb88__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height to prevent image from being too tall */
    overflow: hidden;
    position: relative;
    margin-top: -60px; /* Overlap with hero content for visual effect */
}

.page-index-about-fb88__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-index-about-fb88__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-index-about-fb88__section-title {
    font-size: 2.2em;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-index-about-fb88__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
}

.page-index-about-fb88__sub-title {
    font-size: 1.6em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index-about-fb88__text-block p {
    margin-bottom: 15px;
    color: #333333;
}

.page-index-about-fb88__list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-index-about-fb88__list li {
    margin-bottom: 10px;
    color: #333333;
}

.page-index-about-fb88__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Section specific styles */
.page-index-about-fb88__overview-section,
.page-index-about-fb88__products-section,
.page-index-about-fb88__support-section,
.page-index-about-fb88__faq-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333;
}

.page-index-about-fb88__security-section,
.page-index-about-fb88__responsibility-section,
.page-index-about-fb88__benefits-section,
.page-index-about-fb88__cta-final-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
    color: #FFFFFF;
}

.page-index-about-fb88__security-section .page-index-about-fb88__section-title,
.page-index-about-fb88__security-section .page-index-about-fb88__section-description,
.page-index-about-fb88__responsibility-section .page-index-about-fb88__section-title,
.page-index-about-fb88__responsibility-section .page-index-about-fb88__section-description,
.page-index-about-fb88__benefits-section .page-index-about-fb88__section-title,
.page-index-about-fb88__benefits-section .page-index-about-fb88__section-description,
.page-index-about-fb88__cta-final-section .page-index-about-fb88__section-title,
.page-index-about-fb88__cta-final-section .page-index-about-fb88__section-description {
    color: #FFFFFF;
}

.page-index-about-fb88__content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.page-index-about-fb88__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-about-fb88__feature-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index-about-fb88__feature-card h3 {
    color: #FFFFFF;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.page-index-about-fb88__feature-card p {
    color: #f0f0f0;
}

.page-index-about-fb88__products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-about-fb88__product-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-index-about-fb88__product-card:hover {
    transform: translateY(-5px);
}

.page-index-about-fb88__product-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-index-about-fb88__product-title {
    font-size: 1.3em;
    margin: 20px 15px 10px;
    font-weight: bold;
}

.page-index-about-fb88__product-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index-about-fb88__product-title a:hover {
    color: #005a2d;
}

.page-index-about-fb88__product-card p {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px 20px;
}

.page-index-about-fb88__support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
    text-align: center;
}

.page-index-about-fb88__support-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-index-about-fb88__support-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-index-about-fb88__support-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index-about-fb88__support-card p {
    color: #555555;
}

.page-index-about-fb88__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-about-fb88__benefit-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index-about-fb88__benefit-item h3 {
    color: #FFFFFF;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.page-index-about-fb88__benefit-item p {
    color: #f0f0f0;
}

/* FAQ Section */
.page-index-about-fb88__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-about-fb88__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-index-about-fb88__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    transition: background-color 0.3s ease;
}

.page-index-about-fb88__faq-question:hover {
    background-color: #f0f0f0;
}

.page-index-about-fb88__faq-question h3 {
    margin: 0;
    color: #017439;
}

.page-index-about-fb88__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439;
}

.page-index-about-fb88__faq-item.active .page-index-about-fb88__faq-toggle {
    transform: rotate(45deg); /* Or just change to '−' */
}

.page-index-about-fb88__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #FFFFFF;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-index-about-fb88__faq-item.active .page-index-about-fb88__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

.page-index-about-fb88__faq-answer p {
    margin-bottom: 15px;
    color: #333333;
}

.page-index-about-fb88__btn-small {
    font-size: 0.9em;
    padding: 8px 15px;
    margin-top: 10px;
}

.page-index-about-fb88__btn-large {
    font-size: 1.2em;
    padding: 15px 30px;
}

.page-index-about-fb88__cta-final-section .page-index-about-fb88__btn-primary {
    margin-top: 30px;
}

.page-index-about-fb88__text-center {
    text-align: center;
}

/* Responsive design */
@media (min-width: 769px) {
    .page-index-about-fb88__content-grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-index-about-fb88__content-grid .page-index-about-fb88__image-block:first-child {
        order: 2; /* Image on right for first content grid */
    }
    .page-index-about-fb88__content-grid .page-index-about-fb88__text-block:first-child {
        order: 1; /* Text on left for first content grid */
    }
    .page-index-about-fb88__responsibility-section .page-index-about-fb88__content-grid .page-index-about-fb88__image-block:first-child {
        order: 1; /* Image on left for responsibility section */
    }
    .page-index-about-fb88__responsibility-section .page-index-about-fb88__content-grid .page-index-about-fb88__text-block:first-child {
        order: 2; /* Text on right for responsibility section */
    }
    .page-index-about-fb88__support-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .page-index-about-fb88__hero-title {
        font-size: 2em;
    }
    .page-index-about-fb88__hero-description {
        font-size: 1em;
    }
    .page-index-about-fb88__section-title {
        font-size: 1.8em;
    }
    .page-index-about-fb88__sub-title {
        font-size: 1.4em;
    }
    .page-index-about-fb88__hero-section {
        padding-top: var(--header-offset, 80px) !important; /* Adjust for mobile header offset */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-index-about-fb88__hero-image-wrapper {
        margin-top: 20px; /* Adjust overlap for mobile */
    }

    /* All images must be responsive */
    .page-index-about-fb88 img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* All video elements must be responsive */
    .page-index-about-fb88 video,
    .page-index-about-fb88__video { /* Assuming a video might be added later */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* All image/video containers must prevent overflow */
    .page-index-about-fb88__section,
    .page-index-about-fb88__card,
    .page-index-about-fb88__container,
    .page-index-about-fb88__image-block,
    .page-index-about-fb88__video-section,
    .page-index-about-fb88__video-container,
    .page-index-about-fb88__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Crucial for preventing horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Buttons responsive */
    .page-index-about-fb88__btn-primary,
    .page-index-about-fb88__btn-secondary,
    .page-index-about-fb88 a[class*="button"],
    .page-index-about-fb88 a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add padding to prevent text touching edges */
        padding-right: 15px;
    }

    .page-index-about-fb88__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }
    .page-index-about-fb88__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-index-about-fb88__products-grid,
    .page-index-about-fb88__feature-grid,
    .page-index-about-fb88__benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Ensure text contrast for dark background sections */
.page-index-about-fb88__dark-bg p,
.page-index-about-fb88__dark-bg li {
    color: #f0f0f0; /* Lighter text for dark backgrounds */
}
.page-index-about-fb88__dark-bg .page-index-about-fb88__btn-secondary {
    border-color: #FFFFFF;
    color: #FFFFFF;
}
.page-index-about-fb88__dark-bg .page-index-about-fb88__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
}