/* ==========================================================
ROOT / BASE VARIABLES
========================================================== */
:root {
  --brand: #0b3b5a;
  --accent: #0d6efd;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #5b677a;
  --border: #e6ebf2;
}


/* ==========================================================
TYPOGRAPHY & GLOBAL ELEMENTS
========================================================== */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: #0b5ed7;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.small-muted { color: #6b7280; font-size:.96rem; }

.badge-soft {
  background: rgba(13,110,253,.12);
  color:#e7f1ff;
  border:1px solid rgba(13,110,253,.25);
}

.mm-hero-subtitle{
  display:inline-block;
  max-width:920px;
  padding:.75rem 1.25rem;
  margin-top:.5rem;
  font-size:1.05rem;
  font-weight:600;
  line-height:1.55;
  color:#083344;
  background:linear-gradient(90deg,rgba(255,193,7,.95),rgba(255,193,7,.85));
  border-radius:999px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}

@media (max-width:576px){
  .mm-hero-subtitle{
    font-size:.95rem;
    padding:.6rem 1rem;
    border-radius:1rem;
  }
}


/* ==========================================================
NAVBAR
========================================================== */
.navbar-over-hero.navbar-dark .nav-link,
.navbar-over-hero.navbar-dark .navbar-brand{
  color:#fff!important;
  text-shadow:0 1px 4px rgba(0,0,0,.6);
}

.navbar-over-hero .navbar-brand img{
  height:42px;
  margin-right:.25rem;
}

.navbar-light .nav-link{ color:#111; }
.navbar-light .nav-link:hover{ color:#0d6efd; }
.navbar-light .nav-link.active{ font-weight:700; }

.mm-topnav{ z-index:999; }
.mm-logo{ height:44px; }
.mm-brand-text{ letter-spacing:.2px; }
.mm-donate-btn{ border-radius:999px; }

.mm-hero-under-nav{ padding-top:76px; }
@media(max-width:991.98px){
  .mm-hero-under-nav{ padding-top:72px; }
}


/* ==========================================================
HERO SECTION
========================================================== */
.hero{
  position:relative;
  height:92vh;
  min-height:720px;
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.40);
  z-index:1;
}

.hero-slider,
.hero-slider .carousel-inner,
.hero-slider .carousel-item{ height:100%; }

.hero-slider{
  position:absolute;
  inset:0;
  z-index:0;
}

.hero-slider .carousel-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.05);
  animation:slowZoom 28s ease-in-out infinite alternate;
}

@keyframes slowZoom{
  from{ transform:scale(1.05) }
  to{ transform:scale(1.18) }
}

.hero .content{
  position:relative;
  z-index:2;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:2rem;
  color:#fff;
}

.hero .content h1,
.hero .content p,
.hero .content .badge{
  text-shadow:0 2px 8px rgba(0,0,0,.55);
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next,
.hero-slider .carousel-indicators{ z-index:3; }

.mm-arabic-greeting{
  font-family:'Amiri','Scheherazade New','Noto Naskh Arabic',serif;
  font-size:2.2rem;
  font-weight:700;
  direction:rtl;
  letter-spacing:.5px;
  color:#fff;
  text-shadow:0 3px 10px rgba(0,0,0,.55);
}

.mm-arabic-translation{
  font-size:.95rem;
  font-weight:600;
  color:rgba(255,255,255,.85);
  text-shadow:0 2px 6px rgba(0,0,0,.45);
}


/* ==========================================================
PRAYER BAR / TICKER
========================================================== */
.prayer-glass{
  backdrop-filter:blur(6px);
  background:rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
  border-radius:1rem;
}

.prayer-chip{
  display:inline-flex;
  gap:.5rem;
  align-items:center;
  padding:.25rem .55rem;
  border-radius:.5rem;
  background:rgba(255,255,255,.20);
  border:1px solid rgba(255,255,255,.35);
  color:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
}
.prayer-chip strong{ min-width:4.2rem; }

.ticker{
  position:relative;
  overflow:hidden;
  white-space:nowrap;
  border-radius:.75rem;
}
.ticker-inner{
  display:inline-flex;
  gap:1rem;
  align-items:center;
}
.marquee .ticker-inner{
  animation:ticker-scroll 58s linear infinite;
}
@keyframes ticker-scroll{
  0%{transform:translateX(0)}
  100%{transform:translateX(-50%)}
}


/* ==========================================================
SECTIONS & CARDS
========================================================== */
.section{ padding:4rem 0; }

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:1rem;
}
.card-header{
  background:rgba(2,6,23,.03);
  border-bottom:1px solid var(--border);
}
.about-truncate p{ margin-bottom:.75rem; }


/* ==========================================================
SERVICES
========================================================== */
.service-card{
  display:block;
  height:100%;
  padding:1.1rem;
  border:1px solid var(--border);
  border-radius:1rem;
  background:#fff;
  transition:.18s ease;
  position:relative;
  overflow:hidden;
}

.service-card:hover{
  transform:translateY(-2px);
  border-color:rgba(13,110,253,.35);
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}

.service-icon{
  width:48px;
  height:48px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:.65rem;
  background:#f3f6fb;
  border:1px solid var(--border);
}

.service-title{ font-weight:700; margin-bottom:.25rem; }
.service-text{ color:var(--muted); font-size:.96rem; }
.service-cta{ font-weight:600; color:var(--accent); }


/* ==========================================================
WIDGETS
========================================================== */
.widget .widget-icon{
  width:36px;height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:.75rem;
}

.widget-list .list-group-item{
  background:transparent;
  border-color:var(--border);
}
.widget-list .list-group-item:hover{ background:#f8fafc; }

.mm-vscroll{ max-height:340px; overflow:hidden; }
.mm-widget-head{
  background:linear-gradient(90deg,rgba(13,110,253,.08),rgba(16,185,129,.06));
  border-bottom:1px solid var(--border);
  padding:.85rem 1rem;
}
.mm-head-title{ font-weight:800; }


/* ==========================================================
BUTTONS
========================================================== */
.btn-brand{
  background:var(--accent);
  color:#fff;
  font-weight:700;
  border:none;
}
.btn-brand:hover{ filter:brightness(.95); }


/* ==========================================================
FOOTER
========================================================== */
footer{
  background:#f8fafc;
  color:#334155;
  border-top:1px solid var(--border);
}
.hr-soft{ border-color:var(--border); }
.container-narrow{ max-width:1040px; }


/* ==========================================================
GALLERY
========================================================== */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:1rem;
}
.gallery-grid img{
  height:220px;
  object-fit:cover;
  border-radius:.75rem;
  border:1px solid var(--border);
  cursor:pointer;
}


/* ==========================================================
LIGHTBOX
========================================================== */
.mm-lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(0,0,0,.85);
  display:none;
  align-items:center;
  justify-content:center;
}
.mm-lightbox.open{ display:flex; }

.mm-lightbox__img{
  max-width:92vw;
  max-height:88vh;
  border-radius:.5rem;
  box-shadow:0 30px 80px rgba(0,0,0,.6);
  transform:scale(.98);
  opacity:0;
  transition:.2s ease;
}
.mm-lightbox.open .mm-lightbox__img{
  transform:scale(1);
  opacity:1;
}


/* ==========================================================
MOBILE MENU
========================================================== */
.mm-offcanvas{
  width:320px;
  background:rgba(10,20,30,.96)!important;
  backdrop-filter:blur(10px);
}

.mm-offcanvas .nav-link{
  color:#fff!important;
  border-radius:.75rem;
}
.mm-offcanvas .nav-link:hover{
  background:rgba(255,255,255,.08);
}


/* ==========================================================
IMAM PAGE
========================================================== */
.mm-imam{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:1.25rem;
  align-items:center;
}
.mm-imam__photo img{
  height:220px;
  object-fit:cover;
  border-radius:1rem;
  border:1px solid var(--border);
}


/* ==========================================================
LIVE STREAM
========================================================== */
.mm-livebox-wrap{ display:flex; justify-content:center; }

.mm-livebox{
  width:100%;
  max-width:820px;
  height:500px;
  background:#000;
}
.mm-livebox iframe{
  width:100%;
  height:100%;
  border:0;
}


/* ==========================================================
RESPONSIVE
========================================================== */
@media(max-width:768px){
  .mm-imam{ grid-template-columns:1fr; text-align:center; }
  .mm-livebox{ height:260px; }
}
@media(max-width:420px){
  .service-card{ padding:.9rem; }
  .mm-livebox{ height:220px; }
}
