body {
    font-family: Tahoma, Arial, sans-serif;
}


/* Slider visibility fixes: ensure slide content is above overlays */

.hero-slide .hero-slide-content {
    position: relative;
    z-index: 20;
}


/* Overlay dimmer should sit below the content but above the image */

.hero-slide>.absolute.inset-0.bg-black\/40,
.hero-slide>.absolute.inset-0[style*="radial-gradient"] {
    z-index: 10;
    pointer-events: none;
}


/* Ensure hero card content uses transparent background and remains above overlays */

.hero-card {
    background: transparent !important;
    z-index: 25;
}


/* Make sure active slide content is fully opaque */

.hero-slide.active .hero-title,
.hero-slide.active .hero-desc,
.hero-slide.active .btn-primary {
    visibility: visible !important;
    opacity: 1 !important;
}


/* --- Modern Medical Hero Slider Styles --- */

.hero-modern {
    position: relative;
}

.hero-modern .hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: opacity 0.8s ease, transform 0.9s ease;
    opacity: 0;
    will-change: opacity, transform;
}

.hero-modern .hero-slide.active {
    opacity: 1;
    transform: translateZ(0);
}

.hero-modern .hero-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 12s ease;
    z-index: 0;
}

.hero-modern .hero-slide.active .hero-slide-img {
    transform: scale(1.12);
}

.hero-modern .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 25, 55, 0.25), rgba(5, 20, 45, 0.45));
    z-index: 1;
    pointer-events: none;
}

.hero-modern .hero-slide-content {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 2rem;
    text-align: center;
}

.hero-modern .hero-card {
    max-width: 720px;
    width: min(100%, 720px);
    background: transparent !important;
    border-radius: 2rem;
    padding: 2.2rem 1.8rem;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    overflow: visible;
}

section[dir="rtl"] .hero-modern .hero-card,
section[dir="ltr"] .hero-modern .hero-card {
    margin: 0 auto;
    text-align: center;
}

.hero-modern .hero-card::before {
    display: none;
}

.hero-modern .hero-title {
    font-size: 52px;
    line-height: 1.03;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 0.85rem 0;
    letter-spacing: -0.02em;
}

@media (max-width: 1024px) {
    .hero-modern .hero-title {
        font-size: 44px;
    }
}

@media (max-width: 640px) {
    .hero-modern .hero-title {
        font-size: 32px;
        text-align: center;
    }
    .hero-modern .hero-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
}

.hero-modern .hero-desc {
    color: rgba(241, 245, 249, 0.9);
    max-width: 56ch;
    margin-bottom: 1.5rem;
    line-height: 1.75;
    font-size: 1.05rem;
}

.hero-modern .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.hero-modern .btn-primary {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.98), rgba(14, 165, 233, 0.95));
    color: #fff;
    padding: 1rem 1.75rem;
    border-radius: 999px;
    box-shadow: 0 14px 40px rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    backdrop-filter: blur(6px);
}

.hero-modern .btn-primary:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 24px 60px rgba(14, 165, 233, 0.28);
    background: linear-gradient(135deg, rgba(56, 189, 248, 1), rgba(59, 130, 246, 0.98));
}

.hero-modern .btn-primary i {
    transition: transform 0.25s ease;
}

.hero-modern .btn-primary:hover i {
    transform: translateX(4px);
}

.hero-modern .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.95rem 1.35rem;
    border-radius: 999px;
}


/* modern bullets and arrows */

.hero-modern .slider-controls {
    z-index: 6;
}

.hero-modern .slide-bullet {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-modern .slide-bullet.active {
    background: #fff;
    transform: scale(1.25);
}

.hero-modern .slider-arrow {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    color: #fff;
}


/* particle canvas sits between image and overlay */

.hero-modern #heroParticles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}