/* Main layout */
.accordion-layout {
    display: flex;
    gap: 20px;
}

/* LEFT IMAGE */
.accordion-image-container {
    width: 70%;
    max-height: 500px;
    overflow: hidden; /* scrolling inside .image-scroll */
    display: block;
    position: relative;
}

.accordion-image-container .image-scroll {
    max-height: 100%;
    overflow-y: auto;
}

.accordion-image-container .custom-scroll-block {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: auto;
}

/* Image */
.accordion-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* RIGHT CONTENT */
.accordion-content-container {
    width: 50%;
}

/* Accordion section */
.accordion-wrapper {
    margin-bottom: 10px;
}

/* Accordion title */
.title-red-open {
    background-color: #ac1315;
    color: #fff;
    font-weight: bold;
    padding: 12px 15px;
    cursor: pointer;
    margin-bottom: 5px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hidden content */
.red-title-hidden {
    display: none;
    padding: 10px;
    background: #fff;
}
.accordion-section.active .red-title-hidden {
    display: block;
}

/* Intro box above accordion */
.accordion-intro {
    margin-bottom: 20px;
}
.accordion-intro-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}
.accordion-intro-text {
    font-size: 16px;
    line-height: 1.5;
}

/* Mobile layout */
@media (max-width: 768px) {
    .accordion-layout {
        flex-direction: column;
    }

    /* Accordion content first, image second */
    .accordion-content-container {
        order: 1;
        width: 100%;
    }

    .accordion-image-container {
        order: 2;
        width: 100%;
        max-height: 300px; /* reasonable scroll height */
    }
}
