/* --- RESET & VARIABLES --- */
:root {
    --primary-bg: #F0F8FF; /* Alice Blue */
    --accent-color: #0077B6; /* Medical Blue */
    --accent-hover: #0096c7;
    --text-color: #333333;
    --white: #ffffff;
    --placeholder-bg: #e0e0e0;
    --placeholder-border: #999;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--primary-bg);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- UTILITIES: PLACEHOLDERS --- */
/* This style strictly follows your request for visible placeholders */
.img-placeholder {
    background-color: var(--placeholder-bg);
    border: 2px dashed var(--placeholder-border);
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    padding: 20px;
    width: 100%;
    height: 100%;
    min-height: 250px; /* Minimum height to make it visible */
    border-radius: 8px;
    position: relative;
}

.img-placeholder::after {
    content: '\f03e'; /* FontAwesome Image Icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900; /* Ensure solid icon renders */
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    opacity: 0.3;
}

/* --- NAVIGATION --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Desktop Menu */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding: 4rem 5%;
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    text-align: center;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-banner-placeholder {
    height: 300px; /* Specific height for banner */
    margin-bottom: 2rem;
    background-color: #dbeaff; /* Slightly bluer for header */
    border-color: var(--accent-color);
}

/* Hero image should fill the banner area */
.hero-banner-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-hover);
}

/* --- SECTIONS GENERAL --- */
section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Reduce spacing between about and doctor sections */
#about {
    padding-bottom: 2rem;
}

#doctor {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
#schedule {
    padding-top: 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--accent-color);
}

/* --- INTRODUCTION (Office Photos) --- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.intro-text h3 {
    margin-bottom: 1rem;
    color: #444;
}

.intro-text p {
    margin-bottom: 1rem;
}

.photo-card {
    background: var(--white);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    height: 300px; /* Fixed height for consistency */
}

/* Make images inside photo cards fill the card */
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Image Slideshow */
.image-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}
.slide-image2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide-image.active {
    opacity: 1;
}
.slide-image2.active {
    opacity: 1;
}
/* --- DOCTOR SECTION --- */
.doctor-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Image wider, text narrower */
    gap: 3rem;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    align-items: center;
}

.doctor-img-wrapper {
    height: 350px;
}

/* Doctor portrait should fill its wrapper */
.doctor-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.doctor-info h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.doctor-info .role {
    color: #777;
    font-style: italic;
    margin-bottom: 1.5rem;
    display: block;
}

/* --- SCHEDULING TOOL --- */
.schedule-section {
    background-color: #eaf6fc;
    border-radius: 20px;
    margin-top: 2rem;
}

.schedule-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

.disclaimer {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
    text-align: center;
}

/* --- LOCATION SECTION --- */
.location-section {
    background-color: var(--white);
    padding: 4rem 5%;
}

.location-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.location-info {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.location-info h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-info p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
}

.location-info strong {
    color: var(--text-color);
    font-size: 1.1rem;
}

.location-contact {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.location-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    margin-bottom: 0.8rem;
}

.location-contact i {
    color: var(--accent-color);
    width: 20px;
}

.parking-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.parking-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.parking-info i {
    color: var(--accent-color);
    width: 20px;
}

.parking-info strong {
    color: var(--text-color);
}

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

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-link {
    margin-top: 10px;
    text-align: center;
}

.map-link a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.map-link a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* --- FOOTER --- */
footer {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 3rem 5%;
    margin-top: 4rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p, .footer-section a {
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    display: block;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
}

/* --- RESPONSIVE / MOBILE STYLES --- */
@media (max-width: 768px) {
    /* Navigation Mobile Logic */
    .hamburger {
        display: block; /* Show hamburger button */
    }

    .nav-links {
        position: absolute;
        top: 70px; /* Height of header */
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 0;
        border-top: 1px solid #eee;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 5px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        max-height: 300px; /* Expand menu */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 1.5rem;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Stack Grids */
    .intro-grid {
        grid-template-columns: 1fr;
    }
    
    .intro-grid:nth-child(even) .intro-text {
        order: 2; /* Ensure text creates flow */
    }

    .doctor-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .doctor-img-wrapper {
        height: 300px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    /* Location section responsive */
    .location-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-container {
        height: 300px;
    }
}
