/* ===================================
   MEDICAL TECHNOLOGIES SECTION
   =================================== */

.medical-technologies-section {
    padding: 80px 0;
    background: #F8F9FA;
    overflow: visible;
    /* Allow buttons to show outside */
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #0B2C54;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: 'TEKNOLOJİ';
    position: absolute;
    top: -24px;
    left: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #FF6B35;
    text-transform: uppercase;
}

.section-description {
    font-size: 18px;
    color: #666666;
    line-height: 1.7;
    margin: 0;
}

/* Container Context for Navigation */
.medical-technologies-section .container {
    position: relative;
}

/* Carousel Wrapper */
.technologies-carousel-wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 1400px;
    overflow: hidden;
    padding: 20px 0;
}

/* Ensure carousel items start from left for correct calculation */
.technologies-carousel {
    display: flex;
    gap: 30px;
    padding: 0 15px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Navigation Controls - Positioned outside */
.tech-carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
    height: 0;
    /* Zero height wrapper */
}

.tech-nav-btn {
    width: 60px;
    /* Slightly larger */
    height: 60px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    /* Subtle border */
    color: #0B2C54;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 24px;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    /* Absolute positioning within the zero-height wrapper */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.tech-prev {
    left: -100px;
}

.tech-next {
    right: -100px;
}

.tech-nav-btn:hover {
    background: #FFFFFF;
    color: #FF6B35;
    border-color: #FF6B35;
    transform: translateY(-50%);
    /* Removed scale, kept vertical alignment */
    box-shadow: 0 6px 16px rgba(11, 44, 84, 0.1);
    /* Softer shadow */
}

/* Technology Card - Vertical */
.tech-card {
    flex: 0 0 calc((100% - 90px) / 4);
    /* Default: 4 items, 3 gaps of 30px */
    background: #FFFFFF;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(11, 44, 84, 0.2);
    background: #0B2C54;
}

.tech-card:hover .tech-title {
    color: #FFFFFF;
}

.tech-card:hover .tech-description {
    color: rgba(255, 255, 255, 0.8);
}

.tech-card:hover .tech-icon {
    background: #FFFFFF;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.tech-card:hover .tech-icon i {
    color: #0B2C54;
}

/* Card Image */
.tech-card-image {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #0B2C54 0%, #1E4D8B 100%);
    position: relative;
    overflow: hidden;
}

.tech-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tech-card:hover .tech-card-image img {
    transform: scale(1.1);
}

/* Placeholder icon when no image */
.tech-card-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Card Content */
.tech-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tech-icon {
    width: 64px;
    height: 64px;
    margin: 0 0 16px 0;
    background: linear-gradient(135deg, #0B2C54 0%, #1E4D8B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(11, 44, 84, 0.3);
}

.tech-icon i {
    font-size: 28px;
    color: #FFFFFF;
}

.tech-title {
    font-size: 20px;
    font-weight: 700;
    color: #0B2C54;
    margin-bottom: 12px;
    line-height: 1.3;
}

.tech-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* Navigation Controls */
.tech-carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 10px;
}

.tech-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #FFFFFF;
    border: none;
    color: #0B2C54;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 24px;
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tech-nav-btn:hover {
    background: #0B2C54;
    color: #FFFFFF;
    transform: scale(1.1);
}

/* Dot Indicators */
.tech-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.tech-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E9ECEF;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.tech-dot:hover {
    background: #0B2C54;
    transform: scale(1.2);
}

.tech-dot.active {
    background: #FF6B35;
    width: 32px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 1399px) {
    /* XL: 4 items logic if needed, or stick to 5 until 1200 */
}

@media (max-width: 1199px) {

    /* LG: 4 items (3 gaps = 90px) */
    .tech-card {
        flex: 0 0 calc((100% - 90px) / 4);
    }

    .tech-card-image {
        height: 280px;
    }
}

@media (max-width: 991px) {

    /* MD: 3 items (2 gaps = 60px) */
    .medical-technologies-section {
        padding: 60px 0;
    }

    .tech-card {
        flex: 0 0 calc((100% - 60px) / 3);
    }

    .tech-card-image {
        height: 260px;
    }

    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 767px) {

    /* SM: 2 items (1 gap = 30px) */
    .medical-technologies-section {
        padding: 40px 0;
    }

    .tech-card {
        flex: 0 0 calc((100% - 30px) / 2);
    }

    .tech-card-image {
        height: 240px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-title::before {
        font-size: 11px;
        top: -20px;
    }

    .tech-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 575px) {

    /* XS: 1 item */
    .tech-card {
        flex: 0 0 100%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        /* Lighter shadow on mobile */
    }

    .tech-card-image {
        height: 220px;
    }

    .technologies-carousel-wrapper {
        padding: 10px 0;
    }

    /* Hide nav buttons on mobile, maybe? Or keep them small */
    .tech-nav-btn {
        display: none;
        /* Often easier to swipe on mobile */
    }

    /* Dots larger */
    .tech-dots {
        margin-top: 20px;
    }
}