:root{
  --blue:#123c66;
  --orange:#ef7d1a;
  --ink:#0c1016;
  --bg:#ffffff;
  --bg-alt:#f7f9fc; /* alternating section bg */
  --white:#fff;
  --header-h:72px;
}

@media (max-width:640px){ :root{ --header-h:64px; } }

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  padding-top:var(--header-h);
  font-family:system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
}

/* ----- Section system (matches About) ----- */
.section{ padding:60px 20px; }
.section.alt{ background:var(--bg-alt); }
.container{ width:min(1200px, 92vw); margin-inline:auto; }

/* ===== HERO (full-screen, soft blur/veil) ===== */
.hero{
  position:relative;
  padding:0;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display:grid; place-items:center;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:var(--hero-bg);
  background-size:cover;
  background-position:center 45%;
  transform:scale(1.04);
  z-index:0;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index:0;
}
.hero .hero-wrap{
  position:relative; z-index:1;
  width:min(1200px, 92vw);
  padding-inline:16px;
  padding-block: clamp(56px, 14vh, 140px);
  text-align:left;
}
/* hero buttons spacing */
.hero-actions{ margin-top:16px; }

.page-title{
  margin:0 0 .35rem;
  font-size:clamp(2.2rem, 3.5vw, 3rem);
  font-weight:800;
  line-height:1.12;
  color:var(--ink);
}
.page-title span{ color:var(--blue); }
.page-subhead{
  margin:.25rem 0 0;
  color:#334155;
  font-size:clamp(1.05rem, 1.6vw, 1.2rem);
  max-width:60ch;
}

/* two-column grid (overview) */
.grid-2{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:36px;
  align-items:center;
}

/* Left column text */
h2{
  font-size:clamp(1.35rem, 2.2vw, 1.7rem);
  margin:.4rem 0 .6rem;
  color:var(--blue);
}
.bullets{ margin:.35rem 0 1.1rem; padding-left:18px; color:#334155; }
.bullets strong{ color:var(--ink); }

.location h3{ margin:1rem 0 .4rem; font-size:1.08rem; color:var(--blue); }
.location p{ margin:.25rem 0 1rem; }

/* Buttons (match site theme) */
.actions{ display:flex; gap:12px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px; border-radius:16px; text-decoration:none; font-weight:700;
  border:2px solid transparent;
  transition:transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn:active{ transform:translateY(0); }
.btn-primary{
  background:linear-gradient(90deg, var(--blue), var(--orange));
  color:var(--white);
  box-shadow:0 10px 24px rgba(18,60,102,.18);
}
.btn-ghost{
  background:rgba(255,255,255,.7);
  color:var(--blue);
  border-color:rgba(18,60,102,.2);
  backdrop-filter:saturate(1.1) blur(4px);
}

/* Right media card */
.media-card{
  margin:0; position:relative;
  border-radius:18px; overflow:hidden;
  box-shadow:0 16px 40px rgba(0,0,0,.12);
}
.media-card img{ display:block; width:100%; height:auto; object-fit:cover; }
.media-card figcaption{
  font-size:.875rem; color:#475569; padding:.5rem .75rem; background:#fff;
  border-top:1px solid rgba(12,16,22,.06);
}

/* SVG map styling - remove white background */
.media-card img[src*=".svg"] {
  background: transparent;
  mix-blend-mode: multiply;
}

/* Welcome layout - two column, smaller and symmetrical */
.welcome-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  margin: 32px auto;
  max-width: 900px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(239, 125, 26, 0.03), rgba(18, 60, 102, 0.03));
  border-radius: 20px;
  border: 1px solid rgba(18, 60, 102, 0.06);
  position: relative;
}

.welcome-layout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: 20px 20px 0 0;
}

.welcome-cards-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.welcome-card {
  background: #fff;
  border: 2px solid rgba(18, 60, 102, .08);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.welcome-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  opacity: 0;
  transition: opacity .2s ease;
}

.welcome-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
  border-color: rgba(239, 125, 26, .3);
}

.welcome-card:hover::before {
  opacity: 1;
}

.welcome-card i {
  font-size: 2.25rem;
  color: var(--orange);
  margin-bottom: 14px;
  display: block;
  transition: transform .2s ease;
}

.welcome-card:hover i {
  transform: scale(1.1);
}

.welcome-card h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 700;
}

.welcome-card p {
  margin: 0;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.5;
}

.welcome-image {
  margin: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .15);
  border: 3px solid #fff;
}

.welcome-image img {
  flex: 1;
  object-fit: cover;
  min-height: 100%;
}

/* Prayer Locations Section */
.grid-single {
  display: grid;
  grid-template-columns: 1fr;
}

.locations-card {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(18, 60, 102, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
  background: #fff;
  border-radius: 16px;
  padding: 32px;
}

.locations-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
}

.locations-header {
  margin-bottom: 32px;
  text-align: center;
}

.locations-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(18, 60, 102, 0.08), rgba(239, 125, 26, 0.08));
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 16px;
}

.locations-badge i {
  color: var(--orange);
}

.locations-subhead {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 12px;
}

.locations-map-container {
  margin: 32px 0;
  padding: 24px;
  background: linear-gradient(135deg, rgba(239, 125, 26, 0.03), rgba(18, 60, 102, 0.03));
  border-radius: 16px;
  border: 1px solid rgba(18, 60, 102, 0.06);
  text-align: center;
}

.locations-map {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 12px;
  background: transparent;
  mix-blend-mode: multiply;
}

.locations-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
}

.locations-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.location-column-header {
  color: var(--blue);
  font-size: 1.3rem;
  margin: 0 0 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
}

.location-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid rgba(18, 60, 102, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.location-item:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.primary-location {
  background: linear-gradient(135deg, rgba(18, 60, 102, 0.04), rgba(239, 125, 26, 0.04));
  border: 2px solid rgba(18, 60, 102, 0.12);
}

.location-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  border-radius: 12px;
  color: #fff;
  font-size: 1.5rem;
}

.location-details h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 1.2rem;
}

.location-address {
  margin: 4px 0 12px;
  color: #64748b;
  font-size: 0.9rem;
}

.location-badge-primary {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  color: #fff;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.location-desc {
  margin: 8px 0 12px;
  color: #334155;
  line-height: 1.6;
}

.location-details .btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  white-space: nowrap;
}

.location-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
  padding: 20px;
  background: #fff7ed;
  border-radius: 12px;
  border-left: 4px solid var(--orange);
}

.location-note i {
  color: var(--orange);
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.location-note p {
  margin: 0;
  color: #374151;
  line-height: 1.6;
}

.location-note em {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 0.9rem;
}

/* Times section */
.muted{ color:#334155; }
.times-actions{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:12px;
}
.note{ color:#334155; }

/* Contact — fully centered */
#contact .container{ text-align:center; }
.contact-links{
  display:flex; gap:20px; justify-content:center; flex-wrap:wrap; margin-top:10px;
}
.contact-links a{
  display:inline-flex; align-items:center; gap:8px;
  text-decoration:none; font-weight:700;
  background:linear-gradient(90deg, var(--blue), var(--orange));
  color:#fff; padding:12px 20px; border-radius:16px;
  transition:transform .2s ease, box-shadow .2s ease;
  box-shadow:0 8px 18px rgba(18,60,102,.25);
}
.contact-links a:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(18,60,102,.35); }
.contact-links i{ font-size:1.1rem; }

/* Responsive */
@media (max-width:900px){
  .grid-2{ grid-template-columns:1fr; }
  .media-card{ order:-1; }
  .section{ padding:44px 16px; }
  
  .welcome-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  
  .welcome-image {
    order: -1;
    min-height: 300px;
  }
  
  .welcome-cards-column {
    gap: 16px;
  }
  
  .welcome-card {
    padding: 20px 16px;
  }
  
  .locations-card {
    padding: 24px 20px;
  }
  
  .locations-two-column {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .location-item {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  
  .location-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
  
  .locations-map-container {
    padding: 16px;
    margin: 24px 0;
  }
}
@media (max-width:520px){
  .contact-links a{ padding:10px 14px; font-size:.92rem; }
  .contact-links i{ font-size:1rem; }
  
  .locations-card {
    padding: 20px 16px;
  }
  
  .locations-two-column {
    grid-template-columns: 1fr;
  }
  
  .location-column-header {
    font-size: 1.1rem;
  }
  
  .location-note {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }
  
  .welcome-layout {
    padding: 20px 16px;
  }
  
  .welcome-card {
    padding: 18px 14px;
  }
  
  .welcome-card i {
    font-size: 1.85rem;
  }
  
  .welcome-card h3 {
    font-size: 1rem;
  }
  
  .welcome-card p {
    font-size: 0.85rem;
  }
  
  .welcome-image {
    min-height: 250px;
  }
}
html {
  scroll-behavior: smooth;
}


/* show a white border on all primary buttons */
.btn-primary{
  border-color:#fff;          /* make border visible */
  border-width:3px;           /* match navbar thickness */
  background-clip:padding-box;
  -webkit-background-clip:padding-box; /* Safari */
}
.btn-primary:hover{ border-color:#fff; } /* keep on hover */

/* ===== Musallah update modal & notice ===== */
.hero-update-chip{
  margin-top:12px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.8);
  border:1px solid rgba(18,60,102,.16);
  color:#123c66;
  font-size:.9rem;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(0,0,0,.12);
}
.hero-update-chip i{
  color:#ef7d1a;
}
.hero-update-chip span{
  font-weight:600;
}

.musallah-modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:60;
}
.musallah-modal-backdrop.is-open{
  display:flex;
}
.musallah-modal{
  max-width:540px;
  width:100%;
  background:#fff;
  border-radius:18px;
  box-shadow:0 22px 60px rgba(15,23,42,.45);
  padding:22px 22px 20px;
}
.musallah-modal h2{
  margin-top:0;
  margin-bottom:.4rem;
}
.musallah-modal p{
  margin:.35rem 0;
  color:#334155;
}
.musallah-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:16px;
  flex-wrap:wrap;
}
.musallah-modal-close{
  border:none;
  background:transparent;
  color:#64748b;
  font-weight:600;
  cursor:pointer;
  padding:8px 10px;
}
.musallah-update-section{
  background:#fff7ed;
  border-radius:16px;
  padding:18px 18px 16px;
  border:1px solid rgba(234,88,12,.25);
}
.musallah-update-section h2{
  color:#c2410c;
}
.musallah-update-section p{
  margin:.45rem 0;
  color:#374151;
}
