/* Ophthalmology Services CSS */


.complete{
     font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
     --hospital-blue: #1a5f7a;
    --accent-teal: #00b4a0;
    --light-blue: #e3f2fd;
    --warm-yellow: #ffb74d;
    --dark-blue: #0a3d62;
    --ophthalmology-green: #4caf50;
    --glaucoma-purple: #9c27b0;
    --retinal-orange: #ff9800;
    --cataract-cyan: #00bcd4;
    --laser-red: #f44336;
}




/* Hero Section */
.ophthalmology-hero {
    background: linear-gradient(135deg, var(--hospital-blue) 0%, var(--dark-blue) 100%);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-teal);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--hospital-blue);
    margin-bottom: 15px;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-teal);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 20px auto 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}


/* Service Card */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 5px solid var(--card-color, var(--ophthalmology-green));
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, transparent 50%, rgba(0, 180, 160, 0.05) 50%, rgba(0, 180, 160, 0.02) 100%);
    z-index: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--card-color, var(--ophthalmology-green));
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.service-description {
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--card-color, var(--ophthalmology-green));
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-link:hover {
    color: var(--hospital-blue);
    transform: translateX(10px);
}

.service-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* CTA Section */
.cta-section {
    background: honeydew;
    padding: 70px 0;
    color: black;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--light-blue);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: black;
}

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

.cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background: var(--accent-teal);
    color: white;
}

.primary-btn:hover {
    background: #00a08c;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-5px);
    color: white;
}

.cta-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}


/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ophthalmology-hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .services-section {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
   
}

/* Add these to the existing ophthalmology.css file */

.service-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    height: 200px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.2) 100%);
}

.service-content {
    padding: 25px;
}

/* Update service-card to remove padding from main card */
.service-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 5px solid var(--card-color, var(--ophthalmology-green));
    position: relative;
    overflow: hidden;
    padding: 0; /* Remove padding from main card */
}

/* Update service-icon positioning */
.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--card-color, var(--ophthalmology-green));
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

/* Add image fallback styles */
.service-image {
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
}

/* Responsive adjustments for images */
@media (max-width: 768px) {
    .image-container {
        height: 180px;
    }
    
    .service-image {
        height: 180px;
    }
}