/* Test Categories Section Styles */
.test-categories-section {
    position: relative;
    padding: 80px 0;
    background-color: #fafcff;
    overflow: hidden;
}

/* Arka plan efekti */
.test-categories-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 90%, rgba(67, 97, 238, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(13, 202, 240, 0.05) 0%, transparent 30%);
    z-index: -1;
}

/* Başlık stil - Features section ile uyumlu */
.section-badge-wrap {
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
}

.section-title {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.section-desc {
    animation: fadeInUp 1s ease-out 0.4s both;
    max-width: 700px;
    margin: 0 auto;
}

.text-highlight {
    position: relative;
    color: var(--primary-color);
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 25%;
    background-color: rgba(67, 97, 238, 0.1);
    bottom: 5px;
    left: 0;
    z-index: -1;
    border-radius: 10px;
}

/* Modern Test Kartları */
.test-category-card {
    position: relative;
    height: 100%;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(240, 240, 250, 0.9);
    overflow: hidden;
}

.test-category-card:hover {
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.08);
    transform: translateY(-5px);
}

/* Kart başlık çizgisi */
.test-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    transition: height 0.3s ease;
    z-index: 1;
}

.test-category-card:hover::before {
    height: 100%;
}

/* Renk kodları */
.test-category-card.blood::before {
    background: linear-gradient(to bottom, #dc3545, #c82333);
}

.test-category-card.urine::before {
    background: linear-gradient(to bottom, #0dcaf0, #0aa2c0);
}

.test-category-card.other::before {
    background: linear-gradient(to bottom, #20c997, #189f7b);
}

.test-category-card.cardiac::before {
    background: linear-gradient(to bottom, #fd7e14, #dc6a02);
}

.test-category-card.imaging::before {
    background: linear-gradient(to bottom, #6f42c1, #5d36a4);
}

.test-category-card.hormone::before {
    background: linear-gradient(to bottom, #ffc107, #e0a800);
}

/* İkon container */
.test-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.test-category-card:hover .test-icon-container {
    transform: scale(1.05);
}

.test-icon {
    font-size: 24px;
    transition: all 0.3s ease;
}

/* Kategori başlık */
.test-category-title {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 16px;
    color: #1e2432;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.test-category-card:hover .test-category-title {
    color: inherit;
}

/* Kategori açıklaması */
.test-category-description {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

/* Test öğeleri listesi */
.test-list {
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.test-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: #4b5563;
}

.test-list li:last-child {
    margin-bottom: 0;
}

.test-list i {
    font-size: 16px;
    margin-top: 2px;
}

/* Badge stilleri */
.test-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 30px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.test-badge i {
    margin-right: 5px;
    font-size: 14px;
    opacity: 0.8;
}

/* Kategori renkleri */
.blood .test-icon-container {
    background-color: rgba(220, 53, 69, 0.1);
}

.blood .test-icon {
    color: #dc3545;
}

.blood .test-badge {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.blood:hover .test-badge {
    background-color: #dc3545;
    color: white;
}

.urine .test-icon-container {
    background-color: rgba(13, 202, 240, 0.1);
}

.urine .test-icon {
    color: #0dcaf0;
}

.urine .test-badge {
    background-color: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
}

.urine:hover .test-badge {
    background-color: #0dcaf0;
    color: white;
}

.other .test-icon-container {
    background-color: rgba(32, 201, 151, 0.1);
}

.other .test-icon {
    color: #20c997;
}

.other .test-badge {
    background-color: rgba(32, 201, 151, 0.1);
    color: #20c997;
}

.other:hover .test-badge {
    background-color: #20c997;
    color: white;
}

.cardiac .test-icon-container {
    background-color: rgba(253, 126, 20, 0.1);
}

.cardiac .test-icon {
    color: #fd7e14;
}

.cardiac .test-badge {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

.cardiac:hover .test-badge {
    background-color: #fd7e14;
    color: white;
}

.imaging .test-icon-container {
    background-color: rgba(111, 66, 193, 0.1);
}

.imaging .test-icon {
    color: #6f42c1;
}

.imaging .test-badge {
    background-color: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
}

.imaging:hover .test-badge {
    background-color: #6f42c1;
    color: white;
}

.hormone .test-icon-container {
    background-color: rgba(255, 193, 7, 0.1);
}

.hormone .test-icon {
    color: #ffc107;
}

.hormone .test-badge {
    background-color: rgba(255, 193, 7, 0.1);
    color: #966102;
}

.hormone:hover .test-badge {
    background-color: #ffc107;
    color: #212529;
}

/* Görüntüle butonu */
.test-view-button {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
}

.test-view-button i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.test-category-card:hover .test-view-button {
    color: inherit;
}

.test-category-card:hover .test-view-button i {
    transform: translateX(3px);
}

/* Ana buton */
.view-all-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    border: 1px solid var(--primary-color);
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    z-index: -1;
}

.view-all-btn:hover {
    color: white;
}

.view-all-btn:hover::before {
    left: 0;
}

/* Sayfa numarası */
.test-page-indicator {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 120px;
    font-weight: 700;
    color: rgba(67, 97, 238, 0.03);
    line-height: 1;
    z-index: 1;
    user-select: none;
}

/* Animasyonlar */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Carousel Özellikleri */
/* Eski carousel-controls sınıfını kaldırdık */
/* .carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 40px;
} */

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--primary-color);
}

.carousel-control-prev:hover .carousel-control-icon,
.carousel-control-next:hover .carousel-control-icon {
    color: white;
}

.carousel-control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

/* Carousel İndikatörlerinin Modern Versiyonu */
.test-carousel-indicators {
    position: relative;
    bottom: auto;
    margin-top: 30px;
    margin-bottom: 0;
    justify-content: center;
    z-index: 10;
}

.test-carousel-indicators button {
    width: 30px;
    height: 4px;
    margin: 0 4px;
    border: none;
    border-radius: 2px;
    background-color: rgba(67, 97, 238, 0.2);
    opacity: 1;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
}

.test-carousel-indicators button::after {
    content: '';
    position: absolute;
    top: -8px;
    bottom: -8px;
    left: 0;
    right: 0;
    cursor: pointer;
}

.test-carousel-indicators button.active {
    background-color: var(--primary-color);
    transform: scaleX(1.3);
}

.test-carousel-indicators button:not(.active):hover {
    background-color: rgba(67, 97, 238, 0.4);
}

/* Mobil Responsive Ayarlamaları */
@media (max-width: 991.98px) {
    .test-categories-section {
        padding: 60px 0;
    }

    .test-category-card {
        height: auto;
    }
    
    /* Carousel kontrolleri küçük ekranlarda */
    .carousel-control-prev {
        left: -15px;
    }
    
    .carousel-control-next {
        right: -15px;
    }
}

@media (max-width: 767.98px) {
    .test-categories-section {
        padding: 50px 0;
    }
    
    .test-category-card {
        margin-bottom: 0;
        max-width: 90%;
        margin: 0 auto;
        height: auto;
    }
    
    /* Carousel kontrolleri çok küçük ekranlarda */
    .carousel-control-prev {
        left: -10px;
    }
    
    .carousel-control-next {
        right: -10px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 32px;
        height: 32px;
    }
    
    .carousel-control-icon {
        font-size: 1.2rem;
    }
    
    .test-carousel-indicators {
        margin-top: 25px;
    }
    
    .test-carousel-indicators button {
        width: 15px;
        height: 3px;
        margin: 0 3px;
    }
    
    .carousel-indicators {
        flex-wrap: wrap;
        margin-bottom: 0;
    }
}