/* ================================================================
   HEALTHCARE HMS - PUBLIC WEBSITE CSS
   Modern, Responsive, Medical Theme
   ================================================================ */

/* ===== CSS Variables ===== */
:root {
    --ws-primary: var(--primary, #2563EB);
    --ws-secondary: var(--secondary, #10B981);
    --ws-accent: #06B6D4;
    --ws-dark: #0f172a;
    --ws-light: #f8fafc;
    --ws-gray: #64748b;
    --ws-border: #e2e8f0;
    --ws-shadow: 0 4px 24px rgba(0,0,0,0.06);
    --ws-shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --ws-radius: 16px;
    --ws-radius-sm: 10px;
    --ws-transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ===== Base ===== */
* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; margin: 0; padding: 0; color: var(--ws-dark); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--ws-transition); }

/* ===== Accessibility ===== */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 3px solid var(--ws-primary);
    outline-offset: 2px;
}
.ws-btn:focus-visible {
    outline: 3px solid var(--ws-primary);
    outline-offset: 2px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .ws-hero-float-card { animation: none; }
}

/* ===== Top Bar ===== */
.ws-top-bar { background: var(--ws-dark); color: #fff; padding: 8px 0; font-size: 0.8rem; }
.ws-top-link { color: rgba(255,255,255,0.85); margin-right: 16px; display: inline-flex; align-items: center; gap: 6px; }
.ws-top-link:hover { color: #fff; }
.ws-social-link { color: rgba(255,255,255,0.7); width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--ws-transition); }
.ws-social-link:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ===== Navbar ===== */
.ws-navbar { position: sticky; top: 0; z-index: 1000; background: #fff; padding: 14px 0; transition: var(--ws-transition); border-bottom: 1px solid transparent; }
.ws-navbar.ws-scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); border-bottom-color: var(--ws-border); background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); }
.ws-navbar .container { display: flex; align-items: center; justify-content: space-between; }
.ws-navbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ws-logo { height: 48px; width: auto; transition: var(--ws-transition); }
.ws-logo-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--ws-primary), #1d4ed8); color: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: var(--ws-transition); }
.ws-brand-text { font-size: 1.35rem; font-weight: 800; color: var(--ws-dark); letter-spacing: -0.5px; }
.ws-navbar-collapse { display: flex; align-items: center; gap: 8px; }
.ws-nav { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.ws-nav-link { padding: 10px 18px; border-radius: 10px; font-weight: 500; font-size: 0.92rem; color: var(--ws-dark); transition: var(--ws-transition); position: relative; }
.ws-nav-link:hover { background: rgba(37,99,235,0.08); color: var(--ws-primary); }
.ws-nav-link.active { background: var(--ws-primary); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,0.25); }
.ws-nav-link:focus-visible { outline: 3px solid var(--ws-primary); outline-offset: 2px; }
.ws-nav-cta { margin-left: 12px; }

/* ===== Navbar Toggle (Hamburger) ===== */
.ws-navbar-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; z-index: 1002; width: 40px; height: 40px; align-items: center; justify-content: center; }
.ws-hamburger { display: block; width: 22px; height: 2px; background: var(--ws-dark); position: relative; transition: background 0.3s ease; border-radius: 2px; }
.ws-hamburger::before, .ws-hamburger::after { content: ''; position: absolute; width: 100%; height: 2px; background: var(--ws-dark); left: 0; transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease; border-radius: 2px; }
.ws-hamburger::before { top: -7px; }
.ws-hamburger::after { bottom: -7px; }
.ws-navbar.nav-open .ws-hamburger { background: transparent; }
.ws-navbar.nav-open .ws-hamburger::before { top: 0; transform: rotate(45deg); }
.ws-navbar.nav-open .ws-hamburger::after { bottom: 0; transform: rotate(-45deg); }

/* ===== Mobile Nav Backdrop ===== */
.ws-nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.3s ease, visibility 0.3s ease; }
.ws-nav-backdrop.show { opacity: 1; visibility: visible; pointer-events: auto; }

/* ===== Mobile Nav Close Button ===== */
.ws-nav-close { display: none; position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--ws-light); align-items: center; justify-content: center; cursor: pointer; color: var(--ws-dark); font-size: 1rem; transition: var(--ws-transition); z-index: 1002; }
.ws-nav-close:hover { background: var(--ws-border); }

/* ===== Buttons ===== */
.ws-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 12px; font-weight: 600; font-size: 0.9rem; border: 2px solid transparent; cursor: pointer; transition: var(--ws-transition); text-decoration: none; position: relative; overflow: hidden; }
.ws-btn-primary { background: var(--ws-primary); color: #fff; border-color: var(--ws-primary); box-shadow: 0 4px 16px rgba(37,99,235,0.25); }
.ws-btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; transform: translateY(-3px); box-shadow: 0 12px 32px rgba(37,99,235,0.4); color: #fff; }
.ws-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.ws-btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.15); }
.ws-btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: 14px; }
.ws-btn-xl { padding: 18px 40px; font-size: 1.1rem; border-radius: 14px; }
.ws-btn-sm { padding: 8px 18px; font-size: 0.82rem; border-radius: 10px; }
.ws-link { color: var(--ws-primary); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; transition: var(--ws-transition); }
.ws-link:hover { gap: 10px; color: #1d4ed8; transform: translateX(4px); }

/* ===== Alerts ===== */
.ws-messages { padding: 16px 0 0; }
.ws-alert { padding: 12px 20px; border-radius: 10px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; animation: slideDown 0.3s ease; }
.ws-alert-success { background: #ecfdf5; color: #059669; border: 1px solid #d1fae5; }
.ws-alert-error, .ws-alert-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fee2e2; }
.ws-alert-warning { background: #fffbeb; color: #d97706; border: 1px solid #fef3c7; }
.ws-alert-info { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }
.ws-alert-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; margin-left: auto; opacity: 0.5; }
.ws-alert-close:hover { opacity: 1; }

/* ===== Hero Section ===== */
.ws-hero { position: relative; height: 85vh; min-height: 500px; max-height: 900px; overflow: hidden; }
.ws-hero-slider { position: relative; height: 100%; overflow: hidden; }
.ws-hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease; }
.ws-hero-slide.active { opacity: 1; }
.ws-hero-slide .container { display: flex; align-items: center; height: 100%; min-height: 100%; padding-top: 40px; padding-bottom: 40px; }
.ws-hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15,23,42,0.88) 0%, rgba(30,64,175,0.75) 50%, rgba(15,23,42,0.65) 100%); }
.ws-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; width: 100%; }
.ws-hero-content { position: relative; z-index: 2; color: #fff; max-width: 580px; flex-shrink: 0; }
.ws-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); padding: 8px 20px; border-radius: 30px; font-size: 0.8rem; font-weight: 500; margin-bottom: 24px; border: 1px solid rgba(255,255,255,0.2); }
.ws-hero h1 { font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1.5px; max-width: 700px; }
.ws-hero p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 36px; line-height: 1.8; max-width: 520px; }
.ws-hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.ws-hero-btns .ws-btn-xl { padding: 16px 36px; font-size: 1.05rem; border-radius: 12px; }
.ws-hero-visual { position: relative; z-index: 2; flex-shrink: 0; }
.ws-hero-image-wrapper { position: relative; width: 400px; height: 480px; }
.ws-hero-doctor-img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.ws-hero-float-card { position: absolute; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); padding: 14px 20px; border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,0.15); animation: float 3s ease-in-out infinite; }
.ws-float-card-1 { bottom: 60px; left: -30px; animation-delay: 0s; }
.ws-float-card-2 { top: 40px; right: -20px; animation-delay: 1.5s; }
.ws-float-icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--ws-primary), #1d4ed8); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.ws-float-icon-success { background: linear-gradient(135deg, var(--ws-secondary), #059669); }
.ws-hero-float-card strong { font-size: 0.85rem; color: var(--ws-dark); font-weight: 700; }
.ws-hero-float-card small { font-size: 0.72rem; color: var(--ws-gray); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.ws-hero-nav { position: absolute; bottom: 32px; right: 32px; z-index: 3; display: flex; gap: 8px; }
.ws-hero-prev, .ws-hero-next { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.1); color: #fff; font-size: 1rem; cursor: pointer; transition: var(--ws-transition); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.ws-hero-prev:hover, .ws-hero-next:hover { background: #fff; color: var(--ws-primary); border-color: #fff; transform: scale(1.05); }

/* ===== Info Bar ===== */
.ws-info-bar { background: #fff; margin-top: -40px; position: relative; z-index: 5; border-radius: var(--ws-radius); box-shadow: var(--ws-shadow-lg); transition: var(--ws-transition); }
.ws-info-item { display: flex; align-items: center; gap: 16px; padding: 28px 24px; border-right: 1px solid var(--ws-border); transition: var(--ws-transition); border-radius: var(--ws-radius-sm); }
.ws-info-item:hover { background: var(--ws-light); }
.ws-info-item:last-child { border-right: none; }
.ws-info-icon { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, var(--ws-primary), #1d4ed8); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; transition: var(--ws-transition); }
.ws-info-item:hover .ws-info-icon { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,99,235,0.3); }
.ws-info-item h6 { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--ws-dark); }
.ws-info-item p { margin: 0; font-size: 0.8rem; color: var(--ws-gray); }

/* ===== Sections ===== */
.ws-section { padding: 100px 0; }
.ws-section-header { text-align: center; margin-bottom: 56px; }
.ws-section-badge { display: inline-block; background: linear-gradient(135deg, var(--ws-primary), #1d4ed8); color: #fff; padding: 8px 22px; border-radius: 30px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.ws-section-header h2 { font-size: 2.4rem; font-weight: 800; color: var(--ws-dark); margin-bottom: 16px; letter-spacing: -0.5px; }
.ws-section-header p { color: var(--ws-gray); font-size: 1.1rem; max-width: 620px; margin: 0 auto; line-height: 1.7; }
.ws-section-footer { text-align: center; margin-top: 48px; }

/* ===== Service Cards ===== */
.ws-services-section { background: var(--ws-light); }
.ws-service-card { background: #fff; border-radius: var(--ws-radius); padding: 0; height: 100%; transition: var(--ws-transition); border: 1px solid var(--ws-border); text-align: center; overflow: hidden; }
.ws-service-card:hover { transform: translateY(-8px); box-shadow: var(--ws-shadow-lg); border-color: var(--ws-primary); }
.ws-service-img { height: 180px; overflow: hidden; }
.ws-service-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--ws-transition); }
.ws-service-card:hover .ws-service-img img { transform: scale(1.05); }
.ws-service-icon { width: 72px; height: 72px; border-radius: 16px; background: linear-gradient(135deg, var(--ws-primary), #1d4ed8); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 20px; transition: var(--ws-transition); }
.ws-service-card:hover .ws-service-icon { transform: scale(1.1) rotate(5deg); }
.ws-service-card h4 { font-size: 1.1rem; font-weight: 700; margin: 20px 10px 10px; }
.ws-service-card p { color: var(--ws-gray); font-size: 0.88rem; margin: 0 10px 16px; line-height: 1.6; }
.ws-service-card .ws-link { margin: 0 10px 20px; display: inline-flex; }

/* ===== About Section ===== */
.ws-about-content h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 18px; line-height: 1.2; }
.ws-about-content > p { color: var(--ws-gray); font-size: 1.05rem; margin-bottom: 32px; line-height: 1.7; }
.ws-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ws-feature-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--ws-radius-sm); transition: var(--ws-transition); }
.ws-feature-item:hover { background: var(--ws-light); }
.ws-feature-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--ws-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; transition: var(--ws-transition); }
.ws-feature-item:hover .ws-feature-icon { transform: scale(1.08); }
.ws-feature-item h6 { margin: 0; font-size: 0.95rem; font-weight: 700; }
.ws-feature-item p { margin: 0; font-size: 0.85rem; color: var(--ws-gray); line-height: 1.5; }
.ws-about-image { position: relative; }
.ws-about-img-main { border-radius: var(--ws-radius); overflow: hidden; box-shadow: var(--ws-shadow-lg); }
.ws-about-stats { display: flex; gap: 16px; margin-top: -40px; position: relative; z-index: 2; }
.ws-stat-box { background: #fff; border-radius: var(--ws-radius-sm); padding: 24px 28px; box-shadow: var(--ws-shadow-lg); text-align: center; flex: 1; transition: var(--ws-transition); }
.ws-stat-box:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.12); }
.ws-stat-number { display: block; font-size: 2rem; font-weight: 900; color: var(--ws-primary); }
.ws-stat-label { font-size: 0.78rem; color: var(--ws-gray); font-weight: 500; }

/* ===== Doctor Cards ===== */
.ws-doctors-section { background: var(--ws-light); }
.ws-doctor-card { background: #fff; border-radius: var(--ws-radius); overflow: hidden; transition: var(--ws-transition); border: 1px solid var(--ws-border); text-align: center; }
.ws-doctor-card:hover { transform: translateY(-8px); box-shadow: var(--ws-shadow-lg); }
.ws-doctor-img { height: 220px; overflow: hidden; background: linear-gradient(135deg, #e2e8f0, #f1f5f9); }
.ws-doctor-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--ws-transition); }
.ws-doctor-card:hover .ws-doctor-img img { transform: scale(1.05); }
.ws-doctor-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #cbd5e1; }
.ws-doctor-info { padding: 20px; }
.ws-doctor-info h5 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; }
.ws-doctor-spec { color: var(--ws-primary); font-size: 0.8rem; font-weight: 600; }
.ws-doctor-meta { display: flex; justify-content: center; gap: 12px; margin: 10px 0 14px; font-size: 0.75rem; color: var(--ws-gray); }

/* ===== CTA Section ===== */
.ws-cta-section { padding: 80px 0; background: var(--ws-light); }
.ws-cta-box { background: linear-gradient(135deg, var(--ws-primary) 0%, #1d4ed8 50%, #1e40af 100%); border-radius: var(--ws-radius); padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; color: #fff; flex-wrap: wrap; position: relative; overflow: hidden; }
.ws-cta-box::before { content: ''; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.ws-cta-box::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 300px; height: 300px; background: rgba(255,255,255,0.03); border-radius: 50%; }
.ws-cta-content { position: relative; z-index: 1; }
.ws-cta-content h2 { margin: 0 0 12px; font-size: 2rem; font-weight: 800; }
.ws-cta-content p { margin: 0; opacity: 0.9; font-size: 1.05rem; line-height: 1.6; }
.ws-cta-btns { display: flex; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.ws-cta-btns .ws-btn { padding: 16px 32px; font-size: 1rem; }

/* ===== Testimonials ===== */
.ws-testimonials-section { background: linear-gradient(180deg, var(--ws-light) 0%, #fff 100%); }
.ws-testimonial-card { background: #fff; border-radius: var(--ws-radius); padding: 32px; height: 100%; border: 1px solid var(--ws-border); transition: var(--ws-transition); position: relative; }
.ws-testimonial-card:hover { box-shadow: var(--ws-shadow-lg); transform: translateY(-4px); }
.ws-testimonial-card::before { content: '\201C'; position: absolute; top: 16px; right: 24px; font-size: 4rem; color: var(--ws-primary); opacity: 0.1; font-family: Georgia, serif; line-height: 1; }
.ws-testimonial-stars { margin-bottom: 16px; font-size: 1.1rem; }
.ws-testimonial-text { color: var(--ws-gray); font-size: 0.95rem; font-style: italic; line-height: 1.8; margin-bottom: 24px; }
.ws-testimonial-author { display: flex; align-items: center; gap: 14px; }
.ws-testimonial-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--ws-primary), #1d4ed8); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ws-testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ws-testimonial-avatar i { color: #fff; font-size: 1.2rem; }
.ws-testimonial-author h6 { margin: 0; font-size: 0.95rem; font-weight: 700; }
.ws-testimonial-author span { font-size: 0.78rem; color: var(--ws-gray); }

/* ===== FAQ Section ===== */
.ws-faq-section { background: var(--ws-light); }
.ws-faq-item { background: #fff; border-radius: var(--ws-radius-sm); margin-bottom: 12px; border: 1px solid var(--ws-border); overflow: hidden; transition: var(--ws-transition); }
.ws-faq-item:hover { border-color: var(--ws-primary); }
.ws-faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: none; border: none; cursor: pointer; font-size: 0.95rem; font-weight: 600; color: var(--ws-dark); text-align: left; transition: var(--ws-transition); }
.ws-faq-question:hover { background: var(--ws-light); }
.ws-faq-question i { transition: var(--ws-transition); font-size: 0.8rem; color: var(--ws-primary); }
.ws-faq-item.open .ws-faq-question { color: var(--ws-primary); }
.ws-faq-item.open .ws-faq-question i { transform: rotate(180deg); }
.ws-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.ws-faq-item.open .ws-faq-answer { max-height: 300px; }
.ws-faq-answer p { padding: 0 24px 20px; color: var(--ws-gray); font-size: 0.92rem; line-height: 1.8; margin: 0; }

/* ===== Gallery ===== */
.ws-gallery-item { border-radius: var(--ws-radius-sm); overflow: hidden; position: relative; aspect-ratio: 1; cursor: pointer; }
.ws-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--ws-transition); }
.ws-gallery-item:hover img { transform: scale(1.1); }
.ws-gallery-overlay { position: absolute; inset: 0; background: rgba(37,99,235,0.6); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; opacity: 0; transition: var(--ws-transition); }
.ws-gallery-item:hover .ws-gallery-overlay { opacity: 1; }

/* ===== Blog Cards ===== */
.ws-blog-section { background: var(--ws-light); }
.ws-blog-card { background: #fff; border-radius: var(--ws-radius); overflow: hidden; transition: var(--ws-transition); border: 1px solid var(--ws-border); height: 100%; display: flex; flex-direction: column; }
.ws-blog-card:hover { transform: translateY(-6px); box-shadow: var(--ws-shadow-lg); }
.ws-blog-img { height: 200px; overflow: hidden; position: relative; }
.ws-blog-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--ws-transition); }
.ws-blog-card:hover .ws-blog-img img { transform: scale(1.05); }
.ws-blog-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #e2e8f0, #f1f5f9); display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 2.5rem; }
.ws-blog-category { position: absolute; top: 12px; left: 12px; background: var(--ws-primary); color: #fff; padding: 4px 14px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
.ws-blog-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.ws-blog-meta { display: flex; gap: 16px; font-size: 0.75rem; color: var(--ws-gray); margin-bottom: 10px; }
.ws-blog-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ws-blog-content h5 { margin: 0 0 8px; font-size: 1.05rem; }
.ws-blog-content h5 a { color: var(--ws-dark); }
.ws-blog-content h5 a:hover { color: var(--ws-primary); }
.ws-blog-content p { color: var(--ws-gray); font-size: 0.85rem; flex: 1; }

/* ===== Contact ===== */
.ws-contact-section { background: linear-gradient(180deg, #fff 0%, var(--ws-light) 100%); }
.ws-contact-info { padding-right: 32px; }
.ws-contact-info h2 { font-size: 2.2rem; font-weight: 800; margin: 12px 0 16px; }
.ws-contact-info > p { color: var(--ws-gray); font-size: 1rem; margin-bottom: 32px; line-height: 1.7; }
.ws-contact-items { display: flex; flex-direction: column; gap: 24px; }
.ws-contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: var(--ws-radius-sm); transition: var(--ws-transition); }
.ws-contact-item:hover { background: var(--ws-light); }
.ws-contact-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--ws-primary), #1d4ed8); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; transition: var(--ws-transition); }
.ws-contact-item:hover .ws-contact-icon { transform: scale(1.08); }
.ws-contact-item h6 { margin: 0; font-size: 0.95rem; font-weight: 700; }
.ws-contact-item p { margin: 4px 0 0; font-size: 0.88rem; color: var(--ws-gray); line-height: 1.5; }
.ws-contact-form-card { background: #fff; border-radius: var(--ws-radius); padding: 40px; box-shadow: var(--ws-shadow-lg); border: 1px solid var(--ws-border); }
.ws-contact-form-card h4 { margin: 0 0 28px; font-weight: 700; font-size: 1.3rem; }
.ws-form-control { width: 100%; padding: 14px 18px; border: 1.5px solid var(--ws-border); border-radius: var(--ws-radius-sm); font-size: 0.9rem; font-family: inherit; transition: var(--ws-transition); background: var(--ws-light); }
.ws-form-control:focus { outline: none; border-color: var(--ws-primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); background: #fff; }
textarea.ws-form-control { resize: vertical; min-height: 120px; }

/* ===== Footer ===== */
.ws-footer { background: var(--ws-dark); color: #fff; padding: 60px 0 0; }
.ws-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ws-footer-logo { height: 40px; }
.ws-footer-logo-icon { width: 40px; height: 40px; background: var(--ws-primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.ws-footer-brand h4 { margin: 0; font-weight: 700; font-size: 1.1rem; }
.ws-footer-desc { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.ws-footer-social { display: flex; gap: 10px; }
.ws-footer-social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; transition: var(--ws-transition); }
.ws-footer-social a:hover { background: var(--ws-primary); color: #fff; }
.ws-footer-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.ws-footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--ws-primary); border-radius: 2px; }
.ws-footer-links { list-style: none; padding: 0; margin: 0; }
.ws-footer-links li { margin-bottom: 10px; }
.ws-footer-links a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: var(--ws-transition); }
.ws-footer-links a:hover { color: #fff; padding-left: 6px; }
.ws-footer-contact { list-style: none; padding: 0; margin: 0; }
.ws-footer-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.ws-footer-contact i { color: var(--ws-primary); margin-top: 3px; }
.ws-footer-contact a { color: rgba(255,255,255,0.6); }
.ws-footer-contact a:hover { color: #fff; }
.ws-footer-bottom { margin-top: 40px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ===== Back to Top ===== */
.ws-back-to-top { position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--ws-primary); color: #fff; border: none; font-size: 1rem; cursor: pointer; box-shadow: var(--ws-shadow-lg); opacity: 0; visibility: hidden; transition: var(--ws-transition); z-index: 999; display: flex; align-items: center; justify-content: center; }
.ws-back-to-top.show { opacity: 1; visibility: visible; }
.ws-back-to-top:hover { transform: translateY(-4px); background: #1d4ed8; box-shadow: 0 8px 32px rgba(37,99,235,0.4); }

/* ===== Footer Legal Links ===== */
.ws-footer-legal { display: flex; align-items: center; gap: 12px; }
.ws-footer-legal a { color: rgba(255,255,255,0.5); font-size: 0.82rem; transition: var(--ws-transition); }
.ws-footer-legal a:hover { color: #fff; }

/* ===== Footer Developer Credit ===== */
.ws-footer-credit { text-align: center; margin-top: 14px; font-size: 0.75rem; color: rgba(255,255,255,0.45); }
.ws-footer-divider { color: rgba(255,255,255,0.2); }

/* ===== Floating Action Buttons ===== */
.ws-floating-btns { position: fixed; bottom: 24px; left: 24px; z-index: 998; display: flex; flex-direction: column; gap: 12px; }
.ws-float-btn { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 50px; color: #fff; font-weight: 600; font-size: 0.88rem; box-shadow: 0 8px 32px rgba(0,0,0,0.2); transition: var(--ws-transition); text-decoration: none; }
.ws-float-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 40px rgba(0,0,0,0.25); color: #fff; }
.ws-float-btn i { font-size: 1.1rem; }
.ws-float-label { white-space: nowrap; }
.ws-float-appointment { background: linear-gradient(135deg, var(--ws-primary), #1d4ed8); }
.ws-float-appointment:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); }
.ws-float-whatsapp { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.ws-float-whatsapp:hover { background: linear-gradient(135deg, #b91c1c, #991b1b); }
@media (max-width: 991.98px) {
    .ws-floating-btns { bottom: 20px; left: 16px; gap: 10px; }
    .ws-float-btn { padding: 12px 16px; font-size: 0.82rem; }
    .ws-float-label { display: none; }
    .ws-float-btn i { font-size: 1.2rem; margin: 0; }
}

/* ===== Animations ===== */
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== Mobile Touch Enhancements ===== */
@media (hover: none) and (pointer: coarse) {
    .ws-btn { min-height: 48px; }
    .ws-nav-link { min-height: 44px; display: flex; align-items: center; }
    .ws-hero-btns .ws-btn { min-height: 56px; }
    .ws-info-item { min-height: 60px; }
    .ws-feature-item { min-height: 80px; }
    .ws-contact-item { min-height: 72px; }
    .ws-faq-question { min-height: 56px; }
}

/* ===== Scroll Reveal Animations ===== */
[data-aos="fade-up"] { animation: fadeInUp 0.6s ease forwards; }
[data-aos="fade-right"] { animation: fadeIn 0.6s ease forwards; }
[data-aos="fade-left"] { animation: fadeIn 0.6s ease forwards; }

/* ===== Mobile Responsive ===== */
@media (max-width: 991.98px) {
    /* Nav Mobile - slide-in drawer from right */
    .ws-navbar-toggle { display: flex; }
    .ws-nav-close { display: flex; }
    .ws-navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: #fff;
        box-shadow: -4px 0 24px rgba(0,0,0,0.15);
        flex-direction: column;
        align-items: stretch;
        padding: 68px 20px 24px;
        transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
        z-index: 1001;
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateX(100%);
        overscroll-behavior: contain;
    }
    .ws-navbar-collapse.show { transform: translateX(0); }
    .ws-nav { flex-direction: column; gap: 4px; list-style: none; margin: 0; padding: 0; }
    .ws-nav-link {
        padding: 14px 18px;
        border-radius: 8px;
        width: 100%;
        font-size: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    .ws-nav-cta { margin: 16px 0 0; width: 100%; display: flex; justify-content: center; }
    .ws-nav-cta .ws-btn { width: 100%; justify-content: center; }
    .ws-logo { height: 40px; }
    .ws-logo-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .ws-brand-text { font-size: 1.2rem; }

    /* Hero Mobile - fully restructured for auto height */
    .ws-hero {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible;
        background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    }
    .ws-hero-slider { position: relative; height: auto; min-height: 0; overflow: visible; }
    .ws-hero-slide {
        position: relative !important;
        inset: auto !important;
        opacity: 0 !important;
        height: 0;
        overflow: hidden;
        pointer-events: none;
        transition: opacity 0.8s ease;
    }
    .ws-hero-slide.active {
        opacity: 1 !important;
        height: auto;
        overflow: visible;
        pointer-events: auto;
    }
    .ws-hero-slide .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: auto;
        min-height: auto;
        padding: 64px 16px 28px;
    }
    .ws-hero-overlay { position: fixed; display: none; }
    .ws-hero-row { flex-direction: column; align-items: center; text-align: center; gap: 24px; width: 100%; }
    .ws-hero-content { max-width: 100%; text-align: center; position: relative; z-index: 3; }
    .ws-hero h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 16px; color: #fff; }
    .ws-hero p { font-size: 0.95rem; max-width: 100%; line-height: 1.6; margin-bottom: 24px; color: rgba(255,255,255,0.9); }
    .ws-hero-badge { margin-bottom: 16px; }
    .ws-hero-btns { justify-content: center; flex-direction: column; gap: 12px; align-items: stretch; width: 100%; }
    .ws-hero-btns .ws-btn { width: 100%; justify-content: center; min-height: 52px; }
    .ws-hero-btns .ws-btn-outline { border-color: rgba(255,255,255,0.7); color: #fff; }
    .ws-hero-btns .ws-btn-outline:hover { background: rgba(255,255,255,0.15); }
    .ws-hero-visual { display: none; }
    .ws-hero-nav {
        position: relative;
        bottom: auto; right: auto; transform: none;
        display: flex; justify-content: center;
        gap: 8px; padding: 16px 0 24px; z-index: 3;
    }
    .ws-hero-prev, .ws-hero-next { width: 40px; height: 40px; font-size: 0.85rem; background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); border-color: rgba(255,255,255,0.4); color: #fff; }

    /* Info Bar Mobile */
    .ws-info-bar { margin-top: 0; border-radius: 0; box-shadow: 0 2px 12px rgba(0,0,0,0.08); position: relative; z-index: 5; }
    .ws-info-item { border-right: none; border-bottom: 1px solid var(--ws-border); padding: 14px 16px; gap: 12px; }
    .ws-info-item:last-child { border-bottom: none; }
    .ws-info-icon { width: 44px; height: 44px; font-size: 1rem; border-radius: 10px; flex-shrink: 0; }
    .ws-info-item h6 { font-size: 0.85rem; }
    .ws-info-item p { font-size: 0.78rem; word-break: break-word; }

    /* Features Grid */
    .ws-features-grid { grid-template-columns: 1fr; gap: 12px; }
    .ws-feature-item { padding: 14px; }
    .ws-feature-icon { width: 44px; height: 44px; }

    /* About Section Mobile */
    .ws-about-content { padding-right: 0 !important; margin-bottom: 24px; }
    .ws-about-content h2 { font-size: 1.7rem; }
    .ws-about-image { margin-top: 8px; }
    .ws-about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: -28px; position: relative; z-index: 2; }

    /* CTA Section Mobile */
    .ws-cta-section { padding: 48px 0; }
    .ws-cta-box { flex-direction: column; text-align: center; padding: 32px 20px; gap: 24px; }
    .ws-cta-content h2 { font-size: 1.6rem; }
    .ws-cta-content p { font-size: 0.92rem; }
    .ws-cta-btns { justify-content: center; gap: 12px; width: 100%; flex-direction: column; }
    .ws-cta-btns .ws-btn { width: 100%; justify-content: center; min-height: 50px; flex: none; }

    /* Contact Mobile */
    .ws-contact-info { padding-right: 0; margin-bottom: 28px; }
    .ws-contact-info h2 { font-size: 1.7rem; }
    .ws-contact-icon { width: 44px; height: 44px; font-size: 1rem; }
    .ws-contact-items { gap: 12px; }

    /* Sections Mobile */
    .ws-section { padding: 56px 0; }
    .ws-section-header { margin-bottom: 36px; }
    .ws-section-header h2 { font-size: 1.7rem; }
    .ws-section-header p { font-size: 0.92rem; }

    /* Form Mobile */
    .ws-form-control { padding: 14px 16px; font-size: 0.95rem; min-height: 52px; }
    textarea.ws-form-control { min-height: 130px; }
    .ws-contact-form-card { padding: 24px; }

    /* Footer padding for floating buttons */
    .ws-footer { padding-bottom: 80px; }
}

@media (max-width: 575.98px) {
    .ws-top-bar { display: none; }
    .ws-logo { height: 36px; }
    .ws-logo-icon { width: 36px; height: 36px; font-size: 1rem; }
    .ws-brand-text { font-size: 1.05rem; }
    .ws-navbar { padding: 10px 0; }
    .ws-navbar-collapse { width: 280px; padding: 64px 20px 20px; }

    /* Hero Small Mobile */
    .ws-hero-slider { min-height: 320px; }
    .ws-hero-slide .container { padding: 52px 14px 24px; }
    .ws-hero h1 { font-size: 1.6rem; }
    .ws-hero p { font-size: 0.88rem; line-height: 1.5; }
    .ws-hero-badge { font-size: 0.7rem; padding: 6px 14px; }
    .ws-hero-btns .ws-btn { min-height: 48px; font-size: 0.92rem; padding: 12px 20px; }
    .ws-hero-nav { padding: 12px 0 20px; gap: 4px; }
    .ws-hero-prev, .ws-hero-next { width: 36px; height: 36px; font-size: 0.8rem; }

    /* Info Bar Small Mobile */
    .ws-info-bar { border-radius: 0; }
    .ws-info-item { padding: 12px 12px; gap: 10px; }
    .ws-info-icon { width: 40px; height: 40px; font-size: 0.9rem; border-radius: 8px; }
    .ws-info-item h6 { font-size: 0.8rem; }
    .ws-info-item p { font-size: 0.72rem; line-height: 1.35; }

    /* Sections Small Mobile */
    .ws-section { padding: 48px 0; }
    .ws-section-header { margin-bottom: 32px; }
    .ws-section-header h2 { font-size: 1.45rem; }
    .ws-section-header p { font-size: 0.88rem; line-height: 1.5; }
    .ws-section-badge { font-size: 0.68rem; padding: 6px 16px; }

    /* About Small Mobile */
    .ws-about-content h2 { font-size: 1.5rem; }
    .ws-about-content > p { font-size: 0.92rem; }
    .ws-about-stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: -24px; }
    .ws-stat-box { padding: 16px 12px; }
    .ws-stat-number { font-size: 1.5rem; }
    .ws-stat-label { font-size: 0.75rem; }

    /* Features Small Mobile */
    .ws-feature-item { padding: 12px; gap: 10px; }
    .ws-feature-icon { width: 40px; height: 40px; font-size: 0.95rem; }
    .ws-feature-item h6 { font-size: 0.88rem; }
    .ws-feature-item p { font-size: 0.78rem; }

    /* CTA Small Mobile */
    .ws-cta-box { padding: 24px 18px; }
    .ws-cta-content h2 { font-size: 1.35rem; }
    .ws-cta-content p { font-size: 0.85rem; }
    .ws-cta-btns .ws-btn { min-height: 48px; font-size: 0.92rem; padding: 12px 16px; }

    /* Contact Small Mobile */
    .ws-contact-info h2 { font-size: 1.5rem; }
    .ws-contact-form-card { padding: 18px; border-radius: 12px; }
    .ws-contact-form-card h4 { font-size: 1.05rem; margin-bottom: 16px; }
    .ws-form-control { padding: 12px 14px; font-size: 0.9rem; min-height: 48px; }
    textarea.ws-form-control { min-height: 110px; }
    .ws-btn-lg { min-height: 48px; padding: 12px 24px; font-size: 0.92rem; }

    /* Footer Small Mobile */
    .ws-footer { padding-top: 32px; padding-bottom: 90px; }
    .ws-footer-brand { margin-bottom: 16px; }
    .ws-footer-brand h4 { font-size: 1rem; }
    .ws-footer-title { font-size: 0.92rem; margin-bottom: 14px; }
    .ws-footer-links a { font-size: 0.82rem; }
    .ws-footer-contact li { font-size: 0.82rem; }
    .ws-footer-legal { flex-direction: column; gap: 6px; }
    .ws-footer-divider { display: none; }
    .ws-footer-bottom span { font-size: 0.75rem; }

    /* Doctor Cards Small Mobile */
    .ws-doctor-card { border-radius: 12px; }
    .ws-doctor-img { height: 180px; }
    .ws-doctor-info { padding: 16px; }
    .ws-doctor-info h5 { font-size: 0.92rem; }

    /* Service Cards Small Mobile */
    .ws-service-card { border-radius: 12px; }
    .ws-service-card h4 { font-size: 1rem; }
    .ws-service-card p { font-size: 0.82rem; }

    /* Testimonial Cards Small Mobile */
    .ws-testimonial-card { padding: 20px; border-radius: 12px; }
    .ws-testimonial-text { font-size: 0.88rem; }

    /* Blog Cards Small Mobile */
    .ws-blog-card { border-radius: 12px; }
    .ws-blog-img { height: 160px; }
    .ws-blog-content { padding: 16px; }
    .ws-blog-content h5 { font-size: 0.95rem; }

    /* Gallery Small Mobile */
    .ws-gallery-item { border-radius: 8px; }

    /* FAQ Small Mobile */
    .ws-faq-question { padding: 16px 18px; font-size: 0.88rem; }
    .ws-faq-answer p { padding: 0 18px 16px; font-size: 0.85rem; }

    /* Floating Buttons Small Mobile */
    .ws-floating-btns { bottom: 16px; left: 12px; gap: 8px; }
    .ws-float-btn { padding: 10px 14px; font-size: 0.78rem; border-radius: 40px; }
    .ws-float-btn i { font-size: 1.1rem; }
    .ws-back-to-top { bottom: 16px; right: 12px; width: 40px; height: 40px; }
}

/* ===== Additional Mobile Fixes ===== */

/* Prevent any horizontal overflow on mobile */
@media (max-width: 991.98px) {
    html, body { overflow-x: hidden; max-width: 100vw; }

    /* Info bar 2x2 grid - fix borders for col-6 layout */
    .ws-info-bar .row { margin: 0; }
    .ws-info-bar .col-6 .ws-info-item { border-right: none; border-bottom: 1px solid var(--ws-border); }
    .ws-info-bar .col-6:nth-child(odd) .ws-info-item { border-right: 1px solid var(--ws-border); }
    .ws-info-bar .col-6:nth-last-child(-n+2) .ws-info-item { border-bottom: none; }
    .ws-info-bar .col-md-3:nth-child(odd) .ws-info-item { border-right: 1px solid var(--ws-border); }

    /* CTA section responsive */
    .ws-cta-section { background: var(--ws-light); }

    /* Ensure container has proper padding */
    .container { padding-left: 16px; padding-right: 16px; }

    /* Fix floated buttons bottom spacing */
    body { padding-bottom: 0; }

    /* Floating buttons - don't overlap page content */
    .ws-floating-btns { z-index: 900; }

    /* Prevent hero buttons from overflowing */
    .ws-hero-btns { max-width: 100%; }

    /* Row gutters on mobile */
    .row.g-4, .row.g-3 { --bs-gutter-x: 1rem; --bs-gutter-y: 1rem; }

    /* Section container padding */
    .ws-section .container { padding-left: 16px; padding-right: 16px; }

    /* Contact form full-width inputs on mobile */
    .ws-contact-form-card .col-md-6 { width: 100%; }

    /* Remove hover transforms on touch devices */
    .ws-service-card:hover,
    .ws-doctor-card:hover,
    .ws-blog-card:hover,
    .ws-testimonial-card:hover { transform: none; }
}

@media (max-width: 575.98px) {
    /* Navbar ensure hamburger is visible and brand fits */
    .ws-navbar .container { padding-left: 12px; padding-right: 12px; }
    .ws-brand-text { font-size: 1rem; max-width: calc(100vw - 120px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* Hero on very small screens */
    .ws-hero-slide .container { padding-left: 14px; padding-right: 14px; }

    /* Full-width form inputs on small mobile */
    .ws-contact-form-card .row .col-md-6 { width: 100%; }

    /* Footer columns full width */
    .ws-footer .col-lg-4,
    .ws-footer .col-lg-2,
    .ws-footer .col-lg-3 { margin-bottom: 24px; }

    /* Back to top button - don't conflict with floating buttons */
    .ws-back-to-top { right: 12px; bottom: 88px; }

    /* Reduce gutter on very small */
    .row.g-4 { --bs-gutter-x: 0.75rem; --bs-gutter-y: 0.75rem; }
    .row.g-3 { --bs-gutter-x: 0.5rem; --bs-gutter-y: 0.5rem; }
}
