/* =====================================================================
   SAU Scholarship Portal — public & student styles
   Bootstrap 5 + custom design system (emerald & gold)
   ===================================================================== */

:root {
    --brand:        #0b6e4f;
    --brand-600:    #0a5f45;
    --brand-700:    #064e3b;
    --brand-900:    #03281f;
    --brand-50:     #e8f5ef;
    --brand-100:    #cfeadd;
    --accent:       #f5b301;
    --accent-600:   #d99a00;
    --accent-50:    #fff7df;
    --ink:          #0f172a;
    --ink-2:        #334155;
    --muted:        #64748b;
    --line:         #e2e8f0;
    --bg:           #f5f8f6;
    --card:         #ffffff;
    --radius:       18px;
    --radius-sm:    12px;
    --shadow-sm:    0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .04);
    --shadow:       0 10px 30px -12px rgba(6, 78, 59, .25), 0 4px 12px rgba(15, 23, 42, .05);
    --shadow-lg:    0 28px 60px -20px rgba(6, 78, 59, .38);
    --ease:         cubic-bezier(.2, .8, .2, 1);
    --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-link-color-rgb: 11, 110, 79;
    --bs-link-hover-color-rgb: 6, 78, 59;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site {
    font-family: var(--bs-body-font-family);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    animation: pageIn .5s var(--ease) both;
}

@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

h1, h2, h3, h4, h5, h6 { font-weight: 800; letter-spacing: -.02em; color: var(--ink); }

a { transition: color .2s ease; }

::selection { background: var(--accent); color: var(--ink); }

.site-main { min-height: 60vh; }

.text-brand { color: var(--brand) !important; }
.bg-brand-soft { background: var(--brand-50) !important; }

/* ---------------- Buttons ---------------- */
.btn { font-weight: 600; border-radius: 12px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s ease, color .2s ease; }
.btn:active { transform: scale(.97); }

.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-600);
    --bs-btn-hover-border-color: var(--brand-600);
    --bs-btn-active-bg: var(--brand-700);
    --bs-btn-active-border-color: var(--brand-700);
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-bg: var(--brand);
    --bs-btn-disabled-border-color: var(--brand);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px -8px rgba(11, 110, 79, .6);
}
.btn-brand:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(11, 110, 79, .7); }

.btn-accent {
    --bs-btn-color: var(--ink);
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-bg: #ffc52e;
    --bs-btn-hover-border-color: #ffc52e;
    --bs-btn-active-bg: var(--accent-600);
    --bs-btn-active-color: var(--ink);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 22px -8px rgba(245, 179, 1, .8);
}
.btn-accent:hover { transform: translateY(-2px); }

.btn-soft {
    --bs-btn-color: var(--brand-700);
    --bs-btn-bg: var(--brand-50);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
}

/* Shine sweep on hover */
.btn-shine::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg);
    transition: left .7s var(--ease);
}
.btn-shine:hover::after { left: 130%; }

.form-control, .form-select {
    border-radius: 12px;
    border-color: var(--line);
    padding: .7rem .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .25rem rgba(11, 110, 79, .15);
}
.form-label { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 .25rem rgba(11, 110, 79, .15); border-color: var(--brand); }

/* ---------------- Navbar ---------------- */
.site-nav {
    padding: .9rem 0;
    transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
    background: transparent;
}
.site-nav.scrolled, body:not(.has-hero) .site-nav {
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 6px 24px -12px rgba(15, 23, 42, .18);
    padding: .55rem 0;
}
body.has-hero .site-nav:not(.scrolled) .nav-link,
body.has-hero .site-nav:not(.scrolled) .brand-text strong { color: #fff; }
body.has-hero .site-nav:not(.scrolled) .brand-text small { color: rgba(255, 255, 255, .7); }
body.has-hero .site-nav:not(.scrolled) .toggler-bars span { background: #fff; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark {
    width: 44px; height: 44px; flex: 0 0 44px;
    border-radius: 14px;
    display: grid; place-items: center;
    color: var(--ink);
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--accent), #ffd966);
    box-shadow: 0 8px 18px -6px rgba(245, 179, 1, .7);
    transition: transform .4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.05rem; color: var(--ink); font-weight: 800; }
.brand-text small { font-size: .72rem; color: var(--muted); font-weight: 500; }

.site-nav .nav-link {
    font-weight: 600;
    color: var(--ink-2);
    padding: .5rem .9rem !important;
    border-radius: 10px;
    position: relative;
}
.site-nav .nav-link i { font-size: .85em; opacity: .75; margin-right: .2rem; }
.site-nav .nav-link:not(.user-chip)::after {
    content: "";
    position: absolute;
    left: .9rem; right: .9rem; bottom: .25rem;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .nav-link.active { color: var(--brand); }
body.has-hero .site-nav:not(.scrolled) .nav-link.active { color: var(--accent); }

.user-chip { display: inline-flex !important; align-items: center; gap: .5rem; }
.avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: inline-grid; place-items: center;
    font-weight: 800; font-size: .9rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #14b37d);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .6);
}

.toggler-bars { display: inline-flex; flex-direction: column; gap: 5px; width: 26px; }
.toggler-bars span { height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.navbar-toggler[aria-expanded="true"] .toggler-bars span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bars span:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bars span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        background: #fff;
        margin-top: .75rem;
        padding: .75rem;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }
    body.has-hero .site-nav:not(.scrolled) .navbar-collapse .nav-link { color: var(--ink-2); }
    .site-nav .nav-link::after { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 9.5rem 0 7.5rem;
    background: linear-gradient(125deg, #03281f, #064e3b, #0b6e4f, #0d8a62, #064e3b);
    background-size: 300% 300%;
    animation: gradientShift 18s ease infinite;
}
.hero.hero-sm { padding: 8rem 0 5.5rem; }

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
    animation: floaty 14s ease-in-out infinite;
    pointer-events: none;
}
.blob-1 { width: 420px; height: 420px; background: #f5b301; top: -140px; right: -80px; opacity: .35; }
.blob-2 { width: 360px; height: 360px; background: #14b37d; bottom: -160px; left: -100px; animation-delay: -5s; }
.blob-3 { width: 220px; height: 220px; background: #7dd3fc; top: 40%; left: 55%; opacity: .25; animation-delay: -9s; }

@keyframes floaty {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, -25px) scale(1.06); }
    66%      { transform: translate(-25px, 20px) scale(.96); }
}

.floating-icon {
    position: absolute;
    display: grid; place-items: center;
    width: 64px; height: 64px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    color: var(--accent);
    font-size: 1.5rem;
    animation: bob 6s ease-in-out infinite;
}
.floating-icon.fi-1 { top: 22%; right: 8%; }
.floating-icon.fi-2 { bottom: 20%; right: 22%; animation-delay: -2s; color: #fff; }
.floating-icon.fi-3 { top: 58%; right: 4%; animation-delay: -4s; width: 52px; height: 52px; font-size: 1.2rem; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(4deg); } }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    font-size: .82rem; font-weight: 600;
    backdrop-filter: blur(6px);
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); } 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; margin: 1.1rem 0; }
.hero .lead { color: rgba(255, 255, 255, .82); font-size: clamp(1rem, 2vw, 1.18rem); max-width: 640px; }

.gradient-text {
    background: linear-gradient(90deg, #ffd966, #f5b301, #ffe8a3, #f5b301);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.hero-search {
    display: flex; gap: .5rem;
    max-width: 580px;
    padding: .45rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .45);
}
.hero-search .form-control { border: 0; box-shadow: none; background: transparent; }
.hero-search i.lead-icon { color: var(--muted); align-self: center; padding-left: .7rem; }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; }
.hero-wave path { fill: var(--bg); }

/* ---------------- Stats strip ---------------- */
.stats-strip { margin-top: -3.5rem; position: relative; z-index: 3; }
.stat-tile {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.35rem 1.25rem;
    box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 1rem;
    height: 100%;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.stat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat-icon {
    width: 54px; height: 54px; flex: 0 0 54px;
    border-radius: 16px;
    display: grid; place-items: center;
    font-size: 1.3rem;
}
.stat-icon.i-green { background: var(--brand-50); color: var(--brand); }
.stat-icon.i-gold  { background: var(--accent-50); color: var(--accent-600); }
.stat-icon.i-blue  { background: #e0f2fe; color: #0284c7; }
.stat-icon.i-rose  { background: #ffe4e6; color: #e11d48; }
.stat-value { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.stat-label { color: var(--muted); font-size: .85rem; font-weight: 500; margin-top: .25rem; }

/* ---------------- Sections ---------------- */
.section { padding: 4.5rem 0; }
.section-head { max-width: 680px; margin: 0 auto 2.5rem; text-align: center; }
.section-kicker {
    display: inline-block;
    font-size: .78rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-50);
    padding: .35rem .8rem;
    border-radius: 999px;
    margin-bottom: .8rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.section-head p { color: var(--muted); }

/* How it works */
.step-card {
    position: relative;
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem 1.5rem 1.6rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.step-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.step-num {
    position: absolute; top: 1.1rem; right: 1.25rem;
    font-size: 2.6rem; font-weight: 800;
    color: var(--brand-50);
    line-height: 1;
}
.step-icon {
    width: 58px; height: 58px;
    border-radius: 18px;
    display: grid; place-items: center;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #14b37d);
    box-shadow: 0 12px 22px -10px rgba(11, 110, 79, .8);
    margin-bottom: 1.1rem;
    transition: transform .5s var(--ease);
}
.step-card:hover .step-icon { transform: rotate(-10deg) scale(1.08); }
.step-card p { color: var(--muted); margin: 0; }

/* ---------------- Filter bar ---------------- */
.filter-bar {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    padding: .75rem;
}
.pill-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.pill-tab {
    border: 0;
    background: transparent;
    font-weight: 600;
    color: var(--ink-2);
    padding: .55rem 1rem;
    border-radius: 12px;
    transition: background .25s ease, color .25s ease, transform .2s var(--ease);
    display: inline-flex; align-items: center; gap: .45rem;
}
.pill-tab .count {
    font-size: .72rem;
    background: var(--line);
    color: var(--ink-2);
    border-radius: 999px;
    padding: .1rem .5rem;
    transition: background .25s, color .25s;
}
.pill-tab:hover { background: var(--brand-50); color: var(--brand-700); }
.pill-tab.active { background: var(--brand); color: #fff; box-shadow: 0 8px 16px -8px rgba(11, 110, 79, .8); }
.pill-tab.active .count { background: rgba(255, 255, 255, .22); color: #fff; }

.search-wrap { position: relative; }
.search-wrap i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-wrap .form-control { padding-left: 2.5rem; }

/* ---------------- Scholarship cards ---------------- */
.sch-card {
    position: relative;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    height: 100%;
    display: flex; flex-direction: column;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.sch-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }

.sch-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-50); }
.sch-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sch-card:hover .sch-media img { transform: scale(1.08); }
.sch-media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(3, 40, 31, .55));
}

.type-badge {
    position: absolute; top: .9rem; left: .9rem; z-index: 2;
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .74rem; font-weight: 700;
    padding: .4rem .75rem;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35);
}
.type-badge.internal { background: rgba(11, 110, 79, .92); color: #fff; }
.type-badge.external { background: rgba(245, 179, 1, .95); color: var(--ink); }

.state-chip {
    position: absolute; bottom: .9rem; left: .9rem; z-index: 2;
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .76rem; font-weight: 700;
    padding: .35rem .7rem;
    border-radius: 10px;
    color: #fff;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(6px);
}
.state-chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.state-open .dot     { background: #4ade80; animation: pulse 2s infinite; }
.state-upcoming .dot { background: #7dd3fc; }
.state-closed .dot   { background: #f87171; }

.sch-body { padding: 1.25rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.sch-body h3 { font-size: 1.1rem; line-height: 1.35; margin-bottom: .5rem; }
.sch-body h3 a { color: var(--ink); text-decoration: none; }
.sch-body h3 a:hover { color: var(--brand); }
.sch-body p { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; flex: 1; }
.sch-meta {
    display: flex; justify-content: space-between; align-items: center; gap: .5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--line);
}
.deadline { font-size: .82rem; color: var(--ink-2); font-weight: 600; display: flex; flex-direction: column; }
.deadline small { color: var(--muted); font-weight: 500; font-size: .74rem; }
.deadline .urgent { color: #dc2626; }

.link-arrow i { transition: transform .3s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

.empty-state {
    text-align: center;
    padding: 3.5rem 1rem;
    background: var(--card);
    border-radius: var(--radius);
    border: 2px dashed var(--line);
}
.empty-state .empty-icon {
    width: 84px; height: 84px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: grid; place-items: center;
    font-size: 2rem;
    color: var(--brand);
    background: var(--brand-50);
    animation: bob 5s ease-in-out infinite;
}

/* ---------------- Details page ---------------- */
.detail-media {
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--brand-50);
}
.detail-media img { width: 100%; display: block; max-height: 520px; object-fit: cover; }

.info-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 1.6rem;
}
.info-card + .info-card { margin-top: 1.25rem; }
.info-card h5 { font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.info-card h5 .ic {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: grid; place-items: center;
    font-size: .9rem;
    background: var(--brand-50); color: var(--brand);
}
.prose { color: var(--ink-2); line-height: 1.75; }

.sticky-apply { position: sticky; top: 96px; }

.apply-panel {
    background: linear-gradient(160deg, #064e3b, #0b6e4f);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.apply-panel::before {
    content: "";
    position: absolute;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(245, 179, 1, .25);
    top: -90px; right: -70px;
    filter: blur(20px);
}
.apply-panel > * { position: relative; }
.apply-panel .muted { color: rgba(255, 255, 255, .7); }

.timeline { list-style: none; margin: 1rem 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1.9rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
    content: "";
    position: absolute; left: 6px; top: 20px; bottom: -2px;
    width: 2px;
    background: rgba(255, 255, 255, .25);
}
.timeline li:last-child::before { display: none; }
.timeline li .tdot {
    position: absolute; left: 0; top: 4px;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    background: #064e3b;
}
.timeline small { display: block; color: rgba(255, 255, 255, .65); font-size: .78rem; }
.timeline strong { font-size: .98rem; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1rem 0 1.25rem; }
.countdown div {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    text-align: center;
    padding: .55rem .25rem;
}
.countdown b { display: block; font-size: 1.35rem; line-height: 1.1; }
.countdown span { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .65); }

.breadcrumb-lite { font-size: .85rem; }
.breadcrumb-lite a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.breadcrumb-lite a:hover { color: #fff; }
.breadcrumb-lite span { color: rgba(255, 255, 255, .5); margin: 0 .4rem; }

/* ---------------- Application form ---------------- */
.form-stepper { display: flex; gap: .5rem; margin-bottom: 1.5rem; overflow-x: auto; padding-bottom: .25rem; }
.form-stepper a {
    flex: 1 0 auto;
    display: flex; align-items: center; gap: .6rem;
    padding: .7rem 1rem;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-weight: 600; font-size: .88rem;
    text-decoration: none;
    transition: border-color .25s, background .25s, color .25s;
}
.form-stepper a .n {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: .8rem;
    background: var(--brand-50); color: var(--brand);
    transition: background .25s, color .25s;
}
.form-stepper a.done .n, .form-stepper a.current .n { background: var(--brand); color: #fff; }
.form-stepper a.current { border-color: var(--brand); color: var(--brand-700); }

.form-section { scroll-margin-top: 100px; }

.student-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .75rem;
}
.student-field {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .7rem .9rem;
}
.student-field small { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.student-field span { font-weight: 700; color: var(--ink); word-break: break-word; }

.lock-note { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); }

.input-group-text { border-radius: 12px; background: var(--bg); border-color: var(--line); font-weight: 600; color: var(--ink-2); }

.drop-zone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 1rem;
    background: var(--bg);
    display: flex; align-items: center; gap: .9rem;
    transition: border-color .25s, background .25s, transform .25s var(--ease);
    cursor: pointer;
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--brand); background: var(--brand-50); }
.drop-zone.dragover { transform: scale(1.01); }
.drop-zone.has-file { border-style: solid; border-color: var(--brand); background: #fff; }
.drop-zone.is-invalid { border-color: #dc3545; background: #fff5f5; }
.drop-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-zone .dz-icon {
    width: 46px; height: 46px; flex: 0 0 46px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: #fff; color: var(--brand);
    font-size: 1.15rem;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease);
}
.drop-zone:hover .dz-icon { transform: translateY(-3px); }
.drop-zone .dz-text { min-width: 0; }
.drop-zone .dz-title { font-weight: 700; font-size: .92rem; }
.drop-zone .dz-file { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-zone.has-file .dz-file { color: var(--brand-700); font-weight: 600; }
.drop-zone .req { color: #dc2626; }
.dz-error { font-size: .82rem; color: #dc3545; margin-top: .35rem; }

.char-count { font-size: .76rem; color: var(--muted); }

/* ---------------- Status pills & tracker ---------------- */
.status-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .78rem; font-weight: 700;
    padding: .35rem .75rem;
    border-radius: 999px;
    white-space: nowrap;
}
.status-pending  { background: #fef3c7; color: #92400e; }
.status-review   { background: #dbeafe; color: #1e40af; }
.status-approved { background: #dcfce7; color: #166534; }
.status-rejected { background: #fee2e2; color: #991b1b; }

.app-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.app-card .app-top { display: flex; gap: 1rem; padding: 1.25rem; align-items: center; }
.app-card .app-thumb { width: 84px; height: 64px; flex: 0 0 84px; border-radius: 12px; overflow: hidden; background: var(--brand-50); }
.app-card .app-thumb img { width: 100%; height: 100%; object-fit: cover; }
.app-card .app-bottom { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); background: #fbfdfc; }

.tracker { display: flex; align-items: flex-start; position: relative; margin: .5rem 0 0; }
.tracker .t-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.tracker .t-dot {
    width: 34px; height: 34px;
    border-radius: 50%;
    margin: 0 auto .4rem;
    display: grid; place-items: center;
    font-size: .8rem;
    background: #fff;
    border: 2px solid var(--line);
    color: #94a3b8;
    transition: all .5s var(--ease);
}
.tracker .t-label { font-size: .74rem; font-weight: 600; color: var(--muted); }
.tracker .t-step.done .t-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.tracker .t-step.current .t-dot { box-shadow: 0 0 0 6px rgba(11, 110, 79, .15); animation: ring 2s infinite; }
.tracker .t-step.fail .t-dot { background: #dc2626; border-color: #dc2626; color: #fff; }
.tracker .t-step.done .t-label, .tracker .t-step.current .t-label { color: var(--ink); }
.tracker .t-line {
    position: absolute; top: 17px; left: 16.66%; right: 16.66%;
    height: 3px; background: var(--line); border-radius: 3px; overflow: hidden;
}
.tracker .t-line i {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--brand), #14b37d);
    width: 0;
    transition: width 1.2s var(--ease);
}
.tracker .t-line i.bad { background: linear-gradient(90deg, var(--brand), #dc2626); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(11, 110, 79, .35); } 70% { box-shadow: 0 0 0 10px rgba(11, 110, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 110, 79, 0); } }

.remark-box {
    background: var(--accent-50);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    padding: .75rem 1rem;
    font-size: .9rem;
    color: var(--ink-2);
}

/* ---------------- Auth page ---------------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art {
    position: relative; overflow: hidden;
    color: #fff;
    padding: 3rem;
    display: flex; flex-direction: column; justify-content: space-between;
    background: linear-gradient(135deg, #03281f, #064e3b, #0b6e4f);
    background-size: 250% 250%;
    animation: gradientShift 16s ease infinite;
}
.auth-art h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.auth-art .brand-text strong { color: #fff; }
.auth-art .brand-text small { color: rgba(255, 255, 255, .7); }
.auth-form-side { display: grid; place-items: center; padding: 2rem 1.25rem; background: var(--bg); }
.auth-card {
    width: 100%; max-width: 430px;
    background: var(--card);
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: var(--shadow-lg);
    animation: rise .7s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }
.auth-feature { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.auth-feature i { color: var(--accent); margin-top: .25rem; }
.password-toggle { cursor: pointer; }
@media (max-width: 991.98px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .auth-form-side { min-height: 100vh; }
}

/* ---------------- Footer ---------------- */
.site-footer { position: relative; background: var(--brand-900); color: #fff; margin-top: 4rem; }
.footer-wave { position: absolute; top: -69px; left: 0; right: 0; line-height: 0; }
.footer-wave svg { width: 100%; height: 70px; }
.footer-wave path { fill: var(--brand-900); }
.footer-title { color: var(--accent); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255, 255, 255, .7); text-decoration: none; transition: color .2s, padding .25s var(--ease); }
.footer-links a:hover { color: #fff; padding-left: 6px; }

/* ---------------- Toasts ---------------- */
.toast-container { z-index: 1090; }
.flash-toast {
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    color: #fff;
    font-weight: 600;
    min-width: 280px;
    animation: toastIn .5s var(--ease) both;
}
.flash-toast .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.flash-success { background: linear-gradient(135deg, #0b6e4f, #14b37d); }
.flash-danger  { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.flash-warning { background: linear-gradient(135deg, #b45309, #f59e0b); }
.flash-info    { background: linear-gradient(135deg, #0369a1, #0ea5e9); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

/* ---------------- Back to top ---------------- */
.back-to-top {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040;
    width: 46px; height: 46px;
    border: 0; border-radius: 14px;
    background: var(--brand); color: #fff;
    box-shadow: var(--shadow);
    opacity: 0; transform: translateY(20px); pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--brand-700); }

/* ---------------- Scroll reveal ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal-left.in { opacity: 1; transform: none; }
.reveal-zoom { opacity: 0; transform: scale(.94); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal-zoom.in { opacity: 1; transform: none; }

.fade-up { animation: fadeUp .9s var(--ease) backwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.card-hidden { display: none !important; }
.card-pop { animation: pop .45s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------------- Misc ---------------- */
.rounded-xl { border-radius: var(--radius) !important; }
.page-pad { padding-top: 6.5rem; }
.smaller { font-size: .8rem; }

@media (max-width: 575.98px) {
    .hero { padding: 7.5rem 0 6rem; }
    .hero-search { flex-direction: column; }
    .hero-search i.lead-icon { display: none; }
    .section { padding: 3.25rem 0; }
    .info-card, .apply-panel { padding: 1.25rem; }
    .auth-card { padding: 1.6rem; }
    .app-card .app-top { flex-wrap: wrap; }
    .stat-value { font-size: 1.4rem; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal, .reveal-left, .reveal-zoom { opacity: 1; transform: none; }
}
.min-w-0 { min-width: 0; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text small { color: rgba(255, 255, 255, .6); }

/* Notice banner set by the Super Admin (System Settings) */
.portal-notice {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1040;
    display: flex; align-items: center; gap: .6rem; max-width: min(760px, calc(100% - 32px));
    background: linear-gradient(135deg, #0b6e4f, #0f8a63); color: #fff; padding: .7rem 1rem; border-radius: 14px;
    box-shadow: 0 12px 30px rgba(11, 110, 79, .35); font-size: .9rem; font-weight: 600;
}
.portal-notice i { color: #f5b301; }

/* University logo inside the brand badge */
.brand-mark.brand-logo { background: #fff; padding: 3px; border-radius: 50%; box-shadow: 0 2px 10px rgba(15, 23, 42, .12); overflow: hidden; }
.brand-mark.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand:hover .brand-mark.brand-logo { transform: scale(1.06); }
