/* =========================================================================
   Uttam Pariksha – public website (home page, about, contact)
   Uses the tokens from app.css
   ========================================================================= */
body.public { background: #fff; }

/* ---------- Navbar ---------- */
.site-nav {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-nav.scrolled { border-bottom-color: var(--up-border); box-shadow: 0 8px 24px -18px rgba(15, 42, 107, .35); }
.site-nav .navbar { padding: .8rem 0; }
.site-nav .navbar-brand img { height: 46px; }
.site-nav .nav-link { font-weight: 600; color: var(--up-text-2); font-size: .9rem; padding: .5rem .95rem !important; border-radius: 9px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--up-blue); background: var(--up-blue-soft); }
.notice-strip { background: var(--up-navy); color: #c7d2fe; font-size: .8rem; padding: .45rem 0; overflow: hidden; }
.notice-strip .label { background: var(--up-orange); color: #fff; font-weight: 700; padding: .15rem .6rem; border-radius: 6px; font-size: .72rem; margin-right: .75rem; white-space: nowrap; }
.notice-strip .ticker { overflow: hidden; white-space: nowrap; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.notice-strip .ticker-inner { display: inline-block; padding-left: 100%; animation: ticker 40s linear infinite; }
.notice-strip .ticker-inner span { margin-right: 3rem; }
.notice-strip .ticker-inner span i { color: var(--up-orange-2); margin-right: .4rem; }
.notice-strip:hover .ticker-inner { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: 5rem 0 6rem;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(249, 115, 22, .12), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(37, 99, 235, .12), transparent 60%),
        linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(15, 42, 107, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, #000, transparent 85%);
    pointer-events: none;
}
.hero .container { position: relative; }
.hero-pill {
    display: inline-flex; align-items: center; gap: .5rem;
    background: #fff; border: 1px solid var(--up-border);
    padding: .35rem .9rem .35rem .4rem; border-radius: 99px;
    font-size: .8rem; font-weight: 600; color: var(--up-text-2);
    box-shadow: var(--up-shadow-sm);
}
.hero-pill .new { background: var(--up-gradient-accent); color: #fff; border-radius: 99px; padding: .15rem .6rem; font-size: .7rem; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; margin: 1.3rem 0 1.1rem; color: var(--up-navy); }
.hero h1 .grad { background: linear-gradient(135deg, #1d4ed8, #3b82f6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .accent { background: var(--up-gradient-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--up-muted); font-size: 1.12rem; max-width: 560px; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 2rem 0 2.2rem; }
.hero-trust { display: flex; gap: 1.6rem; flex-wrap: wrap; color: var(--up-text-2); font-size: .85rem; font-weight: 600; }
.hero-trust i { color: var(--up-success); margin-right: .3rem; }

.hero-visual { position: relative; padding: 1rem; }
.hero-blob {
    position: absolute; inset: 6% 4% 6% 10%;
    background: var(--up-gradient-brand);
    border-radius: 42% 58% 55% 45% / 45% 40% 60% 55%;
    box-shadow: var(--up-shadow-lg);
    animation: blob 14s ease-in-out infinite;
}
@keyframes blob { 50% { border-radius: 55% 45% 40% 60% / 55% 60% 40% 45%; } }
.hero-logo { position: relative; width: 78%; margin: 6% auto 0; display: block; filter: drop-shadow(0 25px 35px rgba(0, 0, 0, .3)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.float-card {
    position: absolute; background: #fff; border-radius: 14px; padding: .75rem .95rem;
    box-shadow: var(--up-shadow-lg); display: flex; align-items: center; gap: .7rem;
    font-size: .8rem; border: 1px solid var(--up-border-2);
    animation: float 7s ease-in-out infinite;
}
.float-card .icon-tile { width: 38px; height: 38px; font-size: 1rem; }
.float-card .v { font-weight: 800; font-size: 1rem; color: var(--up-text); line-height: 1.1; }
.float-card .l { color: var(--up-muted); font-size: .72rem; }
.float-card.c1 { top: 8%; left: -2%; animation-delay: -1s; }
.float-card.c2 { bottom: 14%; left: 0; animation-delay: -3s; }
.float-card.c3 { top: 30%; right: -3%; animation-delay: -5s; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section.alt { background: #f7f9fd; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3.2rem; }
.section-eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    color: var(--up-orange); font-weight: 700; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .12em; margin-bottom: .7rem;
}
.section-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--up-navy); }
.section-head p { color: var(--up-muted); font-size: 1.02rem; margin: .7rem 0 0; }

/* Stats band */
.stats-band {
    margin-top: -3.2rem; position: relative; z-index: 2;
    background: #fff; border-radius: var(--up-radius-lg); box-shadow: var(--up-shadow-lg);
    border: 1px solid var(--up-border-2);
    padding: 1.6rem 1rem;
}
.stat-item { text-align: center; padding: .5rem; }
.stat-item + .stat-item { border-left: 1px solid var(--up-border-2); }
.stat-item .v { font-size: 2rem; font-weight: 800; color: var(--up-navy); letter-spacing: -.03em; }
.stat-item .v span { color: var(--up-orange); }
.stat-item .l { color: var(--up-muted); font-size: .85rem; font-weight: 500; }

/* Feature cards */
.feature-card {
    background: #fff; border: 1px solid var(--up-border); border-radius: var(--up-radius-lg);
    padding: 1.8rem; height: 100%; position: relative; overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--up-shadow); border-color: transparent; }
.feature-card .f-icon {
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
    font-size: 1.5rem; color: #fff; margin-bottom: 1.2rem;
    background: var(--kpi-gradient, var(--up-gradient-brand));
    box-shadow: 0 12px 24px -10px var(--kpi-shadow, rgba(29, 78, 216, .6));
}
.feature-card h5 { font-weight: 700; font-size: 1.08rem; margin-bottom: .5rem; }
.feature-card p { color: var(--up-muted); font-size: .9rem; margin: 0; }

/* Demo exam cards */
.exam-card {
    background: #fff; border: 1px solid var(--up-border); border-radius: var(--up-radius-lg);
    padding: 1.4rem; height: 100%; display: flex; flex-direction: column;
    transition: all .25s;
}
.exam-card:hover { border-color: #bcd0fb; box-shadow: var(--up-shadow); transform: translateY(-4px); }
.exam-card .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.exam-card h5 { font-size: 1.05rem; font-weight: 700; margin-bottom: .9rem; }
.exam-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--up-muted); font-size: .8rem; margin-bottom: 1.2rem; }
.exam-meta i { color: var(--up-blue); margin-right: .25rem; }
.exam-card .btn { margin-top: auto; }

/* Series / pricing cards */
.series-card {
    position: relative; background: #fff; border: 1px solid var(--up-border);
    border-radius: var(--up-radius-lg); overflow: hidden; height: 100%;
    display: flex; flex-direction: column; transition: all .25s;
}
.series-card:hover { box-shadow: var(--up-shadow-lg); transform: translateY(-6px); border-color: transparent; }
.series-card .cover {
    position: relative; padding: 1.5rem 1.5rem 1.3rem; color: #fff;
    background: var(--up-gradient-brand); overflow: hidden;
}
.series-card .cover::after {
    content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, .55), transparent 70%);
}
.series-card.free .cover { background: linear-gradient(135deg, #047857, #10b981); }
.series-card .cover h5 { color: #fff; font-weight: 700; font-size: 1.15rem; margin: .6rem 0 0; position: relative; z-index: 1; }
.series-card .cover .ribbon { position: relative; z-index: 1; display: inline-block; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .25); border-radius: 99px; padding: .2rem .7rem; font-size: .7rem; font-weight: 700; letter-spacing: .04em; }
.series-card .off-badge { position: absolute; top: 1rem; right: 1rem; z-index: 2; background: var(--up-gradient-accent); color: #fff; font-weight: 800; font-size: .75rem; padding: .3rem .65rem; border-radius: 8px; box-shadow: 0 6px 14px -6px rgba(249, 115, 22, .7); }
.series-card .body { padding: 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.series-card .desc { color: var(--up-muted); font-size: .87rem; margin-bottom: 1.1rem; }
.series-points { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .55rem; font-size: .85rem; color: var(--up-text-2); }
.series-points i { color: var(--up-success); margin-right: .45rem; }
.price-row { display: flex; align-items: baseline; gap: .55rem; margin-top: auto; margin-bottom: 1rem; }
.price-row .price { font-size: 1.8rem; font-weight: 800; color: var(--up-navy); letter-spacing: -.03em; }
.price-row .mrp { color: #94a3b8; text-decoration: line-through; font-size: .95rem; }
.price-row .free-text { font-size: 1.6rem; font-weight: 800; color: var(--up-success); }

/* How it works */
.step-card { text-align: center; padding: 1rem 1.5rem; position: relative; }
.step-num {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.1rem;
    display: grid; place-items: center; font-weight: 800; font-size: 1.35rem;
    background: #fff; color: var(--up-blue); border: 2px dashed #bcd0fb;
    position: relative; z-index: 1;
}
.step-card:hover .step-num { background: var(--up-gradient-brand); color: #fff; border-color: transparent; }
.steps-line { position: relative; }
.steps-line::before { content: ""; position: absolute; top: 48px; left: 16%; right: 16%; border-top: 2px dashed #dbe5fb; }
.step-card h6 { font-weight: 700; font-size: 1rem; }
.step-card p { color: var(--up-muted); font-size: .88rem; }

/* Notice board */
.notice-item { display: flex; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--up-border-2); }
.notice-item:last-child { border-bottom: 0; }
.notice-date { min-width: 58px; text-align: center; background: var(--up-blue-soft); border-radius: 12px; padding: .45rem .3rem; color: var(--up-blue); line-height: 1.1; }
.notice-date .d { font-size: 1.2rem; font-weight: 800; }
.notice-date .m { font-size: .7rem; font-weight: 700; text-transform: uppercase; }

/* CTA */
.cta-box {
    position: relative; overflow: hidden;
    border-radius: 28px; padding: 3.5rem;
    background: var(--up-gradient-dark); color: #fff;
}
.cta-box::before { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(249, 115, 22, .55), transparent 65%); }
.cta-box::after { content: ""; position: absolute; left: -60px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, .5), transparent 65%); }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-box p { color: #b9c6ef; font-size: 1.02rem; }

/* Contact */
.contact-card { background: #fff; border: 1px solid var(--up-border); border-radius: var(--up-radius-lg); padding: 2rem; box-shadow: var(--up-shadow-sm); }
.contact-info-item { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--up-border-2); }
.contact-info-item:last-child { border-bottom: 0; }

/* Footer */
.site-footer { background: var(--up-navy); color: #a9b8e6; padding: 4rem 0 1.5rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 0%, rgba(249, 115, 22, .15), transparent 40%); }
.site-footer .container { position: relative; }
.footer-logo { background: #fff; border-radius: 14px; padding: .55rem .9rem; display: inline-block; }
.footer-logo img { height: 40px; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1.1rem; }
.site-footer a { color: #a9b8e6; font-size: .88rem; }
.site-footer a:hover { color: var(--up-orange-2); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; margin-right: .4rem; }
.footer-social a:hover { background: var(--up-orange); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2.5rem; padding-top: 1.4rem; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* Reveal animation on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 991.98px) {
    .hero { padding: 3rem 0 5rem; }
    .hero-visual { max-width: 420px; margin: 2.5rem auto 0; }
    .steps-line::before { display: none; }
    .stat-item + .stat-item { border-left: 0; }
    .cta-box { padding: 2.2rem 1.5rem; text-align: center; }
}

/* ---------- Institute branding (institute public pages) ---------- */
.institute-brand { display: flex; align-items: center; gap: .7rem; }
.institute-brand .inst-logo { height: 46px; width: 46px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--up-border); padding: 3px; }
.institute-brand .inst-initials { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--up-gradient-brand); color: #fff; font-weight: 800; }
.institute-brand .inst-name { font-weight: 800; color: var(--up-navy); font-size: 1.05rem; line-height: 1.15; display: flex; flex-direction: column; }
.institute-brand .inst-name small { font-weight: 500; color: var(--up-muted); font-size: .72rem; }

/* ---------- Platform page ---------- */
.module-card { position: relative; background: #fff; border: 1px solid var(--up-border); border-radius: var(--up-radius-lg); padding: 1.5rem; height: 100%; transition: all .25s; }
.module-card:hover { transform: translateY(-5px); box-shadow: var(--up-shadow); border-color: transparent; }
.module-card .m-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; margin-bottom: 1rem; background: var(--kpi-gradient, var(--up-gradient-brand)); box-shadow: 0 10px 22px -10px var(--kpi-shadow, rgba(29, 78, 216, .6)); }
.module-card h6 { font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.module-card p { color: var(--up-muted); font-size: .85rem; margin: 0; }
.module-card .m-status { position: absolute; top: 1.2rem; right: 1.2rem; }
.module-card.soon { background: #fbfcfe; }
.module-card.soon .m-icon { filter: saturate(.55); }
.audience-card { border-radius: var(--up-radius-lg); padding: 1.6rem; height: 100%; color: #fff; position: relative; overflow: hidden; }
.audience-card::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.audience-card i { font-size: 2rem; }
.audience-card h5 { color: #fff; margin: .8rem 0 .4rem; font-weight: 700; }
.audience-card p { color: rgba(255, 255, 255, .85); font-size: .87rem; margin: 0; }
.find-box { background: #fff; border-radius: var(--up-radius-lg); box-shadow: var(--up-shadow-lg); padding: 2rem; border: 1px solid var(--up-border-2); }
.institute-chip { display: flex; align-items: center; gap: .75rem; background: #fff; border: 1px solid var(--up-border); border-radius: 14px; padding: .7rem .9rem; transition: all .2s; color: var(--up-text); }
.institute-chip:hover { border-color: #bcd0fb; box-shadow: var(--up-shadow-sm); color: var(--up-text); transform: translateY(-2px); }
.institute-chip img, .institute-chip .ini { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; flex-shrink: 0; }
.institute-chip .ini { display: grid; place-items: center; background: var(--up-gradient-brand); color: #fff; font-weight: 800; font-size: .85rem; }
.plan-card { background: #fff; border: 1px solid var(--up-border); border-radius: var(--up-radius-lg); padding: 1.8rem; height: 100%; display: flex; flex-direction: column; position: relative; }
.plan-card.featured { border: 2px solid var(--up-orange); box-shadow: var(--up-shadow-lg); }
.plan-card .tag-top { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--up-gradient-accent); color: #fff; font-size: .72rem; font-weight: 800; padding: .3rem .9rem; border-radius: 99px; letter-spacing: .05em; }
.plan-card h5 { font-weight: 800; }
.plan-card .plan-for { color: var(--up-muted); font-size: .85rem; min-height: 40px; }
.plan-card ul { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; display: grid; gap: .55rem; font-size: .87rem; }
.plan-card ul i { color: var(--up-success); margin-right: .4rem; }
.plan-card .btn { margin-top: auto; }

/* ---------- Mobile refinements ---------- */
@media (max-width: 575.98px) {
    .site-nav .navbar-brand img { height: 38px; }
    .institute-brand .inst-name { font-size: .92rem; max-width: 52vw; }
    .institute-brand .inst-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .hero { padding: 2rem 0 4rem; }
    .hero h1 { font-size: 2rem; }
    .hero .lead { font-size: 1rem; }
    .hero-cta .btn { flex: 1 1 100%; }
    .float-card { display: none; }
    .section { padding: 3.5rem 0; }
    .section-head { margin-bottom: 2rem; }
    .stats-band { margin-top: -2.5rem; padding: 1rem .5rem; }
    .stat-item .v { font-size: 1.5rem; }
    .stat-item { padding: .6rem .3rem; }
    .contact-card, .find-box { padding: 1.3rem; }
    .cta-box { border-radius: 20px; }
    .notice-strip .label { font-size: .65rem; }
    .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { background: #fff; border-radius: 16px; padding: .5rem 1rem 1rem; margin-top: .6rem; box-shadow: var(--up-shadow); }
    .site-nav .navbar-collapse .d-flex .btn { flex: 1 1 auto; }
}
