/* ============================================================
   BISE GUJRANWALA — Premium Government Portal Design System
   HTML5 + Bootstrap 5.3 + CSS3 (no frameworks beyond Bootstrap)
   ============================================================ */

:root {
  --bise-primary: #005BAC;
  --bise-primary-dark: #0B4EA2;
  --bise-primary-deep: #073a75;
  --bise-accent: #F4B400;
  --bise-accent-dark: #d99e00;
  --bise-bg: #F8FAFC;
  --bise-surface: #ffffff;
  --bise-surface-2: #f1f5f9;
  --bise-text: #0f172a;
  --bise-text-muted: #5b6b7f;
  --bise-border: #e2e8f0;
  --bise-radius: 1rem;
  --bise-radius-lg: 1.5rem;
  --bise-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 8px rgba(15, 23, 42, .04);
  --bise-shadow: 0 4px 24px rgba(2, 32, 71, .08);
  --bise-shadow-lg: 0 20px 60px -18px rgba(2, 32, 71, .25);
  --bise-gradient: linear-gradient(135deg, #005BAC 0%, #0B4EA2 55%, #073a75 100%);
  --bise-gradient-accent: linear-gradient(135deg, #F4B400, #ffce3d);
  --bise-glass: rgba(255, 255, 255, .72);
  --bise-glass-border: rgba(255, 255, 255, .35);
  --bise-ticker-bg: #062c55;
}

html[data-theme="dark"] {
  --bise-bg: #0b1220;
  --bise-surface: #111a2c;
  --bise-surface-2: #16213a;
  --bise-text: #e8eef7;
  --bise-text-muted: #93a4bc;
  --bise-border: #223250;
  --bise-glass: rgba(17, 26, 44, .78);
  --bise-glass-border: rgba(255, 255, 255, .08);
  --bise-shadow: 0 4px 24px rgba(0, 0, 0, .45);
  --bise-shadow-lg: 0 20px 60px -18px rgba(0, 0, 0, .7);
  --bise-ticker-bg: #060e1c;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bise-bg);
  color: var(--bise-text);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--bise-text);
}
p { color: var(--bise-text-muted); }
a { text-decoration: none; }
::selection { background: var(--bise-primary); color: #fff; }

.section { padding: 1rem 0; }
.section-sm { padding: 1rem 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: .5rem; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--bise-primary); background: color-mix(in srgb, var(--bise-primary) 10%, transparent);
}
/* Hero section — background image + overlay for all about-us / project pages */
.hero-section {
  position: relative;
  overflow: hidden;
  background-image: url('assets/img/hero-bise.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
.hero-section .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(2,14,40,.68) 0%, rgba(0,45,100,.52) 50%, rgba(0,91,172,.28) 80%, rgba(0,20,55,.18) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-section .container {
  position: relative;
  z-index: 2;
}
html[data-theme="dark"] .section-eyebrow { color: #7db8ee; }
.section-sub { max-width: 620px; }
.text-accent { color: var(--bise-accent) !important; }

/* ---------- Buttons ---------- */
.btn { border-radius: .75rem; font-weight: 600; padding: .6rem 1.35rem; transition: all .25s ease; }
.btn-bise {
  background: var(--bise-gradient); color: #fff; border: none;
  box-shadow: 0 8px 20px -8px rgba(0, 91, 172, .55);
}
.btn-bise:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(0, 91, 172, .65); }
.btn-accent {
  background: var(--bise-gradient-accent); color: #3b2f00; border: none; font-weight: 700;
  box-shadow: 0 8px 20px -8px rgba(244, 180, 0, .6);
}
.btn-accent:hover { color: #3b2f00; transform: translateY(-2px); }
.btn-outline-bise { border: 1.5px solid var(--bise-primary); color: var(--bise-primary); background: transparent; }
.btn-outline-bise:hover { background: var(--bise-primary); color: #fff; }
html[data-theme="dark"] .btn-outline-bise { border-color: #5aa5e6; color: #7db8ee; }
html[data-theme="dark"] .btn-outline-bise:hover { background: var(--bise-primary); color: #fff; }
.btn-ghost { color: var(--bise-text-muted); }
.btn-ghost:hover { color: var(--bise-primary); background: var(--bise-surface-2); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--bise-primary-deep); color: rgba(255, 255, 255, .85);
  font-size: .8rem;
}
.topbar a { color: rgba(255, 255, 255, .85); transition: color .2s; }
.topbar a:hover { color: var(--bise-accent); }
.topbar .divider { opacity: .3; }

/* ---------- Brand bar ---------- */
.brandbar { background: var(--bise-surface); border-bottom: 1px solid var(--bise-border); }
.brandbar .board-name { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 1.15rem; line-height: 1.2; color: var(--bise-text); }
.brandbar .board-sub { font-size: .78rem; color: var(--bise-text-muted); letter-spacing: .04em; }
.brand-logo { height: 58px; width: auto; }

/* ---------- Navbar / Mega menu ---------- */
.navbar-bise {
  background: var(--bise-glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bise-border);
  transition: box-shadow .3s ease, background .3s ease;
}
.navbar-bise.scrolled { box-shadow: var(--bise-shadow); }
.navbar-bise .nav-link {
  font-weight: 600; font-size: .92rem; color: var(--bise-text);
  padding: 1rem 1rem; position: relative;
}
.navbar-bise .nav-link::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .55rem; height: 2.5px;
  background: var(--bise-accent); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.navbar-bise .nav-link:hover::after, .navbar-bise .nav-link.active::after { transform: scaleX(1); }
.navbar-bise .nav-link.active { color: var(--bise-primary); }
html[data-theme="dark"] .navbar-bise .nav-link.active { color: #7db8ee; }

.dropdown-menu {
  border: 1px solid var(--bise-border); border-radius: 1rem; box-shadow: var(--bise-shadow-lg);
  background: var(--bise-surface); padding: .6rem; margin-top: .35rem !important;
}
.dropdown-item { border-radius: .6rem; padding: .55rem .9rem; font-weight: 500; font-size: .9rem; color: var(--bise-text); }
.dropdown-item:hover { background: color-mix(in srgb, var(--bise-primary) 8%, transparent); color: var(--bise-primary); }
html[data-theme="dark"] .dropdown-item:hover { color: #7db8ee; }

.mega-menu { width: min(760px, 92vw); padding: 1.25rem; }
.mega-menu .mega-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--bise-text-muted); margin-bottom: .5rem; padding-left: .9rem; }
.mega-menu .dropdown-item i { width: 1.5rem; color: var(--bise-primary); }
html[data-theme="dark"] .mega-menu .dropdown-item i { color: #7db8ee; }
@media (min-width: 992px) {
  .dropdown-hover:hover > .dropdown-menu { display: block; }
  .mega-static { position: static !important; }
  .mega-menu { left: 50%; transform: translateX(-50%); }
}

/* ---------- Ticker ---------- */
.news-ticker { background: var(--bise-ticker-bg); color: #dbe8f7; overflow: hidden; font-size: .85rem; }
.ticker-label { background: var(--bise-accent); color: #3b2f00; font-weight: 800; font-size: .72rem; letter-spacing: .08em; }
.ticker-track { display: flex; gap: 3.5rem; white-space: nowrap; animation: ticker 38s linear infinite; padding-left: 100%; }
.news-ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { color: #dbe8f7; }
.ticker-track a:hover { color: var(--bise-accent); }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Hero ---------- */
.hero-slider .carousel-item { min-height: 560px; }
.hero-slide { position: relative; min-height: 560px; display: flex; align-items: center; background-size: cover; background-position: center; }
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4, 30, 66, .92) 0%, rgba(4, 30, 66, .72) 45%, rgba(4, 30, 66, .25) 100%);
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
.hero-slide p { color: rgba(255, 255, 255, .82); font-size: 1.08rem; max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; color: #ffe9a8;
  background: rgba(244, 180, 0, .15); border: 1px solid rgba(244, 180, 0, .4);
  padding: .4rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
.carousel-indicators [data-bs-target] { width: 34px; height: 4px; border-radius: 4px; }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--bise-border); border-radius: var(--bise-radius); background: var(--bise-surface); color: var(--bise-text); }
.card-lift { transition: transform .3s ease, box-shadow .3s ease; box-shadow: var(--bise-shadow-sm); }
.card-lift:hover { transform: translateY(-6px); box-shadow: var(--bise-shadow-lg); }

.glass-card {
  background: var(--bise-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bise-glass-border); border-radius: var(--bise-radius-lg); box-shadow: var(--bise-shadow);
}

.service-card { text-align: center; padding: 2rem 1.25rem; height: 100%; display: block; }
.service-card .icon-tile {
  width: 64px; height: 64px; border-radius: 1.15rem; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff; background: var(--bise-gradient); margin-bottom: 1rem;
  box-shadow: 0 10px 24px -10px rgba(0, 91, 172, .6); transition: transform .3s ease;
}
.service-card:hover .icon-tile { transform: scale(1.08) rotate(-4deg); }
.service-card h6 { font-weight: 700; color: var(--bise-text); }
.service-card p { font-size: .85rem; margin: 0; }

.corner-card { border-top: 4px solid var(--bise-primary); height: 100%; }
.corner-card.accent { border-top-color: var(--bise-accent); }

.stat-card { text-align: center; color: #fff; }
.stat-card .stat-num { font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: #fff; }
.stat-card .stat-label { color: rgba(255, 255, 255, .75); font-size: .9rem; letter-spacing: .04em; }
.stats-band { background: var(--bise-gradient); position: relative; overflow: hidden; }
.stats-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 20%, rgba(244, 180, 0, .18), transparent 60%);
}

/* ---------- Notification list ---------- */
.notice-item {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem;
  border: 1px solid var(--bise-border); border-radius: .9rem; background: var(--bise-surface);
  transition: border-color .25s, transform .25s, box-shadow .25s; margin-bottom: .75rem;
}
.notice-item:hover { border-color: var(--bise-primary); transform: translateX(4px); box-shadow: var(--bise-shadow-sm); }
.notice-date {
  min-width: 58px; text-align: center; background: color-mix(in srgb, var(--bise-primary) 8%, transparent);
  border-radius: .7rem; padding: .45rem .3rem; color: var(--bise-primary); font-weight: 700; line-height: 1.15;
}
html[data-theme="dark"] .notice-date { color: #7db8ee; }
.notice-date .d { font-size: 1.2rem; display: block; }
.notice-date .m { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.notice-item h6 { margin: 0 0 .2rem; font-size: .95rem; }
.notice-item h6 a { color: var(--bise-text); }
.notice-item h6 a:hover { color: var(--bise-primary); }
.notice-item small { color: var(--bise-text-muted); }

/* ---------- Page hero / breadcrumb ---------- */
.page-hero { background: var(--bise-gradient); color: #fff; padding: 4.5rem 0 3.5rem; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 180, 0, .25), transparent 65%);
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 800; }
.page-hero .lead { color: rgba(255, 255, 255, .8); max-width: 640px; }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); margin: 0 0 .75rem; }
.breadcrumb-item a { color: rgba(255, 255, 255, .75); }
.breadcrumb-item a:hover { color: var(--bise-accent); }
.breadcrumb-item.active { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }

/* ---------- Tables ---------- */
.table { color: var(--bise-text); border-color: var(--bise-border); }
.table thead th {
  background: var(--bise-primary); color: #fff; font-weight: 600; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .05em; border: none; padding: .85rem 1rem;
}
.table tbody td { padding: .8rem 1rem; vertical-align: middle; background: var(--bise-surface); color: var(--bise-text); border-color: var(--bise-border); }
.table-hover tbody tr:hover td { background: color-mix(in srgb, var(--bise-primary) 5%, var(--bise-surface)); }
.table-rounded { border-radius: var(--bise-radius); overflow: hidden; box-shadow: var(--bise-shadow-sm); }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: .75rem; border: 1.5px solid var(--bise-border); padding: .65rem 1rem;
  background: var(--bise-surface); color: var(--bise-text); transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--bise-primary); box-shadow: 0 0 0 .25rem rgba(0, 91, 172, .12);
  background: var(--bise-surface); color: var(--bise-text);
}
.form-control::placeholder { color: var(--bise-text-muted); opacity: .7; }
.form-label { font-weight: 600; font-size: .88rem; color: var(--bise-text); }
.captcha-box {
  font-family: "Courier New", monospace; font-weight: 800; font-size: 1.35rem; letter-spacing: .35em;
  background: repeating-linear-gradient(45deg, var(--bise-surface-2), var(--bise-surface-2) 8px, var(--bise-surface) 8px, var(--bise-surface) 16px);
  border: 1.5px dashed var(--bise-border); border-radius: .75rem; padding: .5rem 1rem;
  user-select: none; color: var(--bise-primary); text-decoration: line-through; display: inline-block;
}

/* ---------- Accordion / Tabs ---------- */
.accordion-item { border: 1px solid var(--bise-border); border-radius: .9rem !important; overflow: hidden; margin-bottom: .8rem; background: var(--bise-surface); }
.accordion-button { font-weight: 600; background: var(--bise-surface); color: var(--bise-text); padding: 1.1rem 1.3rem; }
.accordion-button:not(.collapsed) { background: color-mix(in srgb, var(--bise-primary) 7%, var(--bise-surface)); color: var(--bise-primary); box-shadow: none; }
html[data-theme="dark"] .accordion-button:not(.collapsed) { color: #7db8ee; }
.accordion-button:focus { box-shadow: 0 0 0 .25rem rgba(0, 91, 172, .12); }
.accordion-body { color: var(--bise-text-muted); }
html[data-theme="dark"] .accordion-button::after { filter: invert(1) brightness(1.6); }

.nav-pills .nav-link { border-radius: .75rem; font-weight: 600; color: var(--bise-text-muted); padding: .6rem 1.3rem; }
.nav-pills .nav-link.active { background: var(--bise-gradient); color: #fff; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: .55rem; top: .3rem; bottom: .3rem; width: 2px; background: linear-gradient(var(--bise-primary), var(--bise-accent)); border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 1.8rem; }
.timeline-item::before {
  content: ""; position: absolute; left: -1.98rem; top: .3rem; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bise-surface); border: 3px solid var(--bise-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bise-primary) 15%, transparent);
}
.timeline-item h6 { margin-bottom: .2rem; }
.timeline-item .time { font-size: .78rem; font-weight: 700; color: var(--bise-accent-dark); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Gallery ---------- */
.gallery-item { border-radius: var(--bise-radius); overflow: hidden; position: relative; display: block; box-shadow: var(--bise-shadow-sm); }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.1rem;
  background: linear-gradient(180deg, transparent 40%, rgba(4, 30, 66, .85)); opacity: 0; transition: opacity .35s;
  color: #fff; font-weight: 600;
}
.gallery-item:hover .overlay { opacity: 1; }

/* ---------- Result card ---------- */
.result-card { border-radius: var(--bise-radius-lg); overflow: hidden; position: relative; box-shadow: var(--bise-shadow-lg); }
.result-card .result-head { background: var(--bise-gradient); color: #fff; padding: 1.75rem 2rem; }
.result-card .result-head h4 { color: #fff; margin: 0; }
.result-watermark {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 0; opacity: .05;
}
.result-watermark img { width: 420px; max-width: 80%; }
.result-body { position: relative; z-index: 1; }
.student-photo {
  width: 110px; height: 132px; object-fit: cover; border-radius: .75rem;
  border: 3px solid var(--bise-surface); box-shadow: var(--bise-shadow);
}
.info-grid dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bise-text-muted); font-weight: 700; }
.info-grid dd { font-weight: 600; color: var(--bise-text); margin-bottom: .9rem; }
.grade-pill { background: var(--bise-gradient-accent); color: #3b2f00; font-weight: 800; border-radius: 999px; padding: .3rem 1rem; display: inline-block; }
.status-pass { background: #d1fae5; color: #065f46; font-weight: 700; border-radius: 999px; padding: .3rem 1rem; display: inline-block; }
html[data-theme="dark"] .status-pass { background: #064e3b; color: #6ee7b7; }
.qr-placeholder {
  width: 96px; height: 96px; border-radius: .75rem; border: 2px dashed var(--bise-border);
  display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--bise-text-muted);
  background: var(--bise-surface-2);
}

/* ---------- Loading modal ---------- */
.modal-backdrop.show { opacity: .55; backdrop-filter: blur(6px); }
.loading-modal .modal-content {
  background: var(--bise-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bise-glass-border); border-radius: 1.5rem; box-shadow: var(--bise-shadow-lg);
  color: var(--bise-text);
}
.spinner-ring {
  width: 84px; height: 84px; border-radius: 50%; position: relative; margin: 0 auto;
  background: conic-gradient(var(--bise-accent), var(--bise-primary), transparent 70%);
  animation: spin 1.1s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-logo { width: 56px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: pulse-soft 1.6s ease-in-out infinite; }
@keyframes pulse-soft { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.08); } }
.progress-thin { height: 8px; border-radius: 99px; background: var(--bise-surface-2); overflow: hidden; }
.progress-thin .bar { height: 100%; width: 0%; border-radius: 99px; background: var(--bise-gradient-accent); transition: width .25s ease; }
.dots::after { content: ""; animation: dots 1.5s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* ---------- Footer ---------- */
.footer { background: #041e42; color: rgba(255, 255, 255, .72); }
html[data-theme="dark"] .footer { background: #060e1c; }
.footer h6 { color: #fff; font-size: .95rem; margin-bottom: 1.1rem; }
.footer a { color: rgba(255, 255, 255, .72); font-size: .9rem; transition: color .2s, padding-left .2s; display: inline-block; padding: .18rem 0; }
.footer a:hover { color: var(--bise-accent); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1); color: #fff !important; transition: background .25s, transform .25s;
  padding: 0 !important;
}
.social-btn:hover { background: var(--bise-accent); color: #3b2f00 !important; transform: translateY(-3px); }

/* ---------- Misc ---------- */
.back-to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 1050; width: 46px; height: 46px; border-radius: 50%;
  background: var(--bise-gradient); color: #fff; border: none; display: none; align-items: center; justify-content: center;
  box-shadow: var(--bise-shadow-lg); transition: transform .25s;
}
.back-to-top:hover { transform: translateY(-4px); }
.back-to-top.show { display: inline-flex; }

.theme-toggle { border: 1.5px solid var(--bise-border); background: var(--bise-surface); color: var(--bise-text); width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: all .25s; }
.theme-toggle:hover { border-color: var(--bise-primary); color: var(--bise-primary); transform: rotate(20deg); }

.page-item .page-link { border-radius: .6rem !important; margin: 0 .2rem; border: 1px solid var(--bise-border); color: var(--bise-text); font-weight: 600; background: var(--bise-surface); }
.page-item.active .page-link { background: var(--bise-gradient); border-color: transparent; color: #fff; }

.alert { border-radius: .9rem; border: none; }
.alert-bise { background: color-mix(in srgb, var(--bise-primary) 10%, var(--bise-surface)); color: var(--bise-primary); border-left: 4px solid var(--bise-primary); }
html[data-theme="dark"] .alert-bise { color: #7db8ee; }
.alert-gold { background: color-mix(in srgb, var(--bise-accent) 14%, var(--bise-surface)); color: #7a5b00; border-left: 4px solid var(--bise-accent); }
html[data-theme="dark"] .alert-gold { color: #ffd75e; }

.badge-soft { background: color-mix(in srgb, var(--bise-primary) 10%, transparent); color: var(--bise-primary); font-weight: 600; border-radius: 999px; padding: .35rem .85rem; }
html[data-theme="dark"] .badge-soft { color: #7db8ee; }

.list-check { list-style: none; padding: 0; }
.list-check li { padding: .4rem 0 .4rem 1.9rem; position: relative; color: var(--bise-text-muted); }
.list-check li::before {
  content: "\f26a"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .42rem; color: var(--bise-primary);
}

.download-row {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--bise-border);
  border-radius: .9rem; background: var(--bise-surface); margin-bottom: .75rem; transition: all .25s;
}
.download-row:hover { border-color: var(--bise-primary); box-shadow: var(--bise-shadow-sm); transform: translateX(4px); }
.download-row .file-icon { font-size: 1.7rem; color: #d32f2f; }
.download-row h6 { margin: 0; font-size: .95rem; }
.download-row small { color: var(--bise-text-muted); }

.leader-quote { border-left: 4px solid var(--bise-accent); padding-left: 1.25rem; font-style: italic; font-size: 1.05rem; color: var(--bise-text); }

.dash-card { border-radius: var(--bise-radius); padding: 1.5rem; border: 1px solid var(--bise-border); background: var(--bise-surface); height: 100%; }
.dash-card .icon-sq { width: 48px; height: 48px; border-radius: .8rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; background: var(--bise-gradient); }
.dash-card.gold .icon-sq { background: var(--bise-gradient-accent); color: #3b2f00; }

.error-404 { font-size: clamp(6rem, 18vw, 11rem); font-weight: 800; line-height: 1; background: var(--bise-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media print {
  .topbar, .brandbar, .navbar-bise, .news-ticker, .footer, .back-to-top, .no-print, .page-hero { display: none !important; }
  body { background: #fff !important; }
  .result-card { box-shadow: none !important; border: 1px solid #ccc; }
}

/* Ensure proper spacing below page hero */
.page-hero + .container,
.page-hero + * > .container:first-child {
    margin-top: 3rem;
}

@media (max-width: 991.98px) {
  .navbar-bise .nav-link { padding: .65rem .5rem; }
  .navbar-bise .nav-link::after { display: none; }
  .hero-slide, .hero-slider .carousel-item { min-height: 480px; }
  .section { padding: 1rem 0; }
}

/* ============ SOCIAL MEDIA HUB ============ */
.social-hub-section{background:linear-gradient(180deg,var(--bise-bg) 0%,#eef4fb 100%)}
[data-theme="dark"] .social-hub-section{background:linear-gradient(180deg,#0b1220 0%,#0f1a2e 100%)}
.social-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;padding:1.5rem 1rem;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:1rem;text-decoration:none;color:var(--bise-text);text-align:center;position:relative;overflow:hidden;transition:transform .35s ease,box-shadow .35s ease,color .3s ease;box-shadow:0 4px 18px rgba(15,23,42,.05)}
[data-theme="dark"] .social-card{background:#111a2e;border-color:rgba(255,255,255,.08);color:#e5edff}
.social-card i{font-size:2.1rem;transition:transform .35s ease}
.social-card .s-name{font-weight:700;font-size:.95rem}
.social-card .s-meta{font-size:.72rem;color:var(--bise-muted);letter-spacing:.02em}
.social-card::before{content:"";position:absolute;inset:auto -30% -60% -30%;height:120%;border-radius:50%;transform:translateY(60%);transition:transform .5s ease;z-index:0;opacity:.15}
.social-card > *{position:relative;z-index:1}
.social-card:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(0,91,172,.18);color:#fff}
.social-card:hover .s-meta{color:rgba(255,255,255,.85)}
.social-card:hover i{transform:scale(1.15)}
.social-card:hover::before{transform:translateY(0);opacity:1}
.social-card.facebook::before{background:#1877F2}
.social-card.twitter::before{background:#000}
.social-card.youtube::before{background:#FF0000}
.social-card.instagram::before{background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888)}
.social-card.linkedin::before{background:#0A66C2}
.social-card.whatsapp::before{background:#25D366}
.social-card.tiktok::before{background:linear-gradient(135deg,#25F4EE,#000,#FE2C55)}
.social-card.telegram::before{background:#229ED9}

/* ============ NEWS POPUP MODAL ============ */
.news-popup{border:none;border-radius:1.25rem;overflow:hidden;box-shadow:0 30px 80px rgba(11,78,162,.35)}
.news-popup-header{background:linear-gradient(120deg,var(--bise-primary),var(--bise-secondary));color:#fff;padding:1.15rem 1.35rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.news-popup-eyebrow{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.75);font-weight:600}
.live-dot{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.15);display:flex;align-items:center;justify-content:center;position:relative}
.live-dot span{width:12px;height:12px;border-radius:50%;background:#ff4d4f;box-shadow:0 0 0 rgba(255,77,79,.6);animation:livePulse 1.4s ease-out infinite}
@keyframes livePulse{0%{box-shadow:0 0 0 0 rgba(255,77,79,.7)}70%{box-shadow:0 0 0 14px rgba(255,77,79,0)}100%{box-shadow:0 0 0 0 rgba(255,77,79,0)}}
.news-popup-list li{display:flex;align-items:flex-start;gap:1rem;padding:1rem 1.35rem;border-bottom:1px solid rgba(0,0,0,.06);animation:fadeSlide .5s ease both}
[data-theme="dark"] .news-popup-list li{border-bottom-color:rgba(255,255,255,.06)}
.news-popup-list li:nth-child(1){animation-delay:.05s}
.news-popup-list li:nth-child(2){animation-delay:.15s}
.news-popup-list li:nth-child(3){animation-delay:.25s}
.news-popup-list li:nth-child(4){animation-delay:.35s}
.news-popup-list li:nth-child(5){animation-delay:.45s}
.news-popup-list li:last-child{border-bottom:none}
.news-popup-list li:hover{background:rgba(0,91,172,.04)}
.news-popup-list h6{font-weight:700;color:var(--bise-text)}
.badge-tag{font-size:.68rem;letter-spacing:.05em;padding:.4rem .55rem;border-radius:.5rem;flex-shrink:0;margin-top:.15rem}
.news-popup-footer{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 1.35rem;background:var(--bise-bg);border-top:1px solid rgba(0,0,0,.06)}
[data-theme="dark"] .news-popup-footer{background:#0f1a2e;border-top-color:rgba(255,255,255,.06)}
@keyframes fadeSlide{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

/* Enhance modal close buttons for visibility & theme matching */
.modal .btn-close-white {
    opacity: 1 !important;
    filter: invert(1) grayscale(100%) brightness(200%);
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    padding: 0.6rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.modal .btn-close-white:hover {
    background-color: var(--bise-accent);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}
.modal-content.bg-transparent .btn-close-white {
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
}
.modal-content.bg-transparent .btn-close-white:hover {
    background-color: var(--bise-accent);
    border-color: var(--bise-accent);
}
