.hero-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #061a35; /* Dark Navy fallback */
    overflow: hidden; /* Avoid animation layout breaks */
    z-index: 5;
    padding: 130px 0 7rem 0; /* Add bottom padding for stats bar offset */
    box-sizing: border-box;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
    box-sizing: border-box;
}

/* Left Column Styling */
.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.hero-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 128, 128, 0.15);
    border: 1px solid rgba(0, 128, 128, 0.3);
    border-radius: 20px;
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #00e5ff; /* Cyan accent color */
    font-family: 'Poppins', -apple-system, sans-serif;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero-title {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin: 0;
    text-align: left;
    text-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.text-highlight {
    color: #00e5ff;
}

.hero-description {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin: 0;
    max-width: 680px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

/* Search Bar Styles */
.hero-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 580px;
    margin: 0.25rem 0;
    z-index: 50;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    padding: 0.65rem 1.25rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
}

.search-input-group:focus-within {
    background: #ffffff;
    border-color: #008080;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.search-icon {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.search-input-group:focus-within .search-icon {
    color: #008080;
}

.search-input {
    border: none;
    background: transparent;
    color: #ffffff;
    width: 100%;
    font-size: 1.05rem;
    font-family: 'Inter', -apple-system, sans-serif;
    margin-left: 0.6rem;
    outline: none;
    box-sizing: border-box;
}

.search-input-group:focus-within .search-input {
    color: #333333;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-input-group:focus-within .search-input::placeholder {
    color: #999999;
}

/* Autocomplete Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    margin-top: 0.6rem;
    box-shadow: 0 12px 40px rgba(11, 34, 64, 0.15);
    display: none;
    z-index: 1000;
    overflow-y: auto;
    max-height: 400px;
    border: 1px solid rgba(11, 34, 64, 0.08);
    box-sizing: border-box;
    transform-origin: top center;
    animation: slideDownDropdown 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slideDownDropdown {
    from {
        opacity: 0;
        transform: scaleY(0.9) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scaleY(1) translateY(0);
    }
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid rgba(11, 34, 64, 0.05);
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f7faf9;
    transform: translateX(4px);
}

.result-left {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: #f4faf9;
    border: 1px solid rgba(0, 128, 128, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.result-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-right {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex-grow: 1;
}

.result-first-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.result-doc-name {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-weight: 700;
    color: #0b2240;
    font-size: 1.02rem;
}

.result-dept-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #008080;
    background: rgba(0, 128, 128, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.result-specialty {
    font-size: 0.85rem;
    color: #555555;
    font-weight: 600;
    line-height: 1.2;
}

.result-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.25rem;
}

.result-timing {
    font-size: 0.78rem;
    font-weight: 600;
    color: #777777;
}

.result-view-profile {
    font-size: 0.8rem;
    font-weight: 700;
    color: #008080;
    transition: color 0.2s ease;
}

.search-result-item:hover .result-view-profile {
    color: #0b2240;
}

.result-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.result-book-btn {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    background: #008080;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.result-book-btn:hover {
    background: #0b2240;
    transform: translateY(-1px);
}

@keyframes slideInItem {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-item {
    opacity: 0;
    animation: slideInItem 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.search-result-item mark {
    background: rgba(0, 128, 128, 0.08);
    color: #008080;
    font-weight: 700;
    padding: 0;
    border-radius: 2px;
}

.no-results {
    padding: 1.5rem;
    color: #777777;
    font-size: 0.92rem;
    text-align: center;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 600;
}

/* Hero Action Buttons */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    box-sizing: border-box;
    text-decoration: none;
}

.btn-primary {
    background: #008080; /* Primary Teal */
    border-color: #008080;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.3);
}

.btn-primary:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #008080 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #0b2240 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.25);
}

.btn-danger {
    background: #c92c2c !important; /* Crimson Red for Emergency */
    border-color: #c92c2c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(201, 44, 44, 0.3);
}

.btn-danger:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #c92c2c !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.25);
}

/* Pulsing Shadow Animation for Emergency button */
@keyframes pulseShadow {
    0% { box-shadow: 0 0 0 0 rgba(201, 44, 44, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(201, 44, 44, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 44, 44, 0); }
}

.pulse-animation {
    animation: pulseShadow 2s infinite;
}

/* Right Column: Glassmorphism Card styling */
.glass-features-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.glass-card-title {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
}

.glass-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.glass-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.glass-item-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.glass-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.glass-item-headline {
    font-family: 'Poppins', -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.glass-item-sub {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

/* Bottom Floating Stats Bar */
.hero-stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(11, 34, 64, 0.95) 0%, rgba(11, 34, 64, 0.85) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    box-sizing: border-box;
    z-index: 10;
}

.stats-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    box-sizing: border-box;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Poppins', -apple-system, sans-serif;
}

.stat-number-val {
    font-size: 2.25rem;
    font-weight: 700;
    color: #00e5ff;
    line-height: 1;
}

.stat-label-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Micro animations / fade-ins */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fade-in-left {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    to { opacity: 1; transform: translateX(0); }
}

/* Responsiveness overrides */
@media (max-width: 1200px) {
    .hero-title { font-size: 3rem; }
    .hero-content { gap: 2rem; }
    .glass-features-card { padding: 2rem 1.5rem; }
}

@media (max-width: 991px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-left {
        align-items: center;
        text-align: center;
    }
    .hero-title {
        text-align: center;
    }
    .hero-description {
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .glass-features-card {
        max-width: 580px;
        margin: 0 auto;
        width: 100%;
    }
    .stats-container {
        flex-direction: column;
        gap: 1.25rem;
    }
    .hero-container {
        padding-bottom: 12rem; /* Give space for stacked stats */
    }
}

@media (max-width: 768px) {
    .hero-container {
        padding-top: 150px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }
    .hero-btn {
        width: 100%;
        max-width: 340px;
    }
    .search-input-group {
        padding: 0.55rem 1rem;
    }
    .search-input {
        font-size: 0.95rem;
    }
}

/* Background Slideshow Styles */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Below content which is z-index: 10 */
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out; /* Smooth 1.8s transition */
    will-change: opacity, transform;
}

/* Active slide becomes visible and animates */
.hero-slide.active {
    opacity: 1;
    animation: kenBurns 6.5s ease-in-out forwards; /* Ken burns slow cinematic zoom */
}

/* Overlay style: dark blue (#061a35) transparent layer with a left-to-right gradient */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(6, 26, 53, 0.92) 0%, rgba(6, 26, 53, 0.75) 45%, rgba(6, 26, 53, 0.3) 100%);
    z-index: 2; /* Above slides, below content */
}

/* Ken Burns slow zoom-in keyframe */
@keyframes kenBurns {
    0% {
        transform: scale(1.0);
    }
    100% {
        transform: scale(1.05); /* Minimal movement, highly professional */
    }
}

/* Accessibility: Disable Ken Burns zoom for users with motion sensitivity */
@media (prefers-reduced-motion: reduce) {
    .hero-slide.active {
        animation: none !important;
    }
}