/* Jamia Makhdoom-e-Simnah Lilbanat Custom Styling & Design System 
   Harmonized with the official D.U.M.S. Trust circular logo, Nastaleeq Multi-Language Support & Micro-Animations
*/

:root {
  --primary-navy: #082046;
  --primary-navy-light: #0E387A;
  --primary-navy-dark: #041024;
  --logo-red: #C62828;
  --logo-red-hover: #B71C1C;
  --logo-red-light: #FFEBEE;
  --shrine-emerald: #00875A;
  --shrine-emerald-light: #E8F5E9;
  --accent-gold: #E5A93C;
  --accent-gold-light: #FFF3CD;
  --bg-light: #F4F7FB;
  --bg-white: #FFFFFF;
  --text-dark: #0F172A;
  --text-muted: #475569;
  --border-light: #E2E8F0;
}

body {
  font-family: 'Source Sans 3', 'Lato', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  top: 0px !important;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Poppins', sans-serif;
}

/* ==========================================================================
   Urdu Nastaleeq RTL Typography & Layout Rules
   ========================================================================== */
body.lang-ur {
  font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', serif;
  line-height: 2.1;
  direction: rtl;
  text-align: right;
}

body.lang-ur h1,
body.lang-ur h2,
body.lang-ur h3,
body.lang-ur h4,
body.lang-ur h5,
body.lang-ur h6,
body.lang-ur .font-heading {
  font-family: 'Noto Nastaliq Urdu', serif;
  line-height: 2.0;
  letter-spacing: normal;
}

body.lang-ur input,
body.lang-ur textarea,
body.lang-ur select {
  font-family: 'Noto Nastaliq Urdu', serif;
  direction: rtl;
  text-align: right;
}

body.lang-ur input[type="tel"],
body.lang-ur input[type="email"],
body.lang-ur input[type="password"],
body.lang-ur .font-mono {
  direction: ltr;
  text-align: left;
}

body.lang-ur .whatsapp-fab-container {
  right: auto;
  left: 24px;
}

/* ==========================================================================
   Hindi Devanagari Typography Rules
   ========================================================================== */
body.lang-hi {
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
}

body.lang-hi h1,
body.lang-hi h2,
body.lang-hi h3,
body.lang-hi h4,
body.lang-hi h5,
body.lang-hi h6,
body.lang-hi .font-heading {
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  line-height: 1.4;
}

/* ==========================================================================
   WOW Micro-Animations & Scroll Reveal Effects
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Subtle floating badge animation */
.floating-pulse {
  animation: floatingPulse 3s ease-in-out infinite alternate;
}

@keyframes floatingPulse {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

/* Shimmer reflection effect on buttons */
.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.75s ease-in-out;
}

.shimmer-btn:hover::after {
  transform: rotate(30deg) translateY(100%);
}

/* Elevated Hover Cards */
.hover-card-elevate {
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-card-elevate:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(8, 32, 70, 0.15);
}

/* ==========================================================================
   Vertical Video Reels Slider (9:16 aspect ratio)
   ========================================================================== */
.reels-scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  gap: 20px;
  padding: 12px 4px 24px 4px;
}

.reels-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.reel-card {
  flex: 0 0 270px;
  scroll-snap-align: start;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  background-color: #041024;
  aspect-ratio: 9/16;
  box-shadow: 0 10px 25px -5px rgba(8, 32, 70, 0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

@media (min-width: 640px) {
  .reel-card {
    flex: 0 0 300px;
  }
}

.reel-card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 35px -5px rgba(8, 32, 70, 0.4);
}

.reel-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(198, 40, 40, 0.9);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  backdrop-blur: 4px;
  transition: all 0.3s ease;
  z-index: 20;
  cursor: pointer;
}

.reel-card:hover .reel-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: #C62828;
}

.reel-card.is-playing .reel-play-btn {
  opacity: 0;
  pointer-events: none;
}

.reel-card.is-playing:hover .reel-play-btn {
  opacity: 0.8;
  pointer-events: auto;
}

/* Floating WhatsApp Button */
.whatsapp-fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
}

.whatsapp-fab-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.whatsapp-fab-btn:hover {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-fab-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.3;
  animation: waPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  z-index: -1;
}

@keyframes waPulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Toast Container & Notification */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 14px 20px;
  border-radius: 12px;
  background-color: #082046;
  color: #FFFFFF;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 10px 25px -5px rgba(8, 32, 70, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.toast-show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-left: 4px solid #10B981;
}

.toast-info {
  border-left: 4px solid #3B82F6;
}

/* Tooltip Feedback */
.tooltip-feedback {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #082046;
  color: #FFFFFF;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.tooltip-feedback.show {
  opacity: 1;
}

/* ==========================================================================
   Universal Media Lightbox Modal & Zoom Viewer
   ========================================================================== */
.dums-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 16, 36, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px;
}

.dums-lightbox-overlay.is-open {
  display: flex !important;
  opacity: 1 !important;
}

.dums-lightbox-container {
  position: relative;
  max-width: 95vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dums-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9);
  user-select: none;
}

.dums-lightbox-video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9);
  outline: none;
}

.dums-lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100001;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.dums-lightbox-close:hover {
  background: #C62828;
  border-color: #C62828;
  transform: scale(1.1);
}

.dums-lightbox-prev,
.dums-lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100001;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.dums-lightbox-prev {
  left: 24px;
}

.dums-lightbox-next {
  right: 24px;
}

.dums-lightbox-prev:hover,
.dums-lightbox-next:hover {
  background: #C62828;
  border-color: #C62828;
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .dums-lightbox-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
  .dums-lightbox-prev {
    left: 12px;
    width: 42px;
    height: 42px;
  }
  .dums-lightbox-next {
    right: 12px;
    width: 42px;
    height: 42px;
  }
}

/* ==========================================================================
   Hero Prominent Logo Badge & Glow
   ========================================================================== */
.hero-logo-badge {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #FFFFFF;
  padding: 4px;
  box-shadow: 0 0 35px rgba(229, 169, 60, 0.45), 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 3px solid #E5A93C;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

@media (min-width: 640px) {
  .hero-logo-badge {
    width: 115px;
    height: 115px;
    padding: 6px;
    border-width: 4px;
  }
}

.hero-logo-badge:hover {
  transform: scale(1.06) rotate(3deg);
  box-shadow: 0 0 50px rgba(229, 169, 60, 0.7), 0 15px 30px rgba(0, 0, 0, 0.4);
}

.hero-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* ==========================================================================
   Special Announcements Showcase Card (Flyer Friendly)
   ========================================================================== */
.announcement-card {
  background: #FFFFFF;
  border-radius: 28px;
  border: 1px solid rgba(8, 32, 70, 0.1);
  box-shadow: 0 15px 35px -5px rgba(8, 32, 70, 0.08);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.announcement-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 45px -10px rgba(8, 32, 70, 0.16);
  border-color: #E5A93C;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #0E387A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #082046;
}

