.staff-card {
    transition: transform 0.3s ease;
}
.staff-card:hover {
    transform: translateY(-2px);
}
.staff-image {
    width: 100%;
    max-width: 320px;
    height: 420px;
    object-fit: cover;
    border-radius: 15px;
    margin: 0 auto;
    display: block;
}

@media (min-width: 576px) {
    .staff-image {
        max-width: 180px;
        height: 220px;
        border-radius: 20px;
    }
}

@media (min-width: 992px) {
    .staff-image {
        max-width: 320px;
        height: 420px;
        border-radius: 30px;
    }
}
.location-hero {
    background: linear-gradient(135deg, #256fa1 0%, #667eea 100%);
    color: white;
    padding: 4rem 0;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: none;
}
.external-control {
    width: 50px;
    height: 50px;
    z-index: 10;
}
.external-control.carousel-control-prev {
    left: -25px !important;
}
.external-control.carousel-control-next {
    right: -25px !important;
}

/* Medium screens - reduce external control distance */
@media (max-width: 1200px) and (min-width: 992px) {
    .external-control.carousel-control-prev {
        left: -15px !important;
    }
    .external-control.carousel-control-next {
        right: -15px !important;
    }
}

/* Mobile carousel controls */
@media (max-width: 991px) {
    .external-control.carousel-control-prev {
        left: 10px !important;
    }
    .external-control.carousel-control-next {
        right: 10px !important;
    }
    
    .external-control {
        width: 40px;
        height: 40px;
        z-index: 10;
    }
    
    .mobile-carousel-control span {
        width: 30px;
        height: 30px;
    }
}

/* Very small screens - hide external controls to prevent overflow */
@media (max-width: 480px) {
    .external-control {
        display: none !important;
    }
    
    /* Ensure no horizontal overflow on mobile */
    .position-relative {
        overflow: hidden !important;
    }
    
    /* Add padding to container to compensate for missing controls */
    .container.px-2 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}
.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}
.carousel-indicator-btn {
    border: none;
    background: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    display: inline-block;
    margin: 0 0.25rem;
}
.carousel-indicator-btn.active {
    opacity: 1;
}
.carousel-indicator-btn:hover {
    opacity: 0.8;
}

/* Mobile carousel improvements */
@media (max-width: 991px) {
    .staff-card {
        margin: 0;
        text-align: center;
        padding: 0.75rem !important;
    }
    
    .carousel-inner {
        padding: 0;
    }
    
    /* Add touch-friendly carousel indicators on mobile */
    .carousel-indicator {
        width: 12px;
        height: 12px;
    }
    
    .carousel-indicator-btn {
        padding: 0.5rem;
        margin: 0 0.5rem;
    }
    
    /* Better text layout on mobile */
    .staff-card h4 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .staff-card p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    /* Ensure full width usage on mobile */
    .staff-card .col-12 {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    /* Make text area wider */
    .staff-card .row {
        margin: 0;
    }
    
    /* Ensure indicators stay horizontal on mobile */
    .carousel-indicator-btn {
        margin: 0 0.25rem !important;
        padding: 0.5rem !important;
    }
}

/* Office Hours Styling */
.office-hours-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--bs-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.office-hours-container:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.office-hours-title {
    color: var(--bs-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.office-hours-title i {
    color: var(--bs-primary);
    margin-right: 0.5rem;
}

.office-hours-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.office-hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.office-hours-item:last-child {
    border-bottom: none;
}

.office-hours-item:hover {
    background-color: rgba(255,255,255,0.5);
    border-radius: 4px;
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.office-hours-day {
    font-weight: 600;
    color: #495057;
    flex: 1;
}

.office-hours-time {
    color: #6c757d;
    font-weight: 500;
    text-align: right;
    font-size: 0.9rem;
}

.office-hours-closed {
    color: #dc3545 !important;
    font-style: italic;
    font-weight: 600;
}

.office-hours-appointment {
    color: #fd7e14 !important;
    font-style: italic;
    font-weight: 500;
}

/* Add a subtle pattern for weekends */
.office-hours-item:nth-last-child(-n+2) {
    background-color: rgba(248, 249, 250, 0.3);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .office-hours-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0;
    }
    
    .office-hours-time {
        text-align: left;
        margin-top: 0.2rem;
        font-size: 0.85rem;
    }
}

/* Medicaid Information Card Styling */
.medicaid-info-card {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 1rem;
    border-left: 4px solid #198754;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.medicaid-info-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.medicaid-info-card h6 {
    color: #198754 !important;
    margin-bottom: 0.5rem;
}

.medicaid-info-card .badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.2);
}

.medicaid-info-card .badge:hover {
    transform: scale(1.02);
    box-shadow: 0 3px 6px rgba(25, 135, 84, 0.3);
}

/* Location Hero Medicaid Badge */
.location-hero .badge {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    animation: pulse-medicaid 3s infinite;
}

@keyframes pulse-medicaid {
    0% { 
        box-shadow: 0 4px 8px rgba(25, 135, 84, 0.3);
    }
    50% { 
        box-shadow: 0 6px 12px rgba(25, 135, 84, 0.4);
        transform: translateY(-2px);
    }
    100% { 
        box-shadow: 0 4px 8px rgba(25, 135, 84, 0.3);
    }
}

/* Responsive Medicaid styling */
@media (max-width: 768px) {
    .medicaid-info-card {
        padding: 0.75rem;
    }
    
    .location-hero .badge {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}