/* ================================
   ABOUT PAGE - TIMELINE STYLES
   CENTER SLIDE ACTIVE
   ✅ BARCHA TEXT WHITE!
================================ */

/* SWIPER CONFIGURATION - CENTER SLIDE */
.swiper {
    overflow: visible;
}

.swiper-wrapper {
    align-items: center;
}

.featured-services.section {
    padding: 60px 0;
}

/* Service Card - NORMAL STATE */
.service-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.service-card .content {
    width: 100%;
}

.service-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.service-card h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-card h4 a:hover {
    color: #007bff;
}

.service-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   ⭐ SWIPER SLIDE ACTIVE (CENTER - O'RTADA)
   🎨 BARCHA TEXT WHITE COLOR!
======================================== */
.swiper-slide-active .service-card {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #007bff;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.3);
    transform: scale(1.05);
    position: relative;
    z-index: 10;
    color: white !important;
}

/* ✅ ACTIVE KARTADA BARCHA TEXT - WHITE */
.swiper-slide-active .service-card * {
    color: white !important;
}

.swiper-slide-active .service-card h4 {
    color: white !important;
    font-weight: 700;
    font-size: 20px;
}

.swiper-slide-active .service-card h4 a {
    color: white !important;
    text-decoration: none;
}

.swiper-slide-active .service-card h4 a:hover {
    color: #e0e0e0 !important;
    text-decoration: underline;
}

.swiper-slide-active .service-card p {
    color: white !important;
    font-weight: 500;
}

/* Content ichidagi BARCHA text - WHITE */
.swiper-slide-active .service-card .content {
    color: white !important;
}

.swiper-slide-active .service-card .content * {
    color: white !important;
}

.swiper-slide-active .service-card .text-lg-center {
    color: white !important;
}

/* Active Card - Glow Effect */
.swiper-slide-active .service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 10px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
}

/* ========================================
   SWIPER SLIDE INACTIVE (LEFT & RIGHT SIDES)
======================================== */
.swiper-slide:not(.swiper-slide-active) .service-card {
    opacity: 0.7;
    transform: scale(0.95);
}

.swiper-slide:not(.swiper-slide-active) .service-card:hover {
    opacity: 0.85;
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Navigation Buttons */
.swiper-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.swiper-nav-prev,
.swiper-nav-next {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #007bff;
    background: white;
    color: #007bff;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.swiper-nav-prev:hover,
.swiper-nav-next:hover {
    background: #007bff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .service-card {
        padding: 25px 15px;
        min-height: 260px;
    }

    .service-card h4 {
        font-size: 16px;
    }

    .swiper-slide-active .service-card {
        transform: scale(1.04);
    }

    .swiper-slide:not(.swiper-slide-active) .service-card {
        transform: scale(0.96);
    }
}

@media (max-width: 768px) {
    .featured-services.section {
        padding: 40px 0;
    }

    .service-card {
        padding: 20px 12px;
        min-height: 240px;
    }

    .service-card h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .service-card p {
        font-size: 13px;
    }

    .swiper-slide-active .service-card h4 {
        font-size: 17px;
    }

    .swiper-nav-prev,
    .swiper-nav-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .swiper-navigation {
        margin-top: 30px;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .featured-services.section {
        padding: 30px 0;
    }

    .service-card {
        padding: 18px 10px;
        min-height: 220px;
    }

    .service-card h4 {
        font-size: 14px;
    }

    .service-card p {
        font-size: 12px;
        line-height: 1.5;
    }

    .swiper-slide-active .service-card {
        transform: scale(1.03);
    }

    .swiper-slide:not(.swiper-slide-active) .service-card {
        transform: scale(0.94);
    }

    .swiper-nav-prev,
    .swiper-nav-next {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .swiper-navigation {
        margin-top: 25px;
        gap: 8px;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: slideIn 0.5s ease-out;
}

/* Accessibility */
.swiper-nav-prev:focus-visible,
.swiper-nav-next:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.service-card:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}


/* Default holat */
.mission-theme {
    background-color: #0064FF;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Ichidagi barcha matnlar */
.mission-theme h2,
.mission-theme p,
.mission-theme li,
.mission-theme strong {
    color: #ffffff;
    transition: color 0.3s ease;
}

/* Hover holati */
.mission-theme:hover {
    background-color: #F4F9F7;
}

/* Hover bo‘lganda matn ranglari */
.mission-theme:hover h2,
.mission-theme:hover p,
.mission-theme:hover li,
.mission-theme:hover strong {
    color: #0064FF;
}
