/* =========================================================
   AMIK Bukittinggi — style.css
   Tema: Ungu vivid premium, elegan, editorial-akademik
   ========================================================= */

:root {
  --primary: #1e0442;
  --primary-deep: #0d0120;
  --secondary: #6f00ff;
  --secondary-soft: #b285ff;
  --accent: #f0b429;
  --accent-soft: #ffd166;
  --bg: #fbf9fd;
  --text-dark: #1c1230;
  --text-muted: #6b6280;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(30,4,66,.08);
  --shadow-lift: 0 24px 48px rgba(30,4,66,.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, .brand-text {
  font-family: 'Poppins', sans-serif;
  letter-spacing: -.01em;
}
.container { max-width: 1240px; }

/* ---------- Section header component (dipakai berulang) ---------- */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; font-weight: 600;
  color: var(--secondary); margin-bottom: .6rem;
}
.section-eyebrow::before {
  content: ""; width: 22px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--secondary));
  display: inline-block; border-radius: 2px;
}
.section-title { font-weight: 700; color: var(--primary); letter-spacing: -.02em; }
.section-subtitle { color: var(--text-muted); }
.section-divider {
  width: 64px; height: 3px; border-radius: 3px; margin: .9rem 0 1.4rem;
  background: linear-gradient(90deg, var(--accent), var(--secondary-soft));
}

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--primary-deep);
  color: #d9c9fa;
  font-size: 0.82rem;
  letter-spacing: .01em;
}
.top-bar a { color: #d9c9fa; text-decoration: none; transition: color .15s ease; }
.top-bar a:hover { color: var(--accent); }

/* ---------- Navbar ---------- */
.main-navbar { padding: 0.55rem 0; z-index: 1030; border-bottom: 1px solid #f0eaf9; box-shadow: 0 2px 16px rgba(30,4,66,.04); }
.main-navbar .navbar-brand { display: flex; align-items: center; gap: .6rem; margin-right: 1rem; flex-shrink: 0; }
.main-navbar .navbar-brand img { height: 46px; width: auto; object-fit: contain; flex-shrink: 0; }
.main-navbar .brand-text { flex-shrink: 0; }
.main-navbar .brand-text strong { display: block; font-size: 1rem; white-space: nowrap; color: var(--primary); }
.main-navbar .brand-text small { color: var(--text-muted); font-size: 0.66rem; display: block; white-space: nowrap; }
.main-navbar .nav-link { font-weight: 500; color: var(--text-dark); margin: 0 0.2rem; position: relative; padding-left: .5rem; padding-right: .5rem; }
.main-navbar .nav-link.active,
.main-navbar .nav-link:hover { color: var(--secondary); }

/* Di lebar laptop umum (992-1450px), ruang tidak cukup untuk logo+nama+tagline+9 menu+2 tombol
   dalam satu baris. Sembunyikan tagline dan ringkaskan menu agar nama kampus TETAP tampil penuh
   dan tidak ada elemen yang bertabrakan. */
@media (min-width: 992px) and (max-width: 1450px) {
  .main-navbar .brand-text small { display: none; }
  .main-navbar .nav-link { font-size: .88rem; margin: 0; padding-left: .38rem; padding-right: .38rem; }
  .main-navbar .navbar-brand { margin-right: .6rem; }
  .nav-cta .btn { padding: .35rem .7rem; font-size: .82rem; }
  .nav-cta { gap: .4rem !important; }
}

.nav-cta { flex-wrap: nowrap; flex-shrink: 0; white-space: nowrap; gap: .6rem !important; }
.nav-cta .btn { white-space: nowrap; }
.nav-cta .btn-primary {
  background: linear-gradient(135deg, var(--secondary), #8a2be2);
  border-color: var(--secondary); font-weight: 600; box-shadow: 0 8px 18px rgba(111,0,255,.28);
}
.nav-cta .btn-primary:hover { filter: brightness(1.06); box-shadow: 0 10px 22px rgba(111,0,255,.35); }
.nav-cta .btn-outline-primary { color: var(--primary); border-color: var(--primary); font-weight: 500; }
.nav-cta .btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }
.dropdown-menu { border: none; box-shadow: var(--shadow-lift); border-radius: 14px; padding: .5rem; }
.dropdown-item { border-radius: 9px; padding: .55rem .8rem; white-space: normal; font-size: .92rem; }
.dropdown-item:hover { background: #f4eefd; color: var(--secondary); }
@media (max-width: 991px) {
  #mainNav { max-height: 80vh; overflow-y: auto; }
  .nav-cta { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid #f0eaf9; }
  .main-navbar .navbar-brand img { height: 38px; }
}

/* ---------- Hero / carousel ---------- */
.hero-slide {
  position: relative;
  height: 80vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slide::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
}
.hero-slide::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(155deg, rgba(13,1,32,.94) 10%, rgba(111,0,255,.62) 100%);
}
/* Banner yang sudah didesain lengkap (punya teks/CTA sendiri di gambar) —
   tampilkan gambar asli tanpa lapisan gelap maupun tekstur titik-titik. */
.hero-slide.no-overlay::before,
.hero-slide.no-overlay::after { display: none; }
a.hero-slide.no-overlay { cursor: pointer; }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 720px; padding: 0 .25rem; }
.hero-content .eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  letter-spacing: .16em; text-transform: uppercase;
  font-size: .72rem; font-weight: 600; color: var(--accent);
  border: 1px solid rgba(240,180,41,.55); background: rgba(240,180,41,.08);
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero-content h1 { font-weight: 700; font-size: 2.75rem; word-break: break-word; line-height: 1.15; }
.hero-content .lead { color: #e6ddf7; font-size: 1.1rem; }
.hero-content .btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: var(--primary-deep); font-weight: 700; border: none;
  padding: .7rem 1.6rem; box-shadow: 0 14px 28px rgba(240,180,41,.32);
  letter-spacing: .01em; transition: transform .18s ease, box-shadow .18s ease;
}
.hero-content .btn-accent:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(240,180,41,.4); }
.carousel-control-prev, .carousel-control-next { width: 6%; }
.carousel-indicators [data-bs-target] { background-color: var(--accent); }

/* ---------- Quick access ---------- */
.quick-access-card {
  border-radius: var(--radius);
  border: 1px solid #efe7fa;
  padding: 1.6rem 1rem;
  text-align: center;
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.quick-access-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(160deg, rgba(111,0,255,.06), rgba(240,180,41,.05));
  transition: opacity .22s ease;
}
.quick-access-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--secondary-soft);
}
.quick-access-card:hover::before { opacity: 1; }
.quick-access-card i, .quick-access-card span { position: relative; z-index: 1; }
.quick-access-card i {
  font-size: 1.7rem; color: #fff; width: 52px; height: 52px; line-height: 52px;
  border-radius: 50%; background: linear-gradient(135deg, var(--secondary), #8a2be2);
  display: inline-block; margin-bottom: .6rem;
}

/* ---------- Integrity banners ---------- */
.integrity-section { background: linear-gradient(180deg,#f6f1fc,#fbf9fd); position: relative; }
.integrity-card {
  border-radius: var(--radius);
  padding: 1.85rem;
  color: #fff;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-lift);
  position: relative; overflow: hidden;
  transition: transform .22s ease;
}
.integrity-card:hover { transform: translateY(-5px); }
.integrity-card::after {
  content: ""; position: absolute; top: -40px; right: -40px; width: 140px; height: 140px;
  border-radius: 50%; background: rgba(255,255,255,.06);
}
.integrity-card i { font-size: 2rem; color: var(--accent); }
.integrity-card h5 { letter-spacing: -.01em; }
.integrity-card.bullying    { background: linear-gradient(150deg,#1e0442,#5b12b3); }
.integrity-card.kekerasan   { background: linear-gradient(150deg,#3a0a4d,#8a1f8f); }
.integrity-card.narkoba     { background: linear-gradient(150deg,#170833,#4b1fa8); }
.integrity-card.gratifikasi { background: linear-gradient(150deg,#2a0a5e,#6f00ff); }
.integrity-card .btn {
  background: rgba(255,255,255,.1); border: 1px solid rgba(240,180,41,.55); color: #fff;
  font-size: .85rem; font-weight: 500; position: relative; z-index: 1;
}
.integrity-card .btn:hover { background: var(--accent); color: var(--primary-deep); border-color: var(--accent); }

/* ---------- Stat counter ---------- */
.stat-block { padding: 1.1rem .5rem; border-radius: var(--radius-sm); background: #fff; border: 1px solid #efe7fa; }
.stat-counter { font-size: 2.5rem; font-weight: 700; background: linear-gradient(135deg, var(--secondary), #8a2be2); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Cards (berita/pengumuman) ---------- */
.content-card { border-radius: var(--radius); overflow: hidden; border: 1px solid #efe7fa; background: #fff; transition: box-shadow .22s ease, transform .22s ease; }
.content-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.content-card img { height: 190px; object-fit: cover; width: 100%; }
.badge-category { background: var(--secondary); font-weight: 500; letter-spacing: .01em; }

/* ---------- Sambutan pimpinan ---------- */
.leader-photo-wrap {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift);
  border: 4px solid #fff; outline: 1px solid #efe7fa;
}

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--primary), var(--primary-deep)); color: #d9c9fa; position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary-soft), var(--accent));
}
.site-footer h5, .site-footer h6 { color: #fff; }
.site-footer h6 { letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; margin-bottom: 1rem; }
.footer-brand-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.footer-brand-row img { height: 42px; width: auto; }
.footer-links a { color: #cdbdec; text-decoration: none; line-height: 2.1; font-size: .92rem; transition: color .15s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-links li { display: flex; align-items: flex-start; gap: .5rem; font-size: .88rem; color: #cdbdec; line-height: 1.7; margin-bottom: .5rem; }
.footer-links li i { color: var(--accent); margin-top: .2rem; }
.footer-social a {
  color: #fff; font-size: 1rem; width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); transition: background .18s ease, color .18s ease;
}
.footer-social a:hover { background: var(--accent); color: var(--primary-deep); }
.footer-bottom { background: var(--primary-deep); color: #9d8cc2; border-top: 1px solid rgba(255,255,255,.06); }
.footer-bottom .developer-credit { color: #b8a4dc; }
.footer-bottom .developer-credit strong { color: var(--accent); font-weight: 600; }

/* ---------- Floating buttons ---------- */
.floating-buttons {
  position: fixed; right: 18px; bottom: 18px; z-index: 1040;
  display: flex; flex-direction: column; gap: 10px;
}
.fab {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem; box-shadow: var(--shadow-lift);
  border: none; text-decoration: none; transition: transform .18s ease;
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab-whatsapp { background: #25d366; }
.fab-report { background: linear-gradient(135deg, var(--accent), var(--accent-soft)); color: var(--primary-deep); }
.fab-top { background: linear-gradient(135deg, var(--secondary), #8a2be2); display: none; }

@media (max-width: 991px) {
  .hero-content h1 { font-size: 2.15rem; }
  .hero-slide { height: 68vh; min-height: 420px; }
  .integrity-card { min-height: auto; }
}

@media (max-width: 767px) {
  .hero-content h1 { font-size: 1.7rem; }
  .hero-content .lead { font-size: .95rem; }
  .hero-slide { height: 58vh; min-height: 380px; }
  .section-title { font-size: 1.35rem; }
  .stat-counter { font-size: 1.9rem; }
  .quick-access-card { padding: 1rem .5rem; }
  .quick-access-card i { font-size: 1.3rem; width: 42px; height: 42px; line-height: 42px; }
  .quick-access-card span { font-size: .78rem; }
  .content-card img { height: 160px; }
  .floating-buttons { right: 12px; bottom: 12px; gap: 8px; }
  .fab { width: 44px; height: 44px; font-size: 1.1rem; }
  .footer-bottom { font-size: .78rem; }
  .main-navbar .navbar-brand img { height: 34px; }
}

@media (max-width: 420px) {
  .hero-content h1 { font-size: 1.45rem; }
  .top-bar-info span { display: block; }
}
