:root {
    --primary: #d65a1f;
    --primary-light: #e67a45;
    --primary-dark: #b84a15;
    --dark: #1e1e1e;
    --dark-light: #2d2d2d;
    --light: #fff;
    --gray: #f5f5f5;
    --text: #333;
    --text-light: #777;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: "Georgia", serif;
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background-color: var(--dark);
    color: var(--light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    height: 65px;
    width: auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-section img {
    height: 50px;
    width: auto;
    filter: brightness(0.9);
    border-radius: 8px;
    padding: 6px;
}

.logo-section h2 {
    font-size: 1.5rem;
    font-weight: normal;
}

.logo-section span {
    color: var(--primary);
    font-style: italic;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #eee;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

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

nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
}

.banner {
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("/img/background.jpg") center/cover no-repeat;
    padding: 8rem 2rem;
    text-align: center;
    color: var(--light);
    position: relative;
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: normal;
}

.banner p {
    font-size: 1.3rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--light);
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--light);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--light);
    color: var(--dark);
}

main {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: normal;
    color: var(--dark);
    display: inline-block;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.welcome-section {
    text-align: center;
    margin-bottom: 5rem;
}

.welcome-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

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

.feature-card {
    background-color: var(--gray);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

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

.services {
    background-color: var(--dark);
    color: var(--light);
    padding: 5rem 2rem;
    margin: 0 -2rem;
}

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

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

.service-item {
    text-align: center;
    padding: 2rem;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-item h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.testimonials {
    padding: 5rem 2rem;
    text-align: center;
}

.testimonials p {
    padding-bottom: 2rem;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background-color: var(--gray);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary);
}

.appointment-cta {
    background-color: var(--primary);
    color: var(--light);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 8px;
    margin: 5rem 0;
}

.appointment-cta h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.appointment-cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.appointment-cta .btn {
    background-color: var(--light);
    color: var(--primary);
}

.appointment-cta .btn:hover {
    background-color: var(--dark);
    color: var(--light);
}

footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: #ddd;
    margin-bottom: 0.8rem;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.contact-info {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--primary);
    margin-right: 10px;
    margin-top: 3px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--dark-light);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-light);
    color: #aaa;
    font-size: 0.9rem;
}

.doctor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--gray);
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.doctor-info {
    order: -1;
    width: 100%;
}

.doctor-info h2 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--dark);
    font-weight: normal;
}

.doctor-section img {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
    border: 4px solid var(--primary);
    transition: transform 0.3s ease;
}

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

.doctor-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1024px) {
    .doctor-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .doctor-card:nth-child(2) {
        transform: scale(1);
    }

    .doctor-card:nth-child(2):hover {
        transform: translateY(-5px);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    .logo-section h2 {
        font-size: 1.2rem;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .banner {
        padding: 5rem 1rem;
    }

    .banner h1 {
        font-size: 2.2rem;
    }

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

    .btn-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn-outline {
        margin-left: 0;
    }

    main {
        padding: 3rem 1rem;
    }
    .doctor-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }

    .doctor-info {
        text-align: center;
    }

    .doctor-section img {
        width: 180px;
        height: 180px;
    }

    .doctor-info h2 {
        font-size: 1.5rem;
    }
}

/* Doctor Section - Updated Structure */
#meet-doctors {
    padding: 4rem 2rem;
    background-color: var(--light);
}

#meet-doctors .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

#meet-doctors .section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    max-width: 600px;
    margin: 0.5rem auto 0;
}

.doctors-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.doctor-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
    height: auto; /* Remove fixed height */
    border: none;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Keep only this version - update it to remove the border */
.doctor-image-container {
    position: relative;
    height: 150px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

/* Add this to put a subtle border only on the image itself */
.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border: none; /* Ensure no border on the image */
}

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

.doctor-details {
    padding: 1.5rem 1.5rem 1.5rem; /* Reduced padding on all sides */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.doctor-details h3 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem; /* Reduced from 0.8rem */
    font-weight: 600;
    text-align: center;
}

.doctor-meta {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center;
    gap: 0.3rem; /* Tight gap between lines */
    margin-bottom: 1rem;
    text-align: center;
}

/* If you want a subtle separator without taking up space */
.doctor-meta::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--primary);
    margin: 1rem auto 0;
    opacity: 0.5;
}

.doctor-tenure,
.doctor-education {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.doctor-tenure i,
.doctor-education i {
    color: var(--primary);
}

.doctor-bio {
    color: var(--text);
    line-height: 1.5; /* Tighter line height */
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.doctor-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem; /* Reduced from 1rem */
    margin-bottom: 1.2rem; /* Reduced from 1.5rem */
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.highlight-item i {
    color: var(--primary);
    width: 20px;
}

.read-more-btn {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    margin-top: auto;
}

.read-more-btn:hover {
    background: var(--primary);
    color: white;
}

/* Modal for full bio */
.doctor-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.doctor-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 3rem;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-doctor-info h2 {
    color: var(--dark);
    margin-bottom: 1rem;
}

.modal-doctor-info .doctor-meta {
    justify-content: flex-start;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1.5rem;
}

.modal-doctor-info h3 {
    color: var(--dark);
    margin: 2rem 0 1rem;
}

.modal-doctor-info ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-doctor-info li {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .doctors-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .doctor-image-container {
        height: 250px;
    }

    .doctor-details {
        padding: 1.5rem;
    }

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

    .doctor-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    #meet-doctors {
        padding: 3rem 1rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }
    .doctor-highlights {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}
