/* =============================================
   Khan Healthcare Hospital — main stylesheet
   ============================================= */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: #1f2933;
    background: #ffffff;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- Top Info Bar ---------- */
.top-info-bar {
    background: #0b3b74;
    color: #cbd5e1;
    font-size: .78rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.tib-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #93c5fd;
    font-size: .77rem;
    white-space: nowrap;
}
.tib-sep { color: rgba(255,255,255,.2); font-size: .9rem; }
.tib-icon { color: #60a5fa; font-size: .8rem; }
.tib-phone {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: .82rem;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    transition: color .15s;
}
.tib-phone:hover { color: #bfdbfe; }

/* ---------- Main Navbar ---------- */
#mainNav {
    box-shadow: 0 2px 20px rgba(15,23,42,.09);
    background: #fff !important;
    padding: .6rem 0;
}
#mainNav .nav-link {
    font-weight: 500;
    color: #374151;
    font-size: .875rem;
    padding: .42rem .6rem;
    border-radius: 7px;
    transition: color .15s, background .15s;
    white-space: nowrap;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: #1d4ed8;
    background: #eff6ff;
}
#mainNav .nav-link.dropdown-toggle::after {
    vertical-align: .12em;
    opacity: .6;
}
/* Active indicator underline */
#mainNav .nav-link.active {
    position: relative;
}

/* Dropdown */
.nav-dropdown {
    min-width: 230px;
    border: 1px solid #e8f0fe !important;
    margin-top: .3rem !important;
}
.nav-dropdown .dropdown-item {
    font-size: .84rem;
    color: #374151;
    font-weight: 500;
    transition: background .12s, color .12s;
}
.nav-dropdown .dropdown-item:hover {
    background: #eff6ff;
    color: #1d4ed8;
}
.nav-dropdown .dropdown-item i {
    width: 18px;
    text-align: center;
}

/* Brand */
.brand-logo {
    width: 46px; height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: .92rem;
    box-shadow: 0 4px 14px rgba(29,78,216,.28);
    flex-shrink: 0;
    letter-spacing: -.5px;
}
.brand-name {
    font-size: .95rem;
    font-weight: 700;
    color: #1d4ed8;
    line-height: 1.25;
    white-space: nowrap;
}
.brand-sub {
    font-size: .68rem;
    color: #94a3b8;
    white-space: nowrap;
    font-weight: 400;
}

/* Announce bar (legacy compat) */
.announce-bar {
    background: #0b3b74;
    color: #e5f2ff;
    font-size: .8rem;
}
.announce-bar a { color: #bfdbfe; text-decoration: none; }
.announce-bar a:hover { color: #ffffff; }

/* ---------- Pulse dot ---------- */
.pulse-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulseDot 1.6s infinite;
    flex-shrink: 0;
}
@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
    70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* =============================================
   HERO V2
   ============================================= */
.hero-v2 {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 7rem;
    background: #f0f9ff;
}
.hero-v2-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 70% 40%, rgba(29,78,216,.12) 0, transparent 60%),
        radial-gradient(circle at 20% 70%, rgba(14,165,233,.1) 0, transparent 55%);
}
.hero-v2-overlay { position: absolute; inset: 0; pointer-events: none; }
.hero-wave {
    position: absolute; bottom: 0; left: 0; right: 0;
    line-height: 0;
}
.hero-wave svg { width: 100%; height: 60px; }

.min-vh-hero { min-height: 85vh; }

.hero-v2-badge {
    background: rgba(29,78,216,.08);
    color: #1d4ed8;
    border: 1px solid rgba(29,78,216,.18);
    border-radius: 999px;
    padding: .3rem .9rem;
    font-size: .78rem;
    font-weight: 600;
}

.hero-v2-title {
    font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.04em;
    color: #0f172a;
}

.hero-v2-highlight {
    background: linear-gradient(100deg, #1d4ed8 0%, #0ea5e9 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-v2-sub {
    font-size: 1rem;
    color: #475569;
    line-height: 1.75;
    max-width: 520px;
}

/* Hero image wrapper */
.hero-v2-images {
    position: relative;
    padding-bottom: 2rem;
}
.hero-img-main {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15,23,42,.2);
}
.hero-img-main img {
    width: 100%; height: 460px;
    object-fit: cover;
    transition: transform .35s ease;
}
.hero-img-main:hover img { transform: scale(1.03); }

/* Floating info cards */
.hero-float-card {
    position: absolute;
    display: flex; align-items: center; gap: .75rem;
    background: #fff;
    border-radius: 16px;
    padding: .75rem 1.1rem;
    box-shadow: 0 8px 30px rgba(15,23,42,.14);
    min-width: 210px;
    animation: floatUpDown 3s ease-in-out infinite alternate;
}
.top-card {
    top: -18px; right: -18px;
    animation-delay: 0s;
}
.bottom-card {
    bottom: 28px; left: -22px;
    animation-delay: 1s;
}
@keyframes floatUpDown {
    from { transform: translateY(0); }
    to   { transform: translateY(-8px); }
}

/* Stat pills */
.stat-pill {
    background: rgba(29,78,216,.07);
    border: 1px solid rgba(29,78,216,.15);
    border-radius: 12px;
    padding: .55rem 1rem;
    display: flex; flex-direction: column;
    align-items: center;
    min-width: 100px;
}
.stat-pill strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1d4ed8;
    line-height: 1.2;
}
.stat-pill span {
    font-size: .7rem;
    color: #64748b;
}

/* Hero buttons */
.btn-hero-primary {
    background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
    color: #fff; border: none;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(29,78,216,.35);
    transition: box-shadow .2s, transform .2s;
}
.btn-hero-primary:hover {
    color: #fff;
    box-shadow: 0 14px 40px rgba(29,78,216,.45);
    transform: translateY(-2px);
}
.btn-hero-outline {
    background: transparent;
    color: #1d4ed8;
    border: 2px solid rgba(29,78,216,.4);
    border-radius: 999px;
    transition: background .2s, color .2s;
}
.btn-hero-outline:hover {
    background: rgba(29,78,216,.06);
    color: #1d4ed8;
}

/* ---------- Section tags + titles ---------- */
.sec-tag {
    display: inline-block;
    background: rgba(29,78,216,.08);
    color: #1d4ed8;
    border-radius: 999px;
    padding: .25rem .85rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .03em;
}
.sec-title {
    font-size: clamp(1.55rem, 2.5vw + .8rem, 2.1rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: #0f172a;
    line-height: 1.25;
}

/* =============================================
   STRIP (dark icons bar)
   ============================================= */
.strip-icon {
    width: 52px; height: 52px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.strip-item p { line-height: 1.5; }

/* =============================================
   ABOUT GALLERY
   ============================================= */
.about-gallery {
    position: relative;
    padding: 1.5rem 2rem 2rem 0;
}
.about-img-main img {
    width: 100%; height: 420px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(15,23,42,.18);
}
.about-img-sm1 {
    position: absolute;
    bottom: -10px; right: -10px;
    width: 200px;
}
.about-img-sm1 img {
    height: 160px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15,23,42,.15);
    border: 4px solid #fff;
}
.about-img-sm2 {
    position: absolute;
    top: 28px; right: -12px;
    width: 155px;
}
.about-img-sm2 img {
    height: 130px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15,23,42,.12);
    border: 4px solid #fff;
}
.about-counter-pill {
    position: absolute;
    bottom: 30px; left: 24px;
    background: linear-gradient(135deg,#1d4ed8,#0ea5e9);
    color: #fff;
    border-radius: 18px;
    padding: .85rem 1.2rem;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(29,78,216,.4);
    line-height: 1.4;
}
.about-counter-pill .counter-num { font-size: 1.5rem; font-weight: 800; }

.check-point {
    font-size: .9rem;
    color: #374151;
    font-weight: 500;
}

/* =============================================
   SERVICES CARDS
   ============================================= */
.svc-card {
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(148,163,184,.2);
    box-shadow: 0 8px 30px rgba(15,23,42,.07);
    transition: transform .22s ease, box-shadow .22s ease;
    height: 100%;
}
.svc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 55px rgba(15,23,42,.12);
}
.svc-img-wrap {
    overflow: hidden;
    height: 200px;
}
.svc-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.svc-card:hover .svc-img-wrap img { transform: scale(1.06); }

.svc-icon {
    width: 42px; height: 42px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
}
.svc-icon-blue   { background:rgba(29,78,216,.1); color:#1d4ed8; }
.svc-icon-green  { background:rgba(16,185,129,.1); color:#047857; }
.svc-icon-amber  { background:rgba(245,158,11,.1);  color:#92400e; }
.svc-icon-purple { background:rgba(168,85,247,.1);  color:#6d28d9; }
.svc-icon-teal   { background:rgba(20,184,166,.1);  color:#0d9488; }
.svc-icon-red    { background:rgba(239,68,68,.1);   color:#b91c1c; }

.svc-link {
    font-size: .85rem;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
    transition: gap .15s;
}
.svc-link:hover { text-decoration: underline; }

/* =============================================
   COUNTERS BAND
   ============================================= */
.counters-band {
    background: linear-gradient(135deg, #0f172a 0%, #0b3b74 100%);
}
.counter-num {
    font-size: clamp(2rem,4vw,2.8rem);
    font-weight: 800;
    line-height: 1;
    color: #e0f2fe;
}
.counter-label {
    font-size: .82rem;
    color: #94a3b8;
    margin-top: .35rem;
}

/* =============================================
   PACKAGES
   ============================================= */
.pkg-card {
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(148,163,184,.18);
    box-shadow: 0 8px 28px rgba(15,23,42,.09);
    transition: transform .22s, box-shadow .22s;
    position: relative;
}
.pkg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 50px rgba(15,23,42,.14);
}
.popular-pkg {
    border: 2px solid #f59e0b;
    box-shadow: 0 12px 40px rgba(245,158,11,.2);
}
.popular-badge {
    position: absolute;
    top: 14px; right: 14px;
    background: #f59e0b;
    color: #fff;
    border-radius: 999px;
    padding: .15rem .7rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
}
.pkg-top {
    padding: 2rem 1.5rem 1.5rem;
    color: #fff;
    text-align: center;
}
.pkg-price {
    font-size: 2rem;
    font-weight: 800;
    margin-top: .4rem;
}
.pkg-list {
    list-style: none;
    padding: 0; margin: 0;
}
.pkg-list li {
    padding: .45rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: .88rem;
    color: #374151;
    display: flex; align-items: center; gap: .5rem;
}
.pkg-list li:last-child { border-bottom: none; }

/* =============================================
   WHY CHOOSE US
   ============================================= */
.why-item {
    display: flex; align-items: flex-start; gap: 1rem;
}
.why-icon {
    width: 46px; height: 46px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.why-img-grid {
    position: relative;
    padding: 1rem 1rem 2rem 0;
}
.why-img-main {
    width: 100%; height: 400px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(15,23,42,.18);
}
.why-img-sm1 {
    position: absolute;
    bottom: 0; right: 0;
    width: 185px; height: 165px;
    object-fit: cover;
    border-radius: 18px;
    border: 4px solid #fff;
    box-shadow: 0 10px 28px rgba(15,23,42,.12);
}
.why-img-sm2 {
    position: absolute;
    top: 0; right: 0;
    width: 150px; height: 140px;
    object-fit: cover;
    border-radius: 18px;
    border: 4px solid #fff;
    box-shadow: 0 10px 28px rgba(15,23,42,.12);
}

/* =============================================
   BOOKING FORM CARD
   ============================================= */
.book-form-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(15,23,42,.2);
}
.form-control, .form-select {
    border-radius: 12px;
    border-color: #d1d5db;
    padding: .65rem 1rem;
    font-size: .9rem;
}
.form-control:focus, .form-select:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}
.form-label { font-size: .82rem; color: #374151; margin-bottom: .3rem; }

/* =============================================
   BUTTONS (global overrides)
   ============================================= */
.btn-primary {
    background: linear-gradient(135deg,#1d4ed8,#0ea5e9);
    border: none;
    box-shadow: 0 8px 22px rgba(29,78,216,.3);
    color: #fff;
}
.btn-primary:hover {
    background: linear-gradient(135deg,#1e40af,#0284c7);
    box-shadow: 0 12px 30px rgba(29,78,216,.4);
    color: #fff;
}
.btn-outline-primary {
    border: 2px solid #1d4ed8;
    color: #1d4ed8;
    border-radius: 999px;
}
.btn-outline-primary:hover {
    background: #1d4ed8;
    color: #fff;
}
.rounded-pill { border-radius: 999px !important; }
.rounded-3xl  { border-radius: 28px; }
.rounded-2xl  { border-radius: 18px; }
.shadow-strong { box-shadow: 0 20px 60px rgba(15,23,42,.18); }
.shadow-md     { box-shadow: 0 8px 28px rgba(15,23,42,.12); }

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: #0f172a !important;
}
.footer-link {
    color: rgba(248,250,252,.7);
    text-decoration: none;
    transition: color .15s;
}
.footer-link:hover { color: #fff; }

/* =============================================
   FORMS (other pages)
   ============================================= */
.card-elevated {
    border-radius: 20px;
    border: 1px solid rgba(148,163,184,.2);
    background: #fff;
    box-shadow: 0 10px 35px rgba(15,23,42,.1);
}
.feature-card {
    border-radius: 22px;
    border: 1px solid rgba(148,163,184,.2);
    background: #fff;
    box-shadow: 0 8px 28px rgba(15,23,42,.07);
    transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(15,23,42,.11);
}
.feature-icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
}
.feature-icon-blue   { background:rgba(59,130,246,.1);  color:#1d4ed8; }
.feature-icon-green  { background:rgba(34,197,94,.1);   color:#15803d; }
.feature-icon-amber  { background:rgba(245,158,11,.1);  color:#92400e; }
.feature-icon-red    { background:rgba(220,38,38,.1);   color:#b91c1c; }
.feature-icon-purple { background:rgba(126,34,206,.1);  color:#7e22ce; }
.feature-icon-teal   { background:rgba(20,184,166,.1);  color:#0f766e; }

.badge-soft { border-radius:999px; padding:.15rem .6rem; font-size:.72rem; font-weight:500; }
.badge-soft-success { background:rgba(34,197,94,.1);   color:#15803d; }
.badge-soft-info    { background:rgba(59,130,246,.08); color:#1d4ed8; }
.badge-soft-warning { background:rgba(245,158,11,.12); color:#92400e; }
.badge-soft-danger  { background:rgba(220,38,38,.08);  color:#b91c1c; }

.section-light { background:#f0f9ff; }
.section-muted { background:#f1f5f9; }
.section-heading { font-size:1.4rem; font-weight:700; }
.info-pill {
    display:inline-flex; align-items:center; gap:.4rem;
    padding:.3rem .7rem; border-radius:999px;
    background:rgba(34,197,94,.08); color:#15803d;
    font-size:.78rem; font-weight:500;
}
.map-container iframe {
    border-radius:20px; border:0; min-height:320px; width:100%;
}
.hero-section { padding: 5rem 0 4rem; }
.hero-badge {
    display:inline-flex; align-items:center; gap:.5rem;
    padding:.25rem .75rem; border-radius:999px;
    background:rgba(13,110,253,.08); color:#0b5ed7;
    font-size:.8rem; font-weight:600;
}
.hero-title {
    font-size:clamp(2.1rem,3vw+1.4rem,3.1rem);
    font-weight:700; letter-spacing:-.04em;
}
.hero-highlight {
    background:linear-gradient(90deg,#1d4ed8,#0ea5e9);
    -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.hero-image-card {
    border-radius:32px;
    background:linear-gradient(145deg,#fff,#e5f2ff);
    box-shadow:0 20px 60px rgba(15,23,42,.18);
    overflow:hidden; position:relative;
}
.hero-image {
    background-size:cover; background-position:center; min-height:260px;
    position:relative; transition:transform .25s;
}
.hero-image::after {
    content:""; position:absolute; inset:0;
    background:linear-gradient(to top,rgba(15,23,42,.5),rgba(15,23,42,.05));
}
.hero-image-card:hover .hero-image { transform:scale(1.03); }
.hero-floating-card {
    position:absolute; bottom:18px; left:18px; right:18px;
    backdrop-filter:blur(14px); background:rgba(15,23,42,.8);
    border-radius:18px; padding:.75rem 1rem;
    display:flex; align-items:center; justify-content:space-between;
    color:#fff;
}
.hero-floating-title { font-size:.9rem; font-weight:600; }
.hero-floating-subtitle { font-size:.75rem; opacity:.8; }
.hero-stat { font-size:.85rem; color:#4b5563; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991.98px) {
    .min-vh-hero { min-height: unset; }
    .about-img-sm1, .about-img-sm2 { display: none; }
    .why-img-sm1, .why-img-sm2 { display: none; }
    .top-card, .bottom-card { display: none; }
    .hero-img-main img { height: 320px; }
    .announce-bar { font-size: .72rem; }
}

@media (max-width: 767.98px) {
    .hero-v2 { padding: 3.5rem 0 5rem; }
    .hero-v2-title { font-size: 1.9rem; }
    .about-gallery { padding: 0; }
    .about-img-main img { height: 280px; }
    .why-img-main { height: 260px; }
}
