/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  min-width: 0
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

a {
  text-decoration: none;
  color: inherit
}

ul {
  list-style: none
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none
}

/* Prevent any element from breaking layout width */
* {
  min-width: 0
}

/* Variables */
:root {
  --navy: #0B1F4B;
  --navy-dark: #071430;
  --navy-mid: #162B63;
  --gold: #C8982A;
  --gold-light: #E8B84B;
  --gold-pale: #F5E9CC;
  --white: #FFFFFF;
  --gray-light: #F4F6FA;
  --gray-mid: #E2E6EF;
  --gray-text: #6B7A99;
  --text-dark: #0D1B3E;
  /* Header height = logo(64px) + padding-top(8px) + padding-bottom(8px) = 80px */
  --header-h: 80px;
  --topbar-h: 36px;
  --transition: .25s ease;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 12px rgba(11, 31, 75, .08);
  --shadow-md: 0 8px 32px rgba(11, 31, 75, .12);
  --shadow-lg: 0 20px 60px rgba(11, 31, 75, .18);
  --max-w: 1200px;
  --px: clamp(1rem, 4vw, 2rem);
  /* Logo img height used in nav — must match --header-h calc */
  --logo-h: 64px;
}

body[data-theme="dark"] {
  --navy: #0B132B;
  --navy-dark: #050A1A;
  --navy-mid: #142247;
  --white: #1A1E29;
  --gray-light: #232836;
  --gray-mid: #333A4D;
  --gray-text: #A0AABF;
  --text-dark: #F8FAFC;
  background: var(--white);
  color: var(--text-dark);
}

body[data-theme="ocean"] {
  --navy: #005f73;
  --navy-dark: #0a4f61;
  --navy-mid: #0a9396;
  --gold: #ee9b00;
  --gold-light: #ffb703;
  --gold-pale: #e9d8a6;
  background: var(--white);
  color: var(--text-dark);
}

/* Utilities */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px)
}

.section {
  padding: 5rem 0
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: .65rem
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  color: var(--text-dark);
  line-height: 1.22;
  margin-bottom: .9rem
}

.section-sub {
  font-size: 16px;
  color: var(--gray-text);
  line-height: 1.75;
  max-width: 540px
}

.section-header {
  margin-bottom: 3rem
}

.section-header.center {
  text-align: center
}

.section-header.center .section-sub {
  margin: 0 auto
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  transition: var(--transition);
  cursor: pointer
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark)
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px)
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .4)
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .07)
}

.btn-outline-theme {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--gray-text);
}

.btn-outline-theme:hover {
  background: var(--navy-dark);
  color: #fff;
  border-color: var(--navy-dark);
}


.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease
}

.reveal.visible {
  opacity: 1;
  transform: none
}

/* Topbar */
.topbar {
  background: var(--navy);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: .5rem
}

.topbar-left,
.topbar-right {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden
}

.topbar a {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.topbar a:hover {
  color: #fff
}

/* Pengumuman */
.pengumuman {
  background: var(--gold);
  padding: .65rem 0;
  overflow: hidden
}

.pgm-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: nowrap;
  overflow: hidden
}

.pgm-label {
  background: var(--navy-dark);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0
}

.pgm-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative
}

.pgm-ticker {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-dark);
  padding-left: 100%;
  box-sizing: content-box;
  animation: pgm-scroll 22s linear infinite;
  will-change: transform;
}

@keyframes pgm-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

.pgm-link {
  font-size: 12px;
  color: var(--navy-dark);
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: .8
}

.pgm-link:hover {
  opacity: 1
}

/* Header */
body>header {
  background: var(--navy-dark);
  position: -webkit-sticky !important;
  position: sticky !important;
  top: -1px;
  left: 0;
  right: 0;
  z-index: 9999;
  border-bottom: 2.5px solid var(--gold);
  overflow: visible;
  transform: none;
  will-change: auto;
}

main {
  padding-top: 0;
}

body>header nav {
  height: var(--header-h);
  min-height: var(--header-h);
  padding-top: 8px;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  overflow: visible;
  position: relative;
}

.page-content header,
.article-body header,
.detail-card header {
  background: transparent !important;
  position: static !important;
  z-index: auto !important;
  border-bottom: none !important;
  padding: 0 !important;
  margin-bottom: 1rem;
  display: block;
}

.page-content header h1,
.page-content header h2,
.page-content header h3,
.page-content header p,
.article-body header h1,
.article-body header h2,
.article-body header p {
  color: inherit !important;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
  max-width: 85vw
}

.logo img,
body>header img.logo-img,
body>header nav a img {
  height: var(--logo-h, 64px) !important;
  width: auto !important;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  display: block;
}

.logo-emblem {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--navy-dark);
  flex-shrink: 0
}

.logo-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-text .name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(13px, 4vw, 18px);
  font-weight: 700;
  color: #fff;
  white-space: normal;
  line-height: 1.1;
  word-wrap: break-word;
}

.logo-text .tagline {
  font-size: clamp(10px, 3vw, 12px);
  color: var(--gold-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: normal;
  line-height: 1.2;
  margin-top: 2px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: visible;
  position: relative;
}

.nav-links a {
  color: #fff;
  font-size: clamp(12px, 1.2vw, 13.5px);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 5px;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none
}

.nav-links>a:hover,
.dropdown-toggle:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, .08)
}

.dropdown {
  position: relative;
  display: inline-block;
  padding: 0 !important;
  margin: 0 !important;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: clamp(12px, 1.2vw, 13.5px);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 5px;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.dropdown-toggle:hover,
.dropdown:hover .dropdown-toggle {
  color: var(--gold);
  background: rgba(255, 255, 255, .08);
}

.dropdown-menu {
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 210px;
  max-width: 90vw;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
  padding: .5rem 0;
  z-index: 10000;
  margin-top: 0;
  border: 1px solid var(--gray-mid);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  pointer-events: none;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  color: var(--text-dark) !important;
  font-size: 13.5px;
  padding: 10px 20px;
  display: block;
  transition: .15s;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: var(--navy) !important;
  color: #fff !important;
  padding-left: 26px;
}

.nav-portals {
  display: flex;
  gap: 8px;
  flex-shrink: 0
}

.btn-portal {
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  transition: var(--transition)
}

.btn-mhs {
  background: var(--gold);
  color: var(--navy-dark)
}

.btn-mhs:hover {
  background: var(--gold-light)
}

.btn-dosen {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold)
}

.btn-dosen:hover {
  background: var(--gold);
  color: var(--navy-dark)
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .07);
  transition: var(--transition);
  flex-shrink: 0
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition)
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0)
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 2px solid var(--gold);
  padding: 1.25rem var(--px);
  z-index: 998;
  overflow-y: auto;
  max-height: calc(100dvh - var(--header-h));
}

.mobile-menu.open {
  display: block
}

.mobile-menu a {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.mobile-portals {
  display: flex;
  gap: 10px;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .1)
}

.mobile-portals .btn-portal {
  flex: 1;
  text-align: center;
  padding: 11px
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
  isolation: isolate;
  margin-top: 0;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(200, 152, 42, .07);
  animation: heroFloat 5s ease-in-out infinite;
  will-change: transform;
}

@keyframes heroFloat {

  0%,
  100% {
    transform: scale(1) translate3d(0, 0, 0)
  }

  50% {
    transform: scale(1.04) translate3d(0, -12px, 0)
  }
}

.hero-campus {
  position: absolute;
  right: -5%;
  bottom: 0;
  width: 58%;
  max-width: 820px;
  opacity: .88;
  pointer-events: none
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 6vw, 5rem) 0;
  width: 100%
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 152, 42, .14);
  border: 1px solid rgba(200, 152, 42, .38);
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: clamp(0.5rem, 2vw, 1.5rem);
  max-width: 100%;
  overflow: hidden
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: blink 1.6s ease-in-out infinite;
  flex-shrink: 0
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .25
  }
}

.hero-badge span {
  font-size: clamp(9px, 1.5vw, 11.5px);
  color: var(--gold-light);
  font-weight: 500;
  letter-spacing: .8px;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 4rem);
  color: #fff;
  line-height: 1.14;
  max-width: 580px;
  margin-bottom: clamp(0.5rem, 2vw, 1.2rem)
}

.hero-content h1 em {
  color: var(--gold-light);
  font-style: normal
}

.hero-desc {
  font-size: clamp(13px, 2vw, 17px);
  color: rgba(255, 255, 255, .7);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: clamp(1rem, 3vw, 2.5rem)
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .12)
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--gold-light)
}

.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 3px
}

/* Quick Access */
.quick {
  background: var(--navy)
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr)
}

.quick-item {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .07);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: block
}

.quick-grid .quick-item:last-child,
.quick-grid:has(.quick-item:nth-child(4)) .quick-item:nth-child(4n) {
  border-right: none
}

.quick-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .3s
}

.quick-item:hover {
  background: rgba(255, 255, 255, .04)
}

.quick-item:hover::after {
  transform: scaleX(1)
}

.quick-icon {
  width: 56px;
  height: 56px;
  background: rgba(200, 152, 42, .12);
  border: 1px solid rgba(200, 152, 42, .22);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 1rem
}

.quick-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px
}

.quick-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, .48);
  line-height: 1.5
}

/* Prestasi */
.prestasi-sec {
  background: var(--gray-light)
}

.prestasi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem
}

.prs-card {
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
  will-change: transform;
}

.prs-card:hover {
  transform: translate3d(0, -6px, 0);
  box-shadow: var(--shadow-md);
  border-color: var(--gold)
}

.prs-thumb {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center
}

.prs-icon {
  font-size: 64px;
  opacity: .9
}

.prs-thumb img {
  display: block
}

.news-thumb img {
  display: block
}

.breadcrumb {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: flex-start !important;
  height: auto !important;
  width: auto !important
}

.prs-navy {
  background: linear-gradient(135deg, #0B1F4B, #162B63)
}

.prs-gold {
  background: linear-gradient(135deg, #7a5a10, #c8982a)
}

.prs-green {
  background: linear-gradient(135deg, #1a4a1a, #2a7a2a)
}

.prs-blue {
  background: linear-gradient(135deg, #0a3a6a, #1a6ab5)
}

.prs-maroon {
  background: linear-gradient(135deg, #5a1010, #9a1a1a)
}

.prs-purple {
  background: linear-gradient(135deg, #3a1a5a, #6a2a9a)
}

.prs-body {
  padding: 1.25rem
}

.prs-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: .5rem
}

.prs-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: .6rem;
  font-family: 'Playfair Display', serif
}

.prs-desc {
  font-size: 12.5px;
  color: var(--gray-text);
  line-height: 1.65;
  margin-bottom: .9rem
}

.prs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: .9rem
}

.prs-tag,
.tag-item {
  background: var(--gray-light);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--gray-mid);
}

.prs-link {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px
}

/* Berita */
.berita-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.5rem
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-mid);
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  will-change: transform;
}

.news-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translate3d(0, -3px, 0)
}

.news-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
  overflow: hidden
}

.news-thumb.sm {
  height: 115px;
  font-size: 38px
}

.news-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 1px;
  text-transform: uppercase
}

.news-body {
  padding: 1.2rem
}

.news-date {
  font-size: 11px;
  color: var(--gray-text);
  margin-bottom: 6px
}

.news-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.45;
  margin-bottom: 8px
}

.news-title.sm {
  font-size: 13px
}

.news-excerpt {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.65
}

.berita-side {
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.nt1 {
  background: linear-gradient(135deg, #e8f4fd, #b8d8f5)
}

.nt2 {
  background: linear-gradient(135deg, #fff8e8, #f5e0b0)
}

.nt3 {
  background: linear-gradient(135deg, #f0faf0, #c8e8c8)
}

.nt4 {
  background: linear-gradient(135deg, #fef0f0, #f5c8c8)
}

.nt5 {
  background: linear-gradient(135deg, #f0eaff, #d8c8f5)
}

/* Layanan */
.layanan {
  background: var(--navy-dark)
}

.layanan .eyebrow {
  color: var(--gold-light)
}

.layanan .section-title {
  color: #fff
}

.layanan .section-sub {
  color: rgba(255, 255, 255, .52)
}

.layanan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem
}

.lay-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden
}

.lay-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s
}

.lay-card:hover {
  background: rgba(200, 152, 42, .08);
  border-color: rgba(200, 152, 42, .28)
}

.lay-card:hover::before {
  transform: scaleX(1)
}

.lay-icon {
  width: 50px;
  height: 50px;
  background: rgba(200, 152, 42, .1);
  border: 1px solid rgba(200, 152, 42, .18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 1.1rem
}

.lay-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px
}

.lay-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, .48);
  line-height: 1.65;
  margin-bottom: 1.1rem
}

.lay-link {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px
}

/* Footer */
footer {
  background: var(--navy-dark);
  padding: 4rem 0 2rem;
  border-top: 2.5px solid var(--gold)
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: 3rem
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  min-width: 0
}

.footer-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, .48);
  line-height: 1.75;
  max-width: 280px
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 1.25rem;
  flex-wrap: wrap
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0
}

.social-btn:hover {
  background: var(--gold);
  border-color: var(--gold)
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 1.2rem
}

.footer-col ul li {
  margin-bottom: 9px
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255, 255, 255, .52);
  transition: color .2s
}

.footer-col ul li a:hover {
  color: #fff
}

.footer-contact p {
  font-size: 13px;
  color: rgba(255, 255, 255, .52);
  line-height: 1.85
}

.footer-contact strong {
  color: rgba(255, 255, 255, .8)
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem
}

.footer-bottom p,
.footer-bottom a {
  font-size: 12px;
  color: rgba(255, 255, 255, .32)
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, .6)
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap
}

/* Footer Map */
.footer-map iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

/* Back To Top */
#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all .3s;
  z-index: 997;
  border: none
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto
}

#backToTop:hover {
  background: var(--gold-light);
  transform: translateY(-2px)
}

/* Responsive */
@media(min-width:1400px) {
  :root {
    --max-w: 1320px
  }
}

/* Tablet landscape */
@media(max-width:1200px) {
  .berita-grid {
    grid-template-columns: 1.2fr 1fr 1fr
  }
}

/* Tablet portrait */
@media(max-width:1024px) {

  .topbar-left,
  .nav-links,
  .nav-portals {
    display: none
  }

  .hamburger {
    display: flex;
    position: absolute;
    right: 14px !important;
    top: 50%;
    transform: translateY(-50%);
  }

  .hero-campus {
    width: 70%;
    opacity: .55
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  /* Fix border on 2-col quick grid */
  .quick-grid .quick-item:nth-child(2n) {
    border-right: none
  }

  .quick-grid .quick-item:nth-child(2n+1) {
    border-right: 1px solid rgba(255, 255, 255, .07)
  }

  .quick-grid .quick-item:nth-child(2n+1):last-child {
    border-right: none
  }

  .prestasi-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .berita-grid {
    grid-template-columns: 1fr 1fr
  }

  .berita-grid>.news-card:first-child {
    grid-column: 1/-1
  }

  .layanan-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem
  }

  .article-layout,
  .detail-layout {
    grid-template-columns: 1fr
  }

  .article-sidebar,
  .detail-sidebar {
    order: 0
  }
}

/* Mobile */
@media(max-width:768px) {
  :root {
    --logo-h: 44px;
    --header-h: 60px;
    --topbar-h: 32px
  }

  .topbar {
    display: none
  }

  body>header, .page-header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    transform: translateZ(0);
  }

  body {
    padding-top: var(--header-h) !important;
  }

  .section {
    padding: 3rem 0
  }

  .hero-campus {
    display: none
  }

  .hero h1 {
    max-width: 100%;
    text-align: left
  }

  .hero-desc {
    max-width: 100%;
    text-align: left
  }

  .hero-badge span {
    white-space: normal;
    text-align: left
  }

  .hero-ctas {
    flex-direction: column;
    gap: .75rem;
    width: 100%;
    max-width: 360px
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center
  }

  .hero-stats {
    gap: 1.25rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    justify-content: flex-start
  }

  .stat-item {
    min-width: calc(50% - .75rem)
  }

  .prestasi-grid {
    grid-template-columns: 1fr
  }

  .berita-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column
  }

  .berita-grid>* {
    width: 100%
  }

  .layanan-grid {
    grid-template-columns: 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem
  }

  .article-layout,
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem 0
  }

  .article-body,
  .detail-card {
    padding: 1.25rem
  }

  .article-thumb-wrap {
    height: 200px;
    font-size: 72px;
    margin: 1.25rem 0
  }

  .article-hero,
  .prs-hero {
    padding: calc(2.5rem + var(--header-h)) 0 2rem
  }

  .prs-hero-title,
  .article-title {
    font-size: clamp(1.4rem, 5vw, 2rem)
  }

  .detail-sidebar {
    order: 0
  }

  .pgm-link {
    display: none
  }
}

/* Small mobile */
@media(max-width:480px) {
  .quick-grid {
    grid-template-columns: 1fr 1fr
  }

  .quick-grid .quick-item:nth-child(2n) {
    border-right: none
  }

  .quick-grid .quick-item:nth-child(2n+1) {
    border-right: 1px solid rgba(255, 255, 255, .07)
  }

  .footer-legal {
    flex-direction: column;
    gap: .4rem
  }

  .prs-hero-meta {
    gap: .75rem
  }

  .article-meta {
    gap: .75rem
  }

  .breadcrumb {
    font-size: 11px
  }

  .hero-ctas {
    max-width: 100%
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
  }

  .stat-item {
    min-width: 0
  }
}

/* Extra small */
@media(max-width:360px) {
  .quick-grid {
    grid-template-columns: 1fr
  }

  .quick-grid .quick-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .07)
  }

  .logo-text .tagline {
    display: none
  }

  .hero-stats {
    grid-template-columns: 1fr
  }
}

/* Ulasan Slider */
.ulasan-slider-wrap {
  position: relative;
  overflow: hidden;
  user-select: none;
}

.ulasan-track {
  display: flex;
  gap: 1.25rem;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.ulasan-card {
  flex: 0 0 calc(33.333% - .84rem);
  background: var(--white);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  border: 1.5px solid var(--gray-mid);
  transition: transform .2s, box-shadow .2s;
}

.ulasan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}

.ulasan-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.star-on {
  color: #f59e0b;
  font-size: 18px;
}

.star-off {
  color: #d1d5db;
  font-size: 18px;
}

.ulasan-rating-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-text);
  margin-left: .4rem;
}

.ulasan-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-text);
  flex: 1;
  font-style: italic;
}

.ulasan-author {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--gray-light);
  margin-top: auto;
}

.ulasan-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ulasan-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
}

.ulasan-prodi {
  font-size: 12px;
  color: var(--gray-text);
}

.ulasan-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.5rem;
}

.ulasan-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-mid);
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.ulasan-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.ulasan-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  left: 0;
  padding: 0 .25rem;
}

.ulasan-prev,
.ulasan-next {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  color: var(--navy);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  transition: background .2s, color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ulasan-prev:hover,
.ulasan-next:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

/* Aduan Form */
.aduan-form-wrap {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.aduan-form {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.aduan-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.aduan-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.aduan-field label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .6);
  text-transform: uppercase;
  letter-spacing: .6px;
}

.aduan-field input,
.aduan-field textarea {
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  padding: .65rem .9rem;
  color: #fff;
  font-size: 14px;
  transition: border-color .2s, background .2s;
}

.aduan-field input::placeholder,
.aduan-field textarea::placeholder {
  color: rgba(255, 255, 255, .3);
}

.aduan-field input:focus,
.aduan-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, .12);
}

.aduan-field textarea {
  resize: vertical;
  min-height: 110px;
}

/* Responsive ulasan & aduan */
@media(max-width: 900px) {
  .ulasan-card {
    flex: 0 0 calc(50% - .625rem);
  }

  .aduan-sec>.container>div {
    grid-template-columns: 1fr !important;
  }
}

@media(max-width: 600px) {
  .ulasan-card {
    flex: 0 0 100%;
  }

  .ulasan-nav {
    display: none;
  }

  .aduan-form-row {
    grid-template-columns: 1fr;
  }
}

/* Dark mode text & tags */
body[data-theme="dark"] [style*="color:var(--navy-dark)"],
body[data-theme="dark"] [style*="color: var(--navy-dark)"],
body[data-theme="dark"] [style*="color:#0D1B3E"],
body[data-theme="dark"] [style*="color:#071430"],
body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3 {
  color: #F8FAFC !important;
}

body[data-theme="dark"] .page-content * {
  color: #e0e4f0 !important;
}

body[data-theme="dark"] .tag-item,
body[data-theme="dark"] .tags-wrap .tag-item,
body[data-theme="dark"] .prs-tag {
  color: #F8FAFC !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

body[data-theme="ocean"] [style*="color:var(--navy-dark)"],
body[data-theme="ocean"] [style*="color: var(--navy-dark)"],
body[data-theme="ocean"] [style*="color:#0D1B3E"],
body[data-theme="ocean"] [style*="color:#071430"] {
  color: #001f28 !important;
}

body[data-theme="ocean"] .tag-item,
body[data-theme="ocean"] .tags-wrap .tag-item,
body[data-theme="ocean"] .prs-tag {
  color: #003642 !important;
  background: rgba(0, 95, 115, 0.15) !important;
  border: 1px solid rgba(0, 95, 115, 0.3) !important;
}