/* =========================================================
   MedPrep Pakistan — main stylesheet
   ========================================================= */
:root {
    --mp-primary: #0B6E4F;
    --mp-primary-dark: #08523B;
    --mp-primary-light: #17A589;
    --mp-accent: #F4A261;
    --mp-soft: #EEF7F3;
    --mp-ink: #12312A;
    --mp-muted: #5F716B;
    --mp-border: #E3EDE9;
    --mp-radius: 18px;
}

body { font-family: 'Poppins', system-ui, sans-serif; color: var(--mp-ink); background: #fff; }
a { color: var(--mp-primary); }
a:hover { color: var(--mp-primary-dark); }
.text-primary-c { color: var(--mp-primary) !important; }
.text-muted-c { color: var(--mp-muted) !important; }
.bg-soft { background: var(--mp-soft) !important; }
.fw-800 { font-weight: 800; }

/* Buttons */
.btn-primary-c { background: var(--mp-primary); color: #fff; border: 2px solid var(--mp-primary); font-weight: 500; }
.btn-primary-c:hover, .btn-primary-c:focus { background: var(--mp-primary-dark); border-color: var(--mp-primary-dark); color: #fff; }
.btn-outline-c { border: 2px solid var(--mp-primary); color: var(--mp-primary); font-weight: 500; background: transparent; }
.btn-outline-c:hover { background: var(--mp-primary); color: #fff; }
.btn-accent { background: var(--mp-accent); color: #3a2410; border: none; font-weight: 600; }
.btn-accent:hover { background: #e8914c; color: #3a2410; }

/* Navbar */
.mp-navbar { background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--mp-border); }
.mp-navbar .nav-link, .mp-navbar .btn { white-space: nowrap; }
.mp-navbar .nav-link { font-weight: 500; color: var(--mp-ink); padding: .5rem .75rem !important; border-radius: 10px; }
.mp-navbar .nav-link:hover, .mp-navbar .nav-link.active { color: var(--mp-primary); background: var(--mp-soft); }
.mp-navbar .dropdown-menu { border: 1px solid var(--mp-border); border-radius: 14px; box-shadow: 0 14px 40px rgba(18, 49, 42, .12); padding: .5rem; }
.mp-navbar .dropdown-item { border-radius: 10px; padding: .55rem .8rem; }
.mp-navbar .dropdown-item:hover { background: var(--mp-soft); color: var(--mp-primary); }
.badge-new { font-size: .6rem; background: var(--mp-accent); color: #3a2410; vertical-align: top; }

/* Mega menu */
.mega-menu { left: 0; right: 0; margin-top: .25rem !important; }
@media (min-width: 1200px) { .mega-menu { max-width: 1080px; margin-left: auto; margin-right: auto; } }
.mega-icon { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.mega-cat:hover .text-dark { color: var(--mp-primary) !important; }
.mega-menu .dropdown-item { padding: .4rem .6rem; font-size: .92rem; }

/* Rich content (exam descriptions, CMS pages) */
.rich-content h2 { font-size: 1.35rem; font-weight: 700; margin: 1.6rem 0 .8rem; }
.rich-content h3 { font-size: 1.15rem; font-weight: 600; margin: 1.3rem 0 .6rem; }
.rich-content p, .rich-content li { color: #3c4f49; line-height: 1.75; }
.rich-content ul { padding-left: 1.2rem; }
.rich-content > :first-child { margin-top: 0; }

/* Page header (inner pages) */
.page-header { background: linear-gradient(135deg, var(--mp-soft) 0%, #fff 70%); padding: 56px 0 40px; border-bottom: 1px solid var(--mp-border); }
.page-header h1 { font-weight: 800; font-size: 2.3rem; }
.breadcrumb { font-size: .85rem; }
.breadcrumb a { text-decoration: none; }

/* Hero */
.hero { background: radial-gradient(circle at 85% 20%, #d9f1e7 0, transparent 45%), linear-gradient(135deg, var(--mp-soft) 0%, #fff 60%); padding: 80px 0 60px; }
.hero h1 { font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.18; letter-spacing: -.5px; }
.hero h1 span { color: var(--mp-primary); }
.hero-card { background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(11, 110, 79, .14); padding: 28px; }
.exam-pill { display: block; border: 1px solid var(--mp-border); border-radius: 14px; padding: 14px 16px; transition: .2s; background: #fff; color: var(--mp-ink); text-decoration: none; height: 100%; }
.exam-pill:hover { border-color: var(--mp-primary); background: var(--mp-soft); color: var(--mp-ink); transform: translateY(-2px); }
.exam-pill i { font-size: 1.5rem; color: var(--mp-primary); }

/* Stats */
.stat-box { background: #fff; border: 1px solid var(--mp-border); border-radius: var(--mp-radius); padding: 22px 12px; }
.stat-box h3 { font-weight: 800; color: var(--mp-primary); margin: 0; font-size: 1.9rem; }
.stat-box p { margin: 0; color: var(--mp-muted); font-size: .88rem; }

/* Sections */
.section { padding: 72px 0; }
.section-title { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.3px; }
.section-sub { color: var(--mp-muted); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mp-primary); background: var(--mp-soft); padding: 6px 14px; border-radius: 50px; margin-bottom: 12px; }

/* Generic card */
.c-card { border: 1px solid var(--mp-border); border-radius: var(--mp-radius); box-shadow: 0 6px 22px rgba(18, 49, 42, .05); transition: .25s; height: 100%; background: #fff; }
.c-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(18, 49, 42, .1); }
.c-card.static { height: auto; }
.c-card.static:hover { transform: none; box-shadow: 0 6px 22px rgba(18, 49, 42, .05); }

/* Avatar */
.avatar { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; flex-shrink: 0; object-fit: cover; }

/* Professor card */
.prof-card .prof-cover { height: 74px; border-radius: var(--mp-radius) var(--mp-radius) 0 0; background: linear-gradient(135deg, var(--mp-primary), var(--mp-primary-light)); position: relative; overflow: hidden; }
.prof-card .prof-cover::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cpath d='M0 20h30l6-12 10 26 8-20 5 6h61' fill='none' stroke='white' stroke-opacity='.18' stroke-width='2'/%3E%3C/svg%3E") repeat-x center; }
.prof-card .avatar { width: 92px; height: 92px; font-size: 1.8rem; margin-top: -46px; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); position: relative; z-index: 1; }
.prof-meta { font-size: .84rem; color: var(--mp-muted); }
.prof-stats { border-top: 1px solid var(--mp-border); border-bottom: 1px solid var(--mp-border); }
.prof-stats > div { flex: 1; text-align: center; padding: 10px 4px; }
.prof-stats > div + div { border-left: 1px solid var(--mp-border); }
.prof-stats strong { display: block; font-size: 1.1rem; color: var(--mp-primary); }
.prof-stats small { color: var(--mp-muted); font-size: .7rem; }
.stars { color: #F5B301; letter-spacing: 1px; }
.verified { color: #1D9BF0; }

/* Test card */
.test-card .badge-exam { background: var(--mp-soft); color: var(--mp-primary); font-weight: 600; }
.test-card .test-meta { font-size: .8rem; color: var(--mp-muted); }
.test-card h6 { min-height: 2.6em; }
.diff-easy { background: #E6F6EC; color: #1E7B3F; }
.diff-medium { background: #FFF4E0; color: #9A6200; }
.diff-hard { background: #FDE8E8; color: #B42318; }

/* Leaderboard */
.podium { border-radius: var(--mp-radius); padding: 26px 16px; text-align: center; color: #fff; position: relative; }
.podium.gold { background: linear-gradient(135deg, #F6C90E, #DB9A00); }
.podium.silver { background: linear-gradient(135deg, #A9B6C0, #74828D); }
.podium.bronze { background: linear-gradient(135deg, #D69463, #A3613A); }
.podium .rank { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.podium .avatar { width: 72px; height: 72px; font-size: 1.4rem; background: rgba(255, 255, 255, .28); border: 3px solid #fff; margin: 10px auto; }
.podium.first { padding-top: 40px; padding-bottom: 40px; }
.leader-table td, .leader-table th { vertical-align: middle; padding: .85rem .75rem; }
.leader-table tr.me { background: #FFF8EC; }

/* Steps */
.step-num { width: 54px; height: 54px; border-radius: 16px; background: var(--mp-soft); color: var(--mp-primary); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.feature-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--mp-soft); color: var(--mp-primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--mp-primary), var(--mp-primary-light)); border-radius: 26px; color: #fff; padding: 52px; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .08); }

/* Testimonials */
.testimonial { border-left: 4px solid var(--mp-primary); }

/* Forms */
.form-control, .form-select { border-radius: 12px; padding: .7rem 1rem; border-color: #D5E2DD; }
.form-control:focus, .form-select:focus { border-color: var(--mp-primary); box-shadow: 0 0 0 .2rem rgba(11, 110, 79, .15); }
.auth-card { max-width: 520px; margin: 0 auto; }
.role-switch .btn-check:checked + .btn { background: var(--mp-primary); color: #fff; border-color: var(--mp-primary); }
.role-switch .btn { border: 2px solid var(--mp-border); border-radius: 14px; font-weight: 500; }
.pay-option .btn-check:checked + label { border-color: var(--mp-primary); background: var(--mp-soft); }
.pay-option label { border: 2px solid var(--mp-border); border-radius: 14px; cursor: pointer; }

/* Filters sidebar */
.filter-card { position: sticky; top: 96px; }
.filter-link { display: flex; justify-content: space-between; align-items: center; padding: .55rem .8rem; border-radius: 10px; color: var(--mp-ink); text-decoration: none; }
.filter-link:hover, .filter-link.active { background: var(--mp-soft); color: var(--mp-primary); font-weight: 500; }

/* Accordion */
.accordion-item { border: 1px solid var(--mp-border); border-radius: 14px !important; overflow: hidden; margin-bottom: 10px; }
.accordion-button { font-weight: 500; }
.accordion-button:not(.collapsed) { background: var(--mp-soft); color: var(--mp-primary); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }

/* Pagination */
.pagination .page-link { border-radius: 10px; margin: 0 3px; color: var(--mp-primary); border-color: var(--mp-border); }
.pagination .active .page-link { background: var(--mp-primary); border-color: var(--mp-primary); color: #fff; }

/* Footer */
.mp-footer { background: #0D211C; color: #B9C9C3; }
.mp-footer a { color: #B9C9C3; text-decoration: none; }
.mp-footer a:hover { color: #fff; }
.mp-footer h6 { color: #fff; font-weight: 600; margin-bottom: 1rem; }
.mp-footer .social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; }
.mp-footer .social a:hover { background: var(--mp-primary); }

@media (max-width: 991px) {
    .filter-card { position: static; }
    .cta { padding: 36px 26px; }
}

/* Checkout / payments */
.step-dot { display:inline-grid; place-items:center; width:24px; height:24px; border-radius:50%; background:var(--mp-primary); color:#fff; font-size:.75rem; margin-right:.4rem; }
.pay-status-icon { width:84px; height:84px; border-radius:50%; display:grid; place-items:center; font-size:2.4rem; margin:0 auto 1rem; }
.ep-sim { max-width:420px; margin:0 auto; border-radius:18px; overflow:hidden; box-shadow:0 20px 50px rgba(0,0,0,.12); background:#fff; }
.ep-sim-head { background:#00a651; color:#fff; padding:1.1rem 1.4rem; }
@media print { .navbar, footer, .no-print, .alert { display:none !important; } .print-card { box-shadow:none !important; border:0 !important; } }

/* =========================================================
   Hero slider (home) — responsive: phones get a taller, centred layout
   ========================================================= */
.hero-slider { background: #0b2a21; }
.hero-slider .carousel-item { position: relative; min-height: clamp(400px, 52vw, 560px); overflow: hidden; }
.hero-slider .hs-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-slider .hs-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 22, 17, .82) 0%, rgba(4, 22, 17, .55) 45%, rgba(4, 22, 17, .08) 100%); }
.hero-slider .hs-content { position: relative; z-index: 2; min-height: inherit; display: flex; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.hero-slider .hs-text { max-width: 620px; color: #fff; }
.hs-badge { display: inline-block; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .5px; padding: 6px 14px; border-radius: 50px; margin-bottom: 14px; backdrop-filter: blur(4px); }
.hs-badge.soon { background: #F4A261; border-color: #F4A261; color: #3a2410; }
.hs-title { font-weight: 800; font-size: clamp(1.9rem, 4.6vw, 3.3rem); line-height: 1.12; letter-spacing: -.8px; margin: 0 0 12px; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.hs-sub { font-size: clamp(.95rem, 1.6vw, 1.15rem); opacity: .93; margin: 0; max-width: 540px; }
.hero-slider .carousel-indicators { margin-bottom: 18px; }
.hero-slider .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; border: 0; margin: 0 5px; opacity: .5; background: #fff; transition: .25s; }
.hero-slider .carousel-indicators .active { opacity: 1; width: 30px; border-radius: 10px; }
.hero-slider .hs-arrow { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4); color: #fff; display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 7%; opacity: 1; }
.hero-slider .carousel-control-prev:hover .hs-arrow, .hero-slider .carousel-control-next:hover .hs-arrow { background: rgba(255, 255, 255, .32); }
@media (max-width: 767.98px) {
    .hero-slider .carousel-item { min-height: 460px; }
    .hero-slider .hs-shade { background: linear-gradient(180deg, rgba(4, 22, 17, .55) 0%, rgba(4, 22, 17, .82) 100%); }
    .hero-slider .hs-bg { object-position: 78% center; }
    .hero-slider .hs-content { padding-top: 40px; padding-bottom: 64px; }
    .hero-slider .hs-text { text-align: center; margin: 0 auto; }
    .hero-slider .hs-text .d-flex { justify-content: center; }
    .hero-slider .hs-sub { margin-left: auto; margin-right: auto; }
    .hs-btn { font-size: .95rem; padding: .6rem 1.2rem !important; }
}
@media (prefers-reduced-motion: reduce) { .hero-slider .carousel-item { transition: none; } }

/* Responsive polish for every public page */
@media (max-width: 575.98px) {
    .section { padding: 48px 0; }
    .page-header { padding: 36px 0 26px; }
    .page-header h1 { font-size: 1.7rem; }
    .cta { padding: 32px 22px; border-radius: 20px; }
    .stat-box h3 { font-size: 1.5rem; }
    .mp-logo svg { width: 34px; height: 34px; }
}
.mp-navbar .mp-logo { max-width: calc(100vw - 90px); }
img { max-width: 100%; height: auto; }
.table-responsive { -webkit-overflow-scrolling: touch; }

/* Reward / promo / referral blocks */
.reward-card { background: linear-gradient(135deg, #3B2606, #B7791F); color: #fff; border-radius: 22px; position: relative; overflow: hidden; }
.reward-card::after { content: ""; position: absolute; right: -50px; top: -50px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.prize-tile { border-radius: 16px; padding: 16px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .25); height: 100%; }
.prize-tile .pos { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.copy-box { display: flex; gap: 8px; }
.copy-box input { font-family: ui-monospace, monospace; font-size: .85rem; }
.testi-card { border-left: 4px solid var(--mp-primary); }
.winner-badge { background: #FFF4D6; color: #8A5A00; font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; }
.disclaimer-bar { background: #FFF8E6; border-top: 1px solid #F3E2B3; border-bottom: 1px solid #F3E2B3; color: #6b4e00; font-size: .85rem; }
.credit-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; opacity: .9; }
.credit-link:hover { opacity: 1; color: #fff; }
.live-pill { background: #FDE8E8; color: #B42318; font-weight: 600; font-size: .72rem; padding: 3px 10px; border-radius: 50px; }
.live-pill i { animation: livepulse 1.4s infinite; }
@keyframes livepulse { 50% { opacity: .25; } }
.interest-chip { cursor: pointer; }
.interest-chip input { position: absolute; opacity: 0; pointer-events: none; }
.interest-chip span { display: inline-block; padding: 6px 14px; border: 2px solid var(--mp-border); border-radius: 50px; font-size: .85rem; font-weight: 500; transition: .15s; background: #fff; }
.interest-chip input:checked + span { background: var(--mp-primary); border-color: var(--mp-primary); color: #fff; }
.interest-chip input:focus-visible + span { box-shadow: 0 0 0 .2rem rgba(11, 110, 79, .25); }
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1080; background: #12312A; color: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); max-width: 720px; margin: 0 auto; font-size: .85rem; }
.cookie-bar a { color: #5EE0B5; }
.ad-slot { text-align: center; margin: 24px auto; min-height: 90px; overflow: hidden; }

/* Slider buttons never overflow on small phones */
@media (max-width: 575.98px) {
    .hero-slider .hs-btn { padding: .55rem 1.1rem; font-size: .95rem; flex: 1 1 auto; }
}

/* Navbar fits on laptop screens (1200–1399px) — no horizontal scroll */
html, body { overflow-x: clip; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .mp-navbar .nav-link { padding: .45rem .5rem !important; font-size: .93rem; }
    .mp-navbar .btn { padding-left: .9rem !important; padding-right: .9rem !important; font-size: .93rem; }
    .mp-navbar .navbar-nav { gap: 0 !important; }
    .mp-navbar .badge-new { display: none; }
}
