/* University details page: Apply CTAs, fee/eligibility/admission/info sections.
   Brand: royal blue #053cae, gold #f1b917. */

/* ---- Apply Now buttons ---- */
.uni-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 14px; font: 800 1rem Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; border: 0; -webkit-tap-highlight-color: transparent; transition: transform .15s, box-shadow .2s, background .2s; }
.uni-cta--apply { background: #f1b917; color: #1e2a44; box-shadow: 0 10px 26px -8px rgba(241, 185, 23, .75); }
.uni-cta--apply:hover { background: #ffc832; transform: translateY(-2px); }
.uni-cta--ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); font-weight: 700; }
.uni-cta--ghost:hover { background: rgba(255, 255, 255, .24); }
.uni-cta i { font-size: .9em; }

/* ---- Apply Now: exactly ONE persistent button per screen size ----
   desktop / tablet: the sticky card at the top of the sidebar; phones: the sticky bottom bar. */
.uni-side-apply { background: linear-gradient(145deg, #053cae, #0a56e0); color: #fff; position: sticky; top: 132px; z-index: 5; }
.uni-side-apply h3 { color: #fff; }
.uni-side-apply p { opacity: .9; font-size: .9rem; margin: 0 0 14px; line-height: 1.5; }
.uni-side-apply .uni-cta { width: 100%; }

/* ---- key facts / fee tables / empty states ---- */
.uni-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.uni-fact { background: #f8fafc; border: 1px solid #e8edf5; border-radius: 14px; padding: 12px 14px; }
.uni-fact__k { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; font-weight: 700; }
.uni-fact__v { font-size: 1rem; font-weight: 700; color: #0f172a; margin-top: 2px; overflow-wrap: anywhere; }
.uni-fee-big { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 4px; }
.uni-fee-big > div { flex: 1 1 200px; background: #f2f6ff; border: 1px solid #d5e0fb; border-radius: 16px; padding: 16px; }
.uni-fee-big b { display: block; font-size: 1.4rem; color: #053cae; }
.uni-fee-big small { color: #64748b; font-weight: 600; }
.uni-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.uni-table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .92rem; }
.uni-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: #64748b; padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.uni-table td { padding: 12px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.uni-empty { text-align: center; padding: 26px 18px; color: #475569; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 16px; }
.uni-empty i { font-size: 1.6rem; color: #94a3b8; display: block; margin-bottom: 8px; }
.uni-empty .uni-cta { margin-top: 12px; background: #053cae; color: #fff; min-height: 44px; }
.uni-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.uni-steps li { position: relative; padding: 0 0 16px 46px; }
.uni-steps li:last-child { padding-bottom: 0; }
.uni-steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: #053cae; color: #fff; font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.uni-steps li::after { content: ''; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: #dbe4f5; }
.uni-steps li:last-child::after { display: none; }
.uni-steps b { display: block; }
.uni-steps span { color: #475569; font-size: .92rem; }
.uni-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.uni-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: #e8efff; color: #053cae; font-weight: 700; text-decoration: none; font-size: .9rem; }
.uni-note { margin-top: 12px; font-size: .85rem; color: #64748b; }

/* ---- sticky Apply bar (phones) ---- */
.uni-apply-bar { display: none; }
@media (max-width: 767px) {
    .uni-apply-bar {
        display: flex; align-items: center; gap: 12px;
        position: fixed; left: 10px; right: 10px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 74px);
        z-index: 1050; padding: 10px 10px 10px 16px;
        background: #fff; border: 1px solid #dbe4f5; border-radius: 16px;
        box-shadow: 0 16px 40px -10px rgba(5, 60, 174, .4);
        font-family: Inter, system-ui, sans-serif;
    }
    .uni-apply-bar__name { flex: 1; min-width: 0; line-height: 1.25; }
    .uni-apply-bar__name b { display: block; font-size: .85rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .uni-apply-bar__name span { font-size: .75rem; color: #64748b; }
    .uni-apply-bar .uni-cta { min-height: 46px; padding: 0 20px; white-space: nowrap; }
    /* keep the page's last content and the floating call/WhatsApp buttons clear of the bar */
    body.w2-has-unibar main.content-with-sidebar { padding-bottom: 96px; }
    body.w2-has-unibar .floating-contact-widgets { bottom: calc(env(safe-area-inset-bottom, 0px) + 150px); }
    .uni-side-apply { display: none; }   /* the sticky bar below is the phone's Apply button */
}
@media (max-width: 480px) {
    .university-hero { height: auto; min-height: 300px; }
    .hero-content { padding: 20px 16px 30px; }
    .university-name { font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
    .university-logo { width: 84px; height: 84px; }
    .stats-section { margin-top: -24px; padding: 12px 16px; }
}

/* the counselling popup and this bar must never stack */
body.w2-popup-open .uni-apply-bar { display: none !important; }
