/* =========================================================
   ISLAM PAGE — MSA at UTA
   Consistent with Events theme and layout
========================================================= */

/* ===== ROOT THEME ===== */
:root {
  --blue: #123c66;
  --orange: #ef7d1a;
  --ink: #0c1016;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --white: #fff;
  --header-h: 72px;
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
}

* { box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }
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;
}

/* ===== SECTIONS ===== */
.section { padding: 72px 20px; }
.section.alt { background: var(--bg-alt); }
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
  text-align: center;
}
.section-title{
  font-size:clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight:800;
  letter-spacing:.01em;
  color:var(--ink);
  margin:0 0 18px;
}
.section-title.center{
  color:var(--ink);
  position:relative;
}
.section-title.center::after{
  content:"";
  display:block;
  width:70px;
  height:4px;
  margin:12px auto 0;
  border-radius:999px;
  background:linear-gradient(90deg, var(--blue), var(--orange));
  box-shadow:0 6px 14px rgba(18,60,102,.18);
}
.container p{
  max-width:70ch;
  margin-left:auto;
  margin-right:auto;
  color:#334155;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.2s ease,
              background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(90deg, var(--blue), var(--orange));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(18, 60, 102, 0.22);
  border: 3px solid #fff;
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--blue);
  border-color: rgba(18, 60, 102, 0.18);
  backdrop-filter: saturate(1.1) blur(4px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(70vh - var(--header-h));
  background: radial-gradient(1200px 600px at -10% 10%, rgba(239, 125, 26, 0.12), transparent 60%),
              radial-gradient(1000px 520px at 110% -10%, rgba(18, 60, 102, 0.12), transparent 55%),
              linear-gradient(135deg, #ffffff, #f8fafc);
  overflow:hidden;
}
.hero-wrap {
  text-align: center;
  width: min(1200px, 92vw);
  padding: 50px 16px;
}
.eyebrow {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
}
.title span { color: var(--blue); }
.subhead {
  color: #475569;
  font-size: 1.1rem;
  max-width: 65ch;
  margin: 0 auto 24px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== GOAL BOX ===== */
.goal {
  margin: 32px auto 0;
  background: #fff;
  border: 1px solid rgba(12, 16, 22, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  padding: 24px 22px;
  text-align: left;
  max-width: 800px;
}
.goal h3 { color: var(--blue); margin-top: 0; font-weight:800; }

/* ===== MASJID SECTION ===== */
.masjid-heading {
  text-align: center;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: .01em;
  margin-bottom: 24px;
}
.masjid-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 26px;
}
.masjid-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(12, 16, 22, 0.08);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}
.masjid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(18, 60, 102, 0.18);
}
.masjid-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.masjid-content {
  padding: 22px;
  flex-grow: 1;
}
.masjid-content h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 800;
}
.masjid-content p {
  color: #475569;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ===== DUAS ===== */
.dua-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 26px;
}
.dua-card {
  background: #fff;
  border: 1px solid rgba(12, 16, 22, 0.08);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color .2s ease;
}
.dua-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
  border-color: rgba(18, 60, 102, 0.18);
}
.dua-title {
  font-size: 1.1rem;
  color: var(--blue);
  margin-bottom: 12px;
  font-weight: 700;
}
.arabic {
  font-family: 'Scheherazade', 'Amiri', serif;
  font-size: 1.3rem;
  color: var(--ink);
  direction: rtl;
  text-align: center;
  line-height: 2;
  margin-bottom: 10px;
}
.translation {
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 10px;
}
.dua-card hr {
  border: none;
  border-top: 1px solid rgba(18, 60, 102, 0.15);
  margin: 10px auto;
  width: 80%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .section { padding: 56px 16px; }
  .goal { text-align: center; }
  .masjid-card img { height: 200px; }
}
@media (max-width: 640px) {
  .hero-wrap { padding: 40px 14px; }
  .title { font-size: 2.3rem; }
  .subhead { font-size: 1rem; }
  .dua-card { padding: 18px; }
  .arabic { font-size: 1.1rem; }
  .masjid-content { padding: 18px; }
}
@media (max-width: 480px) {
  .btn { padding: 10px 14px; font-size: 0.9rem; }
  .masjid-card img { height: 180px; }
  .goal { padding: 18px; }
}

/* ===== Learn section enhancements ===== */
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:18px 0 8px;}
.info-card{background:#fff;border:1px solid rgba(12,16,22,.08);border-radius:16px;padding:18px;box-shadow:0 10px 24px rgba(0,0,0,.06);}
.info-card h3{margin:0 0 6px;color:var(--blue);font-weight:800;}
.callout{margin:22px 0 4px;}
.callout-body{background:linear-gradient(90deg,#123c660e,#ef7d1a0d);border:1px solid rgba(12,16,22,.08);border-radius:16px;padding:18px;box-shadow:0 10px 24px rgba(0,0,0,.06);}
.callout-title{margin:0 0 6px;color:var(--blue);font-weight:800;}
.faq details{background:#fff;border:1px solid rgba(12,16,22,.08);border-radius:12px;padding:14px 16px;box-shadow:0 8px 18px rgba(0,0,0,.05);}
.faq details+details{margin-top:10px;}
.faq summary{cursor:pointer;font-weight:700;color:var(--ink);}
.faq p{margin:.5rem 0 0;color:#334155;}
@media (max-width:900px){.info-grid{grid-template-columns:1fr}}

.section-title.center{text-align:center}
.goal,.info-card{text-align:center}
.goal{background:#fff;border:1px solid rgba(12,16,22,.08);padding:18px;border-radius:16px;box-shadow:0 10px 24px rgba(0,0,0,.06);} 
@media(max-width:1200px){.masjid-grid-container{grid-template-columns:repeat(2,1fr)}}

@media (max-width: 1200px){
  .masjid-grid-container{ grid-template-columns: 1fr; }
}

.masjid-content .btn{ align-self:center; margin-top:14px; }

/* MASJID GRID BREAKPOINTS */
@media (min-width: 900px){
  .masjid-grid-container{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1200px){
  .masjid-grid-container{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}


/* ===== Section title accent ===== */
.section-title.center{ color: var(--ink); position: relative; }
