/* =========================================
   Research Summary Section - Redesign 
   ========================================= */

.research-summary-wrapper {
    max-width: 1300px;
    margin: 80px auto;
    padding: 0 40px;
    display: flex;
    flex-direction: row;
    /* Text Left, Image Right */
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 10;
}

/* --- Text Section --- */
.research-text-section {
    flex: 1;
    position: relative;
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(26, 54, 93, 0.1);
    color: #1a365d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 30px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.research-heading {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(135deg, #1a365d 0%, #2d5a9e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.research-paragraph {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    text-align: justify;
}

/* Stats Row */
.stats-row {
    display: flex;
    gap: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #1a365d;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}


/* --- Slider Section --- */
/* --- Slider Section - Redesigned --- */
.lab-photo-section {
    flex: 1.2;
    position: relative;
    padding: 20px;
}

.slider-backdrop {
    display: none;
    /* Hide for simpler look */
}

.research-image-slider {
    width: 100%;
    height: 410px;
    /* Slightly taller */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    /* Clean shadow */
    background: #fff;
    border: 5px solid #fff;
    /* Photo frame effect */
    position: relative;
    transition: box-shadow 0.3s ease;
}

.research-image-slider:hover {
    box-shadow: 0 30px 60px rgba(26, 54, 93, 0.2);
}

.research-image-slider .swiper-slide {
    width: 100%;
    height: 100%;
}

.research-image-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* CHANGED to cover for better filling */
    object-position: center;
    display: block;
}

/* Custom Controls Container */
.slider-controls {
    position: absolute;
    inset: 0;
    /* Full cover */
    pointer-events: none;
    /* Let clicks pass through to other areas */
    z-index: 20;
}

/* Nav Buttons */
.research-image-slider .swiper-button-next,
.research-image-slider .swiper-button-prev {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    color: #1a365d;
    margin: 0;
    transform: translateY(-50%) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    opacity: 0;
    /* Hidden by default */
}

.research-image-slider:hover .swiper-button-next,
.research-image-slider:hover .swiper-button-prev {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.research-image-slider .swiper-button-prev {
    left: 20px;
}

.research-image-slider .swiper-button-next {
    right: 20px;
}

.research-image-slider .swiper-button-next:hover,
.research-image-slider .swiper-button-prev:hover {
    background: #1a365d;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
}

.research-image-slider .swiper-button-next::after,
.research-image-slider .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* Pagination */
.research-image-slider .swiper-pagination {
    position: absolute;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: auto !important;
    display: flex;
    gap: 8px;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.research-image-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cbd5e0;
    opacity: 1;
    margin: 0 !important;
    transition: all 0.3s ease;
}

.research-image-slider .swiper-pagination-bullet-active {
    background: #1a365d;
    width: 30px;
    border-radius: 10px;
}


/* --- Responsive --- */
@media (max-width: 1024px) {
    .research-summary-wrapper {
        flex-direction: column;
        gap: 50px;
        margin: 50px auto;
        padding: 0 30px;
    }

    .research-text-section {
        text-align: center;
    }

    .stats-row {
        justify-content: center;
    }

    .section-badge {
        margin: 0 auto 20px;
    }

    .lab-photo-section {
        width: 100%;
        padding: 0;
    }

    .slider-backdrop {
        right: 0;
        top: 20px;
        width: 100%;
        transform: rotate(0);
        left: 0;
    }

    .research-image-slider {
        height: 400px;
    }
}

@media (max-width: 640px) {
    .research-heading {
        font-size: 36px;
    }

    .research-image-slider {
        height: 300px;
    }

    .stats-row {
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
    }
}

.decorative-shape-left {
    position: absolute;
    left: -100px;
    top: 0;
    width: 300px;
    height: 500px;
    background: linear-gradient(135deg, #c5d5e8 0%, #a8bdd4 100%);
    border-radius: 0 50% 50% 0;
    z-index: 0;
}

.questions-main-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.questions-header-title {
    font-size: 38px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 50px;
    text-align: left;
}

.research-question-card {
    background: white;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.research-question-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.question-number-label {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.question-text-heading {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.4;
}

.answer-introduction-text {
    font-size: 15px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 30px;
    text-align: justify;
}

.answer-introduction-text .highlighted-answer-text {
    font-weight: 600;
    color: #667eea;
}

.answer-introduction-text .italic-style {
    font-style: italic;
}

.diagram-visualization-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom, #f7fafc 0%, #edf2f7 100%);
    border-radius: 8px;
    margin-top: 20px;
}

.single-diagram-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
}

.single-diagram-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

.diagram-step-item {
    text-align: center;
    flex: 1;
    position: relative;
}

.diagram-visual-icon {
    margin-bottom: 15px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagram-visual-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.diagram-step-label {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    max-width: 150px;
    margin: 0 auto;
}

.arrow-connector-symbol {
    font-size: 32px;
    color: #667eea;
    margin: 0 20px;
}

.question-mark-symbol {
    font-size: 40px;
    color: #e53e3e;
    font-weight: bold;
}

@media (max-width: 968px) {
    .questions-header-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .research-question-card {
        padding: 30px 20px;
    }

    .question-text-heading {
        font-size: 20px;
    }

    .diagram-visualization-area {
        padding: 30px 20px;
    }

    .single-diagram-image {
        max-width: 250px;
    }

    .single-diagram-image img {
        max-width: 150px;
    }
}

@media (max-width: 640px) {

    /* Summary Section Adjustments */
    .research-summary-wrapper {
        margin: 40px auto;
        gap: 40px;
        padding: 0 20px;
    }

    .research-text-section {
        text-align: left;
        /* Better readability on mobile */
        padding: 0;
    }

    .research-heading {
        font-size: 32px;
        margin-bottom: 20px;
        text-align: center;
        /* Keep heading centered */
    }

    .research-paragraph {
        font-size: 15px;
        line-height: 1.6;
        text-align: left;
        /* Remove justify for mobile */
    }

    /* Slider Adjustments */
    .lab-photo-section {
        min-height: 198px;
    }

    .research-image-slider {
        height: 194px;
    }

    .research-image-slider .swiper-button-next,
    .research-image-slider .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .research-image-slider .swiper-button-next::after,
    .research-image-slider .swiper-button-prev::after {
        font-size: 14px;
    }

    /* Content Cards */
    .questions-header-title {
        font-size: 26px;
        text-align: center;
    }

    .research-question-card {
        padding: 20px;
    }

    .question-text-heading {
        font-size: 18px;
    }

    .answer-introduction-text {
        font-size: 14px;
        text-align: left;
    }

    .diagram-visualization-area {
        padding: 20px 15px;
    }

    .single-diagram-image {
        max-width: 200px;
    }

    .single-diagram-image img {
        max-width: 120px;
    }

    .stats-row {
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}