/* Service Image Placeholders and Styling */

/* Mammogram Service Image */
.service-card[data-service="mammogram"] .bg-layer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.service-card[data-service="mammogram"] .bg-layer::before {
    content: '🩺';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.3;
    color: white;
}

/* X-Ray Service Image */
.service-card[data-service="xray"] .bg-layer {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    position: relative;
    overflow: hidden;
}

.service-card[data-service="xray"] .bg-layer::before {
    content: '🦴';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.3;
    color: white;
}

/* Health Checkup Service Image */
.service-card[data-service="health-checkup"] .bg-layer {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    position: relative;
    overflow: hidden;
}

.service-card[data-service="health-checkup"] .bg-layer::before {
    content: '🏥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.3;
    color: white;
}

/* Fallback for missing images */
.bg-layer[style*="mammogram-service.jpg"],
.bg-layer[style*="xray-service.jpg"],
.bg-layer[style*="health-checkup.jpg"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    position: relative;
    overflow: hidden;
}

.bg-layer[style*="mammogram-service.jpg"]::before {
    content: '🩺';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.3;
    color: white;
}

.bg-layer[style*="xray-service.jpg"]::before {
    content: '🦴';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.3;
    color: white;
}

.bg-layer[style*="health-checkup.jpg"]::before {
    content: '🏥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.3;
    color: white;
}

/* CTA Buttons Styling */
.cta-buttons-section {
    margin-top: 60px;
}

.cta-buttons-section .btn-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons-section .theme-btn {
    min-width: 180px;
    padding: 15px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-buttons-section .theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .cta-buttons-section .btn-box {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons-section .theme-btn {
        width: 100%;
        max-width: 280px;
        margin-bottom: 15px;
    }
    
    .cta-buttons-section .theme-btn:last-child {
        margin-bottom: 0;
    }
}

/* Service Cards Animation Enhancement */
.service-block-two {
    transition: all 0.3s ease;
}

.service-block-two:hover {
    transform: translateY(-10px);
}

.service-card .content-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 20px 20px;
    margin: 15px 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    /* Enhanced background for better text contrast */
    background-color: rgba(255, 255, 255, 0.95);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.service-card:hover .content-box {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card .content-box h3 a {
    color: #000000;
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.service-card .content-box h3 a:hover {
    color: #dc2626;
}

.service-card .content-box p {
    color: #1a1a1a;
    line-height: 1.6;
    margin: 10px 0 12px 0;
    font-size: 1.05rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.3px;
}

.service-card .link a {
    color: #dc2626;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.service-card .link a:hover {
    color: #b91c1c;
    transform: translateX(5px);
}

.service-card .link a i {
    transition: transform 0.3s ease;
}

.service-card .link a:hover i {
    transform: translateX(3px);
}

/* Enhanced text visibility for all service cards */
.service-block-two .inner-box .content-box {
    background: rgba(255, 255, 255, 0.98) !important;
    background-image: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 255, 255, 0.95) 100%
    ) !important;
    backdrop-filter: blur(25px) !important;
    border: 3px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
}

/* Ensure text is always visible */
.service-block-two .inner-box .content-box h3 a {
    color: #000000 !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9) !important;
}

.service-block-two .inner-box .content-box p {
    color: #1a1a1a !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8) !important;
}

/* Add a subtle dark overlay behind content boxes for better contrast */
.service-card .bg-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

/* Ensure content box is above the overlay */
.service-card .content-box {
    z-index: 3 !important;
    position: relative !important;
}

/* Compact spacing for service cards */
.service-card .content-box .link {
    margin-top: 8px;
}

.service-card .content-box .link a {
    font-size: 0.95rem;
}
