/* ============================================================
   VIHAS / HOSPITAL PUBLIC SITE CSS
   Place at: assets/css/public.css
   ============================================================ */

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --info: #0dcaf0;
    --success: #198754;
    --danger: #dc3545;
    --dark: #1a2035;
    --text: #334155;
    --muted: #64748b;
    --light-bg: #f0f7ff;
    --radius: 16px;
    --shadow: 0 8px 30px rgba(13, 110, 253, 0.08);
    --shadow-lg: 0 18px 50px rgba(13, 110, 253, 0.14);
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ── NAVBAR ── */
.site-navbar {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    padding: .6rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
}

.site-navbar .nav-link {
    color: #334155;
    font-weight: 500;
    font-size: .95rem;
    padding: .5rem 1rem !important;
    border-radius: 8px;
    transition: all .2s;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--primary);
    background: rgba(13,110,253,.06);
}

.btn-book {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: .5rem 1.4rem;
    font-weight: 600;
    font-size: .9rem;
    transition: all .25s;
}

.btn-book:hover {
    background: linear-gradient(135deg, #0a58ca, #084298);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13,110,253,.3);
    color: #fff !important;
}

/* ── MEGA MENU ── */
.nav-mega { position: relative; }

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 620px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
    padding: 0;
    z-index: 1060;
    border: 1px solid rgba(13,110,253,.08);
    overflow: hidden;
}

.mega-menu.mega-open,
.nav-mega:hover .mega-menu {
    display: block;
}

.mega-inner { padding: 0; }

.mega-header {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .06em;
    padding: .9rem 1.4rem;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .25rem;
    padding: 1rem;
}

.mega-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1rem;
    border-radius: 10px;
    color: #334155;
    font-weight: 500;
    font-size: .9rem;
    transition: all .2s;
}

.mega-item:hover {
    background: rgba(13,110,253,.06);
    color: var(--primary);
}

.mega-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.mega-item-emergency {
    grid-column: 1 / -1;
    background: rgba(220,53,69,.04);
    border: 1px solid rgba(220,53,69,.12);
    position: relative;
}

.mega-badge {
    margin-left: auto;
    background: #dc3545;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 20px;
}

.mega-footer {
    padding: .8rem 1.2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.mega-cta {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff !important;
    padding: .55rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .9rem;
    transition: all .25s;
}

.mega-cta:hover {
    box-shadow: 0 6px 18px rgba(13,110,253,.35);
    transform: translateY(-1px);
}

@media (max-width: 991px) {
    .mega-menu {
        position: static;
        transform: none;
        min-width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        display: none;
    }
    .mega-menu.mega-open { display: block; }
    .mega-grid { grid-template-columns: 1fr; }
}

/* ── MINI SLIDER ── */
#miniSlider {
    position: relative;
    height: 120px;
    overflow: hidden;
    background: #0d1b2a;
}

.mini-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .6s ease;
}

.mini-slide.active { opacity: 1; }

.mini-slide-caption {
    position: absolute;
    bottom: 12px;
    left: 20px;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
    background: rgba(0,0,0,.35);
    padding: .3rem .8rem;
    border-radius: 6px;
}

.mini-prev, .mini-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 5;
    transition: background .2s;
}

.mini-prev:hover, .mini-next:hover { background: rgba(255,255,255,.4); }
.mini-prev { left: 10px; }
.mini-next { right: 10px; }

/* ── EMERGENCY TICKER ── */
.after-nav-ticker {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #dc3545, #c82333);
    color: #fff;
    overflow: hidden;
    height: 38px;
    font-size: .85rem;
}

.ticker-label {
    flex-shrink: 0;
    background: rgba(0,0,0,.2);
    padding: 0 1.2rem;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
}

.ticker-content {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding: 0 3rem;
    display: flex;
    align-items: center;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── HERO SLIDER ── */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slider .carousel-item {
    height: 88vh;
    min-height: 520px;
}

.hero-slide-img {
    width: 100%;
    height: 88vh;
    min-height: 520px;
    object-fit: cover;
    object-position: center;
}

.hero-slider .carousel-caption {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    text-align: left;
    max-width: 580px;
    bottom: auto;
    right: auto;
    padding: 0;
}

.hero-caption-h1 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
    line-height: 1.2;
}

.hero-caption-p {
    color: rgba(255,255,255,.9);
    margin: 1rem 0 1.8rem;
    font-size: 1.1rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.3);
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #0dcaf0, #0d6efd);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: .75rem 1.8rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all .3s;
    box-shadow: 0 6px 20px rgba(13,110,253,.35);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(13,110,253,.45);
    color: #fff !important;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: .8;
}

.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
}

.carousel-indicators .active {
    background: #fff;
}

/* ── QUICK STATS ── */
.quick-stats {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    padding: 1.5rem 0;
    margin-top: -1px;
}

.stat-item {
    text-align: center;
    padding: 1rem .5rem;
    border-right: 1px solid rgba(255,255,255,.15);
}

.stat-item:last-child { border-right: none; }

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-lbl {
    font-size: .85rem;
    opacity: .85;
    margin-top: .25rem;
}

@media (max-width: 767px) {
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
    .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
    .stat-item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ── SECTIONS ── */
.section {
    padding: 80px 0;
}

.section-alt {
    background: #f8fafc;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #183153;
    margin-bottom: .5rem;
}

.section-title span {
    color: var(--primary);
}

.section-sub {
    max-width: 600px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1rem;
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #69d3ff, #0d6efd);
    border-radius: 4px;
    margin: 1rem 0 1.5rem;
}

.divider.mx-auto { margin-left: auto; margin-right: auto; }

/* ── DOCTOR CARDS ── */
.doctor-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(13,110,253,.08);
    transition: all .3s;
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13,110,253,.2);
}

.doc-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top center;
}

.doc-body {
    padding: 1.2rem;
}

.doc-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #183153;
}

.doc-spec {
    color: var(--primary);
    font-size: .85rem;
    font-weight: 600;
    margin-top: .15rem;
}

.doc-dept {
    color: var(--muted);
    font-size: .8rem;
    margin-bottom: .5rem;
}

.btn-book-doc {
    display: block;
    width: 100%;
    margin-top: .8rem;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .55rem;
    font-weight: 600;
    font-size: .85rem;
    transition: all .25s;
    cursor: pointer;
}

.btn-book-doc:hover {
    background: linear-gradient(135deg, #0a58ca, #084298);
    box-shadow: 0 4px 14px rgba(13,110,253,.3);
}

/* ── BOOKING SECTION ── */
.booking-section {
    background: linear-gradient(135deg, #0a1628 0%, #12263a 50%, #0d2137 100%);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.booking-section::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(13,202,240,.06);
    top: -100px;
    right: -80px;
}

.booking-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.btn-submit {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: .85rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all .25s;
    cursor: pointer;
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #0a58ca, #084298);
    box-shadow: 0 6px 20px rgba(13,110,253,.35);
}

.btn-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.otp-digit {
    width: 44px;
    height: 48px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    outline: none;
    transition: border-color .2s;
}

.otp-digit:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13,110,253,.15);
}

.slot-btn {
    min-width: 90px;
    border-radius: 8px !important;
}

.slot-btn.selected,
.slot-btn.btn-primary {
    background: #0d6efd !important;
    color: #fff !important;
    border-color: #0d6efd !important;
}

/* ── WHY CHOOSE US ── */
.why-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.4rem;
    align-items: flex-start;
}

.why-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(13,110,253,.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.why-item h6 {
    font-weight: 700;
    color: #183153;
    margin-bottom: .25rem;
}

.why-item p {
    color: var(--muted);
    font-size: .9rem;
    margin: 0;
    line-height: 1.5;
}

/* ── TESTIMONIALS ── */
.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(13,110,253,.06);
    height: 100%;
    transition: all .3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card .stars {
    color: #ffc107;
    font-size: 1rem;
    margin-bottom: .75rem;
    letter-spacing: 2px;
}

.testimonial-card p {
    color: var(--text);
    font-size: .9rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.testimonial-card .author {
    font-weight: 700;
    color: #183153;
    font-size: .9rem;
}

.testimonial-card .role {
    color: var(--muted);
    font-size: .8rem;
}

/* ── FOOTER ── */
.site-footer {
    background: var(--dark);
    color: #adb5bd;
    padding: 60px 0 0;
}

.site-footer h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.site-footer a {
    color: #adb5bd;
    transition: color .2s;
}

.site-footer a:hover {
    color: #fff;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #adb5bd;
    margin-right: .5rem;
    transition: all .25s;
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 2.5rem;
    padding: 1.2rem 0;
    font-size: .85rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .hero-slider .carousel-item,
    .hero-slide-img {
        height: 60vh;
        min-height: 400px;
    }
    .hero-slider .carousel-caption {
        left: 5%;
        max-width: 90%;
    }
    .section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }
    .booking-section { padding: 60px 0; }
}

@media (max-width: 575px) {
    .hero-slider .carousel-item,
    .hero-slide-img {
        height: 50vh;
        min-height: 340px;
    }
    .stat-num { font-size: 1.5rem; }
    .doc-img { height: 180px; }
    .booking-card { padding: 1.4rem; }
    .otp-digit { width: 38px; height: 42px; font-size: 1.1rem; }
}