/* ========================================================
   GT Disease Categories - Premium UI & Grid Logic
======================================================== */

.gt-disease-slider-wrapper {
    padding: 15px 0;
    width: 100%;
    overflow: hidden; /* Prevents horizontal scroll on mobile */
}

/* Base Card Styling (Applies to both Grid & Slider) */
.gt-cat-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    text-align: center;
    padding: 25px 15px;
    transition: all 0.3s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #f2f2f2;
}

.gt-cat-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.gt-cat-link {
    text-decoration: none !important;
    display: block;
    width: 100%;
}

/* Image & Icon Wrapper (Circular Background from Screenshot) */
.gt-cat-image-wrapper {
    width: 75px;
    height: 75px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    background-color: #f4f9f9; /* Light teal tint for medical look */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gt-cat-image-wrapper img {
    max-width: 45px;
    max-height: 45px;
    object-fit: contain;
}

.gt-svg-fallback svg {
    width: 35px;
    height: 35px;
}

/* Category Title */
.gt-cat-title {
    font-size: 15px;
    font-weight: 600;
    color: #222222;
    margin: 0;
    line-height: 1.3;
}

/* ========================================================
   RESPONSIVE LOGIC: Desktop/Tablet (Grid) vs Mobile (Swiper)
======================================================== */

/* Mobile Mode (Under 768px): Prepares layout for Swiper.js */
@media (max-width: 767px) {
    .gt-disease-swiper .swiper-wrapper {
        display: flex;
    }
    .gt-cat-card {
        padding: 20px 10px;
    }
    .gt-cat-title {
        font-size: 14px;
    }
    .swiper-pagination {
        position: relative;
        margin-top: 15px;
    }
}

/* Tablet Mode (768px - 1024px): Dynamic CSS Variable Grid */
@media (min-width: 768px) and (max-width: 1024px) {
    .gt-disease-swiper .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(var(--cols-tablet, 3), 1fr) !important;
        gap: 20px;
    }
    .gt-disease-swiper .swiper-slide {
        width: 100% !important;
        margin: 0 !important;
    }
    .swiper-pagination { display: none !important; }
}

/* Desktop Mode (1025px and up): Dynamic CSS Variable Grid */
@media (min-width: 1025px) {
    .gt-disease-swiper .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(var(--cols-desktop, 5), 1fr) !important;
        gap: 20px;
    }
    .gt-disease-swiper .swiper-slide {
        width: 100% !important;
        margin: 0 !important;
    }
    .swiper-pagination { display: none !important; }
}