/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Basic Layout */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

/* Navbar Styling */
nav {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

nav .logo {
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

/* Hero Section */
.hero {
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem; /* Use rem for scalable font sizes */
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.5rem; /* Use rem for scalable font sizes */
    margin-bottom: 30px;
}

.cta-button {
    background-color: #ff8c00;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem; /* Use rem for scalable font sizes */
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e67e00;
}

/* Services Section */
.services {
    padding: 50px 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.services h2 {
    font-size: 2.5rem; /* Use rem for scalable font sizes */
    margin-bottom: 30px;
}

.service-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px; /* Add gap between cards */
}

.service-card {
    background-color: white;
    padding: 20px;
    width: calc(33.33% - 40px); /* Flexible width for cards */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.service-card h3 {
    font-size: 1.5rem; /* Use rem for scalable font sizes */
    margin-top: 15px;
}

.service-card p {
    font-size: 1rem; /* Use rem for scalable font sizes */
}

/* About Section */
.about {
    padding: 50px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

.about h1 {
    font-size: 2.5rem; /* Use rem for scalable font sizes */
    margin-bottom: 20px;
}

.about p {
    font-size: 1.1rem; /* Use rem for scalable font sizes */
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Team Section */
.team {
    padding: 50px 20px;
    text-align: center;
}

.team h2 {
    font-size: 2.5rem; /* Use rem for scalable font sizes */
    margin-bottom: 30px;
}

.team-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px; /* Add gap between cards */
}

.team-card {
    background-color: white;
    padding: 20px;
    width: calc(33.33% - 40px); /* Flexible width for cards */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.team-card h3 {
    font-size: 1.5rem; /* Use rem for scalable font sizes */
    margin-top: 15px;
}

.team-card p {
    font-size: 1rem; /* Use rem for scalable font sizes */
}

/* Doctors Section */
.doctors {
    padding: 50px 20px;
    text-align: center;
    background-color: #fff;
    margin-top: 20px;
}

.doctor-header h1 {
    font-size: 2.5rem; /* Use rem for scalable font sizes */
    margin-bottom: 20px;
}

.doctor-header p {
    font-size: 1.1rem; /* Use rem for scalable font sizes */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.doctor-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px; /* Add gap between cards */
}

.doctor-card {
    background-color: white;
    padding: 20px;
    width: calc(33.33% - 40px); /* Flexible width for cards */
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.doctor-card:hover {
    transform: translateY(-10px) scale(1.05);
}

.doctor-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.doctor-card:hover img {
    transform: scale(1.1);
}

.doctor-card h3 {
    font-size: 1.5rem; /* Use rem for scalable font sizes */
    margin-top: 15px;
}

.doctor-card p {
    font-size: 1rem; /* Use rem for scalable font sizes */
    margin: 5px 0;
    color: #555;
}

/* Appointment Section */
.appointment-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #fff;
    margin-top: 20px;
}

.appointment-header h1 {
    font-size: 2.5rem; /* Use rem for scalable font sizes */
    margin-bottom: 20px;
}

.appointment-header p {
    font-size: 1.1rem; /* Use rem for scalable font sizes */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.appointment-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 800px;
    margin: 0 auto;
}

.appointment-form:hover {
    transform: translateY(-10px) scale(1.05);
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

label {
    display: block;
    font-size: 1rem; /* Use rem for scalable font sizes */
    margin-bottom: 5px;
}

input[type="text"], input[type="number"], input[type="tel"], input[type="date"], input[type="time"], textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem; /* Use rem for scalable font sizes */
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="number"]:focus, input[type="tel"]:focus, input[type="date"]:focus, input[type="time"]:focus, textarea:focus {
    border-color: #5cb85c;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

textarea {
    resize: vertical;
}

.submit-btn {
    background-color: #5cb85c;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem; /* Use rem for scalable font sizes */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #4cae4c;
}

/* Contact Section */
.contact-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #fff;
    margin-top: 20px;
}

.contact-header h1 {
    font-size: 2.5rem; /* Use rem for scalable font sizes */
    margin-bottom: 20px;
}

.contact-header p {
    font-size: 1.1rem; /* Use rem for scalable font sizes */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form:hover {
    transform: translateY(-10px) scale(1.05);
}

/* Footer Styling */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .service-card, .team-card, .doctor-card {
        width: calc(50% - 40px); /* Two cards per row on tablets */
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero-content h1 {
        font-size: 2rem; /* Adjust font size for smaller screens */
    }

    .hero-content p {
        font-size: 1.2rem; /* Adjust font size for smaller screens */
    }

    .service-card, .team-card, .doctor-card {
        width: 80%; /* Single card per row on mobile */
    }

    .appointment-form, .contact-form {
        width: 90%; /* Adjust form width for smaller screens */
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem; /* Adjust font size for very small screens */
    }

    .hero-content p {
        font-size: 1rem; /* Adjust font size for very small screens */
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 1rem; /* Adjust button size for very small screens */
    }

    .service-card, .team-card, .doctor-card {
        width: 100%; /* Full width for very small screens */
    }

    .appointment-form, .contact-form {
        width: 100%; /* Full width for very small screens */
    }
}