/* Advanced Hero Section v3 */
.hero-section-v3 {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(14, 130, 253, 0.3) 100%);
}

.hero-content-v3 {
    position: relative;
    z-index: 10;
    max-width: 900px;
    color: var(--white);
}

.badge-premium {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.hero-content-v3 h1 {
    font-size: clamp(3.5rem, 7vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--white);
    font-weight: 800;
}

.hero-content-v3 p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 3.5rem;
    max-width: 750px;
    line-height: 1.6;
    color: var(--white);
}

.hero-search-v3 {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 0.85rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 750px;
    margin-bottom: 1rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.search-form-premium {
    display: flex;
    gap: 0.75rem;
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 0 1.5rem;
    border-radius: 4px;
}

.search-input-group i {
    color: var(--primary);
    font-size: 1.5rem;
}

.search-input-group input {
    border: none;
    padding: 1.25rem 1rem;
    width: 100%;
    font-size: 1.1rem;
    font-family: inherit;
    color: var(--dark);
}

.search-input-group input:focus {
    outline: none;
}

.search-form-premium button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0 2.5rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-form-premium button:hover {
    background: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.hero-quick-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9375rem;
}

.hero-quick-links span {
    opacity: 0.8;
    font-weight: 600;
}

.hero-quick-links a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 2px;
    transition: all 0.3s;
}

.hero-quick-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ── Scroll Reveal Animations (Multi-Directional) ── */
.reveal-up, .reveal-down, .reveal-left, .reveal-right, .reveal-zoom {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-up { transform: translateY(80px); }
.reveal-down { transform: translateY(-80px); }
.reveal-left { transform: translateX(-80px); }
.reveal-right { transform: translateX(80px); }
.reveal-zoom { transform: scale(0.85); }

.reveal-up.active, 
.reveal-down.active,
.reveal-left.active, 
.reveal-right.active, 
.reveal-zoom.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}
}

.hero-shape {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 130, 253, 0.05) 0%, transparent 70%);
    z-index: 0;
}

/* Why Choose Us Redesign */
.why-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: var(--shadow-xl);
}

/* Utils & Grid Fixes */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
    }
    .hero-left p {
        margin-left: auto;
        margin-right: auto;
    }
    .search-box {
        flex-direction: column;
        gap: 0.5rem;
        background: transparent;
        box-shadow: none;
    }
    .search-box input {
        background: var(--white);
        border-radius: 4px;
        width: 100%;
        padding: 1rem;
    }
    .search-box button {
        width: 100%;
    }
    .hero-trust {
        justify-content: center;
    }
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Final CTA Section */
.cta-section {
    padding-bottom: 8rem;
}

.glass-premium {
    background: linear-gradient(135deg, rgba(14, 130, 253, 0.9) 0%, rgba(37, 99, 235, 1) 100%);
    border-radius: 4px;
    padding: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(14, 130, 253, 0.3);
}

.cta-premium-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 991px) {
    .cta-premium-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px !important;
    }
}

.cta-content {
    flex: 1;
    padding: 5rem;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--white);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.25rem;
    color: #ffffff !important;
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
}

.cta-image {
    flex: 0.7;
    align-self: flex-end;
    margin-bottom: -5px; /* Pull image down slightly */
}

.cta-doc-img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 991px) {
    .glass-premium {
        flex-direction: column;
        text-align: center;
    }
    .cta-content {
        padding: 4rem 2rem;
    }
    .cta-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .cta-actions {
        justify-content: center;
        flex-direction: column;
    }
    .cta-image {
        display: none;
    }
}

/* Specialty Section v4 - Directional Hover Cards */
.specialty-grid-v4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.specialty-card-v4 {
    position: relative;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    background: #000;
}

.spec-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.spec-bg-1, .spec-bg-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.4s ease;
}

.spec-bg-2 {
    z-index: 2;
    transform: translateY(-100%); /* Default starting pos */
    background: rgba(14, 130, 253, 0.35);
}

.spec-overlay-v4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 3;
    opacity: 0.7;
    transition: all 0.4s ease;
}

.specialty-card-v4.is-hovered .spec-overlay-v4 {
    opacity: 0.9;
    background: linear-gradient(to bottom, rgba(14, 130, 253, 0.3) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.spec-content-v4 {
    position: relative;
    z-index: 4;
    width: 100%;
}

.spec-icon-v4 {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.specialty-card-v4 h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.spec-btn-v4 {
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.specialty-card-v4:hover .spec-btn-v4 {
    opacity: 1;
    transform: translateY(0);
}

.spec-btn-v4:hover {
    gap: 0.75rem;
}

@media (max-width: 1200px) {
    .specialty-grid-v4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .specialty-grid-v4 {
        grid-template-columns: 1fr;
    }
    .specialty-card-v4 {
        height: 350px;
    }
}

/* Hospital Section Redesign */
.hospital-grid-v4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.hosp-card-v4 {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hosp-card-v4:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.hosp-media {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.hosp-img-v4 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hosp-card-v4:hover .hosp-img-v4 {
    transform: scale(1.1);
}

.hosp-overlay-v4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.4) 100%);
}

.hosp-badges-v4 {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 2;
}

.hosp-tag {
    background: var(--primary);
    color: var(--white);
    padding: 0.35rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

.hosp-body-v4 {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hosp-meta-v4 {
    margin-bottom: 0.75rem;
}

.hosp-location-v4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center; gap: 0.25rem;
}

.hosp-name-v4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    color: var(--text-dark);
}

.hosp-stats-v4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1.25rem;
    margin-bottom: 1.75rem;
    border-top: 1px solid var(--border-light);
}

.stat-item-v4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.stat-item-v4 i {
    color: var(--primary);
    font-size: 1rem;
}

.hosp-actions-v4 {
    margin-top: auto;
}

.hosp-link-v4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.hosp-card-v4:hover .hosp-link-v4 {
    color: var(--primary);
    gap: 0.75rem;
}

@media (max-width: 1200px) {
    .hospital-grid-v4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hospital-grid-v4 {
        grid-template-columns: 1fr;
    }
}
