/* ==========================================================================
   MSAMU UI Components (Academic Standard)
   Buttons, Academic Cards, Prayer Ribbon, Modals, Forms & Badges
   ========================================================================== */

/* Buttons */
.btn-univ-primary {
  background-color: var(--msamu-green);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--msamu-green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.btn-univ-primary:hover {
  background-color: var(--msamu-green-dark);
  border-color: var(--msamu-green-dark);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-univ-outline {
  background-color: #ffffff;
  color: var(--msamu-green-dark) !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--msamu-green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.btn-univ-outline:hover {
  border-color: var(--msamu-green-dark);
  color: #ffffff !important;
  background-color: var(--msamu-green);
  transform: translateY(-1px);
}

.btn-univ-gold {
  background-color: #d97706;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid #b45309;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.btn-univ-gold:hover {
  background-color: #b45309;
  border-color: #92400e;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Badges */
.badge-univ-emerald {
  background-color: #e6f4ee;
  color: #064e3b;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #a7f3d0;
}

.badge-univ-gold {
  background-color: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #fde68a;
}

.badge-univ-navy {
  background-color: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
}

/* Academic Cards */
.academic-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.academic-card.h-100 {
  height: 100%;
}

.academic-card:hover {
  border-color: #10b981;
  box-shadow: 0 10px 24px -4px rgba(10, 79, 54, 0.1);
  transform: translateY(-3px);
}

/* Pillar Showcase Box */
.pillar-academic-box {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid var(--msamu-green);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-academic-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -4px rgba(10, 79, 54, 0.1);
}

.pillar-academic-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.pillar-academic-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Event Academic Card */
.event-academic-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.event-academic-card:hover {
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.08);
  border-color: #10b981;
  transform: translateY(-3px);
}

.event-poster-frame {
  height: 200px;
  overflow: hidden;
  background-color: #f1f5f9;
  position: relative;
}

.event-poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.event-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Prayer Timetable Ribbon */
.prayer-timetable-box {
  background-color: #ffffff;
  border: 1px solid var(--border-medium);
  border-top: 3px solid var(--univ-primary);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.prayer-grid-academic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.prayer-slot {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
}

.prayer-slot.next {
  background-color: var(--univ-primary-subtle);
  border-color: var(--univ-primary);
}

.prayer-slot-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.prayer-slot-time {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--univ-navy);
}

/* Academic Tables */
.table-academic {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.table-academic th {
  background-color: var(--bg-surface);
  color: var(--univ-navy);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-subtle);
}

.table-academic td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.table-academic tbody tr:hover {
  background-color: var(--bg-surface);
}

/* Forms & Inputs — High Visibility & Crisp Academic Styling */
.form-academic,
input.form-academic,
select.form-academic,
textarea.form-academic {
  background-color: #ffffff;
  border: 1.5px solid #94a3b8;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9375rem;
  color: #0f172a;
  width: 100%;
  display: block;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.form-academic::placeholder {
  color: #64748b;
  opacity: 0.9;
}

.form-academic:hover {
  border-color: #475569;
  background-color: #ffffff;
}

.form-academic:focus {
  background-color: #ffffff;
  border-color: var(--msamu-green);
  box-shadow: 0 0 0 3.5px rgba(10, 79, 54, 0.18);
  outline: none;
  color: #0f172a;
}

select.form-academic {
  appearance: auto;
  cursor: pointer;
  background-color: #ffffff;
  padding-right: 2rem;
}

textarea.form-academic {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Toast */
.toast-academic {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ffffff;
  color: var(--univ-navy);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--univ-primary);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-dropdown);
  z-index: 1090;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 400px;
}

/* ==========================================================================
   1. Live Campus Prayer & Iqamah Ribbon Bar
   ========================================================================== */
.prayer-quick-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 20;
}

.prayer-time-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.prayer-time-item.active-next-prayer {
  background: #ecfdf5;
  border: 1.5px solid #10b981;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.15);
  transform: translateY(-2px);
}

.prayer-time-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

.prayer-time-item.active-next-prayer .prayer-time-label {
  color: #047857;
}

.prayer-time-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.prayer-time-item.active-next-prayer .prayer-time-val {
  color: #065f46;
}

/* ==========================================================================
   2. Live Impact Stats Counter Bar
   ========================================================================== */
.impact-stats-bar {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 40px 0;
}

.impact-stat-box {
  text-align: center;
  padding: 15px 20px;
  border-right: 1px solid #f1f5f9;
}

.impact-stat-box:last-child {
  border-right: none;
}

.impact-number {
  font-size: 2.35rem;
  font-weight: 800;
  color: #0a4f36;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.1;
  margin-bottom: 4px;
}

.impact-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.impact-sub {
  font-size: 0.78rem;
  color: #64748b;
}

/* ==========================================================================
   3. Interactive Darsa Audio Player Suite
   ========================================================================== */
.home-audio-card {
  background: linear-gradient(135deg, #0f2b1d 0%, #06150e 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(10, 79, 54, 0.3);
}

.audio-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.audio-play-btn:hover {
  background: #059669;
  transform: scale(1.05);
}

.audio-progress-bar-wrap {
  background: rgba(255, 255, 255, 0.2);
  height: 6px;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.audio-progress-fill {
  background: #10b981;
  height: 100%;
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

.speed-pill-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.speed-pill-btn.active,
.speed-pill-btn:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

/* Sound wave animation */
.sound-wave-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.sound-wave-bars span {
  width: 3px;
  background: #10b981;
  border-radius: 2px;
  height: 6px;
  transition: height 0.2s ease;
}

.sound-wave-bars.playing span:nth-child(1) { animation: soundWave 0.8s infinite alternate 0.1s; }
.sound-wave-bars.playing span:nth-child(2) { animation: soundWave 0.8s infinite alternate 0.3s; }
.sound-wave-bars.playing span:nth-child(3) { animation: soundWave 0.8s infinite alternate 0.2s; }
.sound-wave-bars.playing span:nth-child(4) { animation: soundWave 0.8s infinite alternate 0.4s; }
.sound-wave-bars.playing span:nth-child(5) { animation: soundWave 0.8s infinite alternate 0.15s; }

@keyframes soundWave {
  0% { height: 4px; }
  100% { height: 20px; }
}

/* ==========================================================================
   4. Patient Emergency Relief Banner
   ========================================================================== */
.patient-relief-card {
  background: #ffffff;
  border: 1.5px solid #a7f3d0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.preset-chip-btn {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-chip-btn:hover,
.preset-chip-btn.active {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

/* ==========================================================================
   5. Events Carousel Showcase Banner
   ========================================================================== */
.home-events-carousel-section {
  background: #ffffff;
  padding: 60px 0;
  border-top: 1px solid var(--msamu-border, #e2e8f0);
}

.event-carousel-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.event-carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -4px rgba(10, 79, 54, 0.12);
  border-color: #a7f3d0;
}

.event-carousel-poster-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: #0f172a;
}

.event-carousel-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-carousel-card:hover .event-carousel-poster-wrap img {
  transform: scale(1.04);
}

.event-carousel-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 79, 54, 0.92);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.event-carousel-date-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.event-carousel-date-badge .day {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0a4f36;
  line-height: 1;
}

.event-carousel-date-badge .month {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.event-carousel-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.carousel-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.carousel-nav-btn:hover {
  background: #0a4f36;
  border-color: #0a4f36;
  color: #ffffff;
  transform: scale(1.05);
}

.btn-see-all-events {
  background: #ecfdf5;
  color: #065f46;
  border: 1.5px solid #a7f3d0;
  padding: 8px 18px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-see-all-events:hover {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  transform: translateY(-1px);
}

/* ==========================================================================
   6. Qur'an Center & Cloud Audio Player Suite
   ========================================================================== */
.quran-ayah-row {
  transition: all 0.25s ease;
  border-left: 4px solid transparent !important;
}

.quran-ayah-row:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.quran-ayah-row.active-playing-ayah {
  background-color: #f0fdf4 !important;
  border-left: 4px solid #10b981 !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
}

.ayah-end-symbol {
  display: inline-block;
  color: #059669;
  font-size: 1.15rem;
  margin-right: 6px;
  vertical-align: middle;
}

.quick-surah-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-surah-btn:hover {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

.quran-player-bar-sticky {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f2b1d;
  color: #ffffff;
  padding: 14px 20px;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  border-top: 1.5px solid #10b981;
}

.fs-arabic-sm .ayah-arabic-text { font-size: 1.35rem !important; }
.fs-arabic-md .ayah-arabic-text { font-size: 1.65rem !important; }
.fs-arabic-lg .ayah-arabic-text { font-size: 2.1rem !important; }

/* Traditional Mushaf (Mashaf) Page View */
.mushaf-page-canvas {
  background: #fdfbf7;
  border: 1px solid #e2d9c8;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), inset 0 0 40px rgba(226, 217, 200, 0.25);
  position: relative;
  overflow: hidden;
  padding: 24px 18px;
}

@media (min-width: 768px) {
  .mushaf-page-canvas {
    padding: 40px 45px;
  }
}

.mushaf-outer-border {
  border: 2px solid #c5a880;
  border-radius: 8px;
  padding: 12px;
  position: relative;
}

.mushaf-inner-border {
  border: 1px solid #dfcfb9;
  border-radius: 6px;
  padding: 20px 16px;
  position: relative;
  background: #fefdfa;
}

@media (min-width: 768px) {
  .mushaf-inner-border {
    padding: 30px 24px;
  }
}

/* Ornate Surah Header in Mushaf */
.mushaf-surah-banner {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #064e3b 100%);
  border: 2px solid #d4af37;
  color: #fef3c7;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 22px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.15);
  position: relative;
}

.mushaf-surah-banner .surah-title {
  font-family: 'Amiri Quran', 'Amiri', serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.mushaf-bismillah-banner {
  font-family: 'Amiri Quran', 'Amiri', serif;
  font-size: 1.85rem;
  color: #1e293b;
  text-align: center;
  margin: 16px 0 24px 0;
  line-height: 2.2;
}

/* Continuous Flowing Mushaf Text */
.mushaf-flowing-text {
  font-family: 'Amiri Quran', 'Amiri', 'Scheherazade New', serif;
  font-size: 1.85rem;
  line-height: 2.75;
  text-align: justify;
  text-justify: inter-word;
  direction: rtl;
  color: #1a202c;
  word-spacing: 2px;
}

.fs-arabic-sm .mushaf-flowing-text { font-size: 1.5rem !important; line-height: 2.4 !important; }
.fs-arabic-md .mushaf-flowing-text { font-size: 1.85rem !important; line-height: 2.75 !important; }
.fs-arabic-lg .mushaf-flowing-text { font-size: 2.25rem !important; line-height: 3.1 !important; }

.mushaf-ayah-span {
  display: inline;
  padding: 2px 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mushaf-ayah-span:hover {
  background-color: rgba(4, 120, 87, 0.09);
  color: #047857;
}

.mushaf-ayah-span.active-playing-ayah {
  background-color: #d1fae5 !important;
  color: #064e3b !important;
  font-weight: bold;
  box-shadow: 0 0 0 2px #10b981;
}

.mushaf-ayah-ornament {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Amiri', serif;
  color: #b45309;
  font-size: 1.15rem;
  margin: 0 4px;
  user-select: none;
  vertical-align: middle;
}

/* Interactive Floating Translation Preview Dock in Mushaf View */
.mushaf-translation-dock {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  direction: ltr;
}

/* View Mode Pill Switcher */
.quran-view-switcher {
  display: inline-flex;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.quran-view-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quran-view-btn.active {
  background: #ffffff;
  color: #047857;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}



