/*
 * Santosh Hospital (SH) Entity-Specific Styles
 * Extracted from SH HTML pages with pixel-perfect accuracy
 */

/* CSS Custom Properties for Header System */
:root {
    --header-height: 64px;
    --sh-primary: #fb7a1e;
    --sh-secondary: #fb923c;
    --sh-accent: #ea580c;
    --sh-emergency: #dc2626;
}

/* Responsive header height adjustments */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 52px;
    }
}

/* Smooth scroll behavior with header offset */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

/* Apply scroll margin to all sections and headings */
section, h1, h2, h3, h4, h5, h6 {
    scroll-margin-top: var(--header-height);
}

/* Glass Morphism Effects - SH Specific */
.entity-sh .glass-morph {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Add solid background fallback for better visibility */
    background-color: rgba(255, 255, 255, 0.95);
}

.entity-sh .glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Responsive top margin for proper spacing from header */
    margin-top: 40px;
    transition: all 0.3s ease;
}

/* Mobile responsive spacing for glass-card */
@media (max-width: 768px) {
    .entity-sh .glass-card {
        margin-top: 20px;
    }
}

.entity-sh .glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(251, 122, 30, 0.1);
}

/* Hero Background - SH Specific */
.entity-sh .hero-bg {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(251, 146, 60, 0.05) 100%);
}

/* Star Rating System */
.entity-sh .star-rating {
    display: flex;
    gap: 2px;
}

.entity-sh .star {
    cursor: pointer;
    color: #d1d5db;
    transition: color 0.2s ease;
}

.entity-sh .star.active,
.entity-sh .star:hover {
    color: #fbbf24;
}

/* Enhanced Service Cards with SH Branding */
.entity-sh .service-card {
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.entity-sh .service-card:hover {
    border-color: #fb7a1e;
    box-shadow: 0 12px 30px rgba(251, 122, 30, 0.2);
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.95);
}

/* Hero Slider Styles */
.entity-sh .hero-slider {
    position: relative;
    overflow: hidden;
}

.entity-sh .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.entity-sh .hero-slide.active {
    opacity: 1;
}

.entity-sh .hero-slide-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Carousel Navigation - SH Specific */
.entity-sh .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fb7a1e;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(251, 122, 30, 0.3);
}

.entity-sh .carousel-nav:hover {
    background: #ea580c;
    transform: translateY(-50%) scale(1.1);
}

.entity-sh .carousel-nav.prev {
    left: -25px;
}

.entity-sh .carousel-nav.next {
    right: -25px;
}

.entity-sh .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.entity-sh .carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(251, 122, 30, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.entity-sh .carousel-dot.active {
    background: #fb7a1e;
    transform: scale(1.2);
}

/* Department Card Styles */
.entity-sh .department-card {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
}

.entity-sh .department-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(251, 122, 30, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

/* Doctor Card Styles */
.entity-sh .doctor-card {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
}

.entity-sh .doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(251, 122, 30, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

/* Treatment Card Styles */
.entity-sh .treatment-card {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.entity-sh .treatment-card:hover {
    border-color: #fb7a1e;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 122, 30, 0.15);
}

/* Testimonial Styles */
.entity-sh .testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.entity-sh .testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 122, 30, 0.1);
}

/* Statistics Counter */
.entity-sh .stat-counter {
    color: #fb7a1e;
    font-weight: bold;
}

/* Button Styles - SH Specific */
.entity-sh .btn-primary {
    background-color: #fb7a1e;
    color: white;
    border: none;
    transition: all 0.2s ease;
}

.entity-sh .btn-primary:hover {
    background-color: #ea580c;
    transform: scale(1.05);
}

.entity-sh .btn-secondary {
    border: 2px solid #fb7a1e;
    color: #fb7a1e;
    background: transparent;
    transition: all 0.2s ease;
}

.entity-sh .btn-secondary:hover {
    background-color: #fb7a1e;
    color: white;
}

.entity-sh .btn-emergency {
    background-color: #dc2626;
    color: white;
    border: none;
    transition: all 0.2s ease;
}

.entity-sh .btn-emergency:hover {
    background-color: #b91c1c;
    transform: scale(1.05);
}

/* Navigation Link Colors - SH Specific */
.entity-sh .nav-link:hover,
.entity-sh .nav-link.active {
    color: #fb7a1e;
}

/* Appointment Form Styles */
.entity-sh .appointment-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 2rem;
}

.entity-sh .appointment-form input:focus,
.entity-sh .appointment-form select:focus,
.entity-sh .appointment-form textarea:focus {
    border-color: #fb7a1e;
    box-shadow: 0 0 0 3px rgba(251, 122, 30, 0.1);
}

/* Emergency Section */
.entity-sh .emergency-section {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

.entity-sh .emergency-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Medical Equipment Showcase */
.entity-sh .equipment-card {
    transition: all 0.3s ease;
}

.entity-sh .equipment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(251, 122, 30, 0.15);
}

/* Awards and Certifications */
.entity-sh .award-card {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
}

.entity-sh .award-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 122, 30, 0.1);
}

/* News and Blog Cards */
.entity-sh .news-card {
    transition: all 0.3s ease;
}

.entity-sh .news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 122, 30, 0.1);
}

/* Career Section */
.entity-sh .career-card {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.entity-sh .career-card:hover {
    border-color: #fb7a1e;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 122, 30, 0.15);
}

/* Responsive Carousel */
@media (max-width: 1024px) {
    .entity-sh .carousel-item {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .entity-sh .carousel-item {
        flex: 0 0 100%;
    }
    
    .entity-sh .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .entity-sh .carousel-nav.prev {
        left: -20px;
    }
    
    .entity-sh .carousel-nav.next {
        right: -20px;
    }
}

/* Form Styles */
.entity-sh .form-input:focus {
    border-color: #fb7a1e;
    box-shadow: 0 0 0 3px rgba(251, 122, 30, 0.1);
}

.entity-sh .form-select:focus {
    border-color: #fb7a1e;
    box-shadow: 0 0 0 3px rgba(251, 122, 30, 0.1);
}

/* Alert Styles */
.entity-sh .alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #15803d;
}

.entity-sh .alert-info {
    background-color: rgba(251, 122, 30, 0.1);
    border-color: #fb7a1e;
    color: #ea580c;
}

.entity-sh .alert-emergency {
    background-color: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
    color: #b91c1c;
}

/* Progress Bar */
.entity-sh .progress-bar {
    background-color: #fb7a1e;
}

/* Badge Styles */
.entity-sh .badge-primary {
    background-color: #fb7a1e;
    color: white;
}

.entity-sh .badge-secondary {
    background-color: #fb923c;
    color: white;
}

.entity-sh .badge-emergency {
    background-color: #dc2626;
    color: white;
}

/* Link Styles */
.entity-sh a:not(.btn):hover {
    color: #fb7a1e;
}

/* Icon Colors */
.entity-sh .icon-primary {
    color: #fb7a1e;
}

.entity-sh .icon-secondary {
    color: #fb923c;
}

.entity-sh .icon-emergency {
    color: #dc2626;
}

/* Tab Styles */
.entity-sh .tab-active {
    border-bottom-color: #fb7a1e;
    color: #fb7a1e;
}

/* Pagination Styles */
.entity-sh .pagination .active {
    background-color: #fb7a1e;
    border-color: #fb7a1e;
    color: white;
}

.entity-sh .pagination a:hover {
    background-color: rgba(251, 122, 30, 0.1);
    border-color: #fb7a1e;
    color: #fb7a1e;
}

/* Accessibility Enhancements */
.entity-sh .focus-visible {
    outline: 2px solid #fb7a1e;
    outline-offset: 2px;
}

/* Loading States */
.entity-sh .loading-spinner {
    border-color: #fb7a1e;
}

/* Tooltip Styles */
.entity-sh .tooltip {
    background-color: #fb7a1e;
    color: white;
}

.entity-sh .tooltip::after {
    border-top-color: #fb7a1e;
}

/* Modal Styles */
.entity-sh .modal-header {
    border-bottom-color: rgba(251, 122, 30, 0.1);
}

.entity-sh .modal-footer {
    border-top-color: rgba(251, 122, 30, 0.1);
}

/* Divider Styles */
.entity-sh .divider {
    border-color: rgba(251, 122, 30, 0.2);
}

/* Checkbox and Radio Styles */
.entity-sh .checkbox:checked {
    background-color: #fb7a1e;
    border-color: #fb7a1e;
}

.entity-sh .radio:checked {
    background-color: #fb7a1e;
    border-color: #fb7a1e;
}

/* Time Slot Selection */
.entity-sh .time-slot.selected {
    background-color: #fb7a1e;
    border-color: #fb7a1e;
    color: white;
}

/* Department Filter */
.entity-sh .department-filter.active {
    background-color: #fb7a1e;
    color: white;
}