:root {
    --primary-color: #006D77;    /* Teal blue - professional medical color */
    --secondary-color: #E29578;  /* Coral - warm accent color */
    --light-color: #EDFBFC;     /* Very light blue - for backgrounds */
    --dark-color: #2C3E50;      /* Dark blue - for text */
    --accent-color: #FFD700;    /* Gold from original design */
    --success-color: #83C5BE;   /* Soft teal - for highlights */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

header {
    background-color: var(--primary-color);
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    column-gap: 10px;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    background-color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

.addresses {
    text-align: center;
    padding: 3rem;
    background-color: white;
    margin: 2rem auto;
    width: 90%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.question-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    margin: 3rem 0;
}

.question-container {
    background-color: white;
    color: var(--dark-color);
    display: inline-block;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.question-container:hover {
    transform: translateY(-5px);
}

.services {
    padding: 4rem 2rem;
    background-color: white;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    gap: 10px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.service-item:active {
    transform: translateY(-5px);
}

.service-item i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.service-item span {
    font-size: 1rem;
    font-weight: 500;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: transform 0.5s ease;
}

.service-item:hover::before {
    transform: translateX(100%);
}

.welcome {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--success-color), var(--primary-color));
    color: white;
    margin-top: .5rem;
}

.welcome h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background-color: #FFE44D;
}

.addresses p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.addresses i, .question-container i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

nav ul li {
    position: relative;
}

nav ul li::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .services-container {
        gap: 2rem;
    }
    
    .service-item {
        width: 150px;
        height: 150px;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .welcome h2 {
        font-size: 2rem;
    }
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Add smooth scrolling to the body */
html {
    scroll-behavior: smooth;
}

/* Doctor Cards Styling */
.doctors-section {
    padding: 4rem 2rem;
    background-color: var(--light-color);
}

.doctors-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.doctor-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    min-height: 500px;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.doctor-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

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

.doctor-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    z-index: 1;
}

/* Fallback icon styling */
.doctor-image i {
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    display: none;
}

.doctor-image.no-image i {
    display: block;
}

.doctor-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: space-between;
}

.doctor-info h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    color: var(--primary-color);
}

.doctor-info h3 i {
    font-size: 1rem;
}

.doctor-info .specialty {
    font-size: 0.9rem;
    padding-bottom: 0.3rem;
    color: var(--secondary-color);
    font-weight: 500;
    border-bottom: 1px solid var(--light-color);
}

.doctor-info .schedule {
    padding: 0.8rem;
    margin: 0.3rem 0;
    background-color: var(--light-color);
    border-radius: 8px;
    min-height: 80px;
}

.doctor-info .schedule p {
    font-size: 0.85rem;
    margin: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.doctor-info .contact-info {
    padding-top: 0.8rem;
    border-top: 1px solid var(--light-color);
    margin-top: auto;
    min-height: 60px;
}

.doctor-info .contact-info p {
    font-size: 0.85rem;
    margin: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.doctor-info .contact-info i,
.doctor-info .schedule i {
    color: var(--primary-color);
    font-size: 1rem;
}

.book-appointment {
    margin-top: 1rem;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.book-appointment:hover {
    background-color: var(--success-color);
    transform: translateY(-2px);
}

.book-appointment i {
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .doctors-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
        padding: 0.5rem;
    }

    .doctor-card {
        max-width: 350px;
        width: 100%;
    }
}

/* Service Details Styling */
.service-details-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.service-details {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
    background-color: white;
    border-radius: 15px;
    margin: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-details:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-details h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-details h3 i {
    color: var(--secondary-color);
}

.service-details ul {
    list-style-type: none;
    margin: 0;
}

.service-details li {
    margin: 1rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--dark-color);
    font-size: 1rem;
}

.service-details li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-details-container {
        padding: 0 1rem;
    }
    
    .service-details {
        min-width: 100%;
    }
}

/* Doctor Specialty Filters */
.specialty-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.specialty-filter {
    padding: 0.8rem 1.5rem;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.specialty-filter:hover {
    background-color: var(--primary-color);
    color: white;
}

.specialty-filter.active {
    background-color: var(--primary-color);
    color: white;
}

/* Doctor Specialty Sections */
.specialty-section {
    display: none;
    margin: 2rem 0;
}

.specialty-section.active {
    display: block;
}

.specialty-section h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .specialty-filters {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .specialty-filter {
        width: 80%;
        text-align: center;
    }
}

/* Image Slider Styles */
.image-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin: .5rem 0;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background: white;
    transform: scale(1.1);
}

.slider-controls i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .image-slider {
        height: 300px;
    }
    
    .slider-controls button {
        width: 35px;
        height: 35px;
    }
    
    .slider-controls i {
        font-size: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .doctors-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.2rem;
    }

    .service-details-container {
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .services-container {
        gap: 2rem;
    }

    .service-item {
        width: 160px;
        height: 160px;
    }

    .welcome h2 {
        font-size: 2.2rem;
    }

    .welcome p {
        font-size: 1.1rem;
    }

    .addresses {
        width: 95%;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .logo-container {
        padding: 0.8rem 1.5rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .welcome {
        padding: 2rem 1rem;
    }

    .welcome h2 {
        font-size: 2rem;
    }

    .welcome p {
        font-size: 1rem;
    }

    .services-container {
        gap: 1.5rem;
    }

    .service-item {
        width: 140px;
        height: 140px;
        font-size: 0.9rem;
    }

    .service-details-container {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .service-details {
        min-width: 100%;
        padding: 1.5rem;
    }

    .doctors-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        padding: 0.5rem;
    }

    .doctor-card {
        max-width: 100%;
        min-height: 450px;
    }

    .specialty-filters {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .specialty-filter {
        width: 80%;
        text-align: center;
    }

    .image-slider {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.2rem;
    }

    nav a {
        font-size: 1rem;
    }

    .welcome h2 {
        font-size: 1.8rem;
    }

    .service-item {
        width: 120px;
        height: 120px;
        font-size: 0.8rem;
    }

    .service-item i {
        font-size: 2rem;
    }

    .service-details h3 {
        font-size: 1.2rem;
    }

    .service-details li {
        font-size: 0.9rem;
    }

    .doctors-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .doctor-card {
        min-height: 400px;
    }

    .doctor-image {
        height: 160px;
    }

    .doctor-info h3 {
        font-size: 1rem;
    }

    .doctor-info .schedule,
    .doctor-info .contact-info {
        font-size: 0.8rem;
    }

    .specialty-section h3 {
        font-size: 1.5rem;
    }

    .image-slider {
        height: 250px;
    }

    .slider-controls button {
        width: 30px;
        height: 30px;
    }

    .slider-controls i {
        font-size: 0.9rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .question-container {
        padding: 1rem 2rem;
    }

    .question-container h2 {
        font-size: 1.5rem;
    }
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .service-item {
        width: 100px;
        height: 100px;
    }

    .service-item i {
        font-size: 1.8rem;
    }

    .doctor-card {
        min-height: 380px;
    }

    .doctor-image {
        height: 140px;
    }

    .doctor-info {
        padding: 0.8rem;
    }

    .book-appointment {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}

/* Fix for landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .welcome {
        padding: 1rem;
    }

    .welcome h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .welcome p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .image-slider {
        height: 200px;
    }

    .doctor-card {
        min-height: 350px;
    }

    .doctor-image {
        height: 120px;
    }
}

/* Service Page Styles */
.service-page-header {
    background: linear-gradient(135deg, var(--success-color), var(--primary-color));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 0.5rem;
}

.service-header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.service-header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.service-details-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.service-overview {
    text-align: center;
    margin-bottom: 4rem;
}

.service-overview h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-overview p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-color);
}

.service-features {
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: var(--dark-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

.service-specialists {
    margin-bottom: 4rem;
}

.service-specialists h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.service-faq {
    margin-top: 4rem;
}

.service-faq h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-container {
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--dark-color);
    line-height: 1.6;
}

/* Responsive adjustments for service pages */
@media (max-width: 768px) {
    .service-page-header {
        padding: 3rem 1rem;
    }

    .service-header-content h1 {
        font-size: 2rem;
    }

    .service-details-section {
        padding: 2rem 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .faq-item {
        padding: 1.2rem;
    }
}

@media (max-width: 576px) {
    .service-header-content h1 {
        font-size: 1.8rem;
    }

    .service-header-content p {
        font-size: 1rem;
    }

    .service-overview p {
        font-size: 1rem;
    }

    .feature-item h3 {
        font-size: 1.1rem;
    }

    .faq-item h3 {
        font-size: 1rem;
    }
} 