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

/* Entity-Specific Color Variables */
:root {
    --sg-primary: #fb7a1e;
    --sg-secondary: #fb923c;
    --sg-accent: #ea580c;
    --sg-emergency: #fb7a1e;
}

/* Glass Morphism Effects - SG Specific */
.entity-sg .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);
    transition: all 0.3s ease;
}

.entity-sg .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 - SG Specific */
.entity-sg .hero-bg {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(251, 146, 60, 0.05) 100%);
}

/* Enhanced Carousel Styles */
.entity-sg .departments-carousel, 
.entity-sg .doctors-carousel, 
.entity-sg .hero-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 60px; /* Space for arrows */
}

/* Hero Slider Specific Styles */
.entity-sg .hero-carousel {
    position: relative;
    overflow: hidden;
    margin: 0; /* No margin for full-width hero */
    height: 100vh;
    min-height: 600px;
}

.entity-sg .hero-carousel .carousel-container {
    display: flex;
    transition: transform 0.8s ease-in-out;
    width: 300%; /* 3 slides total */
    height: 100%;
}

.entity-sg .hero-carousel .carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
}

.entity-sg .hero-carousel .carousel-item {
    flex: 0 0 33.333%; /* Each slide takes 1/3 of total width */
    padding: 0;
    box-sizing: border-box;
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero Navigation Arrows - Larger and positioned differently */
.entity-sg .hero-carousel .carousel-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 107, 53, 0.9);
    color: white;
    border: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    font-size: 24px;
}

.entity-sg .hero-carousel .carousel-navigation:hover {
    background: rgba(234, 88, 12, 0.95);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

.entity-sg .hero-carousel .carousel-prev {
    left: 30px;
}

.entity-sg .hero-carousel .carousel-next {
    right: 30px;
}

/* Standard Carousel Navigation */
.entity-sg .carousel-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 107, 53, 0.9);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    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 12px rgba(255, 107, 53, 0.3);
    font-size: 20px;
}

.entity-sg .carousel-navigation:hover {
    background: #ea580c;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.entity-sg .carousel-prev {
    left: -30px;
}

.entity-sg .carousel-next {
    right: -30px;
}

.entity-sg .carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.entity-sg .pagination-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.entity-sg .pagination-dot.active {
    background: #FF6B35;
    transform: scale(1.2);
    border-color: rgba(255, 107, 53, 0.2);
}

.entity-sg .pagination-dot:hover {
    background: rgba(255, 107, 53, 0.7);
    transform: scale(1.1);
}

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

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

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

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

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

/* Service Card Styles */
.entity-sg .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-sg .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);
}

/* Department Card Styles */
.entity-sg .department-card {
    transition: all 0.3s ease;
}

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

/* Doctor Card Styles */
.entity-sg .doctor-card {
    transition: all 0.3s ease;
}

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

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

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

/* Timeline Styles */
.entity-sg .timeline-line {
    background: linear-gradient(to bottom, #fb7a1e, #fb923c);
}

/* Leadership Card Hover Effects */
.entity-sg .leadership-card:hover .leadership-image {
    transform: scale(1.1);
}

.entity-sg .leadership-image {
    transition: transform 0.3s ease;
}

/* Organization Chart */
.entity-sg .org-chart-node {
    transition: all 0.3s ease;
}

.entity-sg .org-chart-node:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(251, 122, 30, 0.3);
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .entity-sg .departments-carousel, 
    .entity-sg .doctors-carousel {
        margin: 0 40px;
    }
    
    .entity-sg .carousel-navigation {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .entity-sg .carousel-prev {
        left: -25px;
    }
    
    .entity-sg .carousel-next {
        right: -25px;
    }
    
    .entity-sg .carousel-item {
        flex: 0 0 100%; /* Show 1 item on mobile */
    }
    
    .entity-sg .carousel-track {
        width: 600%; /* 6 items, showing 1 at a time */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .entity-sg .carousel-item {
        flex: 0 0 50%; /* Show 2 items on tablet */
    }
    
    .entity-sg .carousel-track {
        width: 300%; /* 6 items, showing 2 at a time */
    }
}

/* Pause animation on hover */
.entity-sg .departments-carousel:hover .carousel-container,
.entity-sg .doctors-carousel:hover .carousel-container {
    animation-play-state: paused;
}

/* Accessibility */
.entity-sg .carousel-navigation:focus {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

.entity-sg .pagination-dot:focus {
    outline: 2px solid #FF6B35;
    outline-offset: 2px;
}

/* Touch/Swipe indicators */
.entity-sg .carousel-container {
    cursor: grab;
}

.entity-sg .carousel-container:active {
    cursor: grabbing;
}

/* Smooth transitions */
.entity-sg .carousel-track {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

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

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

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

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

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

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

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

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

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

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

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