/* General Reset and Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile due to overflow */
}

html {
    /* Adjusted to account for sticky navbar and top bar. This might be dynamically changed by JS for mobile menu. */
    scroll-padding-top: 150px;
}

/* Top Bar Styles - Adjusted for Mobile Responsiveness */
.top-bar {
    background-color: #e91e63;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    font-size: 0.9em;
    z-index: 999;
}

/* Grouping info elements for better mobile stacking */
.top-bar-info-group {
    display: flex;
    flex-wrap: wrap; /* Allow info items to wrap */
    justify-content: flex-start;
    flex-grow: 1; /* Allow this group to take available space */
}

.top-bar-right-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* Keep social and appointment button together on one line if possible */
    flex-shrink: 0; /* Prevent this group from shrinking too much */
}

.top-bar-info {
    display: flex;
    align-items: center;
    margin: 5px 15px;
    white-space: nowrap; /* Prevent text in info items from wrapping */
}

.top-bar-info i {
    margin-right: 8px;
    color: #fff;
}

.top-bar-social {
    display: flex;
    align-items: center;
    margin: 5px 15px;
    flex-shrink: 0; /* Prevent social icons from shrinking */
}

.top-bar-social .social-icon {
    color: #fff;
    font-size: 1.2em;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.top-bar-social .social-icon:hover {
    color: #f0f0f0;
}

.top-bar-appointment-btn {
    background-color: #2e7d32;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Prevent button text from wrapping */
    flex-shrink: 0; /* Prevent button from shrinking */
}

.top-bar-appointment-btn:hover {
    background-color: #1e5a21;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.logo img {
    height: 100px;
    width: auto;
    display: block;
}

/* Hamburger Menu Icon (Hidden on Desktop) */
.hamburger-menu {
    display: none; /* Hidden by default for desktop */
    font-size: 1.8rem;
    color: #e91e63;
    cursor: pointer;
    margin-left: auto; /* Push it to the right on mobile */
    padding: 5px;
    z-index: 1010; /* Ensure it's above other elements in navbar on mobile */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    justify-content: flex-end;
    flex-wrap: nowrap; /* Prevent main nav items from wrapping on desktop */
    flex-shrink: 1;
    min-width: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap; /* Keep text on one line for desktop */
}

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

/* Search Field Styles */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: visible;
    background-color: #f0f0f0;
    z-index: 1070;
    flex-grow: 0;
    flex-shrink: 1;
    min-width: 100px;
    max-width: 200px;
}

#searchInput {
    border: none;
    padding: 8px 15px;
    outline: none;
    font-size: 0.9rem;
    width: 100%;
    background-color: transparent;
}

#searchButton {
    background-color: #e91e63;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0 20px 20px 0;
    flex-shrink: 0;
}

#searchButton:hover {
    background-color: #c2185b;
}

/* Search Results Overlay Styles */
.search-results-overlay {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    border: 1px solid #ffc0cb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1080;
    overflow-y: auto;
    max-height: 300px;
}

.search-results-content {
    padding: 10px;
    text-align: left;
}

.search-results-overlay h2 {
    display: none;
}

.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f9f9f9;
}

.search-result-item h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.search-result-item h3 a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
}

.search-result-item h3 a:hover {
    text-decoration: underline;
}

.search-result-item p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.search-result-item .learn-more-link {
    display: inline-block;
    background-color: #2e7d32;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: background-color 0.3s ease;
}

.search-result-item .learn-more-link:hover {
    background-color: #1e5a21;
}

.no-match-found {
    font-size: 1rem;
    color: #e91e63;
    text-align: center;
    padding: 20px;
}

/* Dropdown styles */
.dropdown .dropdown-arrow,
.dropdown-submenu .submenu-arrow {
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform 0.3s ease; /* Add transition for smooth rotation */
}

/* Rotate dropdown arrow when dropdown is active/open */
.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Rotate submenu arrow when submenu is active/open */
.dropdown-submenu.active .submenu-arrow {
    transform: rotate(90deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 220px;
    max-width: 320px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1060;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 5px;
    top: 100%;
    left: 0;
    right: auto;
}

.dropdown-content li {
    padding: 0;
    margin: 0;
    position: relative;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.dropdown-content a:hover {
    background-color: #e91e63;
    color: white;
}

/* Show the dropdown menu on hover for desktop */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Nested Dropdown (Submenu) styles */
.submenu-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 220px;
    max-width: 320px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1065;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 5px;
    top: 0;
    left: 100%;
    white-space: normal;
    max-height: 250px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.submenu-content li {
    padding: 0;
    margin: 0;
}

.submenu-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.submenu-content a:hover {
    background-color: #e91e63;
    color: white;
}

/* Show the submenu on hover for desktop */
.dropdown-submenu:hover .submenu-content {
    display: block;
}

/* Hero Slider Styles */
.hero {
    position: relative;
    height: 90vh;
    background: linear-gradient(to right, #ffe6f0, #e6fff2);
    overflow: hidden;
}

.slider {
    height: 100%;
    position: relative;
}

.slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

/* Hero Content Styles */
.content {
    position: absolute;
    top: 35%;
    left: 10%;
    color: white;
    max-width: 600px;
}

.content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* Button Styles */
.btn {
    background-color: #e91e63;
    color: white;
    padding: 12px 24px;
    border: none;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #c2185b;
}

/* Slider Arrow Styles */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.5);
    color: #e91e63;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
}

.arrow.left {
    left: 20px;
}

.arrow.right {
    right: 20px;
}

.arrow:hover {
    background: #fff;
}

/* Responsive Styles for Hero */
@media (max-width: 768px) {
    .content {
        top: 25%; /* Adjust position for smaller screens */
        left: 5%;
        right: 5%;
        max-width: 90%;
        text-align: center; /* Center text on smaller screens */
    }
    .content h1 {
        font-size: 2rem;
    }
    .content p {
        font-size: 1rem;
    }
    .hero {
        height: 60vh; /* Reduce hero height on mobile */
    }
}


/* Doctor Info Section / About Section */
.about-section {
    display: flex;
    align-items: center;
    padding: 60px 30px;
    background: #ffffff;
}

.about-image {
    flex: 0 0 40%;
    margin-right: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.about-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.8rem;
    color: #e91e63;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #555;
}

.more-info-btn {
    display: inline-block;
    background-color: #2e7d32;
    color: white;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.more-info-btn:hover {
    background-color: #1e5a21;
}

/* Responsive adjustments for About Section */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px; /* Adjust padding for mobile */
    }

    .about-image {
        margin-right: 0;
        margin-bottom: 30px;
        width: 80%; /* Make image smaller relative to screen */
        max-width: 300px; /* Constrain max width for better appearance */
        margin-left: auto;
        margin-right: auto; /* Center image */
    }

    .about-content {
        text-align: center; /* Center content on mobile */
    }

    .about-content h2 {
        font-size: 2rem; /* Reduce heading size */
    }

    .about-content p {
        font-size: 1rem; /* Reduce paragraph size */
    }

    .more-info-btn {
        font-size: 1rem; /* Adjust button font size */
        padding: 12px 24px; /* Adjust button padding */
    }
}

/* Services Section */
.services-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #fff;
}

.services-section h2 {
    color: #e91e63;
    font-size: 2rem;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    /* Allow at least one column on very small screens, and up to 4 on larger */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px; /* Reduced gap slightly for mobile compactness */
    justify-items: center;
    max-width: 1200px; /* Constrain grid width on very large screens */
    margin: 0 auto;
}

.service-card {
    background: #ffffff;
    border: 2px solid #ffc0cb;
    border-radius: 12px;
    padding: 15px; /* Reduced padding slightly */
    width: 100%; /* Make card take full available width in its grid cell */
    max-width: 180px; /* Keep max-width same */
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.service-card a {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 10px; /* Adjusted padding within the card link */
}

.service-card img {
    width: 60px; /* Slightly smaller icon size */
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: hue-rotate(140deg);
}
.service-card p {
    color: #444;
    font-weight: 500;
    font-size: 0.95rem; /* Slightly smaller font for compactness */
}

.services-btn {
    margin-top: 40px;
}

.services-btn a {
    background-color: #e91e63;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s;
}

.services-btn a:hover {
    background-color: #c2185b;
}

/* Why Choose Us */
.why-choose-us {
    padding: 50px 20px;
    background: #fff;
    text-align: center;
}

.why-choose-us h2 {
    color: #e91e63;
    font-size: 28px;
    margin-bottom: 15px; /* Reduced margin */
}

.why-choose-us p {
    max-width: 700px;
    margin: 10px auto 30px;
    color: #444;
    font-size: 0.95rem; /* Slightly smaller font */
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Reduced gap for compactness */
}

.feature-box {
    width: 150px; /* Slightly smaller width for mobile */
    padding: 15px; /* Reduced padding */
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.feature-box:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-color: #e91e63;
}

.feature-box img {
    width: 50px; /* Slightly smaller icon */
    height: 50px;
    margin-bottom: 8px; /* Reduced margin */
}

.feature-box p {
    font-size: 0.85rem; /* Slightly smaller font */
    color: #333;
}

/* Our Commitment */
.our-commitment {
    background: #e0f2f1;
    padding: 50px 20px;
    text-align: center;
}

.our-commitment h2 {
    color: #4caf50;
    font-size: 28px;
    margin-bottom: 30px;
}

.commitment-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.commitment {
    width: 160px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 2px solid #e91e63;
}

.commitment img {
    width: 50px;
    margin-bottom: 10px;
}

.commitment p {
    font-size: 14px;
    color: #444;
}

/* FAQ Section */
.faq-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.faq-section h2 {
    color: #e91e63;
    font-size: 2rem;
    margin-bottom: 30px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ffffff;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    background-color: #fff;
    color: #e2346e;
    padding: 12px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: #888;
}

.faq-question.active::after {
    content: '-';
}

.faq-question:hover {
    background-color: #e6e6e6;
    color: #e70b55;
}

.faq-answer {
    padding: 10px 0 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    color: #333;
    text-align: left;
}

.faq-answer.active {
    max-height: 500px;
    padding-bottom: 10px;
}

.faq-answer p {
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 60px 20px;
    background: #ffffff;
    text-align: center;
}

.testimonials-section h2 {
    color: #e91e63;
    font-size: 2rem;
    margin-bottom: 40px;
}

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    display: none;
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #e91e63;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.1);
    margin: 20px;
    transition: all 0.3s ease;
}

.testimonial-card.active {
    display: block;
}

.patient-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.review-source {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.rating {
    color: #2e7d32;
    font-size: 20px;
    margin-bottom: 10px;
}

.patient-name {
    font-weight: 600;
    color: #e91e63;
    margin-bottom: 5px;
}

.review-date {
    font-size: 0.9rem;
    color: #666;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    font-style: italic;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.prev-testimonial,
.next-testimonial {
    background: #2e7d32;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
}

.prev-testimonial:hover,
.next-testimonial:hover {
    background: #1e5a21;
}

@media (max-width: 768px) {
    .testimonial-card {
        margin: 10px;
        padding: 20px;
    }

    .testimonial-text {
        font-size: 1rem;
    }
}

/* Maps Section */
.map-section {
    text-align: center;
    padding: 60px 20px;
    background-color: #ffffff;
}

.map-section h2 {
    font-size: 2rem;
    color: #e91e63;
    margin-bottom: 20px;
}

.map-container {
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.map-link {
    margin-top: 15px;
}

.map-link a {
    text-decoration: none;
    color: #28a745;
    font-weight: 600;
}
.map-link a:hover {
    text-decoration: underline;
}

/* Footer Section */
.footer-section {
    background-color: #e91e63;
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 20px;
}

.footer-logo {
    text-align: left;
}

.footer-logo img {
    max-width: 250px;
    margin-bottom: 25px;
    display: block;
    margin-left: 0;
}

.footer-logo p {
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

.social-links {
    text-align: left;
    display: flex; /* Ensure social links are flex to align icons */
    gap: 10px; /* Space out social icons */
    margin-top: 20px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-section ul li a:hover {
    opacity: 0.8;
}

.contact-us .address,
.contact-us .contact-info {
    margin-bottom: 20px;
}

.contact-us p {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-logo,
    .quick-links,
    .our-services,
    .contact-us {
        text-align: center; /* Center content on very small screens */
    }
    .social-links {
        justify-content: center; /* Center social icons */
    }
}

/* Consultation Booking Section */
.consultation-booking {
    padding: 60px 20px;
    background-color: #f0f0f0;
}

.booking-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
}

.booking-form {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.booking-form h2 {
    color: #e91e63;
    margin-bottom: 10px;
    font-size: 2rem;
}

.booking-form p {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.consultation-form {
    display: flex;
    flex-direction: column;
}

.consultation-form input[type="text"],
.consultation-form input[type="tel"] {
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.security-message {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #777;
    font-size: 0.9rem;
}

.security-message img {
    width: 20px;
    margin-right: 8px;
}

.book-btn {
    background-color: #2e7d32;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.book-btn:hover {
    background-color: #1e5a21;
}

.booking-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .booking-container {
        flex-direction: column;
        padding: 0; /* Remove horizontal padding from container on small screens */
    }
    .booking-form {
        padding: 20px; /* Adjust padding for form */
    }
    .booking-image {
        display: none; /* Hide image on smaller screens */
    }
    .consultation-booking {
        padding: 40px 10px; /* Adjust section padding on mobile */
    }
}


/* Popup Modal Overlay */
.popup-modal {
    display: none;
    position: fixed;
    top: 0; /* Changed to 0 to cover full screen */
    left: 0; /* Changed to 0 to cover full screen */
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Slightly darker overlay */
    z-index: 10000; /* High z-index to be on top */
    animation: fadeIn 0.3s ease-in-out;
    display: flex; /* Use flex to center content */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

/* Popup Content */
.popup-content {
    position: relative;
    background-color: white;
    max-width: 480px;
    width: 90%; /* Ensure it's responsive */
    margin: auto; /* Re-center if flex centering fails on some older browsers */
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    font-family: 'Poppins', sans-serif; /* Keep font if available, otherwise fallback */
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s ease;
}
.close-btn:hover {
    color: #e91e63;
}

/* Headings */
.popup-modal h2 { /* Targeting h2 within popup-modal directly */
    font-size: 24px; /* Adjusted from 20px for better impact */
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}
.popup-modal .highlight {
    color: #e91e63;
}
.popup-modal p { /* Targeting p within popup-modal */
    font-size: 16px; /* Adjusted from 16px for consistency */
    color: #555;
    margin-bottom: 20px;
}

/* Offer Buttons */
.popup-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.popup-btn {
    background-color: #ff4081;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.popup-btn:hover {
    background-color: #e91e63;
}

/* Form Styling */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.popup-form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

/* Security Message with Google Icon */
.privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #777;
    gap: 6px;
    margin-top: 5px;
}
.privacy img {
    width: 18px;
    height: 18px;
}

/* Submit Button */
.submit-btn {
    background-color: #e91e63;
    color: white;
    border: none;
    padding: 12px;
    font-size: 15px;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.submit-btn:hover {
    background-color: #ff4081;
}

/* Nav CTA Button */
.consultation-btn {
    background-color: #e91e63;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    flex-shrink: 1;
    min-width: fit-content;
    margin-left: 20px;
}
.consultation-btn:hover {
    background-color: #ff4081;
    transform: scale(1.05);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive adjustments for overall navbar and dropdowns */
@media (max-width: 992px) { /* Adjust breakpoint for tablet/larger mobiles */
    .top-bar-info-group,
    .top-bar-right-group {
        width: 100%; /* Make them take full width */
        justify-content: center; /* Center content horizontally */
        margin-bottom: 5px;
    }
    .top-bar {
        flex-direction: column; /* Stack top bar items */
        align-items: center;
        padding: 10px;
    }
    .top-bar-social {
        margin-top: 10px; /* Add some space above social icons */
    }
    .top-bar-appointment-btn {
        margin-top: 10px; /* Add space above button */
    }
    .top-bar-appointment-btn {
        display: none; /* Hides the button in mobile view */
    }

    .navbar {
        flex-wrap: wrap; /* Allow navbar items to wrap if needed */
        padding: 15px 20px;
    }

    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
    }

    .nav-links {
        /* On mobile, initially hide and make it full width/column */
        display: flex; /* Use flex to ensure proper stacking of children for column layout */
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-top: 15px;
        background-color: #fff; /* Ensure menu has a background when open */
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        position: absolute;
        top: 100%; /* Position below the main navbar */
        left: 0;
        z-index: 990; /* Lower than navbar, higher than page content */
        padding: 10px 0;
        border-radius: 0 0 8px 8px;
        /* Use max-height for smooth transition */
        max-height: 0;
        overflow-y: hidden; /* Crucial for max-height transition to work */
        transition: max-height 0.5s ease-out, opacity 0.5s ease-out, visibility 0.5s ease-out;
        opacity: 0;
        visibility: hidden; /* Hidden for screen readers when collapsed */
    }

    .nav-links.active {
        max-height: 600px; /* Sufficient height for menu items + search/button */
        opacity: 1;
        visibility: visible;
        overflow-y: auto; /* Allow scrolling if menu content is too long for screen */
        -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
    }

    .nav-links li {
        width: 100%;
        text-align: left; /* Align text left */
        border-bottom: 1px solid #eee; /* Separator for menu items */
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        padding: 12px 20px; /* Increase clickable area */
        white-space: normal; /* Allow text to wrap */
    }

    /* Make search and consultation button visible within the mobile menu */
    .search-container,
    .consultation-btn {
        display: flex; /* Changed from none to flex/block */
        width: calc(100% - 40px); /* Adjust width to fit with padding */
        margin: 10px 20px; /* Center with padding */
        box-sizing: border-box; /* Include padding/border in width */
    }

    /* Adjust search input and button within the mobile menu */
    .search-container {
        border-radius: 25px; /* More rounded */
    }
    #searchInput {
        padding: 10px 15px;
        font-size: 1rem;
    }
    #searchButton {
        padding: 10px 15px;
        border-radius: 0 25px 25px 0;
    }

    .consultation-btn {
        text-align: center;
        margin-left: 20px; /* Consistent margin */
    }

    /* Dropdown and Submenu mobile adjustments (will be toggled by JS) */
    .dropdown-content,
    .submenu-content {
        position: static; /* Remove absolute positioning */
        background-color: transparent; /* No distinct background */
        box-shadow: none;
        padding: 0;
        margin: 0 0 0 20px; /* Indent sub-items */
        width: auto; /* Let content determine width */
        max-width: 100%;
        max-height: 0; /* Hidden by default for smooth transition */
        overflow-y: hidden; /* Crucial for max-height transition */
        transition: max-height 0.3s ease-in-out; /* Smooth transition */
        display: none; /* Keep this to initially hide it */
    }

    /* Show dropdown/submenu content when parent li has 'active' class on mobile */
    .dropdown.active > .dropdown-content,
    .dropdown-submenu.active > .submenu-content {
        max-height: 500px; /* Sufficient height to reveal all items */
        overflow-y: auto; /* Allow scrolling within the dropdown if many items */
        -webkit-overflow-scrolling: touch;
        display: block; /* <--- ADDED THIS IMPORTANT RULE */
    }
}

@media (max-width: 768px) {
    /* Further fine-tune general padding and font sizes for smaller mobiles */
    section {
        padding: 40px 15px;
    }
    h2 {
        font-size: 1.8rem;
    }
    p {
        font-size: 0.95rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .logo img {
        height: 80px; /* Smaller logo on very small screens */
    }
}

/* Social Links in Footer */
.social-links {
    display: flex;
    gap: 10px; /* Increased gap for better touch targets */
    margin-top: 20px;
}

.social-icon {
    background-color: #e91e63;
    color: white;
    width: 38px; /* Larger touch target */
    height: 38px; /* Larger touch target */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon i {
    font-size: 18px; /* Larger icon */
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

/* Platform-specific hover colors for social icons */
.fa-instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
}

.fa-facebook-f:hover {
    background-color: #1877f2;
}

.fa-youtube:hover {
    background-color: #ff0000;
}

.fa-linkedin-in:hover {
    background-color: #0a66c2;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%; /* Changed to 50% for perfect circle */
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000; /* Ensure it's above most content */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: float 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    color: #FFF;
    background-color: #128C7E;
    transform: scale(1.1);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #e91e63;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Allow filters to wrap on smaller screens */
}

.filter-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 25px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent button text from wrapping */
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #e91e63;
    color: #fff;
}

.gallery-grid {
    display: grid;
    /* Use a smaller minmax for very small screens, allowing more columns if space permits */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px; /* Add a max-width for consistency */
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.video-thumbnail iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Even smaller min width for very small screens */
        gap: 15px;
    }

    .gallery-filters {
        justify-content: center; /* Ensure filters are centered */
    }
}
/* Styles for the success message in the popup */
.consultation-success-message {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    background-color: #d4edda; /* Light green background */
    color: #155724; /* Dark green text */
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
}

.consultation-success-message i {
    color: #28a745; /* Green check icon */
    margin-right: 10px;
}
