/* ============================================
   Sineth Hospitals - Main Stylesheet
   Theme: Medical Teal
   ============================================ */

:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #5eead4;
    --secondary: #132540;
    --accent: #51b6b6;
    --light-bg: #f0fdfa;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition: all 0.3s ease;
}

/* ---- Global Reset & Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', 'Noto Sans Sinhala', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--gray-800);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Navbar ---- */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
    transition: var(--transition);
    z-index: 1050;
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 2rem;
}

.navbar-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
}

.navbar .nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    padding: 0.4rem 0.65rem !important;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 0.85rem;
    white-space: nowrap;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary) !important;
    background: var(--light-bg);
}

.navbar .nav-link.nav-highlight {
    color: var(--primary) !important;
    font-weight: 600;
    border: 1.5px solid var(--primary);
    border-radius: 50px;
    padding: 0.3rem 0.8rem !important;
}

.navbar .nav-link.nav-highlight:hover,
.navbar .nav-link.nav-highlight.active {
    background: var(--primary);
    color: var(--white) !important;
}

.lang-toggle {
    background: var(--light-bg);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.lang-toggle:hover,
.lang-toggle.active {
    background: var(--primary);
    color: var(--white);
}

/* ---- Search Button ---- */
.nav-search-btn {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.nav-search-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* ---- Search Overlay ---- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19, 37, 64, 0.95);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    width: 100%;
    max-width: 640px;
    padding: 0 1.5rem;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-overlay-content {
    transform: translateY(0);
}

.search-overlay-content h4 {
    color: var(--white);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.search-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.search-close-btn:hover {
    color: var(--primary-light);
    transform: rotate(90deg);
}

.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.15);
}

.search-input-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
}

.search-results {
    margin-top: 1.5rem;
    max-height: 50vh;
    overflow-y: auto;
}

.search-result-item {
    display: block;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.search-result-item h6 {
    color: var(--white);
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.search-result-item p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
    font-size: 0.8rem;
}

.search-result-item .search-category {
    display: inline-block;
    font-size: 0.7rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    margin-bottom: 0.3rem;
}

.search-no-results {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 2rem 0;
    font-size: 0.95rem;
}

/* ---- Health Portal Link (Hero section, top-right) ---- */
.health-portal-link {
    position: absolute;
    top: 1.2rem;
    right: 2rem;
    z-index: 10;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
}
.health-portal-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a3a5c 50%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="80" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/><circle cx="100" cy="100" r="60" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/><circle cx="100" cy="100" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>') center/contain no-repeat;
    opacity: 0.5;
}

.hero-section .hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--primary-light);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-section h1 span {
    color: var(--primary-light);
}

.hero-section p.lead {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.hero-feature-item i {
    color: var(--primary-light);
    font-size: 1.1rem;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat h3 {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 0.25rem;
}

.hero-stat p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0;
}

/* ---- Buttons ---- */
.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-teal {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-teal:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}

/* ---- Section Styles ---- */
.section-padding {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header .section-subtitle {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray-500);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

.section-light {
    background: var(--light-bg);
}

.section-dark {
    background: var(--secondary);
    color: var(--white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

/* ---- Service Cards ---- */
.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* ---- Doctor Cards ---- */
.doctor-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.doctor-img {
    height: 280px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 5rem;
    overflow: hidden;
}

.doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.doctor-info {
    padding: 1.5rem;
    text-align: center;
}

.doctor-info h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.doctor-info .doctor-title {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.doctor-info p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ---- Why Choose Us ---- */
.why-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: var(--white);
}

.why-card h5 {
    color: var(--secondary);
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.why-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---- CTA Section ---- */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-section .btn-white {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 0.75rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-section .btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ---- Floating Call Button ---- */
.floating-call-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(13,148,136,0.4);
    z-index: 1040;
    transition: var(--transition);
    animation: pulse-call 2s infinite;
    text-decoration: none;
}

.floating-call-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: scale(1.1);
}

@keyframes pulse-call {
    0% { box-shadow: 0 0 0 0 rgba(13,148,136,0.5); }
    70% { box-shadow: 0 0 0 15px rgba(13,148,136,0); }
    100% { box-shadow: 0 0 0 0 rgba(13,148,136,0); }
}

/* ---- WhatsApp Button ---- */
.floating-wa-btn {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 1040;
    transition: var(--transition);
    text-decoration: none;
}

.floating-wa-btn:hover {
    background: #128c7e;
    color: var(--white);
    transform: scale(1.1);
}

/* ---- Education Disclaimer ---- */
.education-disclaimer {
    background: #fffbeb;
    border-top: 3px solid var(--warning);
    padding: 1.25rem 0;
    margin-top: 1rem;
}
.disclaimer-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--gray-700);
    line-height: 1.6;
}
.disclaimer-icon {
    color: var(--warning);
    font-size: 1.25rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* ---- Footer ---- */
.footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 0;
}

.footer h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

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

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links li i {
    color: var(--primary-light);
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact li i {
    color: var(--primary-light);
    margin-top: 0.25rem;
    font-size: 1.1rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    padding-left: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ---- Forms ---- */
.form-control, .form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13,148,136,0.15);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

/* ---- Page Header / Breadcrumb ---- */
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a3a5c 100%);
    color: var(--white);
    padding: 5rem 0 3rem;
    text-align: center;
    position: relative;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.8;
    font-size: 1.1rem;
}

.breadcrumb-custom {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.breadcrumb-custom a {
    color: var(--primary-light);
}

.breadcrumb-custom span {
    opacity: 0.6;
}

/* ---- Article Cards ---- */
.article-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.article-thumb {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    position: relative;
}

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.3);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.article-body {
    padding: 1.5rem;
}

.article-body h5 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-body p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ---- Education Subcategory Headers ---- */
.education-subcategory {
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.education-subcategory h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0;
}

/* ---- Article Content ---- */
.article-content {
    line-height: 1.9;
    font-size: 1.05rem;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content ul {
    margin-bottom: 1rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* ---- Appointment Form ---- */
.appointment-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.appointment-sidebar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    color: var(--white);
    height: 100%;
}

.appointment-sidebar h4 {
    color: var(--white);
}

.appointment-sidebar .info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.appointment-sidebar .info-item i {
    font-size: 1.3rem;
    margin-top: 0.2rem;
    color: var(--primary-light);
}

/* ---- Auth Forms (Login/Register) ---- */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 3rem 0;
    background: var(--light-bg);
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    max-width: 550px;
    margin: 0 auto;
    width: 100%;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

/* ---- Alert Messages ---- */
.alert-custom {
    border: none;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
}

/* ---- Testimonials ---- */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
}

.testimonial-card .quote-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.testimonial-card p {
    color: var(--gray-600);
    font-style: italic;
    margin-bottom: 1.25rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-author h6 {
    margin: 0;
    font-size: 0.95rem;
}

.testimonial-author small {
    color: var(--gray-500);
}

/* ---- How It Works ---- */
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.25rem;
}

.step-card h5 {
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ---- Contact Page ---- */
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.contact-info-card .icon-box {
    width: 70px;
    height: 70px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-info-card h5 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.contact-info-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin: 0;
}

/* ---- Services Page Detail ---- */
.service-detail-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.service-detail-card .card-body {
    padding: 2.5rem;
}

.service-detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

.service-detail-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-600);
}

.service-detail-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.85rem;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 5rem 0 4rem;
        min-height: auto;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-stat {
        flex: 0 0 calc(50% - 0.5rem);
    }

    .section-padding {
        padding: 3.5rem 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .appointment-form,
    .auth-card {
        padding: 1.5rem;
    }

    .floating-call-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
    }

    .floating-wa-btn {
        bottom: 5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .search-close-btn {
        top: 1rem;
        right: 1rem;
        font-size: 1.5rem;
    }

    .search-overlay {
        padding-top: 8vh;
    }
}

@media (max-width: 575.98px) {
    .health-portal-link {
        top: 0.5rem;
        right: 0.75rem;
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }

    .hero-section {
        padding: 3.5rem 0 3rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section .lead {
        font-size: 0.9rem;
    }

    .hero-feature-item {
        font-size: 0.85rem;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-cta-group .btn-primary-custom,
    .hero-cta-group .btn-outline-custom {
        width: 100%;
        text-align: center;
    }

    .hero-stat h3 {
        font-size: 1.5rem;
    }

    .section-padding {
        padding: 2.5rem 0;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .section-header p {
        font-size: 0.85rem;
    }

    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 0.85rem;
    }

    .service-card,
    .why-card,
    .step-card,
    .doctor-card,
    .testimonial-card {
        padding: 1.25rem;
    }

    .service-icon,
    .why-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        padding: 0.65rem 1.5rem;
        font-size: 0.85rem;
    }

    .appointment-form,
    .auth-card {
        padding: 1.25rem;
    }

    .navbar-logo {
        width: 60px;
        height: 60px;
    }

    .navbar-brand span {
        font-size: 1rem;
    }

    .nav-search-btn {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .lang-toggle {
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
    }

    .nav-link.nav-highlight {
        padding: 0.25rem 0.6rem !important;
        font-size: 0.8rem !important;
    }

    .search-input {
        font-size: 1rem;
        padding: 0.85rem 1rem 0.85rem 2.5rem;
    }

    .search-overlay-content h4 {
        font-size: 1.1rem;
    }

    .floating-call-btn {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .floating-wa-btn {
        bottom: 4.5rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer h5 {
        font-size: 1rem;
    }

    .cta-section {
        padding: 2.5rem 0;
    }

    .cta-section h2 {
        font-size: 1.4rem;
    }

    .article-card {
        margin-bottom: 0.5rem;
    }

    .d-flex.gap-3 {
        gap: 0.5rem !important;
    }

    .alert {
        padding: 0.85rem;
        font-size: 0.85rem;
    }

    table {
        font-size: 0.8rem;
    }

    .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .health-portal-link {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
        top: 0.3rem;
        right: 0.5rem;
    }
}

/* ---- Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 45px;
    height: 45px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 1040;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* ---- Sinhala font support ---- */
[data-lang="si"] {
    font-family: 'Noto Sans Sinhala', 'Iskoola Pota', sans-serif;
}

[data-lang="si"] .navbar-brand {
    font-size: 1.05rem;
    margin-right: 1rem;
}

[data-lang="si"] .navbar .nav-link {
    font-size: 0.78rem;
    padding: 0.4rem 0.45rem !important;
}

[data-lang="si"] .navbar .nav-link.nav-highlight {
    white-space: normal;
    text-align: center;
    max-width: 120px;
    line-height: 1.3;
}

/* ---- Loading Spinner ---- */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-overlay.active {
    display: flex;
}

/* ---- Navbar Dropdowns ---- */
.navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    min-width: 240px;
}

.navbar .dropdown-item {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: var(--light-bg);
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        background: transparent;
    }
    .navbar .dropdown-item {
        padding: 0.4rem 1rem;
    }
}

/* ---- Distance Calculator ---- */
#distanceResult {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Patient Health Portal ---- */
.profile-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.consultation-timeline-item {
    transition: var(--transition);
}

.consultation-timeline-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ============================================
   Mobile Optimizations - English & Sinhala
   ============================================ */

/* -- Tablet (max-width: 991.98px) -- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 0.75rem 0;
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar .nav-link {
        white-space: normal;
        padding: 0.5rem 0.5rem !important;
    }

    .navbar .nav-link.nav-highlight {
        display: inline-block;
        margin: 0.25rem 0;
        white-space: normal;
        max-width: none;
    }

    .service-detail-card .card-body {
        padding: 1.5rem;
    }

    .doctor-img {
        height: 220px;
    }

    [data-lang="si"] .navbar-brand {
        font-size: 0.95rem;
    }

    [data-lang="si"] .navbar .nav-link {
        font-size: 0.85rem;
        white-space: normal;
        padding: 0.5rem 0.5rem !important;
    }

    [data-lang="si"] .navbar .nav-link.nav-highlight {
        max-width: none;
        white-space: normal;
    }
}

/* -- Mobile landscape (max-width: 767.98px) -- */
@media (max-width: 767.98px) {
    .hero-section .hero-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.9rem;
    }

    .hero-section p.lead {
        font-size: 0.95rem;
    }

    .doctor-img {
        height: 200px;
    }

    .service-detail-card .card-body {
        padding: 1.25rem;
    }

    .service-detail-card h3 {
        font-size: 1.25rem;
    }

    .cta-section .btn-white {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .footer .row > div {
        margin-bottom: 1rem;
    }

    [data-lang="si"] .hero-section h1 {
        font-size: 1.5rem;
    }

    [data-lang="si"] .section-header h2 {
        font-size: 1.5rem;
    }
}

/* -- Mobile portrait (max-width: 575.98px) -- */
@media (max-width: 575.98px) {
    /* Navbar */
    .navbar {
        padding: 0.25rem 0;
    }

    .navbar-brand {
        gap: 0.15rem;
        margin-right: 0;
    }

    .navbar-logo {
        width: 45px;
        height: 45px;
    }

    .navbar-brand span {
        font-size: 0.85rem;
    }

    .navbar-toggler {
        padding: 0.2rem 0.4rem;
        font-size: 0.9rem;
    }

    /* Hero */
    .hero-section {
        padding: 2.5rem 0 2rem;
    }

    .hero-section .hero-badge {
        font-size: 0.72rem;
        padding: 0.25rem 0.75rem;
        margin-bottom: 1rem;
    }

    .hero-section h1 {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }

    .hero-section p.lead {
        font-size: 0.82rem;
        margin-bottom: 1.25rem;
    }

    .hero-features {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-feature-item {
        font-size: 0.78rem;
        gap: 0.3rem;
    }

    .hero-feature-item i {
        font-size: 0.9rem;
    }

    .hero-stats {
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .hero-stat h3 {
        font-size: 1.2rem;
    }

    .hero-stat p {
        font-size: 0.72rem;
    }

    /* Section headers */
    .section-header {
        margin-bottom: 2rem;
    }

    /* Service detail cards */
    .service-detail-card .card-body {
        padding: 1rem;
    }

    .service-detail-card h3 {
        font-size: 1.1rem;
    }

    .service-detail-card ul li {
        font-size: 0.85rem;
        padding: 0.35rem 0;
        padding-left: 1.25rem;
    }

    /* Doctor cards */
    .doctor-img {
        height: 180px;
        font-size: 3.5rem;
    }

    .doctor-info {
        padding: 1rem;
    }

    .doctor-info h5 {
        font-size: 0.95rem;
    }

    /* Why cards */
    .why-card {
        padding: 1.25rem 1rem;
    }

    .why-card h5 {
        font-size: 0.95rem;
    }

    .why-card p {
        font-size: 0.82rem;
    }

    /* CTA */
    .cta-section .btn-white {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-bottom {
        font-size: 0.75rem;
        margin-top: 1.5rem;
        padding: 0.75rem 0;
    }

    .footer-contact li {
        font-size: 0.85rem;
    }

    /* Pricing & rate labels */
    .bg-light.px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Breadcrumb */
    .breadcrumb-custom {
        font-size: 0.78rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 1rem;
    }

    .testimonial-card p {
        font-size: 0.85rem;
    }

    /* Step cards */
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* -- Very small screens (max-width: 400px) -- */
@media (max-width: 400px) {
    .navbar-logo {
        width: 38px;
        height: 38px;
    }

    .navbar-brand span {
        font-size: 0.78rem;
    }

    .hero-section h1 {
        font-size: 1.2rem;
    }

    .hero-section p.lead {
        font-size: 0.78rem;
    }

    .hero-stat {
        flex: 0 0 calc(50% - 0.35rem);
    }

    .hero-stat h3 {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    .page-header h1 {
        font-size: 1.2rem;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        padding: 0.5rem 1rem;
        font-size: 0.78rem;
    }
}

/* ============================================
   Sinhala Mobile Optimizations
   ============================================ */

@media (max-width: 575.98px) {
    [data-lang="si"] .navbar-brand span {
        font-size: 0.72rem;
    }

    [data-lang="si"] .hero-section h1 {
        font-size: 1.15rem;
        line-height: 1.4;
    }

    [data-lang="si"] .hero-section .hero-badge {
        font-size: 0.65rem;
    }

    [data-lang="si"] .hero-section p.lead {
        font-size: 0.78rem;
        line-height: 1.6;
    }

    [data-lang="si"] .hero-feature-item {
        font-size: 0.7rem;
    }

    [data-lang="si"] .hero-stat p {
        font-size: 0.65rem;
    }

    [data-lang="si"] .section-header h2 {
        font-size: 1.15rem;
        line-height: 1.4;
    }

    [data-lang="si"] .section-header p {
        font-size: 0.78rem;
        line-height: 1.6;
    }

    [data-lang="si"] .page-header h1 {
        font-size: 1.1rem;
    }

    [data-lang="si"] .page-header p {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    [data-lang="si"] .cta-section h2 {
        font-size: 1.1rem;
    }

    [data-lang="si"] .cta-section p {
        font-size: 0.78rem;
    }

    [data-lang="si"] .btn-primary-custom,
    [data-lang="si"] .btn-outline-custom,
    [data-lang="si"] .btn-teal {
        font-size: 0.78rem;
        padding: 0.5rem 1rem;
    }

    [data-lang="si"] .why-card h5 {
        font-size: 0.85rem;
    }

    [data-lang="si"] .why-card p {
        font-size: 0.78rem;
        line-height: 1.6;
    }

    [data-lang="si"] .service-detail-card h3 {
        font-size: 1rem;
    }

    [data-lang="si"] .service-detail-card ul li {
        font-size: 0.8rem;
    }

    [data-lang="si"] .service-card h4 {
        font-size: 1rem;
    }

    [data-lang="si"] .service-card p {
        font-size: 0.82rem;
    }

    [data-lang="si"] .doctor-info h5 {
        font-size: 0.88rem;
    }

    [data-lang="si"] .footer h5 {
        font-size: 0.9rem;
    }

    [data-lang="si"] .footer-links li,
    [data-lang="si"] .footer-contact li {
        font-size: 0.8rem;
    }

    [data-lang="si"] .testimonial-card p {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    [data-lang="si"] .alert {
        font-size: 0.78rem;
        line-height: 1.6;
    }

    [data-lang="si"] table {
        font-size: 0.75rem;
    }
}

@media (max-width: 400px) {
    [data-lang="si"] .navbar-brand span {
        font-size: 0.65rem;
    }

    [data-lang="si"] .hero-section h1 {
        font-size: 1rem;
    }

    [data-lang="si"] .section-header h2 {
        font-size: 1.05rem;
    }

    [data-lang="si"] .page-header h1 {
        font-size: 1rem;
    }
}



