  @import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&display=swap");

  /* Light theme – white background with orange accent */
  :root {
    --surface: #ffffff;
    /* main background */
    --surface-dim: #f5f5f5;
    /* subtle dim for sections */
    --surface-bright: #e0e0e0;
    /* brighter surfaces */
    --surface-container: #fafafa;
    /* cards / containers */
    --surface-container-high: #f0f0f0;
    --ink: #212529;
    /* dark text */
    --muted: #6c757d;
    /* muted text */
    --line: #dee2e6;
    /* borders / lines */
    --primary: #ff6600;
    /* orange accent */
    --primary-dark: #e65c00;
    /* darker orange */
    --primary-soft: rgba(255, 102, 0, 0.14);
    --secondary: #ff9800;
    /* secondary orange */
    --tertiary: #ffcc80;
    /* light orange / warm gray */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.2);
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    background: var(--surface);
    color: var(--ink);
    font-family: "Inter Tight", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
  }

  a {
    color: white;
  }

  a:hover {
    color: var(--tertiary);
  }

  .btn,
  button {
    border-radius: 9999px;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.02em;
    min-height: 48px;
    padding: 12px 32px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }

  .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
  }

  .btn-primary:hover,
  .btn-primary:focus-visible {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(102, 46, 255, 0.35);
    color: #fff;
    transform: translateY(-1px);
  }

  .btn-light {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
  }

  .btn-light:hover,
  .btn-light:focus-visible {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
  }

  .btn-outline-dark {
    border-color: var(--line);
    color: var(--ink);
  }

  .btn-outline-dark:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--ink);
  }

  .container {
    width: min(100% - 40px, 1180px);
  }

  .topbar {
    background: transparent;
    color: var(--muted);
    font-size: 14px;
  }

  .topbar-inner {
    min-height: 42px;
  }

  .main-nav {
    padding: 9px 0;
    background: rgba(255, 165, 0, 0.85);
    /* orange semi‑transparent */
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.25s ease;
  }

  .main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 40px, 1500px);
  }

  .main-nav.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  }

  .brand,
  .navbar-nav a {
    color: var(--ink);
  }

  .brand {
    align-items: center;
    display: inline-flex;
    gap: 14px;
    text-decoration: none;
    white-space: nowrap;
  }

  /* Logo container – circular, fully visible */
  .brand-logo {
    align-items: center;
    background: var(--surface-container-high);
    border: 1px solid var(--line);
    border-radius: 100%;
    display: flex;
    height: 100px;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 0;
    width: 100px;
    overflow: hidden;
  }

  .brand-logo img {
    padding: 0;
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: left center;
  }

  .brand-copy {
    display: grid;
    gap: 2px;
  }

  .brand-copy strong {
    color: var(--ink);
    font-size: 17px;
    letter-spacing: 0.04em;
  }

  .brand-copy small {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .brand small {
    color: var(--muted);
  }

  .navbar-nav a {
    border-radius: var(--radius);
    text-decoration: none;
    transition:
      color 0.2s ease,
      background 0.2s ease;
  }

  .navbar-nav {
    align-items: center;
    gap: 6px;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  /* Hamburger toggle button */
  .navbar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--ink);
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
  }

  /* Mobile responsive */
  @media (max-width: 768px) {
    .navbar-toggle {
      display: block;
    }

    .navbar-nav {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--surface);
      flex-direction: column;
      padding: 20px;
      gap: 10px;
      box-shadow: var(--shadow-lg);
      margin: 0;
    }

    .navbar-nav.active {
      display: flex;
    }

    .navbar-nav .dropdown-menu {
      position: static;
      opacity: 1;
      visibility: visible;
      transform: none;
      pointer-events: auto;
      box-shadow: none;
      background: var(--surface-container);
      margin-top: 8px;
    }

    .navbar-nav .dropdown-menu .dropdown-menu {
      left: 0;
    }
  }

  .navbar-nav>li {
    position: relative;
  }

  .navbar-nav>li>a {
    display: block;
    padding: 10px 10px;
    white-space: nowrap;
  }

  .navbar-nav>li>a.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 42px;
    height: 42px;
    min-height: 42px;
    font-size: 18px;
    line-height: 1;
  }

  .navbar-nav>li>a.btn.nav-icon {
    padding: 0;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    font-size: 18px;
  }

  .navbar-nav>li>a.btn {
    padding: 12px 24px;
  }

  .navbar-nav .dropdown-menu {
    background: var(--surface-container);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: block;
    left: 0;
    margin-top: 0;
    min-width: 230px;
    opacity: 0;
    padding: 8px;
    pointer-events: none;
    position: absolute;
    top: 100%;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    z-index: 20;
  }

  .navbar-nav .dropdown:hover>.dropdown-menu,
  .navbar-nav .dropdown:focus-within>.dropdown-menu,
  .navbar-nav .dropdown-menu:hover {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0.1s;
  }

  .navbar-nav .dropdown-menu a,
  .navbar-nav .dropdown-menu button {
    border-radius: var(--radius-sm);
    display: block;
    padding: 10px 12px;
    white-space: normal;
  }

  .navbar-nav .dropdown-menu button.dropdown-toggle {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
  }

  .navbar-nav .dropdown-menu .dropdown {
    position: relative;
  }

  .navbar-nav .dropdown-menu .dropdown-menu {
    left: calc(100% - 5px);
    margin: 0;
    top: 0;
  }

  .navbar-nav .dropdown-menu .dropdown:hover>.dropdown-menu,
  .navbar-nav .dropdown-menu .dropdown:focus-within>.dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0.1s;
  }

  .navbar-nav .dropdown-toggle::after {
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    content: "";
    display: inline-block;
    margin: -3px 0 0 8px;
    padding: 3px;
    transform: rotate(45deg);
    vertical-align: middle;
  }

  .navbar-nav a:hover {
    background: var(--primary);
    /* orange hover background */
    color: #fff;
    /* white text on hover */
  }

  .navbar-toggler {
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 7px 10px;
  }

  .hero {
    position: relative;
    min-height: 560px;
    /* building image with a very thin dark overlay so text stays readable */
    background:
      linear-gradient(rgba(0, 0, 0, 0.40), rgba(0, 0, 0, 0.40)),
      url("../images/background_web.jpeg") center / cover no-repeat;
    background-size: cover;
    background-position: center;
  }

  /* Responsive tweaks */
  @media (max-width: 576px) {

    /* shrink logo on very small screens */
    .brand-logo {
      height: 45px;
      width: 45px;
    }

    .hero {
      min-height: 400px;
    }
  }

  .hero:after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -170px;
    top: 90px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow:
      0 0 0 42px rgba(255, 255, 255, 0.04),
      0 0 0 84px rgba(255, 255, 255, 0.035);
  }

  .hero-content {
    padding-top: 145px;
    z-index: 1;
  }

  .hero-content * {
    color: #ffffff;
    /* make all text inside hero white for readability */
  }

  .hero .eyebrow {
    color: #ffd27a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
  }

  .hero .hero-copy {
    color: #e0e0e0;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .bg-soft {
    background: var(--surface-dim);
  }

  .hero h1 {
    max-width: 760px;
    font-weight: 800;
  }

  .hero-actions .btn-light {
    color: #fff;
    border: 0;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
  }

  .hero-actions .btn-light:hover {
    background: var(--primary-dark);
  }

  .hero-stamp {
    z-index: 1;
  }

  .section-space {
    padding: 112px 0;
  }

  .section-kicker {
    letter-spacing: 0.22em;
    color: var(--tertiary);
    font-size: 12px;
    font-weight: 600;
  }

  .intro h2 {
    max-width: 720px;
  }

  .stats {
    border-top: 1px solid var(--line);
  }

  .stat {
    min-height: 115px;
  }

  .stat strong {
    color: var(--tertiary);
  }

  .programs {
    background: var(--surface-dim);
  }

  .program-card {
    min-height: 245px;
    background: var(--surface);
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--ink);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
  }

  .program-card:hover {
    background: var(--surface);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    color: var(--ink);
    transform: translateY(-4px);
  }

  .program-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary);
  }

  .program-card:hover:before {
    /* keep accent static */
  }

  .program-card h3,
  .program-card p {
    max-width: 250px;
  }

  .program-image {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
  }

  .program-card .arrow-link {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .news-card {
    padding: 24px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface-container);
    border: 1px solid var(--line);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
  }
  .news-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary);
  }
  .news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-soft);
  }

  .news-image {
    height: 180px;
    background: linear-gradient(135deg, var(--surface-container-high), var(--primary-dark));
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
  }

  .news-image.has-image {
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
  }

  .news-card:hover .news-image.has-image {
    transform: scale(1.05);
  }

  .news-content {
    padding: 20px 0 0;
    line-height: 1.6;
    color: var(--ink);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .news-content small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
  }

  .news-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.4;
  }

  .news-content h2 a {
    text-decoration: none;
    color: var(--ink);
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-content h2 a:hover {
    color: var(--primary);
  }

  .news-content p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
  }

  .news-content .arrow-link {
    margin-top: auto;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
  }

  .news-content .arrow-link:hover {
    gap: 12px;
    color: var(--primary-dark);
  }

  .cta-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
  }

  .cta-band:after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: 8%;
    top: -150px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    box-shadow:
      0 0 0 30px rgba(255, 255, 255, 0.07),
      0 0 0 60px rgba(255, 255, 255, 0.05);
  }

  .cta-band .container {
    position: relative;
    z-index: 1;
  }

  .page-hero {
    align-items: center;
    background:
      linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
      url("/images/bg_lapangan.jpeg") center / cover no-repeat;
    color: #fff;
    display: flex;
    min-height: 320px;
    padding: 72px 0;
    text-align: center;
  }

  .page-hero .container {
    display: grid;
    justify-items: center;
  }

  .page-hero .section-kicker {
    color: #ffd27a;
    margin-bottom: 10px;
  }

  .page-hero h1 {
    color: #fff;
    font-weight: 800;
    margin: 0;
  }

  .empty-state {
    background: var(--surface-container);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    color: var(--ink);
    padding: 40px 24px;
  }

  .form-control,
  .form-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: 9999px;
    color: var(--ink);
    min-height: 48px;
    padding: 12px 20px;
  }

  .form-control::placeholder {
    color: var(--muted);
  }

  .form-control:focus,
  .form-select:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 46, 255, 0.2);
    color: var(--ink);
  }

  .form-control:focus,
  .form-select:focus {
    border-color: var(--primary);
  }

  .site-footer {
    background: var(--surface-dim);
    color: var(--muted);
    padding: 64px 0 0;
  }

  .site-footer a:hover {
    color: var(--tertiary);
  }

  .footer-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    padding-bottom: 48px;
  }

  .footer-brand .brand {
    margin-bottom: 16px;
  }

  .footer-brand p {
    max-width: 320px;
  }

  .footer-title {
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
    text-transform: uppercase;
  }

  .footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
  }

  .footer-social a {
    align-items: center;
    background: var(--surface-container-high);
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    width: 44px;
  }

  .footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
  }

  .footer-contact {
    display: grid;
    gap: 14px;
  }

  .footer-contact li {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    list-style: none;
  }

  .footer-contact i {
    color: var(--primary);
    font-size: 18px;
    margin-top: 2px;
  }

  .footer-contact a {
    color: var(--muted);
    text-decoration: none;
  }

  .footer-contact a:hover {
    color: var(--primary);
  }

  .footer-bottom {
    border-top: 1px solid var(--line);
    padding: 20px 0;
    text-align: center;
  }

  .footer-bottom p {
    margin: 0;
  }

  @media (max-width: 767px) {
    .footer-grid {
      gap: 32px;
      grid-template-columns: 1fr;
    }
  }

  .admin-shell {
    background: var(--surface-dim);
    color: var(--ink);
    display: flex;
    min-height: 100vh;
  }

  .admin-sidebar {
    background: var(--surface-container);
    border-right: 1px solid var(--line);
    min-height: 100vh;
    padding: 32px 20px;
    width: 260px;
  }

  .admin-sidebar a {
    border-radius: var(--radius);
    color: var(--muted);
    display: block;
    margin: 4px 0;
    padding: 12px 14px;
  }

  .admin-sidebar a:hover,
  .admin-sidebar a.active {
    background: var(--primary-soft);
    color: var(--ink);
  }

  .admin-content {
    flex: 1;
    padding: 48px min(6vw, 80px);
  }

  .admin-top {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 32px;
  }

  .metric,
  .admin-welcome,
  .admin-table {
    background: var(--surface-container);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 24px;
  }

  .metric {
    display: grid;
    gap: 8px;
  }

  .metric i,
  .metric strong {
    color: var(--tertiary);
  }

  .admin-form {
    background: var(--surface-container);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    display: grid;
    gap: 20px;
    padding: 32px;
  }

  .admin-form label,
  .suggestion-form label {
    color: var(--muted);
    display: grid;
    gap: 8px;
  }

  .admin-login {
    align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(102, 46, 255, 0.25), transparent 30%), var(--surface-dim);
    display: grid;
    min-height: 100vh;
    place-items: center;
  }

  .login-panel {
    background: var(--surface-container);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    padding: 40px;
    width: calc(100% - 32px);
  }

  .login-panel form {
    display: grid;
    gap: 16px;
    margin: 24px 0;
  }

  .login-panel label {
    color: var(--muted);
    display: grid;
    gap: 8px;
  }

  @media (max-width: 991px) {
    .container {
      width: min(100% - 32px, 760px);
    }

    .main-nav {
      padding: 12px 0;
    }

    .main-nav .container {
      width: min(100% - 32px, 760px);
    }

    .hero {
      min-height: 620px;
    }

    .hero-content {
      padding-top: 105px;
    }

    .hero:after {
      width: 360px;
      height: 360px;
      right: -160px;
    }

    .navbar-nav {
      align-items: stretch;
      gap: 2px;
      flex-direction: column;
      padding: 12px 0 4px;
    }

    .navbar-nav a {
      display: block;
    }

    .navbar-nav .dropdown-menu,
    .navbar-nav .dropdown-menu .dropdown-menu {
      background: transparent;
      border: 0;
      box-shadow: none;
      display: none;
      left: auto;
      margin: 0;
      opacity: 1;
      padding: 0 0 0 16px;
      pointer-events: auto;
      position: static;
      transform: none;
      visibility: visible;
    }

    .navbar-nav .dropdown:hover>.dropdown-menu,
    .navbar-nav .dropdown:focus-within>.dropdown-menu,
    .navbar-nav .dropdown-menu .dropdown:hover>.dropdown-menu,
    .navbar-nav .dropdown-menu .dropdown:focus-within>.dropdown-menu {
      display: block;
    }

    .admin-shell {
      display: block;
    }

    .admin-sidebar {
      min-height: auto;
      width: 100%;
    }

    .admin-content {
      padding: 32px 16px;
    }
  }

  @media (max-width: 575px) {
    .container {
      width: calc(100% - 32px);
    }

    .hero {
      min-height: 650px;
    }

    .hero-content {
      padding-top: 88px;
    }

    .hero h1 {
      font-size: 3.15rem;
    }

    .hero-stamp {
      right: 18px;
      bottom: 30px;
    }

    .hero:after {
      width: 280px;
      height: 280px;
      top: 260px;
    }

    .section-space {
      padding: 78px 0;
    }

    .stat {
      border-right: 0;
      border-bottom: 1px solid var(--line);
    }
  }

  /* Extra small screens (smartphones) */
  @media (max-width: 480px) {
    .brand-logo {
      height: 40px;
      width: 40px;
    }

    .hero {
      min-height: 480px;
    }

    .hero h1 {
      font-size: 2.4rem;
    }

    .hero-content {
      padding-top: 70px;
    }

    .section-space {
      padding: 60px 0;
    }

    .program-card {
      min-height: auto;
      padding: 20px;
    }

    .navbar-nav a {
      font-size: 14px;
      padding: 8px 10px;
    }
  }

  /* Enhanced profile card with decorative accent, shadow, and hover effect */
  .profile-card {
    background: var(--surface);
    border: none;
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  /* Top accent bar for visual interest */
  .profile-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary);
  }

  /* Hover lift effect */
  .profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }

  /* Admin panel sections – reuse profile-card style */
  .admin-panel {
    background: var(--surface);
    border: none;
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .admin-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary);
  }

  .admin-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }

  /* Admin metric cards – reuse profile-card style */
  .admin-metric {
    background: var(--surface);
    border: none;
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .admin-metric::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary);
  }

  .admin-metric:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }

  /* Suggestion card specific tweaks */
  .suggestion-card textarea.form-control {
    min-height: 150px !important;
    border-radius: 12px !important;
    background: #fff !important;
    border: 1px solid #dfe2e7 !important;
    padding: 14px 18px !important;
    color: var(--ink) !important;
  }

  .suggestion-card textarea.form-control:focus {
    border-color: #ff8c3a !important;
    box-shadow: 0 0 0 .2rem rgba(255, 102, 0, .12) !important;
  }

  .suggestion-card .form-control,
  .suggestion-card .form-select {
    border-radius: 12px;
    border-color: #dfe2e7;
    min-height: 46px;
  }

  .suggestion-card .form-label {
    font-weight: 700;
    color: #4a4f58;
    font-size: 13px;
    margin-bottom: 6px;
  }

  .timeline-list {
    list-style: none;
    padding: 0;
  }

  .timeline-list li {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--surface-container);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    transition: transform 0.2s ease;
  }

  .timeline-list li:hover {
    transform: translateX(8px);
  }

  .timeline-list li::before {
    display: none;
  }

  .principal-card {
    background: var(--surface);
    border: none;
    border-radius: var(--radius-xl);
    padding: 52px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: center;
    gap: 48px;
  }

  /* Top accent bar for principal card */
  .principal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary);
  }

  .principal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 18px;
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    height: 500px;
    padding-top: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 72px 72px 28px 28px;
    background: #ffd095;
  }

  .principal-img {
    width: min(100%, 410px);
    height: 400px;
    object-fit: cover;
    object-position: center top;
    border: 0;
    position: relative;
    z-index: 1;
  }

  .principal-meta h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.35rem;
    text-align: center;
  }

  .principal-title {
    font-weight: 600;
    color: var(--muted);
    margin: 0;
    text-align: center;
  }

  .principal-quote {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    padding: 0;
  }

  .principal-quote::before {
    display: none;
    content: "Sambutan\\A Kepala Sekolah";
    white-space: pre-line;
    display: block;
    margin-bottom: 26px;
    color: var(--ink);
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
  }

  .principal-quote::first-line {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .principal-intro {
    margin-bottom: 26px;
  }

  .principal-intro .section-kicker {
    color: var(--primary);
    margin-bottom: 8px;
  }

  .principal-intro h2 {
    color: var(--ink);
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
  }

  .principal-quote::before {
    display: none;
  }

  .quote-mark {
    display: none;
  }

  .quote-mark-bottom {
    text-align: right;
    transform: rotate(180deg);
  }

  .principal-quote p {
    white-space: pre-line;
    text-align: left;
    font-style: normal;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0;
  }

  .misi-list {
    padding-left: 20px;
  }

  .narrow {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .misi-list li {
    margin-bottom: 12px;
  }

  .profile-card p {
    margin-bottom: 1.5rem;
    text-align: justify;
  }

  .profile-card h2,
  .profile-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
  }

  /* News detail card */
  .news-detail-card {
    padding: 32px 40px;
  }

  .news-detail-card .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .news-detail-card .article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .news-detail-card .article-featured-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    object-fit: cover;
  }

  .lead-copy {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .news-detail-card .lead-copy {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  .news-detail-card .article-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    word-break: break-word;
  }

  .news-detail-card .article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1rem 0;
  }

  .news-detail-card .article-body p {
    margin-bottom: 1.25rem;
  }

  .news-detail-card .download-box {
    background: var(--surface-container);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 2rem 0;
  }

  .news-detail-card .download-box h3 {
    margin-bottom: 1rem;
    color: var(--ink);
    font-size: 1.1rem;
  }

  .news-detail-card .download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    border: 1px solid var(--line);
    transition: background 0.2s ease;
  }

  .news-detail-card .download-item:hover {
    background: var(--primary-soft);
  }

  .news-detail-card .arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-top: 1.5rem;
  }

  .news-detail-card .arrow-link:hover {
    color: var(--primary-dark);
  }

  /* ===== Profile: history ===== */
  .history-section {
    padding: 28px 0;
  }

  .history-overview {
    padding-top: 72px;
  }

  .history-closing-section {
    padding-bottom: 88px;
  }

  .history-card {
    padding: clamp(28px, 5vw, 56px);
  }

  .history-card h2 {
    color: var(--ink);
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 28px;
    text-transform: none;
  }

  .history-card h2::after {
    background: var(--primary);
    content: "";
    display: block;
    height: 4px;
    margin-top: 16px;
    width: 64px;
  }

  .history-card p {
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: left;
  }

  .timeline-card {
    background: linear-gradient(135deg, #fff, #fff8ef);
  }

  .timeline-list {
    margin: 0;
    position: relative;
  }

  .timeline-list::before {
    background: linear-gradient(var(--primary), #ffd69d);
    content: "";
    height: calc(100% - 44px);
    left: 21px;
    position: absolute;
    top: 22px;
    width: 2px;
  }

  .timeline-list li {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    line-height: 1.65;
    margin: 0 0 18px 50px;
    padding: 20px 22px;
    position: relative;
  }

  .timeline-list li::before {
    align-items: center;
    background: var(--primary);
    border: 5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--primary);
    content: "";
    display: flex;
    height: 18px;
    left: -39px;
    position: absolute;
    top: 22px;
    width: 18px;
  }

  .timeline-list strong {
    color: var(--primary-dark);
    display: inline-block;
    font-size: 1.05rem;
    margin-bottom: 4px;
  }

  .history-closing-card {
    background: linear-gradient(135deg, var(--primary-soft), #fff);
  }

  .history-closing-card p:last-child {
    border-top: 1px solid var(--line);
    color: var(--ink);
    margin: 28px 0 0;
    padding-top: 28px;
  }

  /* ===== Profile: vision and mission ===== */
  .vision-mission-section {
    padding-top: 72px;
  }

  .vision-mission-card {
    padding: clamp(28px, 5vw, 60px);
  }

  .vision-mission-card>h2 {
    color: var(--ink);
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
  }

  .vision-mission-card>h3 {
    align-items: center;
    color: var(--primary-dark);
    display: flex;
    font-size: 1.1rem;
    font-weight: 800;
    gap: 12px;
    letter-spacing: 0.08em;
    margin: 36px 0 18px;
    text-transform: uppercase;
  }

  .vision-mission-card>h3::before {
    background: var(--primary);
    border-radius: 50%;
    content: "";
    height: 10px;
    width: 10px;
  }

  .vision-mission-card>h3+p {
    background: linear-gradient(135deg, #fff7ec, #fff);
    border-left: 5px solid var(--primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    color: var(--ink);
    font-size: clamp(1.08rem, 2vw, 1.25rem);
    font-style: italic;
    line-height: 1.75;
    margin: 0;
    padding: 28px 32px;
    text-align: left;
  }

  .vision-mission-card .misi-list {
    counter-reset: mission;
    display: grid;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .vision-mission-card .misi-list li {
    background: var(--surface-container);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--muted);
    counter-increment: mission;
    line-height: 1.65;
    margin: 0;
    min-height: 76px;
    padding: 18px 20px 18px 72px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }

  .vision-mission-card .misi-list li::before {
    align-items: center;
    background: var(--primary);
    border-radius: 50%;
    color: #fff;
    content: counter(mission, decimal-leading-zero);
    display: flex;
    font-size: 0.78rem;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    left: 20px;
    position: absolute;
    top: 19px;
    width: 34px;
  }

  .vision-mission-card .misi-list li:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.1);
    transform: translateX(4px);
  }

  @media (max-width: 575px) {

    .history-overview,
    .vision-mission-section {
      padding-top: 52px;
    }

    .timeline-list li {
      margin-left: 38px;
    }

    .timeline-list li::before {
      left: -32px;
    }

    .vision-mission-card>h3+p {
      padding: 22px;
    }

    .vision-mission-card .misi-list li {
      padding-left: 66px;
    }
  }

  .principal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }

  @media (max-width: 991px) {
    .principal-card {
      grid-template-columns: 1fr;
      gap: 36px;
    }

    .principal-header {
      grid-column: 1;
      grid-row: 1;
      max-width: 410px;
      width: 100%;
      justify-self: center;
    }

    .principal-quote {
      grid-column: 1;
      grid-row: 2;
    }
  }

  @media (max-width: 575px) {
    .principal-img {
      height: 320px;
    }

    .principal-card {
      padding: 28px 22px;
    }

    .principal-header {
      height: 390px;
      border-radius: 52px 52px 24px 24px;
    }
  }

  /* ===== Dark Footer ===== */
  .site-footer {
    background: #1a1a2e !important;
    color: #cccccc;
  }

  .site-footer a {
    color: #cccccc;
  }

  .site-footer a:hover {
    color: var(--primary);
  }

  .site-footer .footer-title {
    color: #ffffff;
  }

  .site-footer .brand-copy strong,
  .site-footer .brand-copy small {
    color: #ffffff;
  }

  .site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-footer .footer-bottom p {
    color: #999;
  }

  .site-footer .footer-social a {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
  }

  .site-footer .footer-social a:hover {
    background: var(--primary);
    color: #fff;
  }

  .site-footer .footer-contact li {
    color: #cccccc;
  }

  .site-footer .footer-contact i {
    color: var(--primary);
  }

  /* ===== Accreditation page ===== */
  .accreditation-section {
    background: var(--surface);
  }

  .accreditation-intro {
    align-items: center;
    display: grid;
    gap: 64px;
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
    margin-bottom: 64px;
  }

  .accreditation-copy h2 {
    color: var(--ink);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    margin: 10px 0 22px;
  }

  .accreditation-copy p {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 16px;
  }

  .accreditation-grade {
    align-items: center;
    background: linear-gradient(145deg, #fff4df, #ffd28a);
    border: 8px double var(--primary);
    border-radius: 50%;
    box-shadow: 0 14px 30px rgba(255, 102, 0, 0.2);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    height: 270px;
    justify-content: center;
    justify-self: center;
    text-align: center;
    width: 270px;
  }

  .accreditation-grade span,
  .accreditation-grade small {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
  }

  .accreditation-grade strong {
    color: var(--primary);
    font-family: Georgia, serif;
    font-size: 9rem;
    line-height: 0.95;
  }

  .certificate-placeholder {
    align-items: center;
    background: linear-gradient(135deg, #eef8ff, #ffffff);
    border: 2px dashed #77b8d7;
    border-radius: var(--radius-lg);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 430px;
    padding: 40px 24px;
    text-align: center;
  }

  .certificate-placeholder i {
    color: var(--primary);
    font-size: 4rem;
    margin-bottom: 14px;
  }

  .certificate-placeholder h2 {
    font-weight: 800;
    margin-bottom: 8px;
  }

  .certificate-placeholder p {
    color: var(--muted);
    margin: 0;
  }

  @media (max-width: 767px) {
    .accreditation-intro {
      gap: 36px;
      grid-template-columns: 1fr;
    }

    .certificate-placeholder {
      min-height: 300px;
    }
  }

  /* ===== Department Page Hero ===== */
  .dept-hero {
    position: relative;
    min-height: 420px;
    background: linear-gradient(rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.60)), url("/images/background_web.jpeg") center / cover no-repeat;
    color: #fff;
  }

  .dept-hero .section-kicker {
    color: var(--tertiary);
  }

  .dept-hero h1 {
    color: #fff;
    font-weight: 800;
  }

  .dept-hero p,
  .dept-hero .lead {
    color: #e0e0e0;
  }

  .dept-hero a {
    color: #fff;
  }

  /* ===== Dark Content Section ===== */
  .section-dark {
    background: #1a1a2e;
    color: #e0e0e0;
  }

  .section-dark h2,
  .section-dark h3 {
    color: #ffffff;
  }

  .section-dark .profile-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .section-dark .profile-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  }

  .section-dark .profile-card::before {
    background: var(--primary);
  }

  .section-dark .profile-card p,
  .section-dark .profile-card li {
    color: #cccccc;
  }

  .section-dark .profile-card h2,
  .section-dark .profile-card h3 {
    color: var(--primary);
  }

  .section-dark .footer-contact i {
    color: var(--primary);
  }

  .section-dark .footer-contact li,
  .section-dark .footer-contact span,
  .section-dark .footer-contact a {
    color: #cccccc;
  }

  .section-dark .misi-list li {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary);
  }

  /* ===== Department Image ===== */
  .dept-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
  }

  .tkkr-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: hidden;
    border-radius: var(--radius-md);
  }

  .dept-image.tkkr-gallery img {
    border: 0;
    border-radius: 0;
    height: 460px;
    max-height: none;
    object-fit: cover;
    width: 100%;
  }

  /* ===== Staff directory ===== */
  .staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 24px;
  }

  .staff-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 14px;
    position: relative;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
  }

  .staff-card img {
    background: #f1f1f1;
    border-radius: var(--radius-md);
    height: 250px;
    object-fit: cover;
    width: 100%;
  }

  .staff-card h2 {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 800;
    margin: 16px 4px 5px;
    min-height: 2.5em;
  }

  .staff-card p {
    color: var(--muted);
    margin: 0 4px 10px;
  }

  .staff-detail {
    align-items: center;
    background: var(--primary);
    border: 0;
    border-radius: 12px 0 0 0;
    color: #fff;
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    position: absolute;
    right: 14px;
    top: 14px;
  }

  .staff-detail span {
    font-size: .8rem;
  }

  .staff-modal[hidden] {
    display: none;
  }

  .staff-modal {
    inset: 0;
    position: fixed;
    z-index: 1000;
  }

  .staff-modal__backdrop {
    background: rgba(0, 0, 0, .7);
    inset: 0;
    position: absolute;
  }

  .staff-modal__content {
    background: #fff;
    border-radius: var(--radius-lg);
    display: grid;
    gap: 30px;
    grid-template-columns: 240px 1fr;
    left: 50%;
    max-width: 900px;
    padding: 36px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92%, 900px);
  }

  .staff-modal__photo {
    background: #f2f2f2;
    border-radius: var(--radius-md);
    height: 280px;
    object-fit: cover;
    width: 100%;
  }

  .staff-modal__close {
    background: transparent;
    border: 0;
    color: var(--ink);
    font-size: 2rem;
    min-height: auto;
    padding: 0;
    position: absolute;
    right: 16px;
    top: 8px;
  }

  .staff-modal h2 {
    font-weight: 800;
    margin: 10px 0 20px;
  }

  .staff-modal dl div {
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 120px 1fr;
    padding: 12px 0;
  }

  .staff-modal dt {
    font-weight: 800;
  }

  .staff-modal dd {
    margin: 0;
  }

  @media (max-width:575px) {
    .staff-modal__content {
      grid-template-columns: 1fr;
      max-height: 90vh;
      overflow: auto;
      padding: 28px;
    }

    .staff-modal__photo {
      height: 180px;
    }

    .staff-detail span {
      display: none;
    }
  }

  @media (max-width: 575px) {
    .dept-image.tkkr-gallery img {
      height: 320px;
    }
  }

  /* ===== Program Card as Link ===== */
  a.program-card {
    text-decoration: none;
    display: block;
  }

  a.program-card:hover {
    color: var(--ink);
  }

  /* =========================================================
    ADMIN PANEL - MODERN ORANGE THEME
    ========================================================= */
  .admin-shell {
    min-height: 100vh;
    display: flex;
    background: #f6f7f9;
    color: #1f2937;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    width: 270px;
    min-width: 270px;
    height: 100vh;
    padding: 24px 18px;
    background: #16181d;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    flex-direction: column;
    z-index: 110;
  }

  .admin-sidebar__header {
    display: flex;
    align-items: center;
  }

  .admin-sidebar__panel {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
  }

  .admin-sidebar-toggle {
    display: none;
  }

  .admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 24px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .admin-brand__logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .admin-brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .admin-brand strong {
    display: block;
    font-size: 12px;
    letter-spacing: .04em;
  }

  .admin-brand small {
    display: block;
    color: #a9acb5;
    font-size: 10px;
    margin-top: 3px;
    letter-spacing: .12em;
  }

  .admin-menu {
    display: grid;
    gap: 6px;
    margin-top: 20px;
  }

  .admin-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border-radius: 12px;
    color: #bfc2ca;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: .18s ease;
  }

  .admin-menu a i {
    width: 18px;
    font-size: 17px;
  }

  .admin-menu a:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
    transform: translateX(2px);
  }

  .admin-menu a.active {
    background: linear-gradient(135deg, #ff6600, #ff8f2b);
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 102, 0, .22);
  }

  .admin-sidebar__bottom {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 6px 12px;
  }

  .admin-user__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2a2d34;
    display: grid;
    place-items: center;
    color: #ff8f2b;
  }

  .admin-user strong {
    display: block;
    font-size: 13px;
    color: #fff;
  }

  .admin-user small {
    color: #a9acb5;
    font-size: 11px;
  }

  .sidebar-logout {
    width: 100%;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 600;
  }

  .sidebar-logout:hover {
    background: rgba(255, 102, 0, .16);
    border-color: rgba(255, 102, 0, .35);
  }

  .admin-content {
    flex: 1;
    padding: 38px clamp(18px, 4vw, 54px);
    min-width: 0;
  }

  .admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 28px;
  }

  .admin-topbar h1 {
    margin: 6px 0 4px;
    font-weight: 800;
    color: #15171b;
  }

  .admin-topbar p {
    margin: 0;
    color: #70757f;
  }

  .admin-eyebrow {
    display: inline-block;
    color: #ff6600;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .18em;
  }

  .admin-metric {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 120px;
    padding: 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e9eaee;
    box-shadow: 0 8px 26px rgba(24, 32, 56, .05);
  }

  .admin-metric__icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 21px;
  }

  .admin-metric__icon.orange {
    background: #fff0e8;
    color: #ff6600;
  }

  .admin-metric__icon.blue {
    background: #edf4ff;
    color: #2563eb;
  }

  .admin-metric__icon.purple {
    background: #f3edff;
    color: #7c3aed;
  }

  .admin-metric__icon.green {
    background: #eafaf0;
    color: #16a34a;
  }

  .admin-metric__icon.teal {
    background: #e9f8f8;
    color: #0f766e;
  }

  .admin-metric__icon.red {
    background: #fff0f0;
    color: #dc2626;
  }

  .admin-metric span {
    display: block;
    color: #7a808b;
    font-size: 12px;
    font-weight: 600;
  }

  .admin-metric strong {
    display: block;
    font-size: 27px;
    line-height: 1;
    margin-top: 7px;
    color: #14171c;
  }

  .admin-metric a {
    margin-left: auto;
    align-self: flex-end;
    color: #ff6600;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
  }

  .admin-panel {
    background: #fff;
    border: 1px solid #e9eaee;
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(24, 32, 56, .04);
    overflow: hidden;
  }

  .admin-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;

    padding: 30px 32px 26px;

    border-bottom: 1px solid #eef0f3;

    background: #ffffff;
  }

  .admin-panel__head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
  }

  .admin-panel__head p {
    margin: 3px 0 0;
    color: #858a94;
    font-size: 13px;
  }

  .admin-panel__head a {
    color: #ff6600;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
  }

  .admin-table {
    margin-bottom: 0;
  }

  .admin-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eef0f3;
    background: #fafafa;
  }

  .admin-table-toolbar .form-check-input {
    cursor: pointer;
  }


  .admin-table thead th {
    background: #fafafa;
    color: #777d87;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 10px;
    border-bottom: 1px solid #eceef2;
    padding: 14px 18px;
    white-space: nowrap;
  }

  .admin-table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f1f3;
    color: #40454e;
  }

  .admin-table tbody tr:last-child td {
    border-bottom: 0;
  }

  .admin-table tbody tr:hover {
    background: #fffdfa;
  }

  .news-admin-cell,
  .staff-admin-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
  }

  .news-admin-cell img,
  .staff-admin-cell img,
  .news-admin-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    flex: 0 0 52px;
    background: #f2f3f5;
  }

  .news-admin-thumb {
    display: grid;
    place-items: center;
    color: #9aa0aa;
  }

  .news-admin-cell strong,
  .staff-admin-cell strong {
    display: block;
    color: #20242b;
    font-size: 13px;
  }

  .news-admin-cell small,
  .staff-admin-cell small {
    display: block;
    color: #8a909a;
    font-size: 11px;
    margin-top: 3px;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
  }

  .admin-badge.success {
    background: #eaf8ef;
    color: #15803d;
  }

  .admin-badge.warning {
    background: #fff6df;
    color: #b45309;
  }

  .admin-badge.category {
    background: #fff0e8;
    color: #d9530a;
  }

  .admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
  }

  .admin-actions .btn {
    border-radius: 10px;
    width: 35px;
    height: 35px;
    padding: 0;
    display: grid;
    place-items: center;
    border-color: #e8e9ec;
  }

  .admin-actions .btn:hover {
    border-color: #d8dbe0;
    background: #f7f8fa;
  }

  .admin-actions .danger:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff5f5;
  }

  .admin-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 220px auto;
    gap: 10px;
    margin-bottom: 16px;
  }

  .admin-filter .input-group-text {
    background: #fff;
    border-color: #e6e8ec;
  }

  .admin-filter .form-control,
  .admin-filter .form-select {
    border-color: #e6e8ec;
    border-radius: 12px;
    min-height: 44px;
    background: #fff;
  }

  .admin-filter .input-group .form-control {
    border-left: 0;
    border-radius: 0 12px 12px 0;
  }

  .admin-filter .input-group {
    border-radius: 12px;
    overflow: hidden;
  }

  .admin-filter .btn {
    border-radius: 12px;
  }

  .admin-form-card {
    max-width: 100%;
  }

  .admin-form-section {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef0f3;
  }

  .admin-form-section h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
  }

  .admin-form-section p {
    margin: 3px 0 0;
    color: #858a94;
    font-size: 12px;
  }

  .admin-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: #4a4f58;
    font-size: 12px;
  }

  .admin-label span {
    color: #ff6600;
  }

  .admin-form-card .form-control,
  .admin-form-card .form-select {
    min-height: 45px;
    border-radius: 8px;
    border-color: #dfe2e7;
    background: #fff;
  }

  .admin-form-card textarea.form-control {
    border-radius: 8px;
  }

  .admin-form-card .form-control:focus,
  .admin-form-card .form-select:focus {
    border-color: #ff8c3a;
    box-shadow: 0 0 0 .2rem rgba(255, 102, 0, .12);
  }

  .input-group-text.toggle-password {
    background: #fff;
    border-color: #dfe2e7;
    border-left: 0;
    border-radius: 0 12px 12px 0;
    color: #6c757d;
  }

  .input-group:has(.toggle-password) .form-control {
    border-right: 0;
  }

  .admin-form-card .form-text {
    color: #9297a0;
    font-size: 11px;
  }

  .admin-form-card .prestasi-input,
  .admin-form-card .prestasi-input:focus {
    border-radius: 6px;
  }

  .admin-form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 18px;
  }

  /* =========================================================
   ACCOUNT / KEAMANAN AKUN
   ========================================================= */

.account-form-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e9eaee;
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(24, 32, 56, 0.05);
    padding: 32px;
    margin-bottom: 24px;
}


/* Header card */

.account-form-header {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #eef0f3;
}

.account-form-header h2 {
    margin: 0 0 8px;
    color: #20242b;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.account-form-header h2 i {
    color: #ff6600;
}

.account-form-header p {
    margin: 0;
    color: #858a94;
    font-size: 13px;
    line-height: 1.6;
}


/* Label */

.account-form-card .admin-label {
    display: block;
    margin-bottom: 8px;
    color: #4a4f58;
    font-size: 13px;
    font-weight: 700;
}


/* Input */

.account-form-card .form-control {
    min-height: 50px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #dfe2e7;
    border-radius: 12px;
}

.account-form-card .form-control:focus {
    background: #ffffff;
    border-color: #ff8c3a;
    box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.12);
}


/* Password */

.account-form-card .input-group {
    border-radius: 12px;
    overflow: hidden;
}

.account-form-card .input-group .form-control {
    border-right: 0;
    border-radius: 12px 0 0 12px;
}

.account-form-card .toggle-password {
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    border: 1px solid #dfe2e7;
    border-left: 0;

    color: #6c757d;
}

.account-form-card .toggle-password:hover {
    background: #fff7f0;
    color: #ff6600;
}


/* Keterangan password */

.account-form-card .form-text {
    margin-top: 7px;
    color: #9297a0;
    font-size: 12px;
}


/* Tombol */

.account-form-card .admin-form-footer {
    display: flex;
    justify-content: flex-end;

    margin-top: 28px;
    padding-top: 22px;

    border-top: 1px solid #eef0f3;
}


/* Mobile */

@media (max-width: 575px) {

    .account-form-card {
        padding: 24px 20px;
    }

    .account-form-header h2 {
        font-size: 18px;
    }

    .account-form-card .admin-form-footer {
        justify-content: stretch;
    }

    .account-form-card .admin-form-footer .btn {
        width: 100%;
    }

}

  .admin-form-footer .btn,
  .admin-topbar .btn {
    border-radius: 12px;
    min-height: 44px;
  }

  .current-upload {
    border: 1px solid #e9eaee;
    border-radius: 14px;
    padding: 10px;
    background: #fafafa;
  }

  .current-upload img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
  }

  .current-upload small {
    display: block;
    margin-top: 8px;
    color: #777d87;
    font-size: 11px;
  }

  .current-attachment {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e9eaee;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fafafa;
  }

  .current-attachment a {
    color: #ff6600;
    font-size: 12px;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .suggestion-message {
    max-width: 330px;
    white-space: normal;
    line-height: 1.5;
    color: #5f6670;
  }

  .suggestion-status-form {
    min-width: 170px;
  }

  .admin-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at 20% 15%, rgba(255, 102, 0, .12), transparent 30%), linear-gradient(135deg, #f8f9fb, #eef0f4);
  }

  .admin-login-card {
    width: min(100%, 480px);
    background: #fff;
    border: 1px solid #e7e9ed;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 25px 70px rgba(20, 26, 40, .12);
  }

  .admin-login-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #1f2329;
    text-decoration: none;
    margin-bottom: 30px;
  }

  .admin-login-brand__logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eceef1;
    display: grid;
    place-items: center;
    overflow: hidden;
  }

  .admin-login-brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .admin-login-brand strong {
    display: block;
    font-size: 14px;
  }

  .admin-login-brand small {
    display: block;
    margin-top: 2px;
    color: #8b9099;
    font-size: 10px;
    letter-spacing: .12em;
  }

  .admin-login-head h1 {
    font-weight: 800;
    margin: 8px 0;
  }

  .admin-login-head p {
    color: #7e848e;
  }

  .admin-login-form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
  }

  .admin-login-form label>span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #484d55;
    margin-bottom: 7px;
  }

  .input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }

  .input-icon-wrap i:first-child {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9a9faa;
    z-index: 5;
  }

  .input-icon-wrap .toggle-password-login {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9a9faa;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
  }

  .input-icon-wrap .toggle-password-login i {
    position: static;
    transform: none;
    color: inherit;
  }

  .input-icon-wrap .form-control {
    padding-left: 40px;
    padding-right: 40px;
    min-height: 48px;
    border-radius: 12px;
    width: 100%;
  }

  .admin-login-button {
    min-height: 49px;
    border-radius: 12px;
    font-weight: 700;
  }

  .admin-back-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: #777d87;
    text-decoration: none;
    font-size: 12px;
  }

  .admin-back-link:hover {
    color: #ff6600;
  }

  .nav-admin-login {
    margin-left: 4px;

    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 !important;
    border-radius: 15px !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-align: center !important;
    font-size: 18px;
  }

  .nav-admin-login i {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    transform: translateY(0);
  }

  .news-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
    background: var(--surface-container);
    padding: 20px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  }

  .search-box {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 9999px;
    padding: 4px;
    align-items: center;
    max-width: 360px;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
  }

  .search-box input {
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--ink);
    outline: none;
    width: 100%;
  }

  .search-box button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 9999px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    min-height: unset;
    transition: background 0.2s ease;
  }

  .search-box button:hover {
    background: var(--primary-dark);
  }

  .news-filter-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .news-filter-links a {
    padding: 7px 12px;
    border-radius: 999px;
    background: #f4f5f6;
    color: #68707b;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
  }

  .news-filter-links a.active,
  .news-filter-links a:hover {
    background: #fff0e8;
    color: #ff6600;
  }

  .news-image.has-image {
    background-size: cover;
    background-position: center;
  }

  .article-featured-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 22px;
    margin: 18px 0 28px;
  }

  .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 18px;
    color: #7b818b;
    font-size: 12px;
  }

  .download-box {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid #eceef2;
    background: #fafafa;
    border-radius: 16px;
  }

  .download-box h3 {
    margin: 0 0 14px;
    color: #212529;
    font-size: 16px;
  }

  .download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid #ebedf0;
    color: #ff6600;
    text-decoration: none;
  }

  .download-item span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .download-item strong {
    color: #343942;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .download-item small {
    font-weight: 700;
  }

  @media (max-width: 1100px) {
    .admin-sidebar {
      width: 230px;
      min-width: 230px;
    }

    .navbar-nav {
      gap: 2px;
    }

    .navbar-nav>li>a {
      padding-left: 8px;
      padding-right: 8px;
    }
  }

  @media (max-width: 991px) {
    .admin-shell {
      display: block;
    }

    .admin-sidebar {
      position: static;
      width: 100%;
      min-width: 0;
      height: auto;
    }

    .admin-menu {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-sidebar__bottom {
      margin-top: 18px;
    }

    .admin-topbar {
      align-items: flex-start;
      flex-direction: column;
    }

    .admin-filter {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 767px) {
    .admin-menu {
      grid-template-columns: 1fr;
    }

    .admin-content {
      padding: 24px 16px;
    }

    .admin-login-card {
      padding: 26px 22px;
    }

    .news-toolbar {
      align-items: stretch;
    }

    .search-box {
      max-width: none;
      width: 100%;
    }

    .news-filter-links {
      width: 100%;
    }
  }

  /* =========================================================
    FACILITIES PAGE
    ========================================================= */

  .facility-section {
      background: #ffffff;
  }


  /* ==============================
    GRID
  ============================== */

  .facility-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 30px;

      align-items: stretch;
  }


  /* ==============================
    CARD
  ============================== */

  .facility-card {
      position: relative;

      display: flex;
      flex-direction: column;

      height: 100%;

      background: #ffffff;

      border: 1px solid #e5e7eb;
      border-radius: 20px;

      overflow: hidden;

      box-shadow:
          0 6px 20px rgba(0, 0, 0, 0.06);

      transition:
          transform 0.25s ease,
          box-shadow 0.25s ease,
          border-color 0.25s ease;
  }


  /* Garis orange di sebelah kiri card */

  .facility-card::before {
      content: "";

      position: absolute;

      top: 0;
      left: 0;

      width: 5px;
      height: 100%;

      background: linear-gradient(
          180deg,
          var(--secondary),
          var(--primary)
      );

      z-index: 5;
  }


  /* Hover */

  .facility-card:hover {
      transform: translateY(-5px);

      border-color: rgba(255, 102, 0, 0.25);

      box-shadow:
          0 16px 34px rgba(0, 0, 0, 0.10);
  }


  /* ==============================
    AREA FOTO LANDSCAPE
  ============================== */

  .facility-media {
      width: 100%;

      height: 290px;

      display: flex;
      align-items: center;
      justify-content: center;

      background: #ffffff;

      overflow: hidden;

      padding: 10px;
  }


  /* Foto */

  .facility-media img {
      width: 100%;
      height: 100%;

      display: block;

      object-fit: contain;
      object-position: center;

      transition: transform 0.4s ease;
  }


  /* Zoom sedikit saat hover */

  .facility-card:hover .facility-media img {
      transform: scale(1.03);
  }


  /* ==============================
    LAB KECANTIKAN - PORTRAIT
  ============================== */

  .facility-card--portrait {
      grid-row: span 1;
  }


  .facility-media--portrait {
      height: 400px;

      padding: 16px;

      background: #ffffff;
  }


  .facility-media--portrait img {
      width: auto;
      max-width: 100%;
      height: 100%;

      object-fit: contain;
      object-position: center;
  }


  /* ==============================
    CONTENT
  ============================== */

  .facility-content {
      flex: 1;

      display: flex;
      flex-direction: column;

      padding: 22px 25px 26px;
  }


  /* Label */

  .facility-label {
      display: inline-flex;

      align-self: flex-start;

      margin-bottom: 10px;

      padding: 6px 11px;

      border-radius: 999px;

      background: var(--primary-soft);

      color: var(--primary);

      font-size: 11px;
      font-weight: 800;

      letter-spacing: 0.08em;

      text-transform: uppercase;
  }


  /* Judul */

  .facility-content h2 {
      margin: 0 0 10px;

      color: var(--ink);

      font-size: 1.25rem;
      font-weight: 800;

      line-height: 1.3;
  }


  /* Deskripsi */

  .facility-content p {
      margin: 0;

      color: var(--muted);

      font-size: 0.95rem;

      line-height: 1.7;
  }


  /* ==============================
    TABLET
  ============================== */

  @media (max-width: 991px) {

      .facility-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
          gap: 24px;
      }

      .facility-media {
          height: 280px;
      }

      .facility-media--portrait {
          height: 380px;
      }
  }


  /* ==============================
    MOBILE
  ============================== */

  @media (max-width: 575px) {

      .facility-grid {
          grid-template-columns: 1fr;
          gap: 22px;
      }

      .facility-media {
          height: 270px;
          padding: 8px;
      }

      .facility-media--portrait {
          height: 390px;
          padding: 12px;
      }

      .facility-content {
          padding: 20px 21px 23px;
      }

      .facility-content h2 {
          font-size: 1.15rem;
      }

      .facility-content p {
          font-size: 0.92rem;
      }
  }
/* =========================================================
   ADMIN FORGOT PASSWORD
   ========================================================= */
.admin-forgot-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 14px 0 4px;
  color: #ff6600;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.admin-forgot-link:hover {
  color: #e65c00;
  text-decoration: underline;
}

.admin-reset-info {
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
}

.admin-reset-info ul {
  margin: 10px 0 8px 18px;
  padding: 0;
}

/* =========================================================
   MOBILE / TABLET RESPONSIVE POLISH + SCROLL REVEALS
   Added as a final override layer so existing page styles
   remain intact on desktop while phones/tablets get a
   consistent responsive layout.
========================================================= */

:root {
  --mobile-gutter: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

html {
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
  -webkit-tap-highlight-color: rgba(255, 102, 0, 0.12);
}

img,
video,
canvas,
svg,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

iframe {
  display: block;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

.text-break,
.break-word,
.news-content h2 a,
.admin-panel,
.admin-form-card,
.profile-card,
.principal-card,
.history-card,
.vision-mission-card,
.facility-card,
.program-card,
.news-card {
  overflow-wrap: anywhere;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.achievement-card-link {
  color: inherit;
  display: block;
  height: 100%;
  text-decoration: none;
}

.achievement-card-link:focus-visible {
  border-radius: 18px;
  outline: 3px solid rgba(255, 102, 0, 0.45);
  outline-offset: 4px;
}

.achievement-card-link .arrow-link {
  color: #ff6600;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
  margin-top: 4px;
}

/* ---------- Sticky public navigation ---------- */
@media (max-width: 991.98px) {
  .main-nav {
    padding-top: max(8px, var(--safe-top));
    position: sticky;
    top: 0;
  }

  .main-nav .container {
    width: calc(100% - 24px);
    min-height: 58px;
  }

  .brand {
    min-width: 0;
    max-width: calc(100% - 56px);
    gap: 10px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong {
    display: block;
    font-size: clamp(13px, 2.2vw, 16px);
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-copy small {
    display: block;
    font-size: 9px;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .navbar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    min-height: 46px;
    flex: 0 0 46px;
    margin-left: 8px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(33, 37, 41, 0.18);
    background: rgba(255, 255, 255, 0.28);
  }

  .navbar-toggle i {
    transition: transform 0.25s ease;
  }

  .navbar-toggle[aria-expanded="true"] i::before {
    content: "\f62a";
  }

  .navbar-nav,
  .navbar-nav.active {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    max-height: calc(100dvh - 84px);
    margin: 0;
    padding: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(33, 37, 41, 0.08);
    border-radius: 18px;
    /* Solid surface keeps page content from showing through the mobile menu. */
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    z-index: 101;
  }

  .navbar-nav.active {
    display: flex;
  }

  .navbar-nav > li {
    width: 100%;
  }

  .navbar-nav > li > a,
  .navbar-nav .dropdown-menu a,
  .navbar-nav .dropdown-menu button {
    min-height: 44px;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    border-radius: 11px;
    white-space: normal;
  }

  .navbar-nav > li > a.nav-icon {
    justify-content: flex-start;
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 10px 12px;
    gap: 10px;
  }

  .navbar-nav > li > a.nav-icon::after {
    content: "Beranda";
    font-size: 14px;
    font-weight: 600;
  }

  .navbar-nav > li > a.nav-admin-login {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    height: 44px;
    justify-content: flex-start;
    padding: 10px 12px !important;
    border-radius: 11px !important;
  }

  .navbar-nav > li > a.nav-admin-login::after {
    content: "Login Admin";
    margin-left: 10px;
    font-size: 14px;
    font-weight: 700;
  }

  .navbar-nav .dropdown-menu,
  .navbar-nav .dropdown-menu .dropdown-menu {
    position: static;
    display: none;
    width: auto;
    min-width: 0;
    margin: 0 0 4px 8px;
    padding: 4px 0 4px 10px;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    border: 0;
    border-left: 2px solid var(--primary-soft);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .navbar-nav .dropdown.is-open > .dropdown-menu {
    display: block;
  }

  /* Submenu Program Keahlian: tampil tepat di bawah pemicunya di mobile. */
  .navbar-nav .dropdown-menu .dropdown.is-open > .dropdown-menu {
    display: block;
    margin-top: 4px;
  }

  .navbar-nav .dropdown > .dropdown-toggle::after {
    margin-left: auto;
    transition: transform 0.2s ease;
  }

  .navbar-nav .dropdown.is-open > .dropdown-toggle::after {
    transform: rotate(225deg);
    margin-top: 3px;
  }

  .navbar-nav .dropdown-menu a,
  .navbar-nav .dropdown-menu button {
    font-size: 13px;
  }

  .navbar-nav a:hover,
  .navbar-nav a:focus-visible {
    background: var(--primary-soft);
    color: var(--ink);
  }

  .navbar-nav .nav-admin-login:hover,
  .navbar-nav .nav-admin-login:focus-visible {
    background: var(--primary-dark);
    color: #fff;
  }
}

@media (max-width: 575.98px) {
  .main-nav .container {
    width: calc(100% - 20px);
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-copy strong {
    font-size: 12px;
    letter-spacing: 0.025em;
  }

  .brand-copy small {
    display: none;
  }

  .navbar-toggle {
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex-basis: 44px;
  }

  .navbar-nav,
  .navbar-nav.active {
    left: 8px;
    right: 8px;
    top: calc(100% + 6px);
    max-height: calc(100dvh - 72px);
    border-radius: 16px;
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}

/* ---------- General phone sizing ---------- */
@media (max-width: 767.98px) {
  .container,
  .main-nav .container {
    width: calc(100% - 32px);
    max-width: none;
  }

  .section-space {
    padding: 64px 0;
  }

  .page-hero {
    min-height: 250px;
    padding: 54px 0;
  }

  .page-hero h1,
  .hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .page-hero p,
  .hero .hero-copy {
    font-size: 0.98rem;
  }

  .hero {
    min-height: 520px;
    background-position: center center;
  }

  .hero-content {
    padding-top: 82px;
    padding-bottom: 48px;
  }

  .hero:after {
    width: 260px;
    height: 260px;
    right: -155px;
    top: 210px;
    opacity: 0.65;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-actions .btn,
  .hero-content > .btn {
    width: 100%;
  }

  .d-flex.justify-content-between.align-items-end {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .d-flex.justify-content-between.align-items-end > .btn {
    width: auto;
  }

  .profile-card,
  .principal-card,
  .history-card,
  .vision-mission-card,
  .admin-panel,
  .admin-form-card,
  .login-panel {
    padding: 22px;
    border-radius: 18px;
  }

  .program-card {
    min-height: 0;
    padding: 20px;
  }

  .program-image,
  .news-image {
    height: 190px;
  }

  .news-card {
    padding: 18px;
  }

  .news-content h2 {
    font-size: 1.18rem;
  }

  .news-toolbar {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
    padding: 14px;
  }

  .search-box,
  .news-filter-links {
    max-width: none;
    width: 100%;
  }

  .news-filter-links a {
    flex: 1 1 auto;
    text-align: center;
  }

  .article-featured-image {
    max-height: none;
    min-height: 0;
    margin: 12px 0 22px;
    border-radius: 16px;
  }

  .download-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-item small {
    align-self: flex-end;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 36px;
  }

  .footer-brand .brand {
    max-width: 100%;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-map iframe {
    width: 100%;
    height: min(78vw, 300px);
  }

  .facility-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .facility-media {
    height: 250px;
  }

  .facility-media--portrait {
    height: min(92vw, 360px);
  }

  .facility-content {
    padding: 18px 20px 21px;
  }

  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .staff-card {
    min-width: 0;
  }

  .staff-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .staff-card h2 {
    font-size: 1rem;
    line-height: 1.25;
  }

  .staff-detail {
    align-items: center;
    border-radius: 10px;
    height: 48px;
    justify-content: center;
    min-height: 48px;
    min-width: 48px;
    padding: 0;
    width: 48px;
  }

  .staff-detail span {
    display: none;
  }
}

@media (max-width: 430px) {
  .container,
  .main-nav .container {
    width: calc(100% - 24px);
  }

  .section-space {
    padding: 52px 0;
  }

  .hero {
    min-height: 470px;
  }

  .hero-content {
    padding-top: 62px;
  }

  .hero .eyebrow {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .profile-card,
  .principal-card,
  .history-card,
  .vision-mission-card,
  .admin-panel,
  .admin-form-card,
  .login-panel {
    padding: 18px;
    border-radius: 16px;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-card img {
    max-height: 320px;
  }

  .program-image,
  .news-image {
    height: 170px;
  }

  .footer-social {
    flex-wrap: wrap;
  }
}

/* ---------- Admin panel responsive layout ---------- */
@media (max-width: 991.98px) {
  .admin-shell {
    display: block;
    min-height: 100svh;
  }

  .admin-sidebar {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-sidebar__header {
    justify-content: space-between;
    gap: 12px;
  }

  .admin-brand {
    min-width: 0;
    flex: 1;
    margin-bottom: 0;
    padding: 4px 0;
    border-bottom: 0;
  }

  .admin-brand__logo {
    flex: 0 0 auto;
  }

  .admin-sidebar-toggle {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 22px;
  }

  .admin-sidebar-toggle[aria-expanded="true"] .bi::before {
    content: "\f62a";
  }

  .admin-sidebar__panel {
    display: none;
    max-height: calc(100dvh - 92px);
    margin-top: 12px;
    overflow-y: auto;
    padding-top: 4px;
  }

  .admin-sidebar.is-open .admin-sidebar__panel {
    display: flex;
  }

  .admin-menu {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-menu a {
    min-height: 44px;
    margin: 0;
    display: flex;
    align-items: center;
    padding: 10px 12px;
  }

  .admin-sidebar__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
  }

  .admin-sidebar__bottom form {
    margin: 0;
  }

  .admin-content {
    width: 100%;
    min-width: 0;
    padding: 28px 16px max(28px, var(--safe-bottom));
  }

  .admin-topbar {
    gap: 16px;
  }

  .admin-topbar .btn {
    align-self: stretch;
  }

  .admin-metrics {
    margin-left: 0;
    margin-right: 0;
  }

  .admin-table {
    min-width: 720px;
  }

  .admin-table-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .admin-form {
    padding: 22px;
  }
}

@media (max-width: 575.98px) {
  .admin-sidebar {
    padding: 12px;
  }

  .admin-brand {
    gap: 10px;
  }

  .admin-menu {
    grid-template-columns: 1fr;
  }

  .admin-sidebar__bottom {
    grid-template-columns: 1fr;
  }

  .admin-content {
    padding: 22px 12px max(22px, var(--safe-bottom));
  }

  .admin-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-topbar .btn {
    width: 100%;
  }

  .admin-form,
  .login-panel,
  .admin-login-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .admin-panel__head,
  .account-form-header,
  .admin-form-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .admin-panel__head .btn,
  .admin-form-footer .btn {
    width: 100%;
  }

  .table-responsive {
    margin-left: -2px;
    margin-right: -2px;
  }

  .admin-table {
    min-width: 680px;
  }

  /* Data Guru & Pegawai: turn each table row into a compact mobile card. */
  .staff-management-table-wrap {
    margin: 0;
    overflow: visible;
  }

  .staff-management-table {
    min-width: 0;
    width: 100%;
  }

  .staff-management-table thead {
    display: none;
  }

  .staff-management-table,
  .staff-management-table tbody,
  .staff-management-table tr,
  .staff-management-table td {
    display: block;
  }

  .staff-management-table tbody {
    display: grid;
    gap: 12px;
  }

  .staff-management-table tbody tr {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 16px;
    border: 1px solid #edf0f4;
    border-radius: 16px;
    background: #fff;
  }

  .staff-management-table tbody td {
    min-width: 0;
    padding: 0 !important;
    border: 0;
    text-align: left !important;
  }

  .staff-management-table .staff-select {
    grid-column: 1;
    grid-row: 1;
    padding-top: 4px !important;
  }

  .staff-management-table .staff-name {
    grid-column: 2;
    grid-row: 1;
  }

  .staff-management-table td[data-label] {
    grid-column: 2;
    display: grid;
    grid-template-columns: minmax(88px, 36%) minmax(0, 1fr);
    gap: 8px;
    color: #40454e;
    font-size: 13px;
  }

  .staff-management-table td[data-label]::before {
    content: attr(data-label);
    color: #777d87;
    font-size: 11px;
    font-weight: 800;
  }

  .staff-management-table .staff-admin-cell {
    min-width: 0;
    gap: 10px;
  }

  .staff-management-table .staff-admin-cell img {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .staff-management-table .staff-actions {
    margin-top: 4px;
    align-items: center;
  }

  .staff-management-table .staff-actions .admin-actions {
    justify-content: flex-end;
  }
}

/* ---------- iOS / mobile form ergonomics ---------- */
@media (max-width: 767.98px) {
  .form-control,
  .form-select,
  .admin-form input,
  .admin-form select,
  .admin-form textarea,
  .suggestion-form input,
  .suggestion-form select,
  .suggestion-form textarea {
    font-size: 16px;
  }

  textarea.form-control,
  .admin-form textarea,
  .suggestion-form textarea {
    border-radius: 14px;
    min-height: 120px;
  }

  .btn,
  button {
    min-height: 46px;
  }

  .modal-dialog,
  .staff-modal__content {
    width: calc(100% - 24px);
    max-width: none;
    margin: 12px auto;
  }
}

/* ---------- Scroll-driven entrance animation ---------- */
.scroll-reveal {
  will-change: transform, opacity;
}

.reveal-enabled .scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 42px, 0) scale(0.985);
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-enabled .scroll-reveal.reveal-left {
  transform: translate3d(-54px, 18px, 0) scale(0.985);
}

.reveal-enabled .scroll-reveal.reveal-right {
  transform: translate3d(54px, 18px, 0) scale(0.985);
}

.reveal-enabled .scroll-reveal.reveal-up {
  transform: translate3d(0, 54px, 0) scale(0.985);
}

.reveal-enabled .scroll-reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-enabled .scroll-reveal,
  .reveal-enabled .scroll-reveal.reveal-left,
  .reveal-enabled .scroll-reveal.reveal-right,
  .reveal-enabled .scroll-reveal.reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
