:root {
  --primary: #DB1A1A;
  --soft: #FFF6F6;
  --accent: #8CC7C4;
  --deep: #2C687B;
  --text: #222222;
  --muted: #6f6f6f;
  --white: #ffffff;
  --border: #eadada;
  --danger: #B00020;
  --success: #15803D;
  --shadow: 0 20px 48px rgba(44, 104, 123, .14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: #fff;
  color: var(--text);
}

a {
  text-decoration: none;
  color: var(--primary);
}

img {
  max-width: 100%;
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 10px 7%;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(20, 20, 20, .08);
  border-bottom: 1px solid #f2eeee;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #222;
  min-width: 210px;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(219, 26, 26, .2);
}

.brand strong {
  display: block;
  font-weight: 900;
  line-height: 1.05;
}

.brand span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.15;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 28px;
  color: var(--primary);
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-links > a,
.nav-dropbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 6px;
  color: #222;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
}

.nav-links > a:hover,
.nav-dropbtn:hover {
  color: var(--primary);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 42px;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 42px;
  left: 0;
  min-width: 210px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 18px 38px rgba(44, 104, 123, .16);
  z-index: 9999;
  padding: 8px 0;
}

.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown:focus-within .nav-dropdown-content {
  display: block;
}

.nav-dropdown-content a {
  display: block;
  width: 100%;
  height: auto;
  padding: 11px 15px;
  color: #222;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
  white-space: nowrap;
}

.nav-dropdown-content a:hover {
  background: var(--soft);
  color: var(--primary);
}

.nav-links .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  margin-left: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: #222;
}

.nav-links .btn-outline:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  margin-left: 4px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.container {
  width: min(1180px, 92%);
  max-width: 1180px;
  margin: 34px auto 60px;
  overflow-x: hidden;
}

.grid {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 22px;
  width: 100%;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.page-heading h1 {
  margin: 0 0 6px;
}

.section-title {
  font-size: 27px;
  color: #222;
  margin: 40px 0 18px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.section-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  background: var(--primary);
  margin-top: 10px;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 18px;
}

.hero-card {
  background:
    linear-gradient(105deg, rgba(219, 26, 26, .97) 0%, rgba(219, 26, 26, .92) 44%, rgba(44, 104, 123, .75) 100%),
    url('../img/banner-alumni-ucb.jpg') center/cover no-repeat;
  color: #fff;
  border-radius: 0;
  padding: 54px 48px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .20), rgba(0, 0, 0, .04));
  pointer-events: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  width: max-content;
  padding: 8px 13px;
  border-radius: 0;
  background: rgba(255, 246, 246, .18);
  border-left: 4px solid var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hero h1 {
  font-size: 43px;
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.hero p {
  font-size: 17px;
  line-height: 1.75;
  opacity: .98;
  max-width: 710px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero-card .btn-primary {
  background: #fff;
  color: var(--primary);
}

.hero-photo-card {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-photo-card img {
  width: 100%;
  height: 595px;
  object-fit: cover;
  display: block;
}

.hero-photo-card .caption {
  padding: 22px;
  border-top: 6px solid var(--accent);
}

.hero-photo-card h3 {
  margin: 0 0 8px;
  color: var(--deep);
  font-size: 24px;
}

/* =========================================================
   CARDS, STATS, BUTTONS
   ========================================================= */

.card,
.stat-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 24px;
  box-shadow: 0 16px 34px rgba(44, 104, 123, .07);
  overflow: hidden;
}

.card h3 {
  color: #252525;
}

.card:hover {
  transform: translateY(-2px);
  transition: .2s ease;
  box-shadow: 0 22px 44px rgba(44, 104, 123, .10);
}

.stat-card {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 5px solid var(--primary);
}

.stat-card strong {
  display: block;
  font-size: 32px;
  color: var(--primary);
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
  margin-top: 9px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stats-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  border-top: 4px solid var(--accent);
}

.btn-primary,
.btn-secondary,
.btn-outline,
.btn-danger {
  border: 0;
  border-radius: 0;
  padding: 12px 18px;
  font-weight: 900;
  display: inline-block;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 13px;
  max-width: 100%;
  white-space: normal;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: var(--deep);
  color: #fff;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--primary);
  background: #fff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 8px 11px;
  font-size: 12px;
}

.pill {
  display: inline-block;
  background: var(--soft);
  border-left: 3px solid var(--primary);
  padding: 7px 10px;
  color: var(--deep);
  font-weight: 800;
  font-size: 12px;
  margin: 3px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================
   FORM
   ========================================================= */

.form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  font-weight: 800;
  color: #252525;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 0;
  font: inherit;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(140, 199, 196, .35);
  border-color: var(--deep);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.alert {
  padding: 14px 16px;
  border-radius: 0;
  margin-bottom: 16px;
}

.alert-error {
  background: #FFF1F2;
  color: #8A0617;
}

.alert-success {
  background: #ECFDF5;
  color: #065F46;
}

.alert-info {
  background: var(--soft);
  color: #7A1A1A;
  border-left: 4px solid var(--primary);
}

/* =========================================================
   POST, PROFILE, ALUMNI
   ========================================================= */

.post {
  margin-bottom: 18px;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
  flex-shrink: 0;
}

.avatar-lg {
  width: 132px;
  height: 132px;
  border-radius: 0;
  object-fit: cover;
  flex-shrink: 0;
}

.post-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 0;
  margin-top: 12px;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.alumni-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.alumni-card > div {
  min-width: 0;
}

.alumni-card strong,
.alumni-card p,
.alumni-card span,
.alumni-card a {
  overflow-wrap: anywhere;
}

.profile-header {
  display: flex;
  gap: 22px;
  align-items: center;
}

.connection-note {
  background: var(--soft);
  border-left: 4px solid var(--primary);
  padding: 12px 14px;
  margin: 12px 0;
  color: #7A1A1A;
  font-weight: 700;
}

/* =========================================================
   TABLE
   ========================================================= */

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table th {
  color: #222;
  background: var(--soft);
  border-top: 3px solid var(--primary);
}

/* =========================================================
   NOTIFICATION & COMMENT
   ========================================================= */

.notification-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item.unread {
  background: var(--soft);
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

.comment-item {
  align-items: flex-start;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}

.auth-card {
  max-width: 540px;
  margin: auto;
}

.small-link {
  font-size: 14px;
}

/* =========================================================
   JOB / LOWONGAN
   ========================================================= */

.job-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: auto;
  overflow: hidden;
}

.job-card * {
  max-width: 100%;
  box-sizing: border-box;
}

.job-card h3 {
  margin: 6px 0 4px;
  line-height: 1.25;
}

.job-card h3 a,
.job-card p,
.job-card span {
  overflow-wrap: anywhere;
}

.job-card p {
  margin: 6px 0;
}

.job-card-image-wrap {
  width: 100%;
  height: 230px;
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.job-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #fff;
}

.job-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 58px;
}

.job-card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
  max-width: 100%;
}

.job-card .pill {
  white-space: normal;
}

.job-card .btn-outline,
.job-card .btn-primary,
.job-card .btn-danger {
  max-width: 100%;
  white-space: normal;
}

.job-detail-image-wrap {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--border);
  margin: 18px 0;
  overflow: hidden;
}

.job-detail-image {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: #fff;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: #151515;
  color: #fff;
  padding: 34px 7%;
  margin-top: 60px;
}

.footer a {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 4px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 851px) and (max-width: 1250px) {
  .navbar {
    padding: 10px 4%;
  }

  .brand {
    min-width: 185px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand span {
    font-size: 11px;
  }

  .nav-links {
    gap: 6px;
  }

  .nav-links > a,
  .nav-dropbtn {
    font-size: 12px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .container {
    width: min(1120px, 94%);
  }
}

@media (max-width: 1050px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .navbar {
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 5%;
  }

  .brand {
    min-width: auto;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 5%;
    right: 5%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links > a,
  .nav-dropbtn {
    width: 100%;
    height: auto;
    padding: 12px 0;
    justify-content: flex-start;
    text-align: left;
  }

  .nav-dropdown {
    display: block;
    width: 100%;
    height: auto;
  }

  .nav-dropdown-content {
    display: block;
    position: static;
    min-width: 100%;
    box-shadow: none;
    border: 0;
    border-left: 4px solid var(--primary);
    background: var(--soft);
    margin: 0 0 8px 0;
    padding: 4px 0;
  }

  .nav-dropdown-content a {
    background: var(--soft);
    padding: 10px 14px;
  }

  .nav-links .btn-outline,
  .nav-links .btn-primary {
    width: 100%;
    margin-top: 6px;
    text-align: center;
    justify-content: center;
  }

  .container {
    width: 92%;
    margin-top: 26px;
  }

  .hero,
  .grid,
  .grid-3,
  .stats,
  .stats-four {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 30px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero-photo-card img {
    height: auto;
    max-height: 420px;
  }

  .footer {
    flex-direction: column;
  }

  .profile-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-heading {
    flex-direction: column;
  }

  .notification-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .job-card-image-wrap {
    height: 260px;
  }
}

@media (max-width: 600px) {
  .card,
  .stat-card {
    padding: 18px;
  }

  .job-card-image-wrap {
    height: 240px;
  }

  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .btn-primary,
  .btn-secondary,
  .btn-outline,
  .btn-danger {
    width: auto;
  }
}

/* =========================================================
   DASHBOARD ALUMNI
   ========================================================= */

.dashboard-welcome {
  background: linear-gradient(120deg, var(--soft), #ffffff);
  border-left: 6px solid var(--primary);
}

.dashboard-welcome-content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.dashboard-profile-mini {
  flex-shrink: 0;
}

.dashboard-stats .stat-card {
  min-height: 125px;
}

.profile-progress {
  width: 100%;
  height: 16px;
  background: var(--soft);
  border: 1px solid var(--border);
  margin: 14px 0 10px;
  overflow: hidden;
}

.profile-progress-bar {
  height: 100%;
  background: var(--primary);
}

.quick-links {
  display: grid;
  gap: 8px;
}

.quick-links a {
  display: block;
  padding: 10px 12px;
  background: var(--soft);
  border-left: 4px solid var(--primary);
  color: var(--deep);
  font-weight: 800;
}

.quick-links a:hover {
  background: #fff;
  color: var(--primary);
}

.dashboard-highlight {
  border-left: 6px solid var(--primary);
  background: #fffafa;
}

.dashboard-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.dashboard-list-item:last-child {
  border-bottom: 0;
}

.dashboard-mini-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-mini-card {
  border: 1px solid var(--border);
  padding: 12px;
  background: #fff;
  min-width: 0;
}

.dashboard-mini-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.dashboard-mini-card h3 {
  font-size: 15px;
  line-height: 1.3;
  margin: 8px 0 4px;
}

.dashboard-mini-card h3 a {
  overflow-wrap: anywhere;
}

.dashboard-alumni-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--border);
  padding: 14px;
  min-width: 0;
}

.dashboard-alumni-card > div {
  min-width: 0;
}

.dashboard-alumni-card a,
.dashboard-alumni-card span,
.dashboard-alumni-card strong {
  overflow-wrap: anywhere;
}

@media(max-width:1050px) {
  .dashboard-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width:850px) {
  .dashboard-welcome-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-list-item {
    flex-direction: column;
  }

  .dashboard-mini-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PROFILE COMPLETION DETAIL
   ========================================================= */

.profile-missing-box {
  background: #FFF6F6;
  border-left: 4px solid var(--primary);
  padding: 12px 14px;
  margin: 14px 0;
}

.profile-missing-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--deep);
}

.profile-missing-box ul {
  margin: 0;
  padding-left: 18px;
}

.profile-missing-box li {
  margin: 4px 0;
  color: #7A1A1A;
  font-weight: 700;
  font-size: 14px;
}

.profile-complete-box {
  background: #ECFDF5;
  color: #065F46;
  border-left: 4px solid var(--success);
  padding: 12px 14px;
  margin: 14px 0;
  font-weight: 800;
}

/* =========================================================
   ADMIN STATISTICS DASHBOARD
   ========================================================= */

.admin-stat-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
}

.admin-stat-summary .stat-card {
  min-height: 120px;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.admin-stat-card {
  min-width: 0;
}

.admin-stat-card h3 {
  margin-top: 0;
  color: var(--deep);
}

.admin-stat-card .table {
  margin-top: 10px;
}

@media(max-width: 900px) {
  .admin-stat-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   COMPANY DIRECTORY
   ========================================================= */

.company-card h3 {
  margin: 10px 0 8px;
  line-height: 1.3;
}

.company-card h3 a {
  overflow-wrap: anywhere;
}

.company-card p {
  margin: 6px 0;
}

/* =========================================================
   ACCOUNT DUPLICATE / MERGE REQUEST
   ========================================================= */

.duplicate-alert-card {
  border-left: 6px solid var(--primary);
  background: #fffafa;
}

.duplicate-warning-box {
  background: var(--soft);
  border-left: 4px solid var(--danger);
  padding: 12px 14px;
  margin: 14px 0 18px;
  color: #7A1A1A;
  font-weight: 700;
}

.duplicate-candidate {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.duplicate-candidate-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.duplicate-candidate-main > div {
  min-width: 0;
}

.duplicate-candidate-info {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 190px;
}

.duplicate-score {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  padding: 8px 10px;
  font-size: 12px;
}

.duplicate-reasons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.duplicate-reasons span {
  background: var(--soft);
  color: var(--deep);
  border-left: 3px solid var(--primary);
  padding: 6px 8px;
  font-weight: 800;
  font-size: 12px;
}

@media(max-width:850px) {
  .duplicate-candidate {
    flex-direction: column;
  }

  .duplicate-candidate-info {
    justify-items: start;
    min-width: 0;
  }

  .duplicate-reasons {
    justify-content: flex-start;
  }
}

/* =========================================================
   ADMIN MERGE REQUEST
   ========================================================= */

.merge-request-card {
  margin-bottom: 20px;
  border-left: 6px solid var(--primary);
}

.merge-reason {
  background: var(--soft);
  border-left: 4px solid var(--primary);
  padding: 12px 14px;
  margin: 14px 0;
}

.merge-reason p {
  margin-bottom: 0;
}

.merge-compare-table th {
  width: 180px;
}

.merge-compare-table td {
  vertical-align: top;
}

.merge-same {
  background: #ECFDF5;
  color: #065F46;
  font-weight: 800;
}

@media(max-width:850px) {
  .merge-compare-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* =========================================================
   FIX POST IMAGE - TAMPIL UTUH, TIDAK TERPOTONG
   ========================================================= */

.post-image-frame {
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.post-image-fit {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 720px !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto;
  background: #fff;
}

/* Matikan efek crop dari class lama */
.post-image {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 720px !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
  margin: 12px auto 0;
  background: #fff;
  border: 1px solid var(--border);
}

/* Khusus feed beranda */
.home-latest-posts .post-image-frame {
  max-width: 100%;
}

.home-latest-posts .post-image-fit {
  max-height: 720px !important;
}

/* Untuk layar kecil */
@media(max-width: 850px) {
  .post-image-fit,
  .post-image {
    max-height: none !important;
    width: 100% !important;
  }
}

/* =========================================================
   MERGE MANUAL - DUPLICATE NAME DETECTION
   ========================================================= */

.duplicate-name-group {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 18px;
}

.duplicate-name-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.duplicate-name-header h3 {
  margin: 0 0 4px;
  color: var(--primary);
}

.duplicate-name-table td,
.duplicate-name-table th {
  vertical-align: top;
}

@media(max-width: 850px) {
  .duplicate-name-header {
    flex-direction: column;
  }

  .duplicate-name-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* =========================================================
   PROFESSIONAL HOMEPAGE - UCB ALUMNI NETWORK
   ========================================================= */

.reveal-on-load {
  animation: homeFadeUp .75s ease both;
}

.reveal-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes homeFadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-hero-pro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 34px;
  align-items: center;
  min-height: 620px;
  padding: 54px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(140, 199, 196, .38), transparent 34%),
    linear-gradient(135deg, #fff 0%, #fff6f6 45%, #fefefe 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.home-hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  opacity: .28;
}

.home-hero-bg-shape.shape-one {
  width: 220px;
  height: 220px;
  right: -70px;
  top: -80px;
  background: var(--primary);
}

.home-hero-bg-shape.shape-two {
  width: 180px;
  height: 180px;
  left: -70px;
  bottom: -70px;
  background: var(--deep);
}

.home-hero-content,
.home-hero-visual {
  position: relative;
  z-index: 2;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: #fff;
  color: var(--primary);
  border-left: 4px solid var(--primary);
  box-shadow: 0 12px 26px rgba(44, 104, 123, .09);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 18px;
}

.home-hero-pro h1 {
  margin: 0;
  color: #171717;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -.035em;
  max-width: 820px;
}

.home-hero-pro p {
  color: #4b4b4b;
  font-size: 17px;
  line-height: 1.78;
  margin: 20px 0 0;
  max-width: 760px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.home-btn-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  text-align: center;
}

.home-hero-mini {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  max-width: 640px;
}

.home-hero-mini div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--deep);
  font-weight: 800;
}

.home-hero-mini i {
  width: 30px;
  height: 30px;
  background: var(--soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-hero-image-wrap {
  position: relative;
  border: 10px solid #fff;
  box-shadow: 0 30px 60px rgba(44, 104, 123, .22);
  overflow: hidden;
  min-height: 520px;
  background: #fff;
}

.home-hero-image-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.home-floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--border);
  box-shadow: 0 16px 34px rgba(44, 104, 123, .18);
  backdrop-filter: blur(10px);
  animation: homeFloat 3.8s ease-in-out infinite;
}

.home-floating-card i {
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.home-floating-card strong {
  display: block;
  color: var(--primary);
  font-size: 20px;
  line-height: 1;
}

.home-floating-card span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.home-floating-card.card-top {
  left: 18px;
  top: 18px;
}

.home-floating-card.card-bottom {
  right: 18px;
  bottom: 18px;
  animation-delay: .55s;
}

@keyframes homeFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.home-stats-pro {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.home-stat-pro {
  position: relative;
  overflow: hidden;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-bottom: 5px solid var(--primary);
  box-shadow: 0 18px 38px rgba(44, 104, 123, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.home-stat-pro:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 50px rgba(44, 104, 123, .14);
}

.home-stat-icon {
  width: 48px;
  height: 48px;
  background: var(--soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.home-stat-pro strong {
  display: block;
  color: var(--primary);
  font-size: 34px;
  line-height: 1;
}

.home-stat-pro span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-top: 9px;
}

.home-section {
  margin-top: 54px;
}

.home-section-heading {
  margin-bottom: 22px;
}

.home-section-heading.center {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.home-section-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.home-section-heading h2 {
  margin: 0;
  color: #171717;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.025em;
}

.home-section-heading p {
  margin-top: 12px;
  line-height: 1.7;
}

.home-feature-grid,
.home-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-feature-card,
.home-step-card {
  position: relative;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 16px 34px rgba(44, 104, 123, .07);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-feature-card::before,
.home-step-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--primary);
}

.home-feature-card:hover,
.home-step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(219, 26, 26, .35);
  box-shadow: 0 28px 54px rgba(44, 104, 123, .13);
}

.home-feature-icon {
  width: 58px;
  height: 58px;
  background: var(--soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  margin-bottom: 18px;
}

.home-feature-card h3,
.home-step-card h3 {
  margin: 0 0 10px;
  color: var(--deep);
  font-size: 22px;
}

.home-feature-card p,
.home-step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.home-workflow {
  margin-top: 54px;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(44, 104, 123, .08), rgba(219, 26, 26, .05));
  border: 1px solid var(--border);
}

.home-step-card span {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 34px;
  font-weight: 900;
  color: rgba(219, 26, 26, .11);
}

.home-step-card i {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.home-public-search {
  padding: 46px 0 0;
  border-top: 1px solid var(--border);
}

.home-search-card {
  border-top: 5px solid var(--primary);
  box-shadow: 0 22px 44px rgba(44, 104, 123, .10);
}

.home-search-card label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.home-search-card label i {
  color: var(--primary);
}

.home-search-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.home-result-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 14px;
  padding: 10px 13px;
  background: var(--soft);
  color: var(--deep);
  font-weight: 800;
  border-left: 4px solid var(--primary);
}

.home-result-info i {
  color: var(--primary);
}

.home-public-alumni-card {
  transition: transform .25s ease, box-shadow .25s ease;
}

.home-public-alumni-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 50px rgba(44, 104, 123, .13);
}

.home-public-alumni-card .public-alumni-avatar {
  width: 78px;
  height: 78px;
}

.home-public-alumni-card h3 {
  color: #171717;
}

.home-public-alumni-card p i {
  color: var(--primary);
  margin-right: 5px;
}

.home-cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.home-cta-card strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--deep);
  font-size: 18px;
}

.home-cta-card strong i {
  color: var(--primary);
}

.home-cta-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.home-empty-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-left: 5px solid var(--primary);
}

.home-empty-card > i {
  width: 46px;
  height: 46px;
  background: var(--soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-side-panel {
  position: sticky;
  top: 104px;
  align-self: start;
}

.home-feature-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.home-feature-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  background: var(--soft);
  color: var(--deep);
  border-left: 4px solid var(--primary);
  font-weight: 800;
}

.home-feature-list a:hover {
  background: #fff;
  color: var(--primary);
}

.home-pending-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-left: 6px solid var(--primary);
}

.home-pending-card > i {
  width: 54px;
  height: 54px;
  background: var(--soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* Responsive homepage */
@media(max-width: 1100px) {
  .home-hero-pro {
    grid-template-columns: 1fr;
    padding: 38px;
  }

  .home-hero-image-wrap,
  .home-hero-image-wrap img {
    min-height: auto;
    height: 430px;
  }

  .home-stats-pro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-feature-grid,
  .home-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-side-panel {
    position: static;
  }
}

@media(max-width: 850px) {
  .home-hero-pro {
    padding: 28px;
    min-height: auto;
  }

  .home-hero-pro h1 {
    font-size: 34px;
  }

  .home-hero-image-wrap,
  .home-hero-image-wrap img {
    height: 320px;
  }

  .home-floating-card {
    position: static;
    margin-top: 10px;
    animation: none;
  }

  .home-stats-pro,
  .home-feature-grid,
  .home-step-grid {
    grid-template-columns: 1fr;
  }

  .home-workflow {
    padding: 24px;
  }

  .home-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-search-actions {
    align-items: flex-start;
  }

  .home-pending-card {
    flex-direction: column;
  }
}

@media(max-width: 560px) {
  .home-hero-pro {
    padding: 22px;
  }

  .home-hero-actions,
  .home-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-btn,
  .home-cta-actions a {
    width: 100%;
  }

  .home-hero-image-wrap,
  .home-hero-image-wrap img {
    height: 260px;
  }
}
/* =========================================================
   NAVBAR ICONS - FONT AWESOME
   ========================================================= */

.nav-links > a,
.nav-dropbtn {
  gap: 6px;
}

.nav-links > a i,
.nav-dropbtn i {
  font-size: 13px;
  color: var(--primary);
  flex-shrink: 0;
}

.nav-links > a span,
.nav-dropbtn span {
  display: inline-block;
}

.nav-caret {
  font-size: 11px !important;
  margin-left: 2px;
  color: #555 !important;
}

.nav-dropdown-content a {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-dropdown-content a i {
  width: 18px;
  color: var(--primary);
  text-align: center;
  flex-shrink: 0;
}

.menu-toggle i {
  font-size: 28px;
}

.nav-links .btn-primary i,
.nav-links .btn-outline i {
  color: inherit;
}

@media(max-width: 850px) {
  .nav-links > a,
  .nav-dropbtn {
    gap: 9px;
  }

  .nav-dropdown-content a {
    padding-left: 16px;
  }
}