@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lora', serif;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar {
    background: transparent; 
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.hero, .navbar {
    background: linear-gradient(to left, #87A2C8 0%, #284169 100%);
    color: white;
}

.navbar {
    background-color: #284169;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    align-items: center;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav-links a:hover {
    color: #EBF2F7;
    border-bottom: 2px solid #EBF2F7;
}

.appointment-btn {
    background-color: #EBF2F7;
    color: #284169 !important;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.appointment-btn:hover {
    background-color: #D6E4EE;
}

.appointment-btn:active {
    background-color: #D6E4EE;
    transform: scale(0.98);
}

/* Doctors */

.doctors {
    padding: 6rem 0;
    background: white;
}

.doctors .container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
}

.doctors-content {
    margin: 0 auto 3rem;
}

.doctors-content h1 {
    font-size: 2.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
    max-width: 600px;
    color: #284169;
}

.doctors-content p {
    color: #284169;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.carousel-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.doctor-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.doctor-card {
    flex: 0 0 calc(33.33% - 1.5rem); 
    text-align: center;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

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

.doctor-card img {
    width: 100%;
    height: 320px; 
    object-fit: cover;
    border-radius: 10px;
}

.doctor-card h2 {
    color: #284169;
    line-height: 1.2;
    font-size: 1rem;
}

.doctor-card p {
    color: #284169;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.dots-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Contact */

.contact {
    padding: 6rem 0;
    background: #EBF2F7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-content h1 {
    color: #1d3557;
    font-size: 28px;
}

.contact-content h3 {
    padding-top: 2rem;
    font-weight: bold;
    color: #1d3557;
}

.working-hours {
    list-style: none;
    padding: 0;
}

.working-hours li {
    margin-bottom: 5px;
    padding: 0;
    color: #1d3557;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 2rem;
}

.social-icons a img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease-in-out;
}

.social-icons a img:hover {
    transform: scale(1.1);
}

.contact-info {
    flex: 1;
    max-width: 55%;
}

.map {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    line-height: 1.6;
    margin: 8px 0;
    color: #1d3557;
}

html {
    scroll-behavior: smooth;
}

/* Media Queries for phones */

@media (max-width: 767px) {
    .container {
        width: 95%;
        padding: 0 0.5rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1.2rem;
        margin-right: 0.5rem;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .appointment-btn {
        display: inline-block;
        margin-left: auto;
        text-align: center;
    }

    .doctor-list {
        grid-template-columns: 1fr; 
    }

    .doctor-card img {
        height: 250px;
    }

    .doctors-content h1 {
        font-size: 2.2rem;
    }

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

/* Media Queries for tablets */

@media (max-width: 1024px) {
    .doctor-list {
        grid-template-columns: repeat(2, 1fr); 
    }
}