/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: lightblue;
    color: #333;
}

h1, h2, h3 {
    color: #004d99;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: #007BFF;
    color: white;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo .clinic-logo {
    height: 40px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #e0e0e0;
}

/* Responsive Navigation Styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    position: relative;
    transition: transform 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
    transition: transform 0.3s ease;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 101;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #007BFF;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 20px 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }
}

/* Hero Section (for index.html) */
.hero-section {
    background: url('1.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 150px 20px 100px;
    position: relative;
    z-index: 1;
    margin-top: 60px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-button {
    background-color: #28a745;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #218838;
}

/* About Us Section */
.about-us-section {
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #004d99;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
 }

/* Services Section (for index.html) */
.services-section {
    text-align: center;
    padding: 60px 20px;
    background: lightblue;
}

.services-header h2 {
    font-size: 2.5rem;
    color: #004d99;
}

.services-header p {
    font-size: 1.1rem;
    color: #777;
    max-width: 600px;
    margin: 0 auto 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background-color: #00FFEF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.service-card h3 {
    color: #007BFF;
    margin-top: 0;
}


/* Features Section */
.features-section {
    text-align: center;
    padding: 60px 20px;
}

.features-section h2 {
    font-size: 2.5rem;
    color: #004d99;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-item {
     background: #00FFEF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.feature-item h3 {
    color: #007BFF;
}

/* Page Hero Section (for Services, About, and Contact pages) */
.page-hero {
    background: #007BFF;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-top: 60px;
}

.page-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: white;
}

.page-hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Service Detail Section (for services.html) */
.service-detail-section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card-full {
    background-color: #00FFEF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.service-card-full h2 {
    color: #004d99;
    font-size: 2rem;
    margin-top: 0;
}

.service-card-full ul {
    list-style: none;
    padding: 0;
}

.service-card-full ul li {
    background-color: #e6f2ff;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 1rem;
}

/* About Section (for about.html) */
.about-hero {
    background: url('1.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 150px 20px 100px;
    position: relative;
    z-index: 1;
    margin-top: 60px;
}

.about-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.about-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.team-section {
    padding: 60px 20px;
    text-align: center;
}

.team-section h2 {
    font-size: 2.5rem;
    color: #004d99;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
    background-color: #00FFEF;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #007BFF;
}

.mission-section {
    padding: 60px 20px;
    background-color: #00FFEF;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 10px;
    margin-bottom: 40px;
}

.mission-content h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #004d99;
}

.mission-content ul {
    list-style: none;
    padding: 0;
}

.mission-content ul li {
    background-color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 5px solid #007BFF;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Contact Page Styles (for contact.html) */
.contact-section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.contact-header p {
    font-size: 1.1rem;
    color: #777;
    max-width: 600px;
    margin: 0 auto;
}

.contact-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    background-color: #00FFEF;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-details {
    flex: 1;
    min-width: 300px;
}

.contact-details h3 {
    color: #007BFF;
    margin-top: 0;
    margin-bottom: 15px;
}

.contact-details p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #004d99;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button.cta-button {
    margin-top: 20px;
    padding: 15px;
    width: auto;
    align-self: flex-start;
}

/* Testimonials Page Styles (for testimonials.html) */
.testimonials-section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.testimonial-card .stars {
    color: gold;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.testimonial-card p {
    font-style: italic;
    line-height: 1.6;
}

.testimonial-card h4 {
    color: #007BFF;
    margin-top: 20px;
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 20px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #4a6682;
    padding-bottom: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 20px;
}

.footer-section h3 {
    color: #007BFF;
    margin-bottom: 15px;
}

.footer-section p, .footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 10px;
    color: #999;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 102;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Form */
#appointment-form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

#appointment-form input,
#appointment-form select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#appointment-form button {
    background-color: #007BFF;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    font-size: 1rem;
}

/* Back to Top Button */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}

#backToTopBtn:hover {
    background-color: #0056b3;
}

/* Photo Gallery Section (New) */
.gallery-section {
    padding: 60px 20px;
    background-color: lightblue;
}

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

.gallery-section h2,
.gallery-section p {
    text-align: center;
    margin-bottom: 20px;
}

.gallery-grid-new {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: stretch;
}

.gallery-item-new {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #00FFEF;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.gallery-text {
    padding: 20px;
    text-align: center;
}

.gallery-text h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #004d40;
}

/* Specific item styling for mixed layout */
.gallery-item-text {
    background-color: #e0f2f1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    padding-top: 60px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Modal Animation */
@keyframes zoom {
    from {
        transform: scale(0)
    }
    to {
        transform: scale(1)
    }
}

/* --- New Photo Album CSS --- */

.gallery-album {
    margin-bottom: 50px;
}

.gallery-album h3 {
    text-align: center;
    font-size: 2rem;
    color: #007BFF;
    margin-bottom: 25px;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    justify-content: center;
}

.album-grid-four {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

.album-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.album-item:hover img {
    transform: scale(1.05);
}

.album-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.album-item:hover .album-text {
    transform: translateY(0);
}

.album-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    color: white; /* Important to keep the text color white */
}

/* Modal for image zoom (reusing existing styles) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Service Item Toggle Styles */
.service-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.service-title {
    cursor: pointer;
    color: #007BFF;
    font-size: 1.3rem;
    padding: 15px 0;
    transition: color 0.3s;
    position: relative;
    user-select: none;
}

.service-title::after {
    content: '+';
    position: absolute;
    right: 15px;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.service-title.active::after {
    content: '−';
    transform: rotate(180deg);
}

.service-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.5s ease-out;
}

.service-content.active {
    max-height: 500px; /* Adjust as needed */
    padding: 15px;
}

.service-content-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Map Section Styles */
.map-section {
    padding: 60px 20px;
    text-align: center;
    background-color: lightblue;
}

.map-section h2 {
    font-size: 2.5rem;
    color: #004d99;
    margin-bottom: 20px;
}

.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.appointment-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: lightblue;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.appointment-container form {
    display: flex;
    flex-direction: column;
}

.appointment-container label {
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #004d99;
}

.appointment-container input,
.appointment-container select,
.appointment-container textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    width: 100%;
}

.appointment-container textarea {
    resize: vertical;
}

.appointment-container button.cta-button {
    margin-top: 25px;
    align-self: flex-start;
}
