/* --- Google Font & Global Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

:root {
    --primary-color: #0d6efd; /* Standard Bootstrap Blue */
    --secondary-color: #6c757d; /* Standard Grey */
    --highlight-color: #17a2b8; /* A calming teal for accents */
    --light-bg: #f8f9fa;
    --dark-text: #343a40;
    --border-radius: 0.375rem;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
}

/* --- Reusable Container Style --- */
.page-container {
    padding: 60px 15px;
}

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

.page-header h1 {
    font-weight: 700;
    color: var(--primary-color);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* --- Header / Navigation Bar --- */
.navbar {
    padding: 0.75rem 1rem;
    background-color: #ffffff !important;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

/* Style for the icon part of the logo */
.navbar-icon {
    height: 60px; /* Adjust icon size as needed */
    width: auto;
}

/* Container for the text beside the icon */
.navbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2; /* Adjust spacing between lines */
}

/* Main brand name (GATHI SWASTHYA) */
.navbar-brand-text .brand-main {
    font-weight: 700;
    font-size: 1.5rem;
    color: #4CAF50; /* Green color from logo */
    letter-spacing: 0.5px;
}

/* Sub-text (PHYSIOTHERAPY CLINIC) */
.navbar-brand-text .brand-sub {
    font-weight: 400;
    font-size: 0.85rem;
    color: #555; /* Dark grey color from logo */
    letter-spacing: 0.2px;
}


/* --- Offcanvas Sidebar Styles --- */
.navbar-toggler {
    border: none;
}
.navbar-toggler:focus {
    box-shadow: none;
}

.offcanvas-header {
    background-color: var(--light-bg);
}

.offcanvas-title {
    color: var(--primary-color);
    font-weight: 700;
}

.offcanvas-body .nav-link {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text) !important;
    font-weight: 700;
    transition: color 0.2s ease-in-out;
}
.offcanvas-body .nav-link:hover {
    color: var(--primary-color) !important;
}

.offcanvas-body .btn-light {
    width: 100%;
    background-color: var(--highlight-color);
    color: #fff;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}
.offcanvas-body .btn-light:hover {
    background-color: #138496;
    color: #fff;
}
/* --- Home Page Specific Sections --- */
.hero-section {
    background: linear-gradient(rgba(13, 110, 253, 0.7), rgba(13, 110, 253, 0.7)), url('https://images.unsplash.com/photo-1581056771107-24a75572149e?crop=entropy&cs=tinysrgb&fit=max&fm=jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 120px 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-section .lead {
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.features-section {
    padding: 60px 0;
}

.section-title {
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--dark-text);
}

.feature-card {
    background: #ffffff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    margin-bottom: 20px;
    height: 100%;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.why-choose-us-section {
    background-color: #ffffff;
    padding: 60px 0;
}

.reasons-list {
    list-style: none;
    padding: 0;
}

.reasons-list li {
    display: flex;
    align-items: start;
    margin-bottom: 20px;
}

.reason-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    line-height: 1.2;
}

.reasons-list h5 {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-text);
}

.reasons-list p {
    margin-bottom: 0;
    color: var(--secondary-color);
}

/* --- Homepage Doctors Section (Scrolling) --- */
.doctors-section {
    padding: 60px 0;
}

.scrolling-wrapper {
    display: flex;
    overflow-x: auto;
    padding-bottom: 20px;
}

.scrolling-wrapper::-webkit-scrollbar {
    height: 8px;
}
.scrolling-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.doctor-profile-card {
    flex: 0 0 auto;
    width: 200px;
    margin-right: 20px;
    text-align: center;
}

.doctor-profile-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.doctor-profile-card h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.doctor-profile-card p {
    color: var(--primary-color);
}


/* --- About Page --- */
.clinic-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.home-logo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    padding: 5px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-card {
    background: #ffffff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    margin-bottom: 20px;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- Staff & Doctors Page (doctors.html) --- */
.doctor-card {
    background: #ffffff;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

.doctor-card img {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top center;
}
.doctor-card .card-body {
    padding: 25px;
}

.doctor-card .card-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--dark-text);
}

.doctor-card .card-subtitle {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

/* --- Appointment Form Page --- */
.form-container .card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-container .card-header {
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    padding: 20px;
}

.form-container .form-label {
    font-weight: 700;
}

.form-container .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* --- Success Pages --- */
.success-container {
    text-align: center;
}

.success-container .alert {
    padding: 40px;
    font-size: 1.1rem;
}

.success-container .alert-heading {
    font-size: 2.5rem;
}

/* --- Blood Test Page (Removed) --- */
/* Styles for this page can be removed if no longer needed */
.package-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 20px;
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.package-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
    transform: translateY(-5px);
}
.package-card.selected {
    border-color: var(--highlight-color);
    border-width: 2px;
    box-shadow: 0 8px 16px rgba(23, 162, 184, 0.2);
}
.package-card h5 {
    font-weight: 700;
    color: var(--dark-text);
    flex-grow: 1;
}
.package-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 15px;
}
.contact-card {
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
}
.contact-card p {
    font-size: 1.1rem;
    margin-bottom: 0;
}
.accordion-button {
    font-weight: 700;
}
.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}
.accordion-body {
    padding: 15px 20px;
}
.form-check {
    margin-bottom: 10px;
}
.form-check-label {
    margin-left: 8px;
}

/* --- Style for the doctor image inside the modal --- */
.doctor-modal-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

/* --- ADDED: Services Page Styles --- */
.service-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 25px;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
    border-color: var(--primary-color);
}

.service-card h5 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.conditions-section {
    margin-top: 40px;
}

.conditions-list {
    list-style: none;
    padding-left: 0;
    column-count: 3;
    column-gap: 20px;
}

.conditions-list li {
    padding: 8px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0f0;
}

.conditions-list li::before {
    content: '✓';
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .conditions-list {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .conditions-list {
        column-count: 1;
    }
}
/* --- Footer Section --- */
.footer-section {
    background-color: var(--dark-text);
    color: #ccc;
    padding: 60px 0 0 0;
}

.footer-section h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-section p {
    color: #ccc;
    font-size: 0.95rem;
}

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

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

.footer-links a,
.footer-section p a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-social a {
    font-size: 1.8rem;
    color: #ccc;
    margin-right: 15px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    background-color: #222;
    color: #999;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}