/* ============================================================
   RSU redesign layer — loaded AFTER rsu-theme.css.
   Same palette (navy / teal / gold). Font: Cairo (Arabic + Latin).
   Uses logical properties only, so RTL and LTR both work with
   the LTR Bootstrap build.
   ============================================================ */

/* ── Typography ─────────────────────────────────────────── */
body { font-size: 15.5px; line-height: 1.8;}
h1, h2, h3, h4, h5, h6 { font-weight: 800; }
.section-py { padding-block: 4.5rem; }
.section-py-sm { padding-block: 3rem; }
@media (max-width: 767.98px) { .section-py { padding-block: 3rem; } }

/* reveal on scroll (only when JS is running) */
.js .rsu-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.js .rsu-reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rsu-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Top bar ────────────────────────────────────────────── */
.topbar { padding: 8px 0; font-size: 13px; }
.topbar-contact, .topbar-social { display: flex; align-items: center; gap: 22px; }
.topbar-social { gap: 8px; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75); }
.topbar-contact a:hover { color: var(--gold-light); }
.topbar-contact .bi { color: var(--gold-light); font-size: 14px; }
.topbar-social a {
  width: 30px; height: 30px; margin: 0; border-radius: 50%; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.85);
  transition: background .25s, color .25s, transform .25s;
}
.topbar-social a:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.topbar .lang-btn { margin: 0 0 0 0; margin-inline-start: 10px; padding: 4px 14px; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar-rsu .nav-link { font-size: 14px; }
.navbar-rsu .nav-link.active { color: var(--gold-light) !important; }
.navbar-rsu .nav-link.active::after { transform: scaleX(1); }
.navbar-rsu .dropdown-menu { max-height: min(70vh, 560px); }
.navbar-rsu .dropdown-item:hover,
.navbar-rsu .dropdown-item:focus-visible { background: rgba(255,255,255,.08); }

@media (min-width: 992px) {
  .navbar-rsu .dropdown-menu.dm-cols { min-width: 480px; max-width: min(580px, 92vw); }
  .navbar-rsu .dropdown-menu.dm-cols.show {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; align-content: start;
  }
}
@media (max-width: 991.98px) {
  .navbar-rsu .navbar-collapse { max-height: calc(100vh - 80px); overflow-y: auto; padding-bottom: 1rem; }
  .navbar-rsu .navbar-nav { gap: 0; }
  .navbar-rsu .nav-link { padding: 13px 8px !important; border-bottom: 1px solid rgba(255,255,255,.07); }
  .navbar-rsu .nav-link::after { display: none; }
  .navbar-rsu .dropdown-toggle { display: flex; justify-content: space-between; align-items: center; }
  .navbar-rsu .dropdown-menu,
  .navbar-rsu .dropdown-menu.dm-cols {
    position: static !important; transform: none !important; inset: auto !important;
    min-width: 0; max-width: none; max-height: none; overflow: visible;
    margin: 0 0 .5rem !important; padding: .25rem .5rem;
    background: rgba(255,255,255,.04); border: 0; border-radius: 0;
    border-inline-start: 2px solid var(--gold); box-shadow: none;
  }
  .navbar-rsu .dropdown-menu.dm-cols.show { display: block; }
}

/* ── Statistics cards ───────────────────────────────────── */
.stats-modern { margin-top: 2rem; position: relative; z-index: 6; padding-bottom: 1rem; }
.stat-card {
  display: flex; align-items: center; gap: 1rem; height: 100%;
  background: var(--white); border: 1px solid var(--border); border-bottom: 3px solid var(--gold);
  border-radius: 14px; padding: 1.4rem 1.25rem; box-shadow: var(--shadow-md);
  transition: transform .25s, box-shadow .25s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 58px; height: 58px; flex-shrink: 0; border-radius: 14px; font-size: 26px;
  display: grid; place-items: center; background: var(--teal-pale); color: var(--teal);
}
.stat-num { font-size: 2.3rem; font-weight: 800; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat-lbl { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.4; }
@media (max-width: 575.98px) {
  .stat-card { flex-direction: column; text-align: center; padding: 1.1rem .75rem; }
  .stat-num { font-size: 1.9rem; }
}

/* ── Colleges carousel ──────────────────────────────────── */
.rsu-carousel { --gap: 18px; --per: 1; position: relative; }
@media (min-width: 576px) { .rsu-carousel { --per: 2; } }
@media (min-width: 768px) { .rsu-carousel { --per: 4; } }
@media (min-width: 1100px) { .rsu-carousel { --per: 5; } }
.rsu-carousel-track { gap: var(--gap); padding: 8px 2px 20px; }
.rsu-carousel-track > * { width: calc((100% - var(--gap) * (var(--per) - 1)) / var(--per)); }

.college-card-v2 {
  display: flex; flex-direction: column; background: var(--white); text-align: start;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; color: inherit;
  box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.college-card-v2:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--teal); color: inherit; }
.cc-media {
  aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(160deg, var(--teal-pale), var(--white));
  border-bottom: 3px solid transparent; transition: border-color .3s;
}
.college-card-v2:hover .cc-media { border-bottom-color: var(--gold); }
.cc-media img { width: 100%; height: 100%; object-fit: contain; padding: 22px; transition: transform .4s; }
.college-card-v2:hover .cc-media img { transform: scale(1.06); }
.cc-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.cc-body h5 { font-size: 15.5px; line-height: 1.55; margin: 0; color: var(--navy); min-height: 3.1em; }
.cc-link { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }
.cc-link .bi { transition: transform .25s; }
.college-card-v2:hover .cc-link .bi { transform: translateX(var(--nudge, -4px)); }
[dir="ltr"] .college-card-v2 { --nudge: 4px; }

.rsu-carousel-nav { top: 38%; width: 44px; height: 44px; border-radius: 50%; font-size: 18px; padding: 0; }
.rsu-carousel-nav.prev { inset-inline-start: -22px; }
.rsu-carousel-nav.next { inset-inline-end: -22px; }
@media (max-width: 1250px) { .rsu-carousel-nav.prev { inset-inline-start: 4px; } .rsu-carousel-nav.next { inset-inline-end: 4px; } }
@media (max-width: 575.98px) { .rsu-carousel-nav { display: flex !important; width: 36px; height: 36px; font-size: 15px; } }

.rsu-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: .25rem; }
.rsu-carousel-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 9px; background: var(--border);
  transition: width .3s, background .3s;
}
.rsu-carousel-dots button.active { width: 28px; background: var(--teal); }

/* ── Inner page header ──────────────────────────────────── */
.page-hero { padding: 0.75rem 0; }
.page-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.35; }
.page-hero .breadcrumb { flex-wrap: wrap; margin-top: .5rem; }
.page-hero .breadcrumb-item { font-size: 14px; }
.page-hero .breadcrumb-item + .breadcrumb-item { padding-left: 0; padding-inline-start: .55rem; }
.page-hero .breadcrumb-item + .breadcrumb-item::before {
  float: none; display: inline-block; padding-right: 0; padding-inline-end: .55rem; content: "\203A";
}
[dir="rtl"] .page-hero .breadcrumb-item + .breadcrumb-item::before { content: "\2039"; }
.page-hero-logo { display: flex; justify-content: center; }
.ph-logo {
  width: 140px; height: 140px; border-radius: 50%; padding: 12px; background: var(--white);
  border: 3px solid var(--gold); box-shadow: var(--shadow-lg); display: grid; place-items: center; overflow: hidden;
}
.ph-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (min-width: 992px) {
  .page-hero-logo { justify-content: flex-end; border-inline-start: 1px solid rgba(255,255,255,.15); }
  .ph-logo { width: 160px; height: 160px; }
}
@media (max-width: 991.98px) {
  .page-hero { text-align: center; }
  .page-hero .breadcrumb { justify-content: center; }
  .page-hero-logo { order: -1; }
  .ph-logo { width: 96px; height: 96px; padding: 8px; }
}

/* ── Inner page content ─────────────────────────────────── */
main p { line-height: 1.95; }
main ul:not([class]), main ol:not([class]) { padding-inline-start: 1.4rem; line-height: 1.9; }
main li::marker { color: var(--teal); }
main img { border-radius: 8px; }
main .section-title { font-weight: 800; }
main table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--white); }
main table th { background: var(--navy); color: var(--white); font-weight: 700; padding: .8rem 1rem; text-align: start; }
main table td { padding: .75rem 1rem; border-top: 1px solid var(--border); vertical-align: middle; }
main table tbody tr:nth-child(even) td { background: var(--light); }
main table tbody tr:hover td { background: var(--teal-pale); }
@media (max-width: 767.98px) { main table { display: block; overflow-x: auto; white-space: nowrap; } }
main .card, main .card-rsu { border-radius: 12px; }
main .pagination .page-link { color: var(--navy); border-radius: 8px; margin-inline: 2px; }
main .pagination .active .page-link { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* focus visibility */
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ── Hero slider ────────────────────────────────────────── */
.hero-slider { position: relative; height: 5vh; min-height: 460px; max-height: 900px; overflow: hidden; background: var(--navy); }
.hero-slider .carousel, .hero-slider .carousel-inner, .hero-slider .carousel-item { height: 100%; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(135deg, rgba(10,35,66,.78) 0%, rgba(13,61,110,.58) 55%, rgba(10,90,82,.48) 100%),
              linear-gradient(0deg, rgba(6,22,40,.6), rgba(6,22,40,0) 45%); }
.hero-content { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; pointer-events: none; }
.hero-content a { pointer-events: auto; }
.hero-caption { position: absolute; z-index: 3; inset-inline: 0; bottom: 3.6rem; text-align: center; padding-inline: 1rem; }
.hero-caption span { display: inline-block; max-width: 100%; padding: .4rem 1.2rem; border-radius: 30px; font-weight: 700; font-size: 14px;
  color: var(--white); background: rgba(10,35,66,.62); border: 1px solid rgba(200,148,42,.55); backdrop-filter: blur(6px); }
.hero-slider .carousel-indicators { z-index: 4; margin-bottom: 1.1rem; }
.hero-slider .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border: 0; border-radius: 10px; background: #fff; opacity: .5; transition: width .3s, opacity .3s; }
.hero-slider .carousel-indicators .active { width: 30px; opacity: 1; background: var(--gold-light); }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { z-index: 4; width: 7%; opacity: .75; }
.hero-slider .carousel-control-prev:hover, .hero-slider .carousel-control-next:hover { opacity: 1; }
@media (max-width: 767.98px) {
  .hero-slider { height: 80vh; min-height: 520px; }
  .hero-content .hero-title { font-size: 2rem; }
  .hero-content .hero-desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
  .hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { display: none; }
}

/* ── Announcements ticker ───────────────────────────────── */
.rsu-ticker { background: var(--gold); color: var(--navy); border-bottom: 1px solid rgba(10,35,66,.15); }
.rsu-ticker .container { padding-block: 9px; }
.rsu-ticker-label { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px;
  background: var(--navy); color: var(--gold-light); padding: 5px 16px; border-radius: 30px; white-space: nowrap; }
.rsu-ticker-view { overflow: hidden; flex: 1; min-width: 0; }
.rsu-ticker-track { display: inline-flex; width: max-content; white-space: nowrap; animation: rsu-ticker 10s linear infinite; }
.rsu-ticker-track:hover { animation-play-state: paused; }
.rsu-ticker-item { font-weight: 700; font-size: 15px; padding-inline-end: 2rem; }
.rsu-ticker-item .bi { color: var(--navy); }
@keyframes rsu-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .rsu-ticker-track { animation-name: rsu-ticker-rtl; }
@keyframes rsu-ticker-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .rsu-ticker-track { animation: none; } .rsu-ticker-view { overflow-x: auto; } }
@media (max-width: 575.98px) { .rsu-ticker-label span, .rsu-ticker-label { font-size: 12.5px; padding: 4px 12px; } }

/* ── Quick links ────────────────────────────────────────── */
.quick-links { background: var(--light); }
.ql-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; height: 100%;
  background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--gold); border-radius: 14px;
  padding: 1.5rem 1.4rem; color: inherit; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.ql-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--teal); border-top-color: var(--teal); color: inherit; }
.ql-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; margin-bottom: .6rem;
  color: var(--navy); background: linear-gradient(135deg, var(--gold-light), var(--gold)); transition: background .3s, color .3s; }
.ql-card:hover .ql-icon { background: var(--teal); color: var(--white); }
.ql-title { font-weight: 800; font-size: 16.5px; color: var(--navy); line-height: 1.4; }
.ql-sub { font-size: 13px; color: var(--muted); line-height: 1.6; }
.ql-arrow { margin-top: auto; padding-top: .6rem; color: var(--teal); font-size: 18px; transition: transform .25s; }
.ql-card:hover .ql-arrow { transform: translateX(var(--nudge, -5px)); }
[dir="ltr"] .ql-card { --nudge: 5px; }
@media (max-width: 575.98px) { .ql-card { padding: 1.1rem .9rem; } .ql-icon { width: 46px; height: 46px; font-size: 21px; } .ql-title { font-size: 14.5px; } .ql-sub { display: none; } }

/* ── Events (الأحداث) ───────────────────────────────────── */
.ev-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem; }
.ev-filters button { border: 1px solid var(--border); background: var(--white); color: var(--navy); font-weight: 700; font-size: 14px;
  padding: 6px 20px; border-radius: 30px; transition: all .25s; }
.ev-filters button:hover { border-color: var(--teal); color: var(--teal); }
.ev-filters button.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
[hidden].ev-item, [hidden].ev-featured { display: none !important; }

.ev-date { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; display: flex; flex-direction: column; align-items: center; line-height: 1.15;
  background: var(--white); color: var(--navy); border-radius: 10px; padding: 6px 12px; font-size: 11.5px; font-weight: 700; box-shadow: var(--shadow-sm); border-bottom: 3px solid var(--gold); }
.ev-date b { font-size: 20px; font-weight: 800; }

.ev-featured { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; margin-bottom: 2rem; color: inherit; box-shadow: var(--shadow-md); transition: transform .3s, box-shadow .3s; }
.ev-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.ev-feat-img { position: relative; min-height: 320px; overflow: hidden; }
.ev-feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .5s; }
.ev-featured:hover .ev-feat-img img { transform: scale(1.05); }
.ev-feat-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; gap: .8rem; }
.ev-feat-body h3 { font-size: 1.5rem; line-height: 1.5; margin: 0; }
.ev-feat-body p { margin: 0; color: var(--muted); }
@media (max-width: 767.98px) { .ev-featured { grid-template-columns: 1fr; } .ev-feat-img { min-height: 220px; } .ev-feat-body { padding: 1.4rem; } }

.ev-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; color: inherit; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s; }
.ev-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--teal); color: inherit; }
.ev-card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.ev-card-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .5s; }
.ev-card:hover .ev-card-img img { transform: scale(1.06); }
.ev-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.ev-card-body h5 { font-size: 16px; line-height: 1.6; margin: 0; color: var(--navy); }
.ev-card-body p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.ev-card-body .news-tag, .ev-feat-body .news-tag, .ev-meta .news-tag { align-self: flex-start; }

.ev-side { border-radius: 14px; position: sticky; top: 90px; }
.ev-side-title { font-weight: 800; color: var(--navy); font-size: 15px; padding-bottom: .7rem; margin-bottom: 1rem; border-bottom: 2px solid var(--gold); display: inline-block; }
.ev-empty { text-align: center; padding: 4rem 1rem; background: var(--light); border: 1px dashed var(--border); border-radius: 14px; color: var(--muted); }
.ev-empty .bi { font-size: 3rem; color: var(--teal); }

.ev-article { background: var(--white); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.ev-cover { aspect-ratio: 16 / 8; overflow: hidden; }
.ev-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ev-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.2rem 2rem 0; }
.ev-meta-date { color: var(--muted); font-size: 14px; font-weight: 600; }
.ev-meta-date .bi { color: var(--teal); }
.ev-body { padding: 1rem 2rem 1.5rem; font-size: 16px; line-height: 2.05; color: var(--text); max-width: 78ch; }
.ev-body img { max-width: 100%; height: auto; margin-block: 1rem; }
.ev-article > .row { padding: 0 2rem 1.5rem; margin: 0; }
.ev-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 1.1rem 2rem; border-top: 1px solid var(--border); background: var(--light); }
.ev-share > span { font-weight: 800; color: var(--navy); margin-inline-end: .5rem; }
.ev-share a, .ev-share button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 30px; background: var(--white); color: var(--navy); font-size: 15px; font-weight: 700; transition: all .25s; }
.ev-share a:hover, .ev-share button:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.ev-share button { font-size: 13.5px; }
.ev-back { display: inline-flex; align-items: center; gap: 8px; margin-block: 1.5rem; font-weight: 700; color: var(--teal); }
.ev-related-title { margin-block: .5rem 1.2rem; font-weight: 800; }
@media (max-width: 767.98px) { .ev-meta, .ev-body, .ev-share { padding-inline: 1.2rem; } .ev-article > .row { padding-inline: 1.2rem; } }

/* ── Visitor counter ────────────────────────────────────── */
.visitor-counter {
  max-width: 340px; margin-inline: auto; padding: 1.2rem 1.2rem 1.4rem; text-align: center;
  border-radius: 16px; border: 1px solid rgba(255,255,255,.12); border-top: 3px solid var(--gold);
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.vc-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: .9rem;
  color: var(--gold-light); font-weight: 800; font-size: 13px; }
.vc-digits { display: flex; justify-content: center; gap: 7px; }
.vc-digit {
  position: relative; display: grid; place-items: center; width: 46px; height: 60px; border-radius: 10px;
  font-weight: 800; font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--gold-light);
  background: linear-gradient(180deg, #0d3d6e 0%, #061628 100%); border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 4px 10px rgba(0,0,0,.3);
}
.vc-digit::after { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 1px; background: rgba(0,0,0,.45); }
@media (max-width: 575.98px) {
  .vc-digit { width: 38px; height: 52px; font-size: 1.35rem; }
  .vc-digits { gap: 5px; }
}


/* ── Staff directory ────────────────────────────────────── */
.sf-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 2rem; padding: 14px;
  background: var(--light); border: 1px solid var(--border); border-radius: 16px; }
.sf-search { position: relative; flex: 1 1 260px; }
.sf-search .bi { position: absolute; top: 50%; inset-inline-start: 16px; transform: translateY(-50%); color: var(--muted); }
.sf-search input, .sf-select { width: 100%; height: 46px; border: 1px solid var(--border); border-radius: 30px; background: var(--white);
  font-family: inherit; font-size: 14.5px; color: var(--text); transition: border-color .25s, box-shadow .25s; }
.sf-search input { padding-inline: 44px 16px; }
.sf-select { width: auto; min-width: 220px; padding-inline: 18px; }
.sf-search input:focus, .sf-select:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,110,.15); }
.sf-count { margin-inline-start: auto; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.sf-count b { color: var(--navy); font-size: 18px; }

.sf-card { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--white); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; padding-bottom: 1.2rem;
  box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s; }
.sf-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.sf-cover { width: 100%; height: 84px; border-bottom: 3px solid var(--gold);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0a5a52 100%); }
.sf-avatar { position: relative; flex-shrink: 0; width: 108px; height: 108px; margin-top: -54px; margin-bottom: .8rem; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden; background: var(--teal-pale); border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--gold), var(--shadow-md); }
.sf-avatar span { font-size: 2.4rem; font-weight: 800; color: var(--navy); }
.sf-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.sf-name { font-size: 16px; font-weight: 800; line-height: 1.55; color: var(--navy); margin: 0 0 .25rem; padding-inline: 1rem; }
.sf-role { color: var(--muted); font-size: 13.5px; line-height: 1.6; padding-inline: 1rem; }
.sf-unit { display: inline-block; margin: .6rem 1rem 0; padding: 3px 12px; border-radius: 30px; font-size: 12px; font-weight: 700;
  background: var(--teal-pale); color: var(--teal); line-height: 1.7; }
.sf-actions { display: flex; justify-content: center; gap: 8px; width: calc(100% - 2rem); margin-top: auto; padding-top: 1rem; }
.sf-card > .sf-unit + .sf-actions, .sf-card > .sf-role + .sf-actions { margin-top: auto; }
.sf-card .sf-actions { border-top: 1px solid var(--border); margin-top: auto; }
.sf-card .sf-role, .sf-card .sf-unit { margin-bottom: 1rem; }
.sf-actions:empty { display: none; }
.sf-actions a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-size: 16px;
  border: 1px solid var(--border); color: var(--navy); background: var(--white); transition: all .25s; }
.sf-actions a:hover { background: var(--teal); border-color: var(--teal); color: var(--white); transform: translateY(-2px); }
.sf-actions a.sf-cv { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.sf-actions a.sf-cv:hover { background: var(--navy); border-color: var(--navy); color: var(--gold-light); }
@media (max-width: 575.98px) {
  .sf-toolbar { padding: 10px; } .sf-select { width: 100%; } .sf-count { margin-inline-start: 0; width: 100%; text-align: center; }
  .sf-avatar { width: 84px; height: 84px; margin-top: -42px; } .sf-cover { height: 66px; }
  .sf-name { font-size: 14px; } .sf-role { font-size: 12.5px; } .sf-actions a { width: 34px; height: 34px; font-size: 14px; }


  
}

