/* ============================================================
   DENTAL CASES — Dr. Kishor Tanir Dental Website
   Design: Luminous Medical Gradient Theme (Non-Dark)
   Scope: .dental-cases
   ============================================================ */

.dental-cases {
    background: linear-gradient(155deg, #EBF4FF 0%, #E6FFFA 40%, #F0FDF4 70%, #F8FAFC 100%);
    padding: 6.5rem 0;
    position: relative;
    overflow: hidden;
}

/* Ambient luminous radial glows */
.dental-cases::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.dental-cases::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* ---- Section Header ---- */
.dental-cases__header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}

.dental-cases__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0D9488;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background-color: #CCFBF1;
    border: 1px solid rgba(13, 148, 136, 0.25);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.dental-cases__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.dental-cases__title-accent {
    background: linear-gradient(135deg, #1A73E8, #0D9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dental-cases__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #475569;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Carousel Wrapper ---- */
.dental-cases__carousel-wrap {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin: 0 auto;
}

.dental-cases__carousel .carousel-inner {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* ---- Slide Container ---- */
.dental-cases__slide {
    background-color: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
}

.dental-cases__comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

.dental-cases__case-panel {
    position: relative;
    overflow: hidden;
    background-color: #F1F5F9;
}

.dental-cases__case-panel--before {
    border-right: 3px solid #FFFFFF;
}

.dental-cases__case-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dental-cases__slide:hover .dental-cases__case-img {
    transform: scale(1.03);
}

/* BEFORE / AFTER Badges */
.dental-cases__panel-label {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dental-cases__panel-label--before {
    background-color: rgba(220, 38, 38, 0.92);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.dental-cases__panel-label--after {
    background-color: rgba(16, 185, 129, 0.94);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Case Info Bar at Bottom of Slide */
.dental-cases__info {
    padding: 1.75rem 2.25rem;
    background: #FFFFFF;
    border-top: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.dental-cases__case-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.02em;
    margin: 0;
}

.dental-cases__case-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    color: #64748B;
    margin: 0.35rem 0 0;
    line-height: 1.6;
}

.dental-cases__treatment-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1A73E8;
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
}

/* ---- Carousel Prev & Next Controls ---- */
.dental-cases__carousel .carousel-control-prev,
.dental-cases__carousel .carousel-control-next {
    width: 52px;
    height: 52px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.dental-cases__carousel .carousel-control-prev {
    left: -70px;
}

.dental-cases__carousel .carousel-control-next {
    right: -70px;
}

.dental-cases__carousel .carousel-control-prev:hover,
.dental-cases__carousel .carousel-control-next:hover {
    background: #0F172A;
    border-color: #0F172A;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

/* Arrow SVGs */
.dental-cases__carousel .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230F172A'%3e%3cpath fill-rule='evenodd' d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
    width: 22px;
    height: 22px;
    transition: filter 0.2s ease;
}

.dental-cases__carousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230F172A'%3e%3cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    width: 22px;
    height: 22px;
    transition: filter 0.2s ease;
}

.dental-cases__carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.dental-cases__carousel .carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(1);
}

/* Indicators / Dots */
.dental-cases__carousel .carousel-indicators {
    margin-bottom: -2.75rem;
}

.dental-cases__carousel .carousel-indicators button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #CBD5E1;
    border: none;
    margin: 0 4px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dental-cases__carousel .carousel-indicators button.active {
    background: linear-gradient(135deg, #1A73E8, #0D9488);
    width: 28px;
    border-radius: 10px;
}

/* Disclaimer text */
.dental-cases__disclaimer {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748B;
    text-align: center;
    margin-top: 4rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* ---- Reveal Animation ---- */
.dental-cases .reveal-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.dental-cases .reveal-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1199.98px) {
    .dental-cases__carousel .carousel-control-prev {
        left: -20px;
    }
    .dental-cases__carousel .carousel-control-next {
        right: -20px;
    }
}

@media (max-width: 991.98px) {
    .dental-cases {
        padding: 4.5rem 0;
    }
    .dental-cases__carousel .carousel-control-prev {
        left: 10px;
    }
    .dental-cases__carousel .carousel-control-next {
        right: 10px;
    }
    .dental-cases__case-img {
        height: 280px;
    }
}

@media (max-width: 575.98px) {
    .dental-cases__comparison {
        grid-template-columns: 1fr;
    }
    .dental-cases__case-panel--before {
        border-right: none;
        border-bottom: 3px solid #FFFFFF;
    }
    .dental-cases__case-img {
        height: 240px;
    }
    .dental-cases__info {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .dental-cases__carousel .carousel-control-prev,
    .dental-cases__carousel .carousel-control-next {
        display: none;
    }
}
