/* ===== Overall block wrapper ===== */
.ime-research-areas-block {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

    border-top: none;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Swiper root */
.ime-research-areas-block .swiper {
    position: relative;
    overflow: hidden;
}

/* ===== Each slide layout ===== */
.research-area-slide {
    padding: 0 0 8px;
}

.research-area-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: nowrap;
}

.research-area-image {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.research-area-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border: 1px solid #ccc;
}

.research-area-content {
    flex: 1 1 60%;
    max-width: 60%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.research-area-title {
    color: #00539f;
    font-size: clamp(1.5rem, 1vw + 1.2rem, 2.5rem);
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 24px 0;
}

.research-area-desc {
    font-size: clamp(0.9rem, 0.4vw + 0.7rem, 1.5rem);
    line-height: 1.4;
    font-weight: 400;
    color: #000;
    margin: 0 0 24px 0;

    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.research-area-desc p {
    margin: 0 0 1em 0;
}

.research-area-btn {
    display: inline-block;
    background-color: #00539f;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    font-size: clamp(0.9rem, 0.4vw + 0.7rem, 1.3rem);
    font-weight: 500;
    border: 2px solid #00539f;
    border-radius: 0;
    width: max-content;
}

/* =========================================================
   Swiper arrows
   目标：跟 projects carousel 一模一样
   ========================================================= */
.ime-research-areas-block .swiper-button-prev,
.ime-research-areas-block .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    /* same button shell as .imec-nav */
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #c9d6e6;
    background: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
    display: none !important;
}

/* hover shadow same as .imec-nav:hover */
.ime-research-areas-block .swiper-button-prev:hover,
.ime-research-areas-block .swiper-button-next:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* 位置：与 projects */
.ime-research-areas-block .swiper-button-prev {
    left: -3px;
}
.ime-research-areas-block .swiper-button-next {
    right: -3px;
}

/* 箭头字符本身：匹配 projects 视觉（更小、更细） */
.ime-research-areas-block .swiper-button-prev:after,
.ime-research-areas-block .swiper-button-next:after {
    font-size: 18px;   /* 比 20px 稍小，肉眼接近 projects 的 ‹ › */
    font-weight: 400;  /* projects 那边的实体字符看起来不是超粗，所以用常规 */
    color: #000;
    line-height: 1;
}

/* =========================================================
   Bullets / pagination dots
   ========================================================= */
.ime-research-areas-block .swiper-pagination {
    position: relative;
    bottom: 0;
    margin-top: 2px;
    margin-bottom: 0;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.ime-research-areas-block .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #0b5ea9;
    background: transparent;
    opacity: 1;
    margin: 0 !important;
    cursor: pointer;
}

.ime-research-areas-block .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: #0b5ea9;
    border-color: #0b5ea9;
}

/* ===== Scroll-to-top button off ===== */
.ime-scroll-top-btn {
    display: none;
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 768px) {

    .research-area-inner {
        flex-direction: column;
        gap: 16px;
    }

    .research-area-image {
        display: none;
    }

    .research-area-content {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .research-area-title {
        font-size: 1.5rem;
        line-height: 1.25;
        margin-bottom: 16px;
    }

    .research-area-desc {
        font-size: 1rem;
        line-height: 1.4;
        -webkit-line-clamp: 6;
        margin-bottom: 20px;
    }

    .research-area-btn {
        padding: 8px 16px;
        font-size: 1rem;
    }

    /* 在手机上，我们跟 projects 一样：隐藏左右箭头 */
    .ime-research-areas-block .swiper-button-prev,
    .ime-research-areas-block .swiper-button-next {
        display: none;
    }

    .ime-research-areas-block .swiper-pagination {
        margin-top: 12px;
    }
}
