:root {
  --green: #157a3c;
  --green-mid: #0f5c2d;
  --green-dark: #0a3d1f;
  --green-deep: #062814;
  --gold: #c4a056;
  --gold-soft: #d4b56e;
  --gold-dim: rgba(196, 160, 86, 0.28);
  --cream: #f6f1e6;
  --paper: #fffdf8;
  --ink: #1c2b20;
  --muted: #4d5d52;
  --line: rgba(15, 92, 45, 0.12);
  --shadow: 0 18px 40px rgba(6, 40, 20, 0.12);
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --display: "Amiri", "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.8;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 8px;
}

.ornament span {
  height: 1px;
  width: 72px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  display: block;
  background: var(--paper);
}

.section {
  padding: 84px 0;
  scroll-margin-top: 84px;
}

.section-head {
  text-align: center;
  margin-bottom: 42px;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--green-dark);
  margin: 0;
}

.section-head p {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 40, 20, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-dim);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold);
}

.brand strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.3;
}

.brand small {
  color: var(--gold-soft);
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #f3efe4;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(196, 160, 86, 0.16);
  color: var(--gold-soft);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(196, 160, 86, 0.16), transparent 32%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.06), transparent 28%),
    var(--green-dark);
  overflow: hidden;
  padding: 72px 0 88px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/pattern.svg");
  opacity: 0.12;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.bismillah {
  font-family: var(--display);
  font-size: 1.55rem;
  color: var(--gold-soft);
  margin: 0 0 10px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.35;
  margin: 0 0 8px;
}

.hero .branch {
  color: var(--gold-soft);
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.hero .lead {
  font-size: 1.12rem;
  max-width: 36rem;
  color: #f4eee0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--green-deep);
}

.btn-gold:hover {
  background: var(--gold-soft);
}

.btn-ghost {
  border-color: var(--gold);
  color: #fff;
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(196, 160, 86, 0.14);
}

.btn-outline {
  border-color: var(--gold);
  color: var(--green-dark);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(196, 160, 86, 0.14);
}

.btn-green {
  background: var(--green);
  color: #fff;
}

.logo-frame {
  width: min(340px, 80vw);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08), 0 24px 50px rgba(0, 0, 0, 0.28);
  background: var(--green);
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 22px 20px;
  text-align: center;
}

.pillar b {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--green-dark);
}

.pillar p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.about-copy p {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.verse-card {
  background: var(--green-dark);
  color: #fff;
  border-radius: 22px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.verse-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  pointer-events: none;
}

.verse-card q {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  display: block;
  line-height: 1.7;
}

.verse-card small {
  color: var(--gold-soft);
}

.goals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.goal {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.goal h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 1.05rem;
}

.goal p {
  margin: 0;
  color: var(--muted);
}

/* Program */
.program-section {
  background:
    linear-gradient(180deg, rgba(21, 122, 60, 0.05), transparent 40%),
    var(--cream);
}

.program-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  scroll-margin-top: 96px;
}

.program-tabs button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  font-weight: 700;
}

.program-tabs button.active {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}

.program-panel {
  display: none;
  background: var(--paper);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.program-panel.active {
  display: block;
}

.program-panel header {
  background: var(--green-dark);
  color: #fff;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.program-panel header h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
}

.program-panel header span {
  color: var(--gold-soft);
  font-size: 0.92rem;
}

table.schedule {
  width: 100%;
  border-collapse: collapse;
}

table.schedule th,
table.schedule td {
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

table.schedule th {
  background: rgba(21, 122, 60, 0.08);
  color: var(--green-dark);
}

table.schedule tr.today td {
  background: rgba(196, 160, 86, 0.16);
  font-weight: 700;
}

.program-cards {
  display: none;
}

.note-box {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
}

/* Activities */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.filters button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  color: var(--green-dark);
}

.filters button.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.activity-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 10px 24px rgba(6, 40, 20, 0.06);
}

.activity-card .thumb {
  height: 160px;
  background:
    url("../images/pattern.svg"),
    linear-gradient(135deg, var(--green-dark), var(--green));
  background-size: 90px, cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-card .thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.activity-card .body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.chip {
  background: rgba(21, 122, 60, 0.1);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 700;
}

.activity-card h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--green-dark);
}

.activity-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.card-actions .btn {
  padding: 7px 12px;
  font-size: 0.85rem;
  flex: 1;
}

/* Join */
.join {
  background: var(--green-dark);
  color: #fff;
}

.join .section-head h2,
.join .section-head p {
  color: #fff;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.join-item {
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.join-item h3 {
  margin: 0 0 8px;
  color: var(--gold-soft);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
}

.contact-card,
.map-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.contact-card {
  padding: 24px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list a {
  color: var(--green-dark);
  font-weight: 700;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.suggest {
  margin-top: 22px;
  background: var(--paper);
  border: 1px dashed var(--gold);
  border-radius: 18px;
  padding: 22px;
}

.suggest form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.suggest label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  color: var(--green-dark);
  font-size: 0.92rem;
}

.suggest label.full {
  grid-column: 1 / -1;
}

.suggest input,
.suggest textarea,
.suggest select,
.admin-form input,
.admin-form textarea,
.admin-form select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  width: 100%;
}

/* Footer */
.site-footer {
  background: var(--green-deep);
  color: #e9e2d2;
  padding: 36px 0 22px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer small {
  display: block;
  margin-top: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

.wa-float {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 30;
  background: #128c4b;
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 40, 20, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(720px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--paper);
  border-radius: 18px;
  padding: 24px;
}

.modal-card img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #f3efe4;
  border-radius: 12px;
  margin-bottom: 12px;
}

.modal-card h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
}

/* Admin */
.admin-shell {
  min-height: 100vh;
  padding: 40px 0 80px;
}

.login-card,
.admin-box {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  color: var(--green-dark);
  font-size: 0.92rem;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.hidden {
  display: none !important;
}

.easy-admin {
  font-size: 1.2rem;
  background: var(--cream);
}

.easy-top {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--green-dark);
  color: #fff;
  padding: 14px 20px;
}

.easy-top img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.easy-top strong,
.easy-top span {
  display: block;
}

.easy-top span {
  color: var(--gold-soft);
  font-size: 0.95rem;
}

.easy-top a {
  margin-inline-start: auto;
  color: #fff;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 8px 16px;
}

.easy-wrap {
  width: min(720px, calc(100% - 24px));
  margin: 24px auto 60px;
}

.easy-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.easy-card h1,
.easy-card h2 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 1.8rem;
}

.easy-help,
.easy-label {
  color: var(--muted);
  font-size: 1.15rem;
}

.easy-card label,
.easy-card .easy-label {
  display: block;
  font-weight: 800;
  color: var(--green-dark);
  margin: 14px 0 8px;
}

.easy-card input[type="text"],
.easy-card input[type="password"],
.easy-card input[type="date"],
.easy-card input[type="file"],
.easy-card textarea {
  width: 100%;
  font-size: 1.2rem;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
}

.easy-who {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.easy-who label {
  margin: 0;
  font-size: 1.15rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.easy-btn,
.easy-del,
.easy-out {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 16px;
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 16px;
}

.easy-btn {
  background: var(--green);
  color: #fff;
}

.easy-del {
  width: auto;
  background: #f4e8e8;
  color: #8a1f1f;
  padding: 10px 16px;
  font-size: 1rem;
  margin: 0;
}

.easy-out {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--line);
}

.easy-ok,
.easy-error {
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 700;
}

.easy-ok {
  background: #e7f6ec;
  color: var(--green-dark);
}

.easy-error {
  background: #fdecec;
  color: #8a1f1f;
}

.easy-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.easy-item b {
  display: block;
  color: var(--green-dark);
}

.easy-item span {
  color: var(--muted);
  font-size: 1rem;
}



@media (max-width: 900px) {
  .hero-inner,
  .about-grid,
  .goals,
  .activity-grid,
  .join-grid,
  .contact-grid,
  .pillars,
  .suggest form {
    grid-template-columns: 1fr;
  }

  .pillars {
    margin-top: 24px;
  }

  .hero {
    padding-bottom: 72px;
  }

  .logo-frame {
    width: min(240px, 68vw);
  }

  .brand strong {
    max-width: 14rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    right: 0;
    left: 0;
    background: var(--green-deep);
    flex-direction: column;
    padding: 12px 16px 18px;
  }

  .nav-links.open {
    display: flex;
  }

  table.schedule {
    display: none;
  }

  .program-cards {
    display: grid;
    gap: 0;
  }

  .program-cards article {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .program-cards b {
    color: var(--green-dark);
  }
}

@media print {
  .site-header,
  .hero-actions,
  .filters,
  .card-actions,
  .wa-float,
  .suggest,
  .nav-toggle {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
