/* Color Palette (Consistent with homepage) */
:root {
    --primary-green: #6C7F46; /* Darker Green - adapted for a professional feel */
    --secondary-green: #8DB25C; /* Lighter Green - adapted for accents */
    --light-bg: #EAEBD7; /* Very Light Green/Beige - still good for subtle backgrounds */
    --dark-text: #333333;
    --white: #ffffff;
    --muted-gray: #6c757d;
    --top-bar-bg: #008080; /* Teal/Cyan */
    --breadcrumb-bg: #f0f0f0; /* Light gray for breadcrumbs */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f8f8; /* Light background for overall page */
    color: #333;
}

/* Custom Buttons */
.btn-primary-green {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}
.btn-primary-green:hover {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
    color: var(--white);
}

/* Top Bar Styling */
.top-bar {
    background-color: var(--top-bar-bg);
    color: var(--white);
    padding: 0.7rem 0;
    font-size: 0.9rem;
}
.top-bar a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}
.top-bar a:hover {
    color: var(--secondary-green);
}
.top-bar .info-item {
    margin-right: 1.5rem;
    display: inline-flex;
    align-items: center;
}
.top-bar .info-item i {
    margin-right: 8px;
    font-size: 1rem;
}
.top-bar .social-icons a {
    color: var(--white);
    font-size: 1rem;
    margin-left: 1rem;
    transition: color 0.3s ease;
}
.top-bar .social-icons a:hover {
    color: var(--secondary-green);
}


/* Navbar Customization */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}
.navbar-brand {
    color: var(--primary-green) !important;
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}
.navbar-brand img {
    height: 40px; /* Adjust as needed for logo size */
    margin-right: 10px;
    border-radius: 0.25rem; /* Slightly rounded corners for logo */
}
.navbar-nav .nav-link {
    color: var(--dark-text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    transition: background-color 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-green) !important;
    background-color: rgba(108, 127, 70, 0.05); /* Light hover effect */
}

/* Page Header/Breadcrumb */
.page-header {
    background-color: var(--light-bg);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,.05);
}
.page-header h1 {
    color: var(--primary-green);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.breadcrumb {
    background-color: transparent;
    padding: 0;
    justify-content: center;
}
.breadcrumb-item a {
    color: var(--muted-gray);
    text-decoration: none;
}
.breadcrumb-item.active {
    color: var(--primary-green);
    font-weight: 500;
}

/* Section Styling */
.section-padding {
    padding: 5rem 0;
}
.section-bg-light {
    background-color: var(--light-bg);
}
.section-title {
    color: var(--primary-green);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background-color: var(--primary-green);
    border-radius: 2px;
}

/* About Content Sections */
.about-content h3 {
    color: var(--primary-green);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.about-content p {
    color: var(--dark-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.about-content ul {
    list-style: none;
    padding-left: 0;
}
.about-content ul li {
    margin-bottom: 0.8rem;
    color: var(--dark-text);
    font-size: 1.05rem;
}
.about-content ul li i {
    color: var(--secondary-green);
    margin-right: 10px;
}

/* Team Section */
.team-member {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,.15);
}
.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--secondary-green);
}
.team-member h5 {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.team-member span {
    color: var(--muted-gray);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}
.team-member .social-icons a {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin: 0 8px;
    transition: color 0.3s ease;
}
.team-member .social-icons a:hover {
    color: var(--secondary-green);
}

/* Hero Section (Owl Carousel) */
.hero-carousel .item {
    position: relative;
    height: 600px; /* Adjust height as needed */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    border-radius: 1rem;
    overflow: hidden; /* Ensure rounded corners clip content */
}
.hero-carousel .item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Slightly darker overlay for text readability */
    border-radius: 1rem;
}
.hero-carousel .item-content {
    position: relative;
    z-index: 1;
    max-width: 900px; /* Wider content area for medical text */
    padding: 1rem;
}
.hero-carousel h1 {
    font-size: 3.8rem; /* Slightly larger for impact */
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.hero-carousel p {
    font-size: 1.35rem; /* Slightly larger */
    margin-bottom: 2.5rem; /* More spacing for button */
}
.owl-nav .owl-prev, .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5) !important;
    color: var(--white) !important;
    border-radius: 50% !important;
    font-size: 2rem !important;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.owl-nav .owl-prev:hover, .owl-nav .owl-next:hover {
    background: var(--primary-green) !important;
}
.owl-nav .owl-prev { left: 20px; }
.owl-nav .owl-next { right: 20px; }
.owl-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}
.owl-dots .owl-dot span {
    background: rgba(255, 255, 255, 0.5) !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 5px !important;
    border-radius: 50% !important;
    transition: background-color 0.3s ease;
}
.owl-dots .owl-dot.active span {
    background: var(--primary-green) !important;
}

/* Services Section */
.service-card {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 2.2rem; /* Slightly more padding */
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,.15);
}
.service-card .icon {
    font-size: 3.8rem; /* Larger icons */
    color: var(--secondary-green);
    margin-bottom: 1.2rem;
}
.service-card h4 {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 1rem;
}
.service-card p {
    color: var(--muted-gray);
    font-size: 1rem; /* Slightly larger font */
}

/* Projects Section */
.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    transition: transform 0.3s ease;
}
.project-item:hover img {
    transform: scale(1.03);
}
.project-item h5 {
    margin-top: 1rem;
    color: var(--primary-green);
    font-weight: 600;
}
.project-item p {
    color: var(--muted-gray);
    font-size: 0.95rem; /* Slightly larger */
}

/* Clients Section */
.clients-carousel .item {
    display: flex;
    flex-direction: column; /* Stack logo and name */
    justify-content: center;
    align-items: center;
    height: 150px; /* Increased height to accommodate name */
    padding: 1rem;
    text-align: center;
}
.clients-carousel .item img {
    max-width: 100%;
    max-height: 80px; /* Adjusted max height for logos */
    object-fit: contain;
    filter: grayscale(100%); /* Grayscale effect */
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
    margin-bottom: 0.5rem; /* Space between logo and name */
}
.clients-carousel .item img:hover {
    filter: grayscale(0%); /* Color on hover */
    opacity: 1;
}
.clients-carousel .item span {
    font-size: 0.95rem;
    color: var(--dark-text);
    font-weight: 500;
}
.clients-carousel .owl-nav, .clients-carousel .owl-dots {
    display: none; /* Hide navigation and dots for client carousel */
}

/* Blog Section */
.blog-card {
    background-color: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,.15);
}
.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.blog-card-body {
    padding: 1.8rem; /* More padding */
}
.blog-card-body h5 {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 0.8rem;
}
.blog-card-body p {
    color: var(--muted-gray);
    font-size: 1rem; /* Slightly larger font */
    line-height: 1.7;
}
.blog-card-body .date {
    font-size: 0.9rem; /* Slightly larger */
    color: var(--muted-gray);
    margin-bottom: 0.5rem;
    display: block;
}

/* Contact Section */
.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.15rem; /* Slightly larger */
    color: var(--dark-text);
}
.contact-info i {
    color: var(--primary-green);
    margin-right: 10px;
    font-size: 1.3rem;
}
.contact-form .form-control {
    border-radius: 0.5rem;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    box-shadow: none;
}
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}
.contact-form .btn {
    width: 100%;
    padding: 0.8rem;
}

/* Footer (Consistent with homepage) */
.footer {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}
.footer p {
    margin-bottom: 0.5rem;
}
.footer .social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.footer .social-icons a:hover {
    color: var(--light-bg);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .section-padding {
        padding: 3rem 0;
    }
    .top-bar .info-item {
        margin-right: 1rem;
    }
    .top-bar .social-icons a {
        margin-left: 0.8rem;
    }
    .top-bar .text-end {
        text-align: start !important;
        margin-top: 0.5rem;
    }
}
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .top-bar .info-item {
        display: block;
        margin-bottom: 0.2rem;
    }
    .top-bar .social-icons {
        margin-top: 0.5rem;
        display: flex;
        justify-content: center;
    }
    .top-bar .social-icons a {
        margin: 0 0.5rem;
    }
    .clients-carousel .item {
        height: 120px; /* Adjust height for mobile client logos */
    }
    .clients-carousel .item img {
        max-height: 60px; /* Adjust max height for mobile client logos */
    }
}

/* Pagination Styling */
.custom-pagination .page-link {
    color: var(--primary-green);
    border-color: var(--primary-green);
    border-radius: 0.5rem; /* Rounded corners for pagination links */
    margin: 0 0.25rem; /* Small spacing between links */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.custom-pagination .page-link:hover {
    background-color: var(--secondary-green);
    color: var(--white);
    border-color: var(--secondary-green);
}
.custom-pagination .page-item.active .page-link {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}
.custom-pagination .page-item.active .page-link:hover {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
}
.custom-pagination .page-item.disabled .page-link {
    color: var(--muted-gray);
    border-color: #dee2e6;
    background-color: #e9ecef;
    cursor: not-allowed;
}