/* ============================================
   HERO WITH AUTO-CHANGING BACKGROUND
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

/* ── Slideshow Container ── */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ── Each Slide ── */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
    will-change: opacity, transform;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    animation: kenBurns 8s ease-out forwards;
}

/* ── Ken Burns Zoom Effect ── */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

/* ── Alternate Ken Burns Directions ── */
.hero-slide:nth-child(2).active {
    animation: kenBurns2 8s ease-out forwards;
}

@keyframes kenBurns2 {
    0% {
        transform: scale(1.05) translate(0, 0);
    }
    100% {
        transform: scale(1.12) translate(-1%, -1%);
    }
}

.hero-slide:nth-child(3).active {
    animation: kenBurns3 8s ease-out forwards;
}

@keyframes kenBurns3 {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(1%, -0.5%);
    }
}

.hero-slide:nth-child(4).active {
    animation: kenBurns4 8s ease-out forwards;
}

@keyframes kenBurns4 {
    0% {
        transform: scale(1.03) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(-0.5%, 1%);
    }
}

/* ── Gradient Overlay ── */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background:
        linear-gradient(
            135deg,
            rgba(8, 47, 73, 0.92) 0%,
            rgba(12, 74, 110, 0.85) 25%,
            rgba(15, 118, 110, 0.75) 50%,
            rgba(13, 148, 136, 0.65) 75%,
            rgba(6, 182, 212, 0.55) 100%
        );
}

/* ── Glowing Orbs (behind content) ── */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    animation: heroGlow 8s infinite ease-in-out alternate;
    z-index: 2;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, transparent 70%);
    animation: heroGlow 10s infinite ease-in-out alternate-reverse;
    z-index: 2;
    pointer-events: none;
}

@keyframes heroGlow {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(50px, -30px) scale(1.1); }
}

/* ── Floating Particles ── */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.hero-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

.hero-particles span:nth-child(1) {
    left: 10%; width: 3px; height: 3px;
    animation-duration: 15s; animation-delay: 0s;
}
.hero-particles span:nth-child(2) {
    left: 25%; width: 5px; height: 5px;
    animation-duration: 20s; animation-delay: -3s;
}
.hero-particles span:nth-child(3) {
    left: 45%; width: 3px; height: 3px;
    animation-duration: 18s; animation-delay: -6s;
}
.hero-particles span:nth-child(4) {
    left: 65%; width: 6px; height: 6px;
    animation-duration: 22s; animation-delay: -9s;
}
.hero-particles span:nth-child(5) {
    left: 80%; width: 4px; height: 4px;
    animation-duration: 16s; animation-delay: -12s;
}
.hero-particles span:nth-child(6) {
    left: 92%; width: 3px; height: 3px;
    animation-duration: 19s; animation-delay: -4s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* ── Slide Indicators ── */
.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 0;
    position: relative;
}

.hero-indicator.active {
    border-color: #fff;
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.hero-indicator:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Active indicator expanding ring */
.hero-indicator.active::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: indicatorPulse 2s infinite;
}

@keyframes indicatorPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0; }
}

/* ── Progress Bar ── */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
    overflow: hidden;
}

.hero-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-light), #fff, var(--accent-light));
    background-size: 200% 100%;
    animation: progressShimmer 2s linear infinite;
    transition: width 0.1s linear;
    border-radius: 0 3px 3px 0;
}

@keyframes progressShimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ── Hero Content (keep existing styles) ── */
.hero-content {
    position: relative;
    z-index: 5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-weight: 800;
    line-height: 1.15;
    font-size: 3.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero h1 .gradient-text {
    background: linear-gradient(90deg, var(--accent-light), #a7f3d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    opacity: 0.85;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.4s both;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.4);
    color: #fff;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stat h3 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat p {
    font-size: 13px;
    opacity: 0.7;
    margin: 0;
}

.hero-image-area {
    position: relative;
    z-index: 5;
    animation: fadeInUp 1s ease 0.5s both;
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-feature-item:last-child {
    border: none;
}

.hero-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.hero-feature-item h6 {
    margin: 0;
    font-weight: 600;
    font-size: 15px;
}

.hero-feature-item small {
    opacity: 0.7;
    font-size: 13px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .hero { min-height: 85vh; }
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { gap: 20px; }
    .hero-stat h3 { font-size: 1.5rem; }
    .hero-image-area { margin-top: 40px; }
    .hero-indicators { bottom: 25px; }
}

@media (max-width: 576px) {
    .hero { min-height: 80vh; }
    .hero h1 { font-size: 1.8rem; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .hero-indicators { bottom: 20px; gap: 8px; }
    .hero-indicator { width: 10px; height: 10px; }
}









    /* ===== ABOUT / WHY CHOOSE ===== */
    .about-section {
        background: linear-gradient(160deg, var(--navy-dark), var(--navy), var(--primary-dark));
        color: #fff;
        position: relative;
        overflow: hidden;
    }

    .about-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

    .about-glass {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius);
        padding: 40px;
    }

    .about-feature {
        display: flex;
        gap: 16px;
        margin-bottom: 28px;
    }

    .about-feature-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(13, 148, 136, 0.2));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: var(--accent-light);
        flex-shrink: 0;
    }

    .about-feature h6 {
        font-weight: 600;
        margin-bottom: 4px;
    }

    .about-feature p {
        font-size: 14px;
        opacity: 0.7;
        margin: 0;
    }

    .counter-box {
        text-align: center;
        padding: 30px 20px;
        background: rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius);
        transition: all 0.3s ease;
    }

    .counter-box:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: translateY(-5px);
    }

    .counter-box h2 {
        font-size: 2.5rem;
        font-weight: 800;
        background: linear-gradient(90deg, #fff, var(--accent-light));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .counter-box p {
        opacity: 0.7;
        font-size: 14px;
        margin: 0;
    }


    /* ===== SERVICE CARDS ===== */
    .service-card {
        background: var(--glass-card);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: var(--radius);
        padding: 40px 35px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        box-shadow: var(--shadow-soft);
        height: 100%;
    }

    .service-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 0;
        background: linear-gradient(to top, rgba(13, 148, 136, 0.05), transparent);
        transition: height 0.4s ease;
    }

    .service-card:hover::after {
        height: 100%;
    }

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-glow);
        border-color: rgba(13, 148, 136, 0.3);
    }

    .service-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        background: linear-gradient(135deg, var(--primary), var(--accent));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: #fff;
        margin-bottom: 24px;
        position: relative;
        z-index: 1;
        transition: transform 0.4s ease;
    }

    .service-card:hover .service-icon {
        transform: scale(1.1);
    }

    .service-card h5 {
        font-weight: 700;
        color: var(--navy-dark);
        margin-bottom: 12px;
        position: relative;
        z-index: 1;
        font-size: 18px;
    }

    .service-card p {
        color: #64748b;
        font-size: 15px;
        line-height: 1.7;
        position: relative;
        z-index: 1;
        margin-bottom: 20px;
    }

    .service-link {
        color: var(--primary);
        font-weight: 600;
        text-decoration: none;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        position: relative;
        z-index: 1;
        transition: gap 0.3s ease;
    }

    .service-link:hover {
        gap: 10px;
        color: var(--primary-dark);
    }







    /* ===== DOCTORS ===== */
    .doctor-card {
        background: var(--glass-card);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: var(--radius);
        overflow: hidden;
        transition: all 0.4s ease;
        box-shadow: var(--shadow-soft);
    }

    .doctor-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-glow);
    }

    .doctor-image {
        width: 100%;
        height: 280px;
        background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 80px;
        color: var(--primary);
        position: relative;
        overflow: hidden;
    }

    .doctor-image::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50%;
        background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
    }

    .doctor-info {
        padding: 24px;
        text-align: center;
    }

    .doctor-info h5 {
        font-weight: 700;
        color: var(--navy-dark);
        margin-bottom: 4px;
    }

    .doctor-specialty {
        color: var(--primary);
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 12px;
    }

    .doctor-schedule {
        font-size: 13px;
        color: #64748b;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }




    /* ===== NEWS CARDS ===== */
    .news-card {
        background: var(--glass-card);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: var(--radius);
        overflow: hidden;
        transition: all 0.4s ease;
        box-shadow: var(--shadow-soft);
    }

    .news-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-glow);
    }

    /* .news-image {
      height: 200px;
      background: linear-gradient(135deg, #ccfbf1, #e0f2fe);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 50px;
      color: var(--primary);
    } */

    .news-image {
        height: 200px;
        position: relative;
        overflow: hidden;
        background: #f1f5f9;
    }

    .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

    .news-icon-fallback {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .news-card:hover .news-image img {
        transform: scale(1.08);
    }

    .news-image i {
        font-size: 50px;
        color: var(--primary);
    }

    .news-body {
        padding: 24px;
    }

    .news-date {
        font-size: 12px;
        color: var(--primary);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .news-body h5 {
        font-weight: 700;
        color: var(--navy-dark);
        margin: 8px 0;
        font-size: 16px;
    }

    .news-body p {
        color: #64748b;
        font-size: 14px;
        line-height: 1.6;
    }


