/* ==========================================================================
   HERO BANNER — Ortho Pro Clinic Carousel
   ========================================================================== */

.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#heroSlider {
    position: relative;
    width: 100%;
    height: 600px;
}

#heroSlider .carousel-inner,
#heroSlider .carousel-item {
    height: 100%;
}

#heroSlider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Dark gradient overlay for text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 20, 35, 0.85) 0%,
        rgba(10, 20, 35, 0.55) 45%,
        rgba(10, 20, 35, 0.2) 100%
    );
}

/* Caption / text content */
#heroSlider .carousel-caption {
    position: absolute;
    top: auto;
    left: 50%;
    /* right: auto; */
    transform: translateY(-50%);
    /* text-align: left; */
    max-width: 100%;
    bottom: auto;
    padding: 0;
    bottom: 0;
    z-index: 3;
    /* right: 8%; */
    transform: translate(-50%, -50%);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4fd1c5;
    margin-bottom: 16px;
}

.hero-eyebrow i {
    width: 24px;
    height: 2px;
    background: #4fd1c5;
    display: inline-block;
}

#heroSlider .carousel-caption h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 18px;
}

#heroSlider .carousel-caption p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 28px;
    max-width: 100%;
    padding: 5px;
    background: #000;
    display: inline-block;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0f766e;
    color: #fff;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-link span {
    transition: transform 0.3s ease;
}

.hero-link:hover {
    background: #0d9488;
    color: #fff;
    transform: translateY(-2px);
}

.hero-link:hover span {
    transform: translateX(4px);
}

/* ==========================================================================
   Specialty Index (tab-style indicators)
   ========================================================================== */

.specialty-index {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    z-index: 4;
    background: rgba(8, 15, 28, 0.55);
    backdrop-filter: blur(6px);
}

.specialty-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-top: 3px solid transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.specialty-tab + .specialty-tab {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.specialty-tab .tab-num {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.specialty-tab .tab-label {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.specialty-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.specialty-tab.active {
    color: #fff;
    border-top-color: #4fd1c5;
    background: rgba(79, 209, 197, 0.1);
}

/* ==========================================================================
   Vitals strip (SVG heartbeat accent)
   ========================================================================== */

.vitals-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 3;
    pointer-events: none;
}

.vitals-strip path {
    fill: none;
    stroke: #4fd1c5;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.85;
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
}

/* Runs the heartbeat line draw animation */
.vitals-strip path.run {
    animation: vitalsDraw 1.2s ease-out forwards;
}

@keyframes vitalsDraw {
    0% {
        stroke-dashoffset: 1400;
        opacity: 0.4;
    }
    60% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0.85;
    }
}

/* ==========================================================================
   Carousel controls (prev / next arrows)
   ========================================================================== */

#heroSlider .carousel-control-prev,
#heroSlider .carousel-control-next {
    width: 56px;
    height: 56px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    opacity: 1;
    transition: background 0.3s ease;
    z-index: 4;
}

#heroSlider .carousel-control-prev {
    left: 24px;
}

#heroSlider .carousel-control-next {
    right: 24px;
}

#heroSlider .carousel-control-prev:hover,
#heroSlider .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

#heroSlider .carousel-control-prev-icon,
#heroSlider .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablets (large) */
@media (max-width: 1199.98px) {
    #heroSlider {
        height: 540px;
    }

    #heroSlider .carousel-caption h1 {
        font-size: 40px;
    }

}

/* Tablets */
@media (max-width: 991.98px) {
    #heroSlider {
        height: 480px;
    }

    #heroSlider .carousel-caption h1 {
        font-size: 32px;
        margin-bottom: 14px;
    }


    .hero-link {
        padding: 12px 24px;
        font-size: 14px;
    }

    .specialty-tab .tab-label {
        display: none;
    }

    .specialty-tab {
        align-items: center;
        padding: 14px 10px;
    }
}

/* Mobile (large) */
@media (max-width: 767.98px) {
    #heroSlider {
        height: 620px;
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(10, 20, 35, 0.4) 0%,
            rgba(10, 20, 35, 0.85) 65%,
            rgba(10, 20, 35, 0.95) 100%
        );
    }

    #heroSlider .carousel-caption {
        top: auto;
        bottom: 90px;
        transform: none;
        left: 6%;
        right: 6%;
        max-width: none;
        text-align: left;
    }

    #heroSlider .carousel-caption h1 {
        font-size: 26px;
    }

    #heroSlider .carousel-caption p {
        font-size: 14px;
        max-width: none;
    }

    .hero-eyebrow {
        font-size: 12px;
        margin-bottom: 10px;
    }

    #heroSlider .carousel-control-prev,
    #heroSlider .carousel-control-next {
        width: 40px;
        height: 40px;
        display: none; /* rely on swipe on mobile */
    }

    .specialty-index {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .specialty-tab {
        flex: 0 0 auto;
        min-width: 60px;
    }

    .vitals-strip {
        display: none;
    }
}

/* Mobile (small) */
@media (max-width: 479.98px) {
    #heroSlider {
        height: 560px;
    }

    #heroSlider .carousel-caption h1 {
        font-size: 22px;
    }

    #heroSlider .carousel-caption p {
        font-size: 13px;
    }

    .hero-link {
        padding: 10px 20px;
        font-size: 13px;
    }
}