/* Main Service Detail Page Styling - Modern Black-White Theme */

/* Modern button styling */
.btn-dark {
    background-color: #212529;
    border-color: #212529;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-dark:hover {
    background-color: #1a1e21;
    border-color: #1a1e21;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-outline-dark {
    background-color: transparent;
    border-color: #212529;
    color: #212529;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-outline-dark:hover {
    background-color: #212529;
    border-color: #212529;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Breadcrumb styling */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    font-weight: bold;
}

.breadcrumb-item a {
    color: #212529;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #495057;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

/* Header styling */
.display-5 {
    color: #212529;
    font-weight: 700;
}

.lead {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Quick stats styling */
.stat-item {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    border-radius: 25px;
    margin: 0 0.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: #212529;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.stat-item i {
    color: #212529;
}

.stat-item strong {
    color: #212529;
}

/* Horizontal Service Card Styling - Main Focus */
.service-card-horizontal {
    background: white;
    border-radius: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    position: relative;
    margin-bottom: 1rem;
    max-height: 180px;
}

.service-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #212529;
}

/* Horizontal Service Image */
.service-image-horizontal {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 18px 0 0 18px;
    max-height: 180px;
}

.service-image-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card-horizontal:hover .service-image-horizontal img {
    transform: scale(1.03);
}

.placeholder-image-horizontal {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e9ecef;
}

.placeholder-image-horizontal i {
    color: #6c757d;
}

/* Horizontal Popular Badge */
.popular-badge-horizontal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffc107;
    color: #212529;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    border: 2px solid #ffffff;
}

/* Horizontal Service Content */
.service-content-horizontal {
    padding: 0.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-info-top {
    flex-shrink: 0;
}

.service-info-bottom {
    margin-top: auto;
}

.service-title-horizontal {
    color: #212529;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.service-description-horizontal {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 0;
}

/* Horizontal Service Meta */
.service-meta-horizontal {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-direction: row !important;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    flex-wrap: nowrap !important;
}

.meta-item-horizontal {
    display: flex !important;
    align-items: center !important;
    font-size: 0.8rem;
    color: #6c757d;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.meta-item-horizontal i {
    margin-right: 0.4rem;
    font-size: 0.75rem;
}

.price-horizontal {
    font-weight: 600 !important;
    color: #212529 !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

/* Horizontal Service Actions */
.service-actions-horizontal {
    display: flex;
    gap: 0.5rem;
}

.btn-sm-horizontal {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    border-width: 2px;
}

/* Typography improvements */
.text-dark {
    color: #212529 !important;
}

.h3 {
    color: #212529;
    font-weight: 600;
}

/* Call to action section */
.bg-light {
    background-color: #f8f9fa !important;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .service-card-horizontal {
        margin-bottom: 1rem;
    }
}

@media (max-width: 991.98px) {
    .service-image-horizontal {
        height: 100%;
    }
    
    .service-content-horizontal {
        padding: 1.25rem;
    }
    
    .service-title-horizontal {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .stat-item {
        display: block;
        text-align: center;
        margin: 0.5rem;
        padding: 0.5rem 1rem;
    }
    
    /* Allow taller cards on mobile */
    .service-card-horizontal {
        max-height: 250px !important;
    }
    
    /* Force horizontal layout on mobile - override Bootstrap */
    .service-card-horizontal .row .col-md-4,
    .service-card-horizontal .row .col-md-8 {
        flex: none !important;
        width: auto !important;
    }
    
    .service-card-horizontal .row .col-md-4 {
        width: 35% !important;
    }
    
    .service-card-horizontal .row .col-md-8 {
        width: 65% !important;
    }
    
    /* Keep horizontal layout on mobile */
    .service-image-horizontal {
        height: 100% !important;
        border-radius: 18px 0 0 18px !important;
        max-height: 250px !important;
    }
    
    .service-content-horizontal {
        padding: 0.75rem !important;
    }
    
    .service-title-horizontal {
        font-size: 0.95rem !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.2 !important;
    }
    
    .service-description-horizontal {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.3 !important;
    }
    
    .service-meta-horizontal {
        padding: 0.4rem 0.5rem !important;
        margin-bottom: 0.5rem !important;
        font-size: 0.75rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    
    .meta-item-horizontal {
        font-size: 0.75rem !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .price-horizontal {
        font-size: 0.9rem !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    .service-actions-horizontal {
        gap: 0.4rem !important;
        flex-direction: column !important;
    }
    
    .btn-sm-horizontal {
        padding: 0.5rem 0.6rem !important;
        font-size: 0.75rem !important;
        width: 100% !important;
    }
}

@media (max-width: 575.98px) {
    .display-5 {
        font-size: 2rem;
    }
    
    /* Allow even taller cards on smallest screens */
    .service-card-horizontal {
        max-height: 280px !important;
    }
    
    /* Force horizontal layout even on smallest screens */
    .service-card-horizontal .row .col-md-4 {
        width: 40% !important;
    }
    
    .service-card-horizontal .row .col-md-8 {
        width: 60% !important;
    }
    
    /* Maintain horizontal layout even on smallest screens */
    .service-image-horizontal {
        height: 100% !important;
        border-radius: 18px 0 0 18px !important;
        max-height: 280px !important;
    }
    
    .service-content-horizontal {
        padding: 0.6rem !important;
    }
    
    .service-title-horizontal {
        font-size: 0.9rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .service-description-horizontal {
        font-size: 0.75rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .service-meta-horizontal {
        padding: 0.3rem !important;
        margin-bottom: 0.4rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    
    .meta-item-horizontal {
        font-size: 0.7rem !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .price-horizontal {
        font-size: 0.85rem !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    .btn-sm-horizontal {
        padding: 0.45rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
} 