/* Direktori Dosen ITBI — visual identity: red, gold, white */
:root {
  --red: #97000b;
  --red-dark: #65000a;
  --red-bright: #c90018;
  --gold: #f4b400;
  --gold-light: #ffe28a;
  --ink: #24242a;
  --muted: #73747c;
  --paper: #ffffff;
  --soft: #f7f5f2;
  --line: #e9e5df;
  --shadow: 0 18px 50px rgba(50, 20, 20, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "DM Sans", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.topline { background: var(--red-dark); color: rgba(255,255,255,.82); font-size: 10px; letter-spacing: .14em; font-weight: 700; }
.topline-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topline-right { color: var(--gold-light); letter-spacing: .04em; }
.nav-wrap { background: #fff; border-bottom: 1px solid #eee8df; position: relative; z-index: 5; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 270px; }
.brand img { width: 53px; height: 66px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; gap: 3px; }
.brand strong { color: var(--red); font-family: Manrope, sans-serif; font-size: 17px; letter-spacing: .035em; }
.brand small { color: #777; font-size: 10px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: #4b4545; font-size: 13px; font-weight: 700; padding: 12px 0; position: relative; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--red); }
.main-nav a.active:after { content: ""; height: 3px; background: var(--gold); position: absolute; bottom: 2px; left: 0; right: 0; border-radius: 4px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 23px; height: 2px; background: var(--red); margin: 5px; }
.hero { min-height: 390px; background: radial-gradient(circle at 78% 30%, rgba(255,255,255,.09), transparent 26%), linear-gradient(115deg, #65000a 0%, #97000b 54%, #b40013 100%); color: #fff; position: relative; overflow: hidden; }
.hero:before { content: ""; position: absolute; width: 480px; height: 480px; border: 1px solid rgba(255,220,120,.23); border-radius: 50%; right: -105px; top: -205px; box-shadow: 0 0 0 22px rgba(255,255,255,.025), 0 0 0 48px rgba(255,255,255,.02); }
.hero:after { content: ""; position: absolute; width: 380px; height: 380px; border: 1px solid rgba(255,220,120,.14); border-radius: 50%; right: 80px; bottom: -315px; box-shadow: 0 0 0 25px rgba(255,255,255,.025), 0 0 0 55px rgba(255,255,255,.02); }
.hero-pattern { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(45deg, transparent 48%, rgba(255,255,255,.15) 49%, transparent 50%), linear-gradient(-45deg, transparent 48%, rgba(255,255,255,.12) 49%, transparent 50%); background-size: 34px 34px; mask-image: linear-gradient(90deg, #000, transparent 80%); }
.hero-content { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 58px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--gold-light); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.eyebrow span { width: 25px; height: 2px; background: var(--gold); display: inline-block; }
.hero h1 { margin: 17px 0 13px; font-family: Manrope, sans-serif; font-size: clamp(42px, 6vw, 66px); line-height: 1.08; letter-spacing: -.055em; font-weight: 800; }
.hero h1 em { color: #ffd45a; font-style: normal; }
.hero p { max-width: 620px; margin: 0; color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.8; }
.hero-stats { display: flex; align-items: center; gap: 25px; margin-top: 30px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { color: #fff; font: 800 25px Manrope, sans-serif; }
.stat span { color: rgba(255,255,255,.7); font-size: 11px; }
.stat-divider { height: 38px; width: 1px; background: rgba(255,255,255,.25); }
.hero-seal { position: absolute; z-index: 1; right: max(7%, calc((100vw - 1160px)/2)); top: 50%; transform: translateY(-50%) rotate(-8deg); width: 178px; height: 178px; border: 1px solid rgba(255,220,120,.48); border-radius: 50%; display: grid; place-content: center; text-align: center; color: rgba(255,225,150,.75); font: 800 23px Manrope, sans-serif; letter-spacing: .1em; box-shadow: 0 0 0 12px rgba(255,255,255,.025), inset 0 0 0 8px rgba(255,255,255,.025); }
.hero-seal span { color: var(--gold); font-size: 12px; }
.directory-section { padding: 76px 0 84px; background: linear-gradient(#fff, #fcfbfa); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.eyebrow-dark { color: var(--red); }
.section-heading h2 { font: 800 clamp(27px, 4vw, 36px) Manrope, sans-serif; letter-spacing: -.045em; margin: 11px 0 7px; color: #282329; }
.section-heading p { color: var(--muted); margin: 0; font-size: 14px; }
.heading-mark { color: rgba(151,0,11,.13); font: 800 22px Manrope, sans-serif; text-align: right; letter-spacing: .08em; }
.heading-mark span { display: block; color: #aaa; font: 700 9px "DM Sans", sans-serif; letter-spacing: .18em; margin-top: 4px; }
.filter-panel { display: grid; grid-template-columns: 1fr 270px auto; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 8px 28px rgba(40,20,20,.045); }
.search-box { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 15px; border: 1px solid #e9e5e0; border-radius: 7px; background: #fcfbfa; }
.search-icon { color: var(--red); font-size: 28px; line-height: 1; transform: rotate(-20deg); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: 13px "DM Sans", sans-serif; }
.select-box { display: flex; flex-direction: column; gap: 2px; padding: 5px 12px; border: 1px solid #e9e5e0; border-radius: 7px; background: #fcfbfa; }
.select-box span { color: #8c8580; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.select-box select { width: 100%; border: 0; outline: 0; background: transparent; color: #39343a; font: 600 12px "DM Sans", sans-serif; padding: 3px 0; }
.reset-filter { min-height: 48px; border: 1px solid #ead8d8; border-radius: 7px; background: #fff; padding: 0 20px; color: var(--red); font: 700 12px "DM Sans", sans-serif; cursor: pointer; transition: .2s; }
.reset-filter:hover { color: #fff; background: var(--red); border-color: var(--red); }
.results-line { display: flex; justify-content: space-between; gap: 15px; color: #777; font-size: 11px; margin: 22px 2px 17px; }
.results-line strong { color: var(--red); }
.results-note { color: #a29c97; }
.faculty-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.faculty-card { min-width: 0; background: #fff; border: 1px solid #eee9e4; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 25px rgba(35,20,20,.045); transition: transform .25s, box-shadow .25s, border-color .25s; }
.faculty-card:hover { transform: translateY(-5px); border-color: #e7d2a0; box-shadow: var(--shadow); }
.card-photo-link { display: block; background: #f1efec; }
.card-photo { height: 255px; position: relative; overflow: hidden; background: linear-gradient(135deg, #eee9e4, #f8f6f3); }
.card-photo:after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(30,0,0,.22)); pointer-events: none; }
.card-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 25%; transition: transform .45s; }
.faculty-card:hover .card-photo img { transform: scale(1.045); }
.photo-corner { position: absolute; z-index: 1; bottom: 13px; left: 14px; color: #fff; font: 800 10px Manrope, sans-serif; letter-spacing: .18em; }
.card-body { padding: 20px 20px 18px; }
.card-kicker { color: #b28a35; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.card-body h3 { margin: 9px 0 7px; color: #282329; font: 800 16px/1.45 Manrope, sans-serif; }
.card-body h3 a:hover { color: var(--red); }
.faculty-prodi { min-height: 18px; margin: 0; color: #777; font-size: 12px; }
.faculty-role { display: inline-block; margin-top: 12px; padding: 6px 9px; border-radius: 4px; background: #fff7e3; color: #896514; font-size: 10px; font-weight: 700; }
.detail-link { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 13px; border-top: 1px solid #f0ece7; color: var(--red); font-size: 11px; font-weight: 800; }
.detail-link span { font-size: 16px; }
.empty-state { text-align: center; padding: 55px 20px; border: 1px dashed #dfd5cc; border-radius: 10px; background: #fff; }
.empty-icon { margin: 0 auto 13px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff5df; color: var(--red); font-size: 25px; }
.empty-state h3 { margin: 0 0 7px; font: 800 18px Manrope, sans-serif; }
.empty-state p { margin: 0; color: #858087; font-size: 13px; }
.closing-band { padding: 30px 0; background: #f7f3ec; border-top: 1px solid #eee6da; border-bottom: 1px solid #eee6da; }
.closing-inner { display: flex; align-items: center; gap: 18px; }
.closing-emblem { width: 58px; height: 58px; display: grid; place-items: center; border: 2px solid var(--gold); outline: 1px solid var(--red); outline-offset: 3px; border-radius: 50%; color: var(--red); font: 800 13px Manrope, sans-serif; flex: 0 0 auto; }
.closing-inner div:nth-child(2) { flex: 1; }
.closing-inner div:nth-child(2) span { color: #9a7a37; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.closing-inner h2 { margin: 5px 0 0; font: 800 17px Manrope, sans-serif; color: #3b3030; }
.closing-link { color: var(--red); font-size: 11px; font-weight: 800; white-space: nowrap; }
.closing-link b { margin-left: 7px; }
.site-footer { background: #2c1719; color: rgba(255,255,255,.65); font-size: 10px; }
.footer-inner { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.profile-page { min-height: 70vh; padding: 38px 0 75px; background: #f8f6f3; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #89817c; font-size: 11px; margin-bottom: 20px; }
.breadcrumb a { color: var(--red); font-weight: 700; }
.profile-card { display: grid; grid-template-columns: 360px 1fr; background: #fff; border: 1px solid #eee7df; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.profile-photo-wrap { min-height: 470px; position: relative; background: #eee9e4; }
.profile-photo-wrap img { width: 100%; height: 100%; min-height: 470px; display: block; object-fit: cover; object-position: center 20%; }
.profile-photo-label { position: absolute; left: 20px; bottom: 20px; color: #fff; font: 800 10px Manrope, sans-serif; letter-spacing: .18em; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.profile-content { padding: 48px; }
.profile-content h1 { margin: 15px 0 7px; font: 800 clamp(25px, 4vw, 38px)/1.2 Manrope, sans-serif; letter-spacing: -.04em; color: #292329; }
.profile-subtitle { margin: 0; color: #777; font-size: 14px; }
.profile-role { display: inline-block; margin-top: 17px; padding: 7px 12px; border-radius: 4px; background: #fff4d9; color: #876116; font-size: 11px; font-weight: 700; }
.profile-data { margin-top: 30px; border-top: 1px solid #eee9e4; }
.profile-data-row { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid #eee9e4; font-size: 12px; }
.profile-data-row span { color: #888; }
.profile-data-row strong { color: #343039; font-weight: 700; overflow-wrap: anywhere; }
.back-link { display: inline-block; margin-top: 27px; color: var(--red); font-size: 12px; font-weight: 800; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .main-nav { gap: 17px; }
  .hero-seal { right: 5%; width: 135px; height: 135px; font-size: 18px; }
  .faculty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-card { grid-template-columns: 300px 1fr; }
  .profile-content { padding: 34px; }
}
@media (max-width: 650px) {
  .container { width: min(100% - 32px, 520px); }
  .topline-inner { min-height: 29px; font-size: 8px; }
  .topline-right { display: none; }
  .nav-inner { min-height: 72px; }
  .brand { min-width: 0; gap: 9px; }
  .brand img { width: 42px; height: 53px; }
  .brand strong { font-size: 14px; }
  .brand small { max-width: 205px; font-size: 8px; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 10px 20px 17px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 18px rgba(0,0,0,.08); flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 5px; border-bottom: 1px solid #f3efeb; }
  .main-nav a.active:after { display: none; }
  .hero { min-height: 0; }
  .hero-content { padding-top: 52px; padding-bottom: 48px; }
  .hero h1 { font-size: 43px; }
  .hero p { font-size: 13px; max-width: 100%; }
  .hero-seal { display: none; }
  .directory-section { padding: 50px 0 58px; }
  .section-heading { align-items: start; }
  .heading-mark { display: none; }
  .section-heading p { line-height: 1.6; font-size: 12px; }
  .filter-panel { grid-template-columns: 1fr; padding: 11px; }
  .search-box, .reset-filter { min-height: 45px; }
  .select-box { min-height: 48px; }
  .results-note { display: none; }
  .faculty-grid { grid-template-columns: 1fr; gap: 15px; }
  .faculty-card { display: grid; grid-template-columns: 125px 1fr; }
  .card-photo { height: 100%; min-height: 190px; }
  .card-body { padding: 15px 14px; }
  .card-body h3 { font-size: 14px; }
  .faculty-prodi { font-size: 11px; }
  .faculty-role { margin-top: 8px; font-size: 9px; }
  .detail-link { margin-top: 12px; padding-top: 9px; }
  .closing-inner { align-items: flex-start; flex-wrap: wrap; }
  .closing-inner h2 { font-size: 14px; line-height: 1.5; }
  .closing-link { margin-left: 76px; }
  .footer-inner { min-height: 65px; flex-direction: column; justify-content: center; gap: 5px; }
  .profile-page { padding: 25px 0 50px; }
  .profile-card { grid-template-columns: 1fr; }
  .profile-photo-wrap, .profile-photo-wrap img { min-height: 0; height: 340px; }
  .profile-content { padding: 27px 22px 30px; }
  .profile-content h1 { font-size: 27px; }
  .profile-data-row { grid-template-columns: 115px 1fr; gap: 12px; }
}


/* ===== Penyelarasan identitas visual dengan website utama ITBI ===== */
.nav-wrap {
  background: #b50912;
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 5px 16px rgba(60, 0, 0, .12);
}
.nav-inner { min-height: 88px; }
.brand img { background: #fff; border-radius: 7px; padding: 2px; }
.brand strong { color: #fff; }
.brand small { color: rgba(255,255,255,.76); }
.main-nav { gap: clamp(16px, 2.2vw, 31px); }
.main-nav a { color: rgba(255,255,255,.94); }
.main-nav a:hover, .main-nav a.active { color: #ffe28a; }
.main-nav a.active:after { background: var(--gold); bottom: 0; }
.nav-toggle span { background: #fff; }

/* Ringkasan distribusi dosen per program studi */
.prodi-overview { margin: 0 0 23px; padding: 17px 18px 18px; border: 1px solid #eee5d8; border-radius: 11px; background: linear-gradient(115deg, #fffdf9, #fff); }
.prodi-overview-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; color: #8a1118; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.prodi-overview-line { display: inline-block; width: 20px; height: 2px; background: var(--gold); }
.prodi-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.prodi-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 10px 6px 12px; border: 1px solid #eee5d8; border-radius: 6px; background: #fff; color: #51474a; font: 600 11px "DM Sans", sans-serif; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.prodi-chip:hover { border-color: #d9b75c; background: #fffaf0; transform: translateY(-1px); }
.prodi-chip strong { display: inline-grid; min-width: 21px; height: 21px; place-items: center; border-radius: 50%; background: #8f0710; color: #fff; font-size: 10px; }

/* Pagination direktori */
.directory-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 18px; border-top: 1px solid #eee9e3; }
.directory-pagination[hidden] { display: none !important; }
.pagination-summary { color: #89827d; font-size: 11px; }
.pagination-actions { display: flex; align-items: center; gap: 9px; }
.page-button { min-height: 38px; padding: 0 13px; border: 1px solid #e8ded5; border-radius: 6px; background: #fff; color: #850811; font: 700 11px "DM Sans", sans-serif; cursor: pointer; transition: .2s; }
.page-button:hover:not(:disabled) { background: #8f0710; border-color: #8f0710; color: #fff; }
.page-button:disabled { opacity: .42; cursor: not-allowed; }
.page-current { min-width: 48px; color: #6f6262; text-align: center; font-size: 11px; font-weight: 700; }
.faculty-card[hidden] { display: none !important; }

@media (max-width: 900px) {
  .nav-inner { min-height: 80px; }
  .main-nav { gap: 15px; }
  .main-nav a { font-size: 12px; }
}
@media (max-width: 650px) {
  .nav-wrap { border-bottom-width: 3px; }
  .nav-inner { min-height: 72px; }
  .brand strong { color: #fff; }
  .brand small { color: rgba(255,255,255,.76); }
  .main-nav { background: #a80710; border-bottom: 3px solid var(--gold); box-shadow: 0 12px 18px rgba(0,0,0,.16); }
  .main-nav a { color: #fff; border-bottom-color: rgba(255,255,255,.12); }
  .main-nav a:hover, .main-nav a.active { color: #ffe28a; }
  .prodi-overview { padding: 14px 12px; margin-bottom: 18px; }
  .prodi-chips { gap: 7px; }
  .prodi-chip { font-size: 10px; }
  .directory-pagination { align-items: flex-start; flex-direction: column; }
  .pagination-actions { width: 100%; justify-content: space-between; }
  .page-button { flex: 1; }
}
