/* ============================================================
   GOVT DOCTOR PLATFORM — Public Stylesheet
   ============================================================ */

:root {
    --primary:    #0d6efd;
    --secondary:  #6c757d;
    --success:    #198754;
    --danger:     #dc3545;
    --warning:    #ffc107;
    --info:       #0dcaf0;
    --dark:       #212529;
    --light-bg:   #f8f9fa;
    --card-shadow: 0 2px 15px rgba(0,0,0,.08);
    --border-radius: 12px;
    --transition: .25s ease;
}

* { box-sizing: border-box; }

body.public-body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f5f7fb;
    color: #333;
    line-height: 1.7;
}

/* ── Emergency Bar ── */
.emergency-bar a { text-decoration: none; }
.emergency-bar a:hover { text-decoration: underline; }

/* ── Navbar ── */
.navbar { border-bottom: 2px solid #e9ecef; }
.navbar-brand .brand-icon { font-size: 2rem; }
.nav-link { font-weight: 500; color: #444 !important; transition: color var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }

/* ── Hero Section ── */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section .container { position: relative; }

/* ── Cards ── */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.card-img-top { border-radius: var(--border-radius) var(--border-radius) 0 0; object-fit: cover; }

/* ── Blog Cards ── */
.blog-card .card-img-top { height: 200px; }
.blog-card .badge { font-size: .7rem; }

/* ── Section Heading ── */
.section-heading {
    position: relative;
    padding-bottom: .75rem;
    margin-bottom: 2rem;
}
.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.section-heading.centered { text-align: center; }
.section-heading.centered::after { left: 50%; transform: translateX(-50%); }

/* ── Emergency Panel ── */
.emergency-card {
    border-left: 4px solid var(--danger) !important;
    transition: all var(--transition);
}
.emergency-card:hover { border-left-color: var(--primary) !important; }
.emergency-call-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}
.emergency-call-btn:hover { transform: scale(1.05); }

/* ── Pincode Finder ── */
.pincode-result-card { border-left: 3px solid var(--info); }
.facility-badge { font-size: .75rem; padding: .3rem .7rem; border-radius: 50px; }

/* ── Doctor Profile ── */
.doctor-photo {
    width: 180px; height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.cert-card { cursor: pointer; }
.cert-card img { height: 200px; object-fit: cover; border-radius: 8px; }

/* ── Child Dev & Games ── */
.game-card { cursor: pointer; }
.game-card .game-thumb {
    height: 160px; object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.age-badge {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,.6);
    color: #fff; font-size: .7rem;
    padding: .2rem .5rem;
    border-radius: 20px;
}
.badge-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--card-shadow);
}
.badge-icon { font-size: 2.5rem; }

/* ── Video Embed ── */
.video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0; overflow: hidden;
    border-radius: var(--border-radius);
}
.video-embed-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ── OPD Cards ── */
.opd-card { border-left: 4px solid var(--success); }
.opd-link-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--success); color: #fff;
    padding: .5rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 600;
    transition: background var(--transition);
}
.opd-link-btn:hover { background: #157347; color: #fff; }

/* ── Pagination ── */
.pagination .page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    border: 1px solid #dee2e6;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ── Footer ── */
.footer { border-top: 3px solid var(--primary); }
.footer a:hover { color: #fff !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-section { padding: 50px 0; }
    .doctor-photo { width: 120px; height: 120px; }
    .emergency-call-btn { padding: .6rem 1rem; font-size: .875rem; }
}

/* ── Doctor Profile Page ── */
#about .card-body {
    font-size: 1.05rem;
    line-height: 2;
    color: #333;
}

#academics .card-body { font-size: 1rem; }
#academics h5 { font-size: 1.25rem !important; }
#academics p { font-size: 1rem !important; }

#research .card-body { font-size: 1rem; }
#research .fw-semibold { font-size: 1.05rem !important; line-height: 1.5; }
#research .text-muted.small { font-size: .95rem !important; line-height: 1.7; }

#reviews .card-body { font-size: 1rem; }
#reviews .fw-semibold { font-size: 1rem; }
#reviews p.text-muted { font-size: .95rem !important; line-height: 1.7; }

#posters .card-body { font-size: 1rem; }

/* Stats strip */
.col-6.col-md-3 .fw-bold[style*="1.8rem"] { font-size: 2.4rem !important; }

/* ── Quick Nav Buttons — BIGGER ── */
.btn.btn-sm.btn-outline-primary.flex-shrink-0 {
    font-size: 1rem !important;
    padding: .65rem 1.5rem !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    border-width: 2px !important;
    letter-spacing: .2px;
}
.btn.btn-sm.btn-outline-primary.flex-shrink-0:hover {
    background: var(--primary);
    color: #fff;
}

/* Card headers bigger */
.card-header.fw-semibold {
    font-size: 1.1rem !important;
    padding: 1rem 1.25rem !important;
    font-weight: 600;
}

/* Timeline degree */
.timeline h5 { font-size: 1.2rem !important; }

/* Achievements */
#achievements .fw-semibold { font-size: 1.05rem; }
#achievements .text-muted.small { font-size: .9rem !important; }