/* ==========================================================================
   STIT MAFA - REUSABLE UI COMPONENTS & MODALS (MODULAR)
   ========================================================================== */
/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.section-padding {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3.5rem 0;
  }
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-50);
  color: var(--primary-700);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  border: 1px solid var(--primary-100);
}

.section-badge.badge-gold,
.section-badge-gold {
  background-color: rgba(217, 119, 6, 0.1);
  color: var(--accent-gold-dark);
  border-color: rgba(217, 119, 6, 0.25);
}

[data-theme="dark"] .section-badge {
  background-color: rgba(5, 150, 105, 0.15);
  color: var(--primary-400);
  border-color: rgba(5, 150, 105, 0.3);
}

[data-theme="dark"] .section-badge.badge-gold,
[data-theme="dark"] .section-badge-gold {
  background-color: rgba(217, 119, 6, 0.18);
  color: #fde68a;
  border-color: rgba(217, 119, 6, 0.35);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.85rem;
  }
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  box-shadow: 0 6px 18px rgba(4, 120, 87, 0.4);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  background-color: var(--bg-card);
}

.btn-outline:hover {
  border-color: var(--primary-600);
  color: var(--primary-700);
  background-color: var(--primary-50);
}

[data-theme="dark"] .btn-outline:hover {
  background-color: rgba(5, 150, 105, 0.15);
  color: var(--primary-400);
}

.btn-white {
  background-color: #ffffff;
  color: var(--primary-900);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* Ticker CTA Button (Fixed: High Contrast Frosted Glass & Gold Hover) */
.btn-ticker-cta {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff !important;
  padding: 0.28rem 0.85rem;
  font-size: 0.785rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.btn-ticker-cta:hover {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  border-color: var(--accent-gold-light);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.45);
}

@media (max-width: 640px) {
  .btn-ticker-cta {
    display: none !important;
  }
}

/* Dedicated Hero Buttons with Guaranteed Contrast & Luxury Glass Finish */
.btn-hero-glass {
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #ffffff !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
}

.btn-hero-glass:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-hero-gold {
  background: rgba(245, 158, 11, 0.18);
  border: 1.5px solid rgba(245, 158, 11, 0.7);
  color: #fef08a !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
}

.btn-hero-gold:hover {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  border-color: var(--accent-gold-light);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45);
}

/* --- MODAL SYSTEM --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: var(--bg-card);
  border-radius: var(--radius-xl);
  max-width: 650px;
  width: 100%;
  max-width: min(650px, calc(100vw - 2rem));
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  transform: translateY(20px) scale(0.96);
  transition: all var(--transition-normal);
  position: relative;
  box-sizing: border-box;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: var(--bg-card);
  z-index: 10;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--primary-100);
  color: var(--primary-700);
}

.modal-body {
  padding: 1.75rem;
}

/* PMB Registration Form Steps */
.pmb-form-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.pmb-form-steps::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.form-step-badge {
  position: relative;
  z-index: 2;
  background-color: var(--bg-card);
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.form-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--neutral-gray-200);
  color: var(--neutral-gray-600);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.form-step-badge.active .form-step-num {
  background-color: var(--primary-700);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.2);
}

.form-step-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-step-badge.active .form-step-title {
  color: var(--primary-700);
}

.step-page {
  display: none;
}

.step-page.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Printable Card Result */
.pmb-success-card {
  border: 2px dashed var(--primary-600);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  background: var(--primary-50);
  text-align: center;
}

[data-theme="dark"] .pmb-success-card {
  background: rgba(5, 150, 105, 0.12);
}

.pmb-reg-code {
  font-family: monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-800);
  letter-spacing: 2px;
  padding: 0.5rem 1rem;
  background: #ffffff;
  display: inline-block;
  border-radius: var(--radius-md);
  margin: 1rem 0;
  border: 1px solid var(--primary-200);
}

[data-theme="dark"] .pmb-reg-code {
  background: #1e293b;
  color: #34d399;
}

/* --- SPOTLIGHT SEARCH MODAL --- */
.search-modal-container {
  max-width: 580px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  gap: 0.75rem;
}

.search-modal-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1.15rem;
  background: transparent;
  color: var(--text-primary);
}

.search-results-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 0.75rem;
}

.search-result-item {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background-color: var(--bg-subtle);
}

.search-result-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.search-result-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --- FLOATING ACTION BUTTONS & WHATSAPP PROMPT --- */
.floating-actions {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* WhatsApp Float Container with Pulsing Glow */
.wa-float-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25d366;
  opacity: 0.8;
  animation: waPulseGlow 2.2s infinite;
  pointer-events: none;
}

@keyframes waPulseGlow {
  0% { transform: scale(0.9); opacity: 0.9; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

.btn-float {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transition: all var(--transition-fast);
  position: relative;
  z-index: 2;
}

.btn-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.btn-wa-float {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.btn-back-top {
  background: var(--primary-800);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.btn-back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* WhatsApp Prompt Chat Bubble */
.wa-chat-bubble {
  position: absolute;
  bottom: 65px;
  right: 0;
  width: 270px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 989;
}

.wa-chat-bubble.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.wa-bubble-content {
  flex-grow: 1;
}

.wa-bubble-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.wa-bubble-dot {
  width: 7px;
  height: 7px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 0 6px #25d366;
}

.wa-bubble-status {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wa-bubble-msg {
  font-size: 0.825rem;
  line-height: 1.4;
  color: var(--text-primary);
  margin: 0;
}

.wa-bubble-close {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 0.2rem;
}

.wa-bubble-close:hover {
  color: var(--text-primary);
}

/* --- LANGUAGE SELECTOR (ID / EN / AR) --- */
.lang-selector-wrapper {
  position: relative;
  z-index: 1060;
}

.lang-selector-wrapper.active {
  z-index: 1080;
}

.lang-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-selector-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.4);
}

.lang-flag {
  font-size: 0.95rem;
  line-height: 1;
}

.chevron-sm {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.lang-selector-wrapper.active .chevron-sm {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 185px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(245, 158, 11, 0.3);
  padding: 0.45rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 1100;
  animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 18px;
  width: 10px;
  height: 10px;
  background-color: var(--bg-card);
  border-left: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  transform: rotate(45deg);
  z-index: 1;
}

.lang-selector-wrapper.active .lang-dropdown-menu {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  font-size: 0.825rem;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: all var(--transition-fast);
}

.lang-option:hover {
  background-color: var(--primary-50);
  color: var(--primary-700);
}

[data-theme="dark"] .lang-option:hover {
  background-color: rgba(5, 150, 105, 0.2);
  color: var(--primary-400);
}

.lang-option.active {
  background-color: var(--primary-100);
  color: var(--primary-800);
  font-weight: 700;
}

[data-theme="dark"] .lang-option.active {
  background-color: rgba(5, 150, 105, 0.3);
  color: #ffffff;
}

.lang-name {
  flex-grow: 1;
}

.lang-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: var(--bg-subtle);
  color: var(--text-muted);
}

/* --- MOBILE DRAWER SEARCH & PORTAL GRID --- */
.mobile-drawer-search {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 1.25rem;
}

.mobile-drawer-search input {
  width: 100%;
  padding: 0.65rem 2.5rem 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.mobile-drawer-search input:focus {
  border-color: var(--primary-500);
  background: var(--bg-card);
}

.mobile-drawer-search button {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-lang-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.mobile-lang-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mobile-lang-buttons {
  display: flex;
  gap: 0.35rem;
}

.mobile-lang-btn {
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
}

.mobile-lang-btn.active {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #ffffff;
}

/* Mobile Drawer Digital Portal Grid */
.mobile-portal-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.mobile-portal-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
}

.mobile-portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.mobile-portal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.65rem 0.35rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  text-align: center;
  transition: all var(--transition-fast);
}

.mobile-portal-item:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
  transform: translateY(-2px);
}

[data-theme="dark"] .mobile-portal-item:hover {
  background: rgba(5, 150, 105, 0.2);
}

.mobile-portal-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.mobile-portal-name {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
}

/* ==========================================================================
   DOSEN DETAIL & BIOGRAPHY MODAL
   ========================================================================== */
.dosen-modal-container {
  max-width: 860px;
  border-radius: var(--radius-xl);
  padding: 0;
  overflow: hidden;
  background-color: var(--bg-card);
}

.dosen-modal-close {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dosen-modal-close:hover {
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  transform: rotate(90deg);
}

.dosen-modal-header {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 50%, var(--primary-700) 100%);
  color: #ffffff;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  position: relative;
}

@media (max-width: 768px) {
  .dosen-modal-header {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 1.25rem 1.5rem;
  }
}

.dosen-modal-avatar-frame {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.1);
}

.dosen-modal-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-serif);
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-gold-dark), var(--accent-gold));
}

.dosen-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dosen-modal-identity {
  flex-grow: 1;
}

.dosen-modal-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .dosen-modal-badges {
    justify-content: center;
  }
}

.dosen-badge-prodi {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.dosen-badge-tahfidz {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.dosen-modal-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.dosen-modal-role {
  font-size: 0.95rem;
  color: #fde68a;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.dosen-modal-nidn {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.dosen-modal-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .dosen-modal-actions {
    justify-content: center;
  }
}

.dosen-action-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.785rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.dosen-action-btn:hover {
  background: #ffffff;
  color: var(--primary-900);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Modal Navigation Tabs */
.dosen-modal-nav {
  display: flex;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
}

.dosen-modal-nav::-webkit-scrollbar {
  display: none;
}

.dosen-tab-btn {
  padding: 0.85rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.dosen-tab-btn:hover {
  color: var(--primary-700);
  background: rgba(0, 102, 99, 0.04);
}

.dosen-tab-btn.active {
  color: var(--primary-700);
  border-bottom-color: var(--primary-600);
  background-color: var(--bg-card);
  font-weight: 700;
}

[data-theme="dark"] .dosen-tab-btn.active {
  color: var(--primary-400);
  border-bottom-color: var(--primary-400);
}

/* Modal Body & Tab Panes */
.dosen-modal-body {
  padding: 1.75rem;
  max-height: 520px;
  overflow-y: auto;
}

.dosen-tab-pane {
  display: none;
  animation: fadeInPane 0.3s ease-in-out;
}

.dosen-tab-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dosen-bio-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-align: justify;
}

.dosen-info-box {
  background-color: var(--bg-subtle);
  border-left: 4px solid var(--primary-600);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.dosen-info-box strong {
  color: var(--primary-800);
  display: block;
  margin-bottom: 0.25rem;
}

[data-theme="dark"] .dosen-info-box strong {
  color: var(--primary-400);
}

.sanad-callout {
  background: linear-gradient(135deg, rgba(184, 149, 53, 0.12), rgba(0, 102, 99, 0.08));
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.sanad-callout-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.dosen-list-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dosen-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.dosen-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

[data-theme="dark"] .dosen-item-icon {
  background: rgba(13, 148, 136, 0.2);
  color: var(--primary-400);
}

/* --- CEK STATUS PENDAFTARAN PMB --- */

/* --- CEK STATUS PENDAFTARAN PMB --- */
.status-badge-verified {
  background-color: #d1fae5;
  color: #065f46;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-badge-pending {
  background-color: #fef3c7;
  color: #92400e;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   TESTIMONIALS INTERACTIVE CAROUSEL
   ========================================================================== */
.testi-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testi-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  z-index: 5;
}

.testi-nav-btn:hover {
  background-color: var(--primary-600);
  color: #ffffff;
  border-color: var(--primary-600);
  transform: scale(1.08);
}

@media (max-width: 640px) {
  .testi-nav-btn {
    display: none;
  }
}

.testi-carousel-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-xl);
}

.testi-carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.testi-carousel-track .testimonial-card {
  min-width: calc(50% - 0.75rem);
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .testi-carousel-track .testimonial-card {
    min-width: 100%;
  }
}

.testi-stars {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.testi-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.testi-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.testi-dot.active {
  width: 28px;
  border-radius: var(--radius-full);
  background-color: var(--primary-600);
}

/* ==========================================================================
   POPUP BANNER PMB (HIGH CONVERSION FLYER)
   ========================================================================== */
.pmb-flyer-container {
  width: 100%;
  max-width: min(780px, calc(100vw - 1.5rem));
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 0;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.pmb-flyer-close {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pmb-flyer-close:hover {
  background: #dc2626;
  color: #ffffff;
}

.pmb-flyer-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

@media (max-width: 768px) {
  .pmb-flyer-layout {
    grid-template-columns: 1fr;
  }
}

.pmb-flyer-visual {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
  color: #ffffff;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.pmb-flyer-badge-tag {
  display: inline-block;
  background: var(--accent-gold);
  color: #1a1a1a;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  align-self: flex-start;
  margin-bottom: 1.5rem;
}

.pmb-flyer-hero-text {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.pmb-flyer-sub-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.pmb-flyer-chips {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pmb-flyer-chips span {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.pmb-flyer-content {
  padding: 2.25rem 2rem;
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pmb-flyer-kicker {
  font-size: 0.725rem;
  font-weight: 800;
  color: var(--accent-gold-dark);
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

[data-theme="dark"] .pmb-flyer-kicker {
  color: #fde68a;
}

.pmb-flyer-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.pmb-flyer-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.pmb-flyer-perks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.perk-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.825rem;
}

.perk-row .perk-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.perk-row strong {
  display: block;
  color: var(--text-primary);
}

.perk-row p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
}

.pmb-flyer-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pmb-flyer-actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}

.pmb-flyer-skip {
  background: transparent;
  border: none;
  font-size: 0.775rem;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
}

.pmb-flyer-skip:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   AGENDA EVENT CARD (CALENDAR DATE BADGE)
   ========================================================================== */
.agenda-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.agenda-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-500);
  box-shadow: var(--shadow-xl);
}

.agenda-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.agenda-date-badge {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-700), var(--primary-900));
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 102, 99, 0.25);
  border: 2px solid var(--accent-gold-light);
}

.agenda-date-day {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.agenda-date-month {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.agenda-meta-top {
  flex-grow: 1;
}

.agenda-badge-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-700);
  background-color: var(--primary-50);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.35rem;
}

[data-theme="dark"] .agenda-badge-tag {
  background-color: rgba(13, 148, 136, 0.15);
  color: var(--primary-400);
}

.agenda-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.agenda-card:hover .agenda-title {
  color: var(--primary-600);
}

[data-theme="dark"] .agenda-card:hover .agenda-title {
  color: var(--primary-400);
}

.agenda-info-rows {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.825rem;
  color: var(--text-secondary);
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.agenda-info-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agenda-footer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-600);
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR (FIXED DOCK - SEPERTI IAIKU BLORA)
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 980;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  display: none; /* Disembunyikan di desktop */
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px)) 0.25rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.bottom-nav-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0.4rem 0.15rem;
  color: var(--text-muted);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.bottom-nav-icon svg {
  display: block;
}

.bottom-nav-label {
  font-size: 0.675rem;
  font-weight: 500;
  line-height: 1.1;
  color: currentColor;
  transition: color var(--transition-fast), font-weight var(--transition-fast);
}

/* Hover & Active States */
.bottom-nav-item:hover {
  color: var(--primary-700);
}

.bottom-nav-item.active {
  color: var(--primary-700);
}

.bottom-nav-item.active .bottom-nav-label {
  font-weight: 800;
  color: var(--text-primary);
}

.bottom-nav-item.active .bottom-nav-icon {
  transform: translateY(-2px);
  color: var(--primary-700);
}

/* Dark Mode Overrides */
[data-theme="dark"] .mobile-bottom-nav {
  background-color: rgba(19, 29, 49, 0.94);
  border-top-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .bottom-nav-item.active {
  color: var(--primary-400);
}

[data-theme="dark"] .bottom-nav-item.active .bottom-nav-label {
  color: #ffffff;
}

[data-theme="dark"] .bottom-nav-item.active .bottom-nav-icon {
  color: var(--primary-400);
}

/* Breakpoint Aktif: Mobile & Tablet */
@media (max-width: 860px) {
  .mobile-bottom-nav {
    display: flex;
  }
  
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  
  .floating-actions {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    right: 18px !important;
  }
  
  .footer-bottom {
    padding-bottom: calc(2rem + 64px) !important;
  }
}

