/* =========================================================
   Jaya Hospital - main stylesheet
   ========================================================= */

:root {
    --primary: #e5383b;       /* hospital red */
    --primary-dark: #c1272d;
    --navy: #0f2238;          /* footer / dark text */
    --text: #4a4a4a;
    --light: #f7f7f9;
    --border: #e6e6e6;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(15, 34, 56, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: #fff;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.3; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 850px; }
.section { padding: 80px 0; }
.text-center { text-align: center; }
.muted { color: #888; font-size: 14px; }
.empty { font-size: 22px; color: var(--navy); }

.section-title { font-size: 34px; margin-bottom: 40px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 6px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: var(--navy); }

/* ---------- Cards ---------- */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
    transition: transform .2s;
}
.card:hover { transform: translateY(-4px); }

/* ---------- Top bar ---------- */
.topbar { background: linear-gradient(90deg, var(--navy), #1b3a5c); color: #dbe3ec; font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 9px; padding-bottom: 9px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar i { color: var(--primary); margin-right: 5px; }
.topbar a:hover { color: #fff; }
.topbar .social { display: flex; gap: 8px; }
.topbar .social a {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.1); transition: background .2s;
}
.topbar .social i { color: #fff; margin: 0; font-size: 12px; }
.topbar .social a:hover { background: var(--primary); }

/* ---------- Header ---------- */
.header {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 50;
    border-bottom: 3px solid var(--primary);
    transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 8px 30px rgba(15,34,56,.12); }
.header .container { max-width: 1360px; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 86px; transition: min-height .3s; }
.header.scrolled .header-inner { min-height: 70px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { width: 58px; transition: width .3s; }
.header.scrolled .logo img { width: 48px; }
.logo-text strong { display: block; font-size: 22px; color: var(--navy); letter-spacing: .3px; line-height: 1.1; }
.logo-text small { display: block; font-size: 11.5px; color: #7a8594; margin-top: 3px; }

/* Menu */
.menu { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.menu > a, .dropdown > a {
    position: relative; display: block;
    padding: 30px 11px; font-weight: 500; font-size: 15px; color: var(--navy);
    transition: color .2s;
}
.header.scrolled .menu > a, .header.scrolled .dropdown > a { padding-top: 23px; padding-bottom: 23px; }
.dropdown > a i { font-size: 10px; margin-left: 3px; }

/* animated red underline */
.menu > a::after, .dropdown > a::after {
    content: ''; position: absolute; left: 11px; right: 11px; bottom: 18px;
    height: 2px; background: var(--primary); border-radius: 2px;
    transform: scaleX(0); transition: transform .25s;
}
.header.scrolled .menu > a::after, .header.scrolled .dropdown > a::after { bottom: 14px; }
.menu > a:hover, .menu a.active, .dropdown:hover > a { color: var(--primary); }
.menu > a:hover::after, .menu > a.active::after, .dropdown:hover > a::after, .dropdown > a.active::after { transform: scaleX(1); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 280px;
    background: #fff; border-radius: 0 0 10px 10px; overflow: hidden;
    box-shadow: 0 15px 35px rgba(15,34,56,.15); border-top: 3px solid var(--primary);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .25s;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 12px 18px; font-size: 14.5px; color: var(--navy); border-bottom: 1px solid #f0f0f0; transition: all .2s; }
.dropdown-menu a i { width: 20px; color: var(--primary); }
.dropdown-menu a:hover { background: #fff3f3; color: var(--primary); padding-left: 24px; }

/* Right side: emergency call + button */
.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-call { display: flex; align-items: center; gap: 10px; }
.call-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: #fff0f0; color: var(--primary); font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    animation: ring 2s infinite;
}
.header-call small { display: block; font-size: 11.5px; color: #7a8594; line-height: 1.2; }
.header-call strong { display: block; color: var(--navy); font-size: 15px; line-height: 1.3; }
.header-btn { border-radius: 30px; padding: 12px 22px; box-shadow: 0 6px 18px rgba(229,56,59,.35); white-space: nowrap; }
.header-btn:hover { transform: translateY(-2px); }

@keyframes ring {
    0%   { box-shadow: 0 0 0 0 rgba(229,56,59,.45); }
    70%  { box-shadow: 0 0 0 12px rgba(229,56,59,0); }
    100% { box-shadow: 0 0 0 0 rgba(229,56,59,0); }
}

.menu-toggle {
    display: none; margin-left: auto;
    width: 44px; height: 44px; border-radius: 8px; border: none; cursor: pointer;
    background: var(--primary); color: #fff; font-size: 20px;
}

/* =========================================================
   HOME PAGE
   ========================================================= */

/* Shared section headings */
.bg-light { background: var(--light); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.heading { font-size: 38px; margin-bottom: 14px; }
.heading.light { color: #fff; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--primary); font-weight: 700; font-size: 14px;
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.eyebrow.light { color: #ffb3b4; }
.link-arrow { color: var(--primary); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }
.btn i { margin: 0 3px; }
.btn-lg { padding: 15px 30px; border-radius: 40px; }
.btn-outline { border: 2px solid rgba(255,255,255,.8); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* ---------- Hero slider ---------- */
.slider { position: relative; overflow: hidden; background: var(--navy); }
.hero { height: 640px; display: flex; align-items: center; }
.slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.08);
    transition: opacity 1.2s, transform 6s linear;
}
.slide.active { opacity: 1; transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,34,56,.92) 0%, rgba(15,34,56,.7) 45%, rgba(15,34,56,.15) 100%); }
.hero-content { position: relative; z-index: 2; color: #fff; padding-bottom: 60px; }
.hero-content > * { max-width: 640px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(229,56,59,.2); border: 1px solid rgba(229,56,59,.6);
    padding: 7px 16px; border-radius: 30px; font-size: 14px; margin-bottom: 20px;
}
.hero-badge i { color: #ff7a7c; }
.hero h1 { color: #fff; font-size: 54px; line-height: 1.15; margin-bottom: 20px; }
.hero p { font-size: 17px; color: #d7dee7; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-content > * { animation: fadeUp .9s both; }
.hero-content > *:nth-child(2) { animation-delay: .15s; }
.hero-content > *:nth-child(3) { animation-delay: .3s; }
.hero-content > *:nth-child(4) { animation-delay: .45s; }

.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1);
    color: #fff; cursor: pointer; font-size: 16px; transition: background .2s;
}
.slider-btn:hover { background: var(--primary); border-color: var(--primary); }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
.slider-dots { position: absolute; bottom: 95px; right: 6%; z-index: 3; display: flex; justify-content: flex-end; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 10px; border: none; background: rgba(255,255,255,.5); cursor: pointer; transition: all .3s; }
.slider-dots button.active { width: 30px; background: var(--primary); }

/* ---------- Quick boxes ---------- */
.quick-boxes { position: relative; z-index: 5; margin-top: -60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.quick-box { display: flex; gap: 18px; align-items: center; padding: 30px; transition: transform .25s; }
.quick-box:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.quick-box:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.quick-box:hover { transform: translateY(-6px); }
.quick-box i { font-size: 38px; }
.quick-box h3 { font-size: 19px; color: inherit; margin-bottom: 4px; }
.quick-box p { font-size: 14px; opacity: .85; }
.quick-box.red { background: var(--primary); color: #fff; }
.quick-box.navy { background: var(--navy); color: #fff; }
.quick-box.white { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.quick-box.white i { color: var(--primary); }

/* ---------- About ---------- */
.about-home { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.about-photo { position: relative; padding: 0 30px 30px 0; }
.about-photo::before { content: ''; position: absolute; right: 0; bottom: 0; width: 70%; height: 70%; border-radius: var(--radius); background: var(--primary); opacity: .12; }
.about-photo img { position: relative; border-radius: var(--radius); width: 100%; height: 540px; object-fit: cover; box-shadow: var(--shadow); }
.experience-badge {
    position: absolute; left: -20px; bottom: 60px;
    background: var(--primary); color: #fff; border-radius: var(--radius);
    padding: 20px 26px; text-align: center; box-shadow: 0 15px 30px rgba(229,56,59,.4);
    animation: float 4s ease-in-out infinite;
}
.experience-badge i { font-size: 26px; }
.experience-badge strong { display: block; font-size: 34px; line-height: 1.1; }
.experience-badge span { font-size: 13px; }
.about-excerpt p { margin-bottom: 14px; }
.about-excerpt p:nth-child(n+2) { display: none; }   /* show only the first paragraph */
.check-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 20px 0 30px; }
.check-list li { font-weight: 500; color: var(--navy); }
.check-list i { color: var(--primary); margin-right: 6px; }

/* ---------- Stats ---------- */
.stats-band { background: linear-gradient(135deg, var(--primary), #b81f25); color: #fff; padding: 50px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.25); }
.stat strong { display: block; font-size: 46px; line-height: 1.1; }
.stat strong[data-count]::after { content: '+'; }
.stat span { font-size: 15px; opacity: .9; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
    position: relative; overflow: hidden; background: #fff;
    border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow);
    border-bottom: 3px solid transparent; transition: all .3s;
}
.service-card:hover { transform: translateY(-8px); border-bottom-color: var(--primary); box-shadow: 0 20px 40px rgba(15,34,56,.12); }
.service-icon {
    width: 76px; height: 76px; border-radius: 18px; margin-bottom: 20px;
    background: #fff0f0; display: flex; align-items: center; justify-content: center;
    transition: background .3s;
}
.service-icon img { width: 44px; transition: filter .3s; }
.service-card:hover .service-icon { background: var(--primary); }
.service-card:hover .service-icon img { filter: brightness(0) invert(1); }
.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card p { font-size: 15px; margin-bottom: 16px; }

/* ---------- Working process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; text-align: center; }
.process-grid::before { content: ''; position: absolute; top: 50px; left: 12%; right: 12%; border-top: 2px dashed #f2b8b9; }
.process-step { position: relative; }
.process-icon {
    position: relative; width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 20px;
    background: #fff; border: 2px solid #f2b8b9; color: var(--primary); font-size: 34px;
    display: flex; align-items: center; justify-content: center; transition: all .3s;
}
.process-icon small {
    position: absolute; top: -4px; right: -4px; width: 34px; height: 34px; border-radius: 50%;
    background: var(--navy); color: #fff; font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.process-step:hover .process-icon { background: var(--primary); color: #fff; border-color: var(--primary); }
.process-step h4 { font-size: 19px; margin-bottom: 6px; }
.process-step p { font-size: 15px; }

/* ---------- Why choose us ---------- */
.why-us { background: linear-gradient(rgba(15,34,56,.95), rgba(15,34,56,.95)), url('../../uploads/site/footer-bg.png') center/cover; color: #c9d3de; }
.why-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; }
.why-text strong { color: #fff; }
.why-call { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; }
.why-call small { display: block; font-size: 13px; }
.why-call strong { display: block; color: #fff; font-size: 22px; }
.why-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.why-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius); padding: 28px; transition: all .3s;
}
.why-card:hover { background: var(--primary); transform: translateY(-6px); }
.why-card i { font-size: 34px; color: var(--primary); margin-bottom: 14px; transition: color .3s; }
.why-card:hover i { color: #fff; }
.why-card h3 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.why-card p { font-size: 14.5px; }
.why-card:hover p { color: #fff; }

/* ---------- Doctors (home) ---------- */
.doctor-dept { display: inline-block; background: #fff0f0; color: var(--primary); font-size: 12px; font-weight: 500; padding: 3px 12px; border-radius: 20px; margin-bottom: 8px; }

/* ---------- Leaders ---------- */
.leaders-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.leader-card { display: grid; grid-template-columns: 170px 1fr; gap: 26px; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); align-items: center; }
.leader-card img { width: 170px; height: 210px; object-fit: cover; object-position: top; border-radius: 12px; }
.quote-icon { color: var(--primary); font-size: 26px; opacity: .4; }
.leader-card p { font-style: italic; margin: 6px 0 14px; font-size: 15px; }
.leader-card h3 { font-size: 19px; }
.leader-card span { display: block; color: var(--primary); font-size: 14px; margin-bottom: 10px; }

/* ---------- Gallery preview ---------- */
.home-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; margin-bottom: 40px; }
.home-gallery a { position: relative; overflow: hidden; border-radius: 12px; }
.home-gallery a:nth-child(1), .home-gallery a:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.home-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.home-gallery span {
    position: absolute; inset: 0; background: rgba(229,56,59,.55); color: #fff; font-size: 28px;
    display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s;
}
.home-gallery a:hover img { transform: scale(1.1); }
.home-gallery a:hover span { opacity: 1; }

/* ---------- Appointment band ---------- */
.appointment-band { background: linear-gradient(120deg, var(--navy) 0%, #1b3a5c 100%); color: #c9d3de; padding: 90px 0; }
.appointment-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.contact-list { list-style: none; margin-top: 26px; }
.contact-list li { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; color: #fff; }
.contact-list i { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: rgba(229,56,59,.2); color: #ff7a7c; display: flex; align-items: center; justify-content: center; }
.appointment-band .form-card { padding: 34px; }
.appointment-band .form-card h3 { font-size: 24px; margin-bottom: 20px; }

/* ---------- Hero highlights ---------- */
.hero-highlights { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); }
.hero-highlights li { font-size: 15px; font-weight: 500; color: #fff; }
.hero-highlights i { color: var(--primary); margin-right: 6px; }
.hero-content > *:nth-child(5) { animation-delay: .6s; }

/* ---------- Service card number ---------- */
.service-num { position: absolute; top: 18px; right: 24px; font-size: 54px; font-weight: 700; line-height: 1; color: #f3f4f7; transition: color .3s; }
.service-card:hover .service-num { color: #fde3e3; }
.service-card > *:not(.service-num) { position: relative; }

/* ---------- Doctors with filter tabs ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter-tabs button {
    border: 1px solid var(--border); background: #fff; color: var(--navy);
    padding: 9px 20px; border-radius: 30px; font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; transition: all .2s;
}
.filter-tabs button:hover { border-color: var(--primary); color: var(--primary); }
.filter-tabs button.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(229,56,59,.3); }

.doctor-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.doctor-item {
    display: flex; align-items: center; gap: 16px; background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
    transition: all .3s; animation: fadeUp .4s both;
}
.doctor-item:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-4px); }
.doctor-item[hidden] { display: none; }
.doctor-item img, .doctor-item .doctor-avatar { width: 68px; height: 68px; flex-shrink: 0; margin: 0; border-radius: 50%; object-fit: cover; font-size: 28px; }
.doctor-item h3 { font-size: 17px; }
.doctor-item p { font-size: 13.5px; color: #777; line-height: 1.5; margin-bottom: 6px; }
.doctor-item .doctor-dept { margin: 0; }
.doctor-book {
    margin-left: auto; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
    background: #fff0f0; color: var(--primary); display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.doctor-book:hover { background: var(--primary); color: #fff; }

/* ---------- Floating buttons ---------- */
.float-call, .back-to-top {
    position: fixed; z-index: 60; width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    border: none; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.float-call { left: 22px; bottom: 22px; background: var(--primary); color: #fff; animation: ring 2s infinite; }
.back-to-top {
    right: 22px; bottom: 80px; background: var(--navy); color: #fff;
    opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--primary); }

/* ---------- Ayushman Bharat / free treatment section ---------- */
.scheme { background: linear-gradient(135deg, #fff7ef 0%, #fff 55%, #fff1f1 100%); position: relative; overflow: hidden; }
.scheme::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(247,148,29,.08); top: -160px; left: -140px; }
.scheme-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; position: relative; }
.scheme-badge {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
    background: #fff; border: 1px solid #f7c08a; color: #c25e00;
    padding: 7px 16px; border-radius: 30px; font-size: 14px; font-weight: 500;
    box-shadow: 0 4px 14px rgba(247,148,29,.15);
}
.scheme .heading { font-size: 40px; }
.scheme-hindi { color: #c25e00; font-weight: 500; font-size: 17px; margin-bottom: 14px; }
.scheme-text p { margin-bottom: 10px; }
.scheme-small-title { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: #7a8594; margin: 22px 0 10px; }
.card-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.card-chips span { background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 14px; }
.card-chips i { color: #f7941d; margin-right: 4px; }
.free-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 28px; }
.free-grid div {
    background: #fff; border-radius: 12px; padding: 16px 10px; text-align: center;
    font-weight: 700; color: var(--navy); font-size: 14.5px; box-shadow: var(--shadow);
    border-top: 3px solid var(--primary); transition: transform .25s;
}
.free-grid div:hover { transform: translateY(-5px); }
.free-grid i { display: block; font-size: 26px; color: var(--primary); margin-bottom: 8px; }
.free-grid small { display: block; font-weight: 400; color: #7a8594; font-size: 13px; }
.scheme-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.scheme-buttons .btn { border-radius: 30px; }

/* Poster collage */
.scheme-posters { position: relative; }
.poster { display: block; position: relative; border-radius: 14px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 20px 45px rgba(15,34,56,.18); }
.scheme .poster img { width: 100%; height: auto; border-radius: 0; transition: transform .5s; }
.poster span {
    position: absolute; inset: 0; background: rgba(15,34,56,.55); color: #fff; font-weight: 500;
    display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; transition: opacity .3s;
}
.poster:hover img { transform: scale(1.05); }
.poster:hover span { opacity: 1; }
.poster-1 { transform: rotate(-1.5deg); }
.poster-2 { width: 52%; margin: 28px auto 0; transform: rotate(2deg); }

/* ---------- Scroll reveal & animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Inner pages ---------- */
.page-banner {
    background: linear-gradient(rgba(15,34,56,.75), rgba(15,34,56,.75)), url('../../uploads/slider/slide1.jpg') center/cover;
    color: #fff; padding: 70px 0; text-align: center;
}
.page-banner h1 { color: #fff; font-size: 40px; }
.page-banner a { color: var(--primary); }

.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; margin-bottom: 60px; }
.two-col.reverse img { order: 2; }
.rounded-img { border-radius: var(--radius); width: 100%; margin-bottom: 20px; }

.content h2 { font-size: 30px; margin-bottom: 16px; }
.content h3 { font-size: 22px; margin: 26px 0 10px; color: var(--primary); }
.content p { margin-bottom: 14px; }
.content ul { margin: 0 0 16px 22px; }
.content li { margin-bottom: 6px; }

/* Message pages */
.message-layout { display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: start; }
.profile-card { position: sticky; top: 110px; text-align: center; }
.profile-card img { border-radius: var(--radius); margin-bottom: 14px; box-shadow: var(--shadow); }
.profile-card h3 { font-size: 22px; }
.profile-card p { color: var(--primary); font-weight: 500; }

/* Speciality / doctors */
.department-title { font-size: 26px; margin: 10px 0 20px; padding-left: 14px; border-left: 5px solid var(--primary); }
.doctor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 50px; }
.doctor-card { text-align: center; }
.doctor-card img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; margin: 0 auto 14px; }
.doctor-avatar {
    width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 14px;
    background: rgba(229,56,59,.1); color: var(--primary); font-size: 50px;
    display: flex; align-items: center; justify-content: center;
}
.doctor-card h3 { font-size: 18px; }
.doctor-card p { font-size: 14px; color: #777; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item img { width: 100%; height: 230px; object-fit: cover; border-radius: 10px; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 16px; right: 20px; font-size: 32px; color: #fff; background: none; border: none; cursor: pointer; }

/* Forms */
.form-card h2 { margin-bottom: 6px; }
.form-card > p { margin-bottom: 20px; }
.form input, .form textarea {
    width: 100%; padding: 13px 15px; margin-bottom: 16px;
    border: 1px solid var(--border); border-radius: 8px;
    font: inherit; background: var(--light);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--primary); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.alert-success { background: #e6f6ec; color: #1e7b45; }
.alert-error { background: #fdeaea; color: #b3261e; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: 32px; margin-bottom: 16px; }
.contact-info p { margin-bottom: 12px; }
.contact-info i { color: var(--primary); width: 22px; }
.map { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { --footer-bg: #0a1828; color: #aeb9c7; position: relative; }
.footer-wave { display: block; width: 100%; height: 70px; margin-bottom: -1px; }
.footer-wave path { fill: var(--footer-bg); }
.footer-body {
    background: linear-gradient(rgba(10,24,40,.9), rgba(10,24,40,.9)), url('../../uploads/site/footer-bg.png') center/cover;
    background-color: var(--footer-bg); padding-top: 20px;
}
/* On the home page the wave sits over the dark appointment section above it */
.footer.after-dark { margin-top: -70px; }

/* Emergency strip */
.footer-cta {
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    background: linear-gradient(120deg, var(--primary), #b81f25);
    border-radius: 20px; padding: 26px 32px; color: #fff;
    box-shadow: 0 20px 40px rgba(229,56,59,.25);
    margin-bottom: 20px; position: relative; overflow: hidden;
}
.footer-cta::after { content: '\f0f9'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: -20px; top: -30px; font-size: 160px; opacity: .08; }
.footer-cta-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.footer-cta-text small { display: block; font-size: 13px; opacity: .85; text-transform: uppercase; letter-spacing: 1px; }
.footer-cta-text a { font-size: 28px; font-weight: 700; }
.footer-cta p { flex: 1; min-width: 220px; opacity: .9; font-size: 15px; }
.btn-light { background: #fff; color: var(--primary); border-radius: 30px; position: relative; z-index: 1; }
.btn-light:hover { background: var(--navy); color: #fff; }

/* Animated heartbeat line */
.heartbeat { display: block; width: 100%; height: 60px; margin: 10px 0 40px; }
.heartbeat polyline {
    fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round;
    stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: heartbeat 4s linear infinite;
    filter: drop-shadow(0 0 6px rgba(229,56,59,.8));
}
@keyframes heartbeat { 0% { stroke-dashoffset: 1400; } 60%, 100% { stroke-dashoffset: 0; } }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer h3 { color: #fff; font-size: 20px; margin-bottom: 24px; position: relative; padding-bottom: 12px; }
.footer h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; border-radius: 3px; background: var(--primary); }

/* Brand column */
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo img { width: 62px; background: #fff; border-radius: 50%; padding: 4px; }
.footer-logo span { color: #fff; font-size: 22px; font-weight: 700; line-height: 1.2; }
.footer-logo small { display: block; font-size: 12px; font-weight: 400; color: #8d9aab; }
.footer-brand p { font-size: 14.5px; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center; color: #fff; transition: all .25s;
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-4px) rotate(-6deg); }

/* Link lists */
.footer-links { list-style: none; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 15px; transition: all .2s; }
.footer-links a::before { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; color: var(--primary); transition: transform .2s; }
.footer-links a:hover { color: #fff; transform: translateX(6px); }

/* Contact column */
.footer-contact { display: flex; gap: 14px; margin-bottom: 16px; }
.footer-contact i {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
    background: rgba(229,56,59,.15); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all .25s;
}
.footer-contact:hover i { background: var(--primary); color: #fff; }
.footer-contact strong { color: #fff; font-size: 15px; }
.footer-contact p { font-size: 14px; }

/* Bottom bar */
.copyright { border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.25); font-size: 14px; }
.copyright-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 18px; padding-bottom: 18px; }
.copyright strong { color: #fff; font-weight: 500; }
.copyright .fa-heart { color: var(--primary); animation: beat 1.2s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.2); } }

/* ---------- Responsive ---------- */
/* Header: hide the emergency number on medium screens, then switch to the mobile menu */
@media (max-width: 1400px) {
    .header-call { display: none; }
}

@media (max-width: 1250px) {
    .menu-toggle { display: block; margin-left: 0; }
    .header-actions { margin-left: auto; }
    .header-inner { min-height: 74px; }
    .menu {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; background: #fff;
        box-shadow: 0 15px 30px rgba(15,34,56,.15); padding: 8px 0;
        max-height: 75vh; overflow-y: auto;
    }
    .menu.open { display: flex; }
    .menu > a, .dropdown > a, .header.scrolled .menu > a, .header.scrolled .dropdown > a { padding: 12px 20px; border-bottom: 1px solid #f2f2f2; }
    .menu > a::after, .dropdown > a::after { display: none; }
    .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; background: #fafafa; }
    .dropdown-menu a { padding-left: 34px; }
    .topbar-left span:last-child { display: none; }
}

@media (max-width: 1100px) {
    .why-grid, .about-home, .appointment-grid { grid-template-columns: 1fr; gap: 50px; }
    .leaders-grid { grid-template-columns: 1fr; }
    .scheme-grid { grid-template-columns: 1fr; }
    .scheme-posters { max-width: 640px; margin: 0 auto; }
    .doctor-list { grid-template-columns: repeat(2, 1fr); }
    .doctor-grid, .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .hero h1 { font-size: 44px; }
}

@media (max-width: 900px) {
    .services-grid, .why-cards { grid-template-columns: repeat(2, 1fr); }
    .two-col, .message-layout, .contact-grid { grid-template-columns: 1fr; }
    .two-col.reverse img { order: 0; }
    .profile-card { position: static; max-width: 320px; margin: 0 auto; }
    .process-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .process-grid::before { display: none; }
    .stat + .stat { border-left: 0; }
    .quick-boxes { grid-template-columns: 1fr; margin-top: 0; padding: 0; }
    .quick-box, .quick-box:first-child, .quick-box:last-child { border-radius: 0; }
    .home-gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 160px; }
    .home-gallery a:nth-child(n) { grid-column: auto; grid-row: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .hero { height: 560px; }
    .slider-dots { bottom: 24px; left: 0; right: 0; justify-content: center; }
}

@media (max-width: 600px) {
    .section { padding: 60px 0; }
    .appointment-band { padding: 60px 0; }
    .heading, .section-title { font-size: 28px; }
    .hero { height: auto; min-height: 560px; padding: 60px 0; }
    .hero h1 { font-size: 34px; }
    .hero p { font-size: 15px; }
    .hero-overlay { background: rgba(15,34,56,.82); }
    .slider-btn { display: none; }
    .services-grid, .why-cards, .doctor-grid, .doctor-list, .footer-grid, .form-row, .check-list { grid-template-columns: 1fr; }
    .service-card { padding: 26px 22px; }
    .scheme .heading { font-size: 28px; }
    .free-grid { grid-template-columns: repeat(2, 1fr); }
    .scheme-buttons .btn { flex: 1; text-align: center; }
    .service-icon { width: 60px; height: 60px; margin-bottom: 14px; }
    .service-icon img { width: 36px; }
    .service-num { font-size: 42px; }
    .quick-box { padding: 20px; }
    .quick-box i { font-size: 30px; }
    .hero-highlights { gap: 8px 18px; margin-top: 26px; }
    .hero-highlights li { font-size: 14px; }
    .filter-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; }
    .filter-tabs button { flex-shrink: 0; }
    .float-call, .back-to-top { width: 46px; height: 46px; font-size: 18px; }
    .footer-cta { padding: 22px; text-align: center; justify-content: center; }
    .footer-cta-text a { font-size: 24px; }
    .footer-cta .btn { width: 100%; }
    .copyright-inner { justify-content: center; text-align: center; }
    .footer-wave { height: 40px; }
    .footer.after-dark { margin-top: -40px; }
    .leader-card { grid-template-columns: 1fr; text-align: center; }
    .leader-card img { margin: 0 auto; }
    .about-photo { padding: 0 16px 16px 0; }
    .about-photo img { height: 340px; }
    .experience-badge { left: 10px; bottom: 30px; padding: 14px 18px; }
    .stat strong { font-size: 36px; }
    .home-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item img { height: 150px; }
    .topbar-left, .header-btn { display: none; }
    .topbar-inner { justify-content: center; }
    .logo-text strong { font-size: 19px; }
    .logo-text small { font-size: 10px; }
    .logo img { width: 46px; }
    .page-banner h1 { font-size: 30px; }
}
#appointment-form { scroll-margin-top: 220px; }
