/* =========================================================
   MINI STYLE GUIDE (UNPEPABRI THEME)

   Naming convention
   - Component classes: descriptive semantic names
     contoh: .navbar, .hero-slider, .up-contact-form
   - Utility classes: prefix "u-" untuk helper reusable
     contoh: .u-container, .u-grid, .u-grid-2, .u-card
   -    State classes: pakai pola "is-*"
     contoh: .is-active, .is-inview, .visible, .open

   Kapan pakai utility vs component
   - Pakai utility jika:
     1) gaya sederhana, reusable, dan lintas section
     2) tidak mengandung konteks bisnis/fitur spesifik
   - Pakai component jika:
     1) gaya terkait blok UI tertentu (hero, footer, form)
     2) membutuhkan struktur elemen spesifik
   - Boleh kombinasikan keduanya:
     component sebagai basis, utility untuk layout cepat

   Aturan maintainability
   - Simpan design token hanya di :root
   - Hindari inline style di template PHP
   - Tambahan class baru: masukkan ke blok yang tepat
   - Jaga backward compatibility: jangan hapus class lama
     jika masih dipakai markup/theme option

   STYLESHEET STRUCTURE
   1) TOKENS
   2) BASE
   3) COMPONENTS
   4) UTILITIES
   5) RESPONSIVE
========================================================= */

/* ===================== TOKENS ===================== */
:root {
  --primary: #5b2d8e;
  --primary-dark: #3d1a6e;
  --accent: #c9a84c;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gradient-hero: linear-gradient(135deg, #2d0a5e 0%, #5b2d8e 40%, #7c3fbf 70%, #3d1a6e 100%);
  --gradient-accent: linear-gradient(135deg, #c9a84c, #f0c96a);
  --radius: 16px;
  --radius-lg: 24px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.9s ease;
  /* Scroll reveal (ditambah class html.js-up-reveal lewat main.js) */
  --reveal-duration: 0.58s;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-y: 16px;
  --reveal-stagger: 0.05s;
}

/* ====================== BASE ====================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--gray-800);
  background: var(--white);
  background-image: url("../images/background-website2.png");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  line-height: 1.6;
}

/* Konten dari TinyMCE: rata kiri–kanan */
.alignjustify,
.has-text-align-justify {
  text-align: justify;
}

a {
  color: inherit;
}

/* ==================== UTILITIES ==================== */
.container,
.u-container {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* =================== COMPONENTS =================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(91, 45, 142, 0.15);
}

.nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--gradient-hero);
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}

.nav-logo--custom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
}

.nav-logo__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 9px;
}

.nav-title strong {
  display: block;
  font-size: 0.92rem;
  color: var(--primary-dark);
}

.nav-title span {
  font-size: 0.72rem;
  color: var(--gray-600);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  font-size: 0.87rem;
}

.nav-links a:hover {
  background: rgba(91, 45, 142, 0.08);
  color: var(--primary);
}

.nav-cta {
  background: var(--gradient-hero);
  color: var(--white);
}

.hamburger,
.mobile-nav {
  display: none;
}

.hero {
  margin-top: 72px;
}

.hero-container {
  width: 100%;
}

.hero-slider {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
}

.hero-slide {
  min-height: 78vh;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity var(--transition-slow), transform 1s ease, visibility var(--transition-slow);
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.hero-slide-media {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  background-size: cover;
  background-position: center;
  transition: transform 5s ease;
}

.hero-slide.is-active .hero-slide-media {
  transform: scale(1.04);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(27, 12, 48, 0.82), rgba(27, 12, 48, 0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 6rem 0;
}

/* Image tampil dulu; teks muncul setelah delay (JS: .hero-content--ready) */
.hero-content > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide:not(.is-active) .hero-content > * {
  transition: none;
}

.hero-slide.is-active .hero-content:not(.hero-content--ready) > * {
  opacity: 0;
  transform: translateY(18px);
}

.hero-slide.is-active .hero-content.hero-content--ready > * {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide.is-active .hero-content.hero-content--ready > *:nth-child(1) {
  transition-delay: 0.06s;
}

.hero-slide.is-active .hero-content.hero-content--ready > *:nth-child(2) {
  transition-delay: 0.12s;
}

.hero-slide.is-active .hero-content.hero-content--ready > *:nth-child(3) {
  transition-delay: 0.18s;
}

.hero-slide.is-active .hero-content.hero-content--ready > *:nth-child(4) {
  transition-delay: 0.24s;
}

.hero-badge {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: #f0c96a;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

.hero-title {
  margin: 1rem 0;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
}

.hero-desc {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.8rem 1.25rem;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--primary-dark);
  font-weight: 700;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
  background: #fff;
}

.ticker-bar {
  background: var(--primary-dark);
  color: #fff;
  overflow: hidden;
  padding: 0.7rem 0;
}

.ticker-inner {
  display: flex;
  gap: 1rem;
  white-space: nowrap;
  animation: ticker 25s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-35%); }
}

.front-main {
  padding: 2rem 0 4rem;
}

.up-section,
.u-surface-section {
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  margin-top: 1.25rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 10px 34px rgba(31, 41, 55, 0.08);
}

/* Section backgrounds: semi-transparent tint, text stays readable (see .front-main section copy) */
.up-about {
  background: linear-gradient(155deg, rgba(243, 232, 255, 0.72) 0%, rgba(255, 255, 255, 0.82) 45%, rgba(250, 245, 255, 0.78) 100%);
  border-color: rgba(91, 45, 142, 0.18);
  box-shadow: 0 8px 28px rgba(48, 27, 95, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.up-about-head {
  margin-bottom: 1.5rem;
}

.up-about-head .section-pill--about {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f3e8ff;
  color: #301b5f;
  border: 0;
}

.up-about-title {
  color: #301b5f;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  line-height: 1.2;
  margin: 0.5rem 0 0.75rem;
  font-weight: 800;
}

.up-about-lead {
  margin: 0;
  max-width: 100%;
  color: #3f3f46;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Beat .section-head p / h2 (later rules + higher specificity) */
.up-about .section-head h2.up-about-title {
  color: #301b5f;
  font-weight: 800;
}

.up-about .section-head p.up-about-lead {
  color: #3f3f46;
}

.up-about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.up-about-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.up-about-card:hover {
  border-color: rgba(48, 27, 95, 0.2);
  box-shadow: 0 8px 22px rgba(48, 27, 95, 0.08);
}

.up-about-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: #f3e8ff;
  color: #301b5f;
  font-size: 1.05rem;
}

.up-about-card-text {
  min-width: 0;
  flex: 1;
}

.up-about-card-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #301b5f;
  line-height: 1.3;
}

.up-about-card-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #3f3f46;
}

@media (max-width: 480px) {
  .up-about-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Per-section tints: semi-transparan di atas latar situs, teks pekat */
.up-digital {
  background: linear-gradient(155deg, rgba(219, 234, 254, 0.7) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(224, 242, 254, 0.55) 100%);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 8px 28px rgba(30, 64, 175, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.up-fakultas {
  background: linear-gradient(155deg, rgba(220, 252, 231, 0.68) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(209, 250, 229, 0.5) 100%);
  border-color: rgba(22, 101, 52, 0.16);
  box-shadow: 0 8px 28px rgba(22, 101, 52, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.up-fasilitas {
  background: linear-gradient(155deg, rgba(224, 242, 254, 0.65) 0%, rgba(255, 255, 255, 0.84) 45%, rgba(241, 245, 249, 0.75) 100%);
  border-color: rgba(59, 89, 122, 0.18);
  box-shadow: 0 8px 28px rgba(49, 85, 125, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.up-beasiswa {
  background: linear-gradient(155deg, rgba(254, 243, 199, 0.6) 0%, rgba(255, 255, 255, 0.86) 50%, rgba(254, 215, 170, 0.45) 100%);
  border-color: rgba(180, 83, 9, 0.2);
  box-shadow: 0 8px 28px rgba(146, 64, 14, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Shared centered headers + purple theme */
.section-head--center {
  text-align: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.up-section-head--purple .section-pill--soft {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f3f0ff;
  color: #5b2c91;
  border: 0;
}

.up-section-title-serif {
  margin: 0.5rem 0 0.75rem;
  color: #301b5f;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.2;
  font-weight: 800;
}

.up-section-head--purple .up-section-title-serif {
  color: #301b5f;
}

.up-section-lead {
  margin: 0 auto;
  max-width: 40rem;
  color: #3f3f46;
  font-size: 0.95rem;
  line-height: 1.7;
}

.up-section-head--purple .up-section-lead,
.up-fakultas .section-head--center .up-section-lead,
.up-digital .section-head--center .up-section-lead,
.up-fasilitas .section-head--center .up-section-lead,
.up-beasiswa .section-head--center .up-section-lead {
  color: #3f3f46;
}

/* Digital: 3×2 feature grid */
.up-digital-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.25rem;
}

.up-digital-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.15rem 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(31, 41, 55, 0.04);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.up-digital-card:hover {
  border-color: rgba(91, 44, 145, 0.22);
  box-shadow: 0 8px 22px rgba(91, 44, 145, 0.1);
}

.up-digital-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: #f3f0ff;
  color: #5b2c91;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.up-digital-card-title {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
}

.up-digital-card-desc {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #3f3f46;
  flex: 1;
}

.up-digital-tag {
  display: inline-block;
  margin-top: auto;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f3f0ff;
  color: #5b2c91;
}

/* Fakultas: split cards */
.up-faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 0.5rem;
}

.up-faculty-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 6px 24px rgba(31, 41, 55, 0.07);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.up-faculty-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(48, 27, 95, 0.12);
}

.up-faculty-card-head {
  padding: 1.25rem 1.1rem 1.35rem;
  background: linear-gradient(125deg, #6b3fa8 0%, #301b5f 100%);
  color: #fff;
  position: relative;
}

.up-faculty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.up-faculty-name {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.up-faculty-meta {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.92);
}

.up-faculty-card-body {
  padding: 1.1rem 1.15rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.up-faculty-label {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #52525b;
}

.up-faculty-prodi {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.up-faculty-prodi li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1f2937;
}

.up-faculty-prodi li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #5b2c91;
}

.up-faculty-accred {
  margin: auto 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  background: #fff9e6;
  color: #8a6d2a;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Fasilitas: 5×2 */
.up-facility-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.up-facility-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.1rem 0.6rem;
  min-height: 6.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(31, 41, 55, 0.04);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.up-facility-tile:hover {
  border-color: rgba(91, 44, 145, 0.2);
  box-shadow: 0 6px 18px rgba(48, 27, 95, 0.08);
}

.up-facility-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: #f3f0ff;
  color: #5b2c91;
  font-size: 1.05rem;
}

.up-facility-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
  padding: 0 0.2rem;
}

/* Beasiswa */
.up-beasiswa-heading {
  margin: 0.5rem 0 0.75rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.2;
  font-weight: 800;
}

.up-beasiswa-heading-muted {
  color: #1f2937;
}

.up-beasiswa-heading-accent {
  color: #301b5f;
}

.up-beasiswa-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
  align-items: stretch;
}

.up-beasiswa-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.2rem 1.1rem;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 2px 12px rgba(31, 41, 55, 0.04);
}

.up-beasiswa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: #f3f0ff;
  color: #5b2c91;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.up-beasiswa-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
}

.up-beasiswa-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #3f3f46;
}

.up-beasiswa-card--featured {
  background: linear-gradient(145deg, #6b3fa8 0%, #301b5f 55%, #1f0f3d 100%);
  border: 0;
  box-shadow: 0 12px 36px rgba(48, 27, 95, 0.35);
}

.up-beasiswa-card--featured .up-beasiswa-title,
.up-beasiswa-card--featured .up-beasiswa-desc {
  color: #fff;
}

.up-beasiswa-card--featured .up-beasiswa-desc {
  opacity: 0.95;
}

.up-beasiswa-icon--gold {
  background: rgba(0, 0, 0, 0.2);
  color: #e8c86a;
}

/* Kontak: two columns */
.up-kontak {
  background: linear-gradient(155deg, rgba(237, 233, 254, 0.58) 0%, rgba(244, 244, 245, 0.88) 50%, rgba(228, 228, 231, 0.72) 100%);
  border: 1px solid rgba(91, 45, 142, 0.14);
  box-shadow: 0 8px 32px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.up-kontak .up-kontak-grid {
  max-width: 100%;
}

.up-kontak-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
}

.up-kontak-head {
  text-align: left;
  max-width: none;
  margin-bottom: 1.25rem;
}

.up-kontak-head .section-pill--soft {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f3f0ff;
  color: #5b2c91;
  border: 0;
}

.up-kontak-intro {
  margin: 0;
  color: #3f3f46;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 28rem;
}

.up-kontak-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.up-kontak-item {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #e5e7eb;
  align-items: flex-start;
}

.up-kontak-item:last-child {
  border-bottom: 0;
}

.up-kontak-item-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 8px;
  background: #f3f0ff;
  color: #5b2c91;
  font-size: 0.95rem;
}

.up-kontak-item-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #52525b;
  margin-bottom: 0.25rem;
}

.up-kontak-item-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #1f2937;
}

.up-kontak-col--mapform {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.up-kontak-map {
  border-radius: 18px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  background: linear-gradient(160deg, #7b4cb8 0%, #401870 100%);
  color: #fff;
  box-shadow: 0 10px 32px rgba(48, 27, 95, 0.25);
}

.up-kontak-map-icon {
  display: inline-flex;
  font-size: 2.25rem;
  color: #e8c86a;
  margin-bottom: 0.5rem;
}

.up-kontak-map-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.up-kontak-map-addr {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  opacity: 0.92;
}

.up-kontak-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: #d4a84b;
  color: #1f1404;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.up-kontak-map-btn:hover {
  background: #e0b85c;
  color: #1f1404;
  transform: translateY(-1px);
}

.up-contact-form .up-contact-form-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  color: #301b5f;
}

.btn-gold,
.up-contact-form .btn-primary.btn-gold {
  width: 100%;
  background: linear-gradient(135deg, #d4a84b, #b8892e) !important;
  color: #1f1404 !important;
  border: 0;
}

.btn-gold:hover {
  filter: brightness(1.05);
}

.up-contact-form select {
  width: 100%;
  border: 1px solid rgba(91, 45, 142, 0.2);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  font: inherit;
  background: #fff;
  color: var(--gray-800);
}

.up-contact-form select:focus {
  outline: 2px solid rgba(91, 45, 142, 0.18);
  border-color: var(--primary);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-head h2 {
  margin: 0.45rem 0 0.6rem;
  color: #000;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: #000;
  max-width: 760px;
}

.section-head h2.up-section-title-serif {
  color: #301b5f;
}

.section-head p.up-section-lead {
  color: #3f3f46;
  margin-left: auto;
  margin-right: auto;
}

.section-pill,
.u-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(91, 45, 142, 0.1);
  color: #000;
}

/* ==================== UTILITIES ==================== */
.up-grid,
.u-grid {
  display: grid;
  gap: 1rem;
}

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

.up-grid-3,
.u-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.up-card,
.u-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.1rem 1rem;
  transition: all var(--transition-base);
}

.up-card:hover,
.u-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 45, 142, 0.25);
  box-shadow: 0 12px 24px rgba(91, 45, 142, 0.12);
}

.up-card h3 {
  margin: 0 0 0.45rem;
  color: var(--gray-900);
  font-size: 1rem;
}

.up-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.65;
}

.up-pmb {
  background: var(--gradient-hero);
  color: #fff;
}

.up-pmb h2,
.up-pmb p {
  color: #000;
}

.up-contact-form form {
  display: grid;
  gap: 0.7rem;
}

.up-contact-form input,
.up-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(91, 45, 142, 0.2);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  font: inherit;
}

.up-contact-form input:focus,
.up-contact-form textarea:focus {
  outline: 2px solid rgba(91, 45, 142, 0.18);
  border-color: var(--primary);
}

.up-contact-form .btn-primary {
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.success-text {
  display: none;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
}

.up-contact-form form.submitted .success-text {
  display: inline-block;
}

.site-footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--gradient-hero);
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}

.footer-logo--custom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.footer-desc {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-social {
  margin-top: 1.15rem;
}

.footer-social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 1.12rem;
  line-height: 1;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  background: rgba(201, 168, 76, 0.22);
  color: #f0c96a;
  transform: translateY(-2px);
  outline: none;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--gradient-hero);
  color: #fff;
  opacity: 0;
  pointer-events: none;
}

.back-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ==================== SCROLL REVEAL (section cards) ====================
   Hanya aktif bila main.js menambah class .js-up-reveal ke <html>
   (dilewati bila prefers-reduced-motion: reduce) */
html.js-up-reveal .up-about-card,
html.js-up-reveal .up-digital-card,
html.js-up-reveal .up-faculty-card,
html.js-up-reveal .up-facility-tile,
html.js-up-reveal .up-beasiswa-card,
html.js-up-reveal .up-card,
html.js-up-reveal .u-card {
  opacity: 0;
  transform: translate3d(0, var(--reveal-y), 0);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0s),
    transform var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0s);
}

html.js-up-reveal .up-about-card,
html.js-up-reveal .up-digital-card {
  transition:
    opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0s),
    transform var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0s),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

html.js-up-reveal .up-faculty-card {
  transition:
    opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0s),
    transform var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0s),
    box-shadow var(--transition-base);
}

html.js-up-reveal .up-facility-tile,
html.js-up-reveal .up-beasiswa-card {
  transition:
    opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0s),
    transform var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0s),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

html.js-up-reveal .up-card,
html.js-up-reveal .u-card {
  transition:
    opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0s),
    transform var(--reveal-duration) var(--reveal-ease) var(--reveal-delay, 0s),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

html.js-up-reveal .up-about-card.is-inview,
html.js-up-reveal .up-digital-card.is-inview,
html.js-up-reveal .up-faculty-card.is-inview,
html.js-up-reveal .up-facility-tile.is-inview,
html.js-up-reveal .up-beasiswa-card.is-inview,
html.js-up-reveal .up-card.is-inview,
html.js-up-reveal .u-card.is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Pertahankan hover transform setelah ter-ungkap */
html.js-up-reveal .up-faculty-card.is-inview:hover {
  transform: translate3d(0, -2px, 0);
}

html.js-up-reveal .up-card.is-inview:hover,
html.js-up-reveal .u-card.is-inview:hover {
  transform: translate3d(0, -3px, 0);
}

@media (prefers-reduced-motion: reduce) {
  html.js-up-reveal .up-about-card,
  html.js-up-reveal .up-digital-card,
  html.js-up-reveal .up-faculty-card,
  html.js-up-reveal .up-facility-tile,
  html.js-up-reveal .up-beasiswa-card,
  html.js-up-reveal .up-card,
  html.js-up-reveal .u-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 0;
    background: transparent;
  }

  .hamburger span {
    width: 24px;
    height: 2px;
    background: var(--primary);
  }

  .mobile-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 1.25rem;
    z-index: 999;
  }

  .mobile-nav.open {
    display: flex;
  }

  .mobile-nav a {
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 10px;
  }

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

  .up-section {
    padding: 1.5rem;
  }

  .up-grid-2,
  .up-grid-3,
  .u-grid-2,
  .u-grid-3 {
    grid-template-columns: 1fr;
  }

  .up-digital-grid,
  .up-faculty-grid,
  .up-beasiswa-row,
  .up-kontak-grid {
    grid-template-columns: 1fr;
  }

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

@media (min-width: 901px) and (max-width: 1100px) {
  .up-digital-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .up-facility-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Latar kustom: panel konten di atas gambar latar (Profil, Fakultas, Informasi, PMB) */
body.unpepabri-page-profil .front-main,
body.unpepabri-page-fakultas .front-main,
body.unpepabri-page-informasi .front-main,
body.unpepabri-page-pmb-2026 .front-main {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.1);
  padding: 2rem 1.5rem;
  margin: 1.5rem auto;
  max-width: 960px;
}
