/* ============================================================
   BSRU Admission — Global styles
   ============================================================ */
body, input, select, textarea, button { font-family: 'Prompt', sans-serif; }

:root {
  --primary: #7b1fa2;
  --primary-light: #ce93d8;
  --hero-grad: linear-gradient(135deg, #7b1fa2 0%, #e91e63 100%);
}

/* Hero */
.hero-section {
  background: var(--hero-grad);
  min-height: 260px;
  padding: 80px 16px 48px;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.hero-title    { font-size: 2.4rem; font-weight: 800; letter-spacing: 2px; margin: 0; }
.hero-subtitle { font-size: 1rem; opacity: .85; margin-top: 6px; }
.hero-count    { font-size: .85rem; opacity: .7; margin-top: 4px; letter-spacing: 1px; }

/* Slideshow */
.hero-slides { position:absolute; inset:0; }
.hero-slide {
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  opacity:0; transition:opacity 1s ease;
}
.hero-slide.active { opacity:1; }
.hero-overlay {
  position:absolute; inset:0;
  background:linear-gradient(135deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
}

/* Chibi */
/* ── Animated Students ── */
.hero-outer { position: relative; }

.student-corner {
  position: absolute;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
}
.student-corner svg { display: block; width: 48px; height: auto; }

/* Left corner — female, mirror to face inward */
.student-left  { left: 12px; }
.student-left svg { transform: scaleX(-1); }

/* Right corner — male */
.student-right { right: 12px; }
.student-right svg { transform: scaleX(-1); }

/* ── Body bob (walking bounce) ── */
.student-left  { animation: st-bob 0.6s ease-in-out infinite alternate; }
.student-right { animation: st-bob 0.6s ease-in-out infinite alternate-reverse; animation-delay:.12s; }

@keyframes st-bob {
  0%   { transform: translateY(0) rotate(0deg); }
  40%  { transform: translateY(-6px) rotate(-1.2deg); }
  100% { transform: translateY(-2px) rotate(1deg); }
}

/* ── Waving arm ── */
.st-arm-wave {
  animation: st-wave 0.7s ease-in-out infinite alternate;
}
.student-right .st-arm-wave { animation-delay: .2s; }

@keyframes st-wave {
  0%   { transform: rotate(-30deg); }
  50%  { transform: rotate(55deg); }
  75%  { transform: rotate(40deg); }
  100% { transform: rotate(55deg); }
}

/* Static arm slight swing opposite to body tilt */
.st-arm-still {
  animation: st-arm-still 0.6s ease-in-out infinite alternate;
}
@keyframes st-arm-still {
  from { transform: rotate(8deg); }
  to   { transform: rotate(-5deg); }
}

/* ── Leg swing ── */
.st-leg-l {
  animation: st-leg-f 0.6s ease-in-out infinite alternate;
}
.st-leg-r {
  animation: st-leg-f 0.6s ease-in-out infinite alternate-reverse;
}
.student-right .st-leg-l,
.student-right .st-leg-r { animation-delay: .12s; }

@keyframes st-leg-f {
  from { transform: rotate(-20deg); }
  to   { transform: rotate(20deg); }
}

/* ── Ground shadow pulses with bob ── */
.st-shadow {
  animation: st-shadow 0.6s ease-in-out infinite alternate;
}
.student-right .st-shadow { animation-direction: alternate-reverse; animation-delay:.12s; }
@keyframes st-shadow {
  from { transform: scaleX(1);   opacity: .22; }
  to   { transform: scaleX(.65); opacity: .12; }
}

/* Search */
.search-wrapper {
  position: relative;
  max-width: 480px;
}
.search-input {
  border-radius: 50px;
  padding: 12px 50px 12px 20px;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  font-size: .95rem;
}
.search-input:focus { box-shadow: 0 4px 24px rgba(0,0,0,.2); outline: none; }
.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Faculty card */
.faculty-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  overflow: hidden;
}
.faculty-header {
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
  transition: background .2s;
}
.faculty-header:hover { background: #fafafa; }

.faculty-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.faculty-name { font-size: 1rem; }

.toggle-icon {
  color: #aaa;
  transition: transform .3s;
}
[aria-expanded="true"] .toggle-icon { transform: rotate(180deg); }

/* Faculty body */
.faculty-body { border-top: 1px solid #f0f0f0; }

/* Degree category */
.degree-category { border-left: 4px solid var(--primary); margin: 12px 16px; border-radius: 4px; }
.degree-label {
  padding: 6px 12px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  background: #f8f0fd;
  border-radius: 4px 4px 0 0;
}

/* Program row */
.program-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #f5f5f5;
  gap: 8px;
  transition: background .15s;
}
.program-row:last-child { border-bottom: none; }
.program-row:hover { background: #fdfafa; }
.program-name-wrap { flex: 1; min-width: 0; }
.program-icon { font-size: .9rem; flex-shrink: 0; }
.program-name { font-size: .9rem; }

/* Social buttons */
.social-buttons { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  font-size: .75rem;
  text-decoration: none;
  color: #fff;
  transition: opacity .2s, transform .15s;
  line-height: 1;
  box-sizing: border-box;
}
.social-btn:hover { opacity: .85; transform: scale(1.1); color: #fff; }
.social-btn.disabled { background: #e0e0e0; color: #bbb; pointer-events: none; cursor: default; }

.btn-web    { background: #37474f; }
.btn-fb     { background: #1877f2; }
.btn-ig     { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.btn-tiktok { background: #010101; }
.btn-x      { background: #000; }

/* ============================================================
   Admin layout
   ============================================================ */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: #1e1e2e;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
}
.sidebar-logo {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo .logo-text { color: #fff; font-weight: 800; font-size: 1.1rem; }
.sidebar-logo .logo-sub  { color: rgba(255,255,255,.45); font-size: .72rem; }

.sidebar-nav { padding: 12px 0; flex: 1; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .88rem;
  transition: background .2s, color .2s;
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-left-color: var(--primary-light);
}
.sidebar-nav a i { width: 18px; text-align: center; }
.sidebar-section {
  padding: 8px 20px 4px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-top: 4px;
}

.admin-main {
  margin-left: 240px;
  min-height: 100vh;
  background: #f5f6fa;
}
.admin-topbar {
  background: #fff;
  padding: 14px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-content { padding: 24px; }

/* Responsive */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s; }
  .sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .hero-title { font-size: 1.8rem; }
}

/* DataTable overrides */
.datatable-wrapper { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
table.dataTable thead th { background: #f8f9fb; font-weight: 600; font-size: .85rem; }

/* Status badge */
.chk-badge { font-size: .72rem; padding: 2px 8px; border-radius: 20px; }
.chk-0 { background: #fee; color: #c62828; }
.chk-1 { background: #fff3e0; color: #e65100; }
.chk-2 { background: #e8f5e9; color: #2e7d32; }
.chk-3 { background: #e3f2fd; color: #1565c0; }

/* Banner image drop zone */
.bm-dropzone {
  border: 2px dashed #ced4da;
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  transition: border-color .2s, background .2s;
  cursor: default;
  background: #fafbfc;
}
.bm-dropzone.dz-active {
  border-color: var(--accent, #7b1fa2);
  background: #f3e8ff;
}
.bm-dz-icon {
  font-size: 2rem;
  color: #adb5bd;
  display: block;
  margin-bottom: 8px;
}
.bm-dz-text { font-size: .88rem; color: #555; }
.bm-dz-link {
  color: var(--accent, #7b1fa2);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}
.bm-dz-hint { font-size: .75rem; color: #adb5bd; margin-top: 4px; }

/* ═══════════════════════════════════════════════
   Banner Slider (portrait + landscape support)
═══════════════════════════════════════════════ */
.banner-section {
  padding: 20px 0 8px;
  background: #f5f6fa;
}
.banner-slider {
  position: relative;
  user-select: none;
}
/* Viewport — clips the track */
.banner-viewport {
  overflow: hidden;
  border-radius: 14px;
}
/* Flex track — translateX slides */
.banner-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  align-items: stretch;
  gap: 12px;
}
/* ── Desktop: 4 columns ── */
.banner-slide {
  min-width: calc((100% - 12px * 3) / 4);
  flex-shrink: 0;
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.09);
  display: flex;
  flex-direction: column;
  align-self: stretch;
  transition: transform .32s cubic-bezier(.22,.68,0,1.4), box-shadow .32s ease;
  cursor: pointer;
}
@media (hover: hover) {
  .banner-slide:hover {
    transform: translateY(-8px) scale(1.025);
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
    z-index: 2;
  }
  .banner-slide:hover .banner-img-wrap img {
    transform: scale(1.07);
  }
  .banner-slide:hover .banner-hover-overlay {
    opacity: 1;
  }
  .banner-slide:hover .banner-title {
    color: var(--primary, #7b1fa2);
  }
  .banner-slide:hover .banner-cta {
    opacity: .85;
    letter-spacing: .3px;
  }
}
.banner-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9; /* default; overridden inline per banner */
  overflow: hidden;
  background: #1a1a2e;
  flex-shrink: 0;
  position: relative;
  max-height: 320px; /* cap tall ratios (3:4, 9:16) so all cards stay same height */
}
.banner-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
  transition: transform .45s cubic-bezier(.22,.68,0,1.2);
}
.banner-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123,31,162,.18) 0%, rgba(233,30,99,.12) 100%);
  opacity: 0;
  transition: opacity .32s ease;
  pointer-events: none;
  z-index: 1;
}
.banner-text-overlay {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #fff;
  color: #333;
}
.banner-text-plain {
  padding: 20px 16px;
  flex: 1;
  background: var(--hero-grad, linear-gradient(135deg,#7b1fa2,#e91e63));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 160px;
}
.banner-title {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.35;
  color: inherit;
}
.banner-sub {
  font-size: .75rem;
  opacity: .8;
  margin-bottom: 10px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.banner-cta {
  display: inline-flex;
  align-items: center;
  background: var(--hero-grad, linear-gradient(135deg,#7b1fa2,#e91e63));
  color: #fff;
  text-decoration: none;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  align-self: center;
  transition: opacity .2s;
}
.banner-text-plain .banner-cta {
  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.5);
}
.banner-cta:hover { opacity: .85; color: #fff; }
/* Arrows */
.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.banner-nav:hover { background: rgba(0,0,0,.7); }
.banner-prev { left: -16px; }
.banner-next { right: -16px; }
/* Dots */
.banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.banner-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background .2s, width .25s;
  border: none;
}
.banner-dot.active {
  background: var(--accent, #7b1fa2);
  width: 20px;
  border-radius: 4px;
}
/* Counter badge */
.banner-counter {
  position: absolute;
  top: -28px;
  right: 0;
  font-size: .72rem;
  color: #888;
}

/* ── Mobile: 1 column, hero style ── */
@media (max-width: 767px) {
  .banner-viewport { border-radius: 12px; }
  .banner-slide {
    min-width: 100%;
    border-radius: 0;
    box-shadow: none;
    flex-direction: column;
    background: #1a1a2e;
  }
  .banner-img-wrap { max-height: 80vw; }
  .banner-img-wrap img { object-fit: contain; }
  .banner-text-overlay {
    padding: 16px 18px 20px;
    background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.35) 70%, transparent 100%);
    color: #fff;
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 2;
  }
  /* Make slide wrapper relative so overlay works */
  .banner-slide { position: relative; }
  .banner-title { font-size: 1.05rem; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
  .banner-sub   { font-size: .82rem; text-shadow: 0 1px 2px rgba(0,0,0,.4); -webkit-line-clamp: 3; }
  .banner-cta   { font-size: .8rem; padding: 6px 16px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.5); }
  .banner-text-plain { min-height: 200px; padding: 24px 20px; }
  .banner-nav   { display: none; }
  .banner-prev  { left: 8px; display: flex; }
  .banner-next  { right: 8px; display: flex; }
  .banner-section { padding: 12px 0 4px; }
  .banner-track { gap: 0; }
}

/* ═══════════════════════════════════════════════
   Feedback FAB
═══════════════════════════════════════════════ */
.feedback-fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 999;
  background: var(--hero-grad, linear-gradient(135deg,#7b1fa2,#e91e63));
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 10px 18px;
  font-size: .82rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform .2s, box-shadow .2s;
}
.feedback-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.feedback-fab-label { display: none; }
@media (min-width: 480px) { .feedback-fab-label { display: inline; } }
