/* Services Page Styles - PREMIUM E-COMMERCE DESIGN (Optimized) */
:root {
    /* Primary Swiss Healthcare Colors */
    --primary: #0180ff;          /* Professional Healthcare Blue */
    --primary-dark: #0056b3;     /* Darker Blue for Hover/Gradients */
    --primary-light: #4da6ff;    /* Lighter Blue */
    --secondary: #4bc75f;        /* Health Green/Secondary Action */
    --warning: #ffc107;          /* Attention Yellow */
    --dark: #091E3E;             /* Professional Dark Blue */
    --gray: #6c757d;             /* Body Text Gray */
    --light-gray: #e9ecef;       /* Soft Border/Background Gray */
    --white: #ffffff;
    
    /* Global Design Variables */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 35px rgba(0,0,0,0.15);
    --transition: all 0.3s ease-in-out;
    --transition-slow: all 0.5s ease-in-out;
    --color-success: #198754; 
}

/* Hero Section */
.page-header {
    background: linear-gradient(rgba(9, 30, 62, 0.85), rgba(9, 30, 62, 0.85)), 
                url('img/carousel-2.jpg') center center no-repeat !important;
    background-size: cover !important;
    position: relative;
}

/* -------------------------- */
/* Service Categories Navigation */
/* -------------------------- */
.service-category-card {
    transition: var(--transition);
    padding: 1rem 0.5rem;
    border-radius: var(--border-radius);
}

.service-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-category-card .bg-white {
    transition: var(--transition);
    border: 2px solid var(--light-gray);
}

.service-category-card:hover .bg-white i {
    color: var(--primary) !important;
}

.service-category-card h6 {
    color: var(--dark) !important;
    font-weight: 700;
}

.service-category-card:hover h6 {
    color: var(--primary) !important;
}

/* -------------------------- */
/* Services Accordion Styling */
/* -------------------------- */
.services-accordion {
    max-width: 1200px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--light-gray) !important;
    margin-bottom: 1rem;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    background: var(--white);
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.accordion-button {
    background: var(--white) !important;
    padding: 1.5rem 2rem !important;
    transition: var(--transition);
    font-weight: 600;
    color: var(--dark);
    border: none;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: var(--white) !important;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.accordion-button:not(.collapsed) .category-icon {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--white);
}

.accordion-button:not(.collapsed) .category-icon i,
.accordion-button:not(.collapsed) .text-muted {
    color: var(--white) !important;
}

.accordion-button:not(.collapsed) .badge {
    background: var(--white) !important;
    color: var(--primary) !important;
}

.category-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(1, 128, 255, 0.1);
}

.category-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.accordion-body {
    padding: 2rem !important;
    background: var(--light);
    border-top: 1px solid var(--light-gray);
}

/* -------------------------- */
/* Service Cards - E-commerce UI */
/* -------------------------- */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-card-header {
    padding: 1.5rem;
    text-align: left;
    background: linear-gradient(90deg, var(--white), #fdfdfd);
    position: relative;
}

.service-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--primary-light);
}

.card-icon-placeholder i {
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.service-name {
    color: var(--dark);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0;
    flex-grow: 1;
}

.service-card-body {
    padding: 0 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.service-description {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
    min-height: 50px; /* Ensure description box height uniformity */
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px dashed var(--light-gray);
    width: 100%;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--primary);
    font-size: 0.9rem;
}

.meta-item.price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.service-card-footer {
    padding: 1.5rem;
    background: #f8fbfd;
    border-top: 1px solid var(--light-gray);
}

.service-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.btn-book-service {
    flex: 1;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 0.9rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    box-shadow: 0 4px 10px rgba(1, 128, 255, 0.3);
}

.btn-book-service:hover {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(1, 128, 255, 0.4);
    color: var(--white);
}

.btn-service-info {
    width: 45px;
    height: 45px;
    border: 2px solid var(--secondary);
    background: var(--secondary);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(75, 199, 95, 0.4);
}

.btn-service-info:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(75, 199, 95, 0.6);
}

/* -------------------------- */
/* Excellence Section & Utilities */
/* -------------------------- */
/* NOTE: Removed all conflicting styles from old structure */
.premium-badge {
    animation: pulse-warn 1.5s infinite;
}

@keyframes pulse-warn {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 5px var(--warning); }
    100% { transform: scale(1); }
}

.text-success {
    color: var(--color-success) !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .accordion-button {
        padding: 1.25rem 1.5rem !important;
    }
    .accordion-body {
        padding: 1.5rem !important;
    }
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }
}

@media (max-width: 576px) {
    .accordion-button h5 {
        font-size: 1rem;
    }
    .service-card-header {
        padding: 1rem;
    }
    .service-card-body {
        padding: 0 1rem 1rem;
    }
    .service-card-footer {
        padding: 1rem;
    }
    .service-name {
        font-size: 1rem;
    }
    .service-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    .btn-book-service {
        width: 100%;
        padding: 0.75rem;
    }
    .btn-service-info {
        width: 100%;
        height: 40px;
        font-size: 0.9rem;
    }
    .service-card:hover {
        transform: none;
    }
}
