:root {
  --green-950: #052b20;
  --green-900: #063b2b;
  --green-800: #07543a;
  --green-700: #08764f;
  --green-100: #e7f4ed;
  --green-50: #f2f8f4;
  --gold: #c69639;
  --gold-soft: #fff4dc;
  --ink: #10211b;
  --muted: #6c7974;
  --line: #dce7e1;
  --paper: #fbfcfa;
  --white: #fff;
  --shadow: 0 28px 80px rgba(5, 43, 32, .13);
  --shadow-soft: 0 18px 54px rgba(5, 43, 32, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 10%, rgba(8, 118, 79, .16), transparent 30%),
    radial-gradient(circle at 12% 26%, rgba(198, 150, 57, .13), transparent 32%),
    linear-gradient(180deg, #f8fbf9 0, #fff 44%, #f3f8f5 100%);
  font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  font-weight: 500;
  line-height: 1.8;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 43, 32, .028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(5, 43, 32, .022) 1px, transparent 1px);
  background-size: 84px 84px;
}

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

button,
input,
select {
  font: inherit;
}

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

h1,
h2,
h3,
.brand span {
  font-family: "Noto Kufi Arabic", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(220, 231, 225, .72);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 34px rgba(5, 43, 32, .055);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--green-900);
  font-weight: 800;
  transition: transform .18s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  padding: 4px;
  border: 1px solid rgba(8, 118, 79, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 999px;
  color: #40534c;
  font-weight: 700;
  transition: background .18s ease, color .18s ease;
}

.site-nav a:hover {
  background: var(--green-100);
  color: var(--green-800);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-action,
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.header-action:hover,
.button:hover,
.icon-button:hover,
.project-thumb:hover,
.amount-grid button:hover {
  transform: translateY(-1px);
}

.button[disabled]:hover,
button[disabled]:hover {
  transform: none;
}

.header-action,
.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  box-shadow: 0 16px 36px rgba(8, 118, 79, .22);
}

.header-action--ghost,
.button--soft {
  color: var(--green-900);
  border: 1px solid rgba(8, 118, 79, .18);
  background: linear-gradient(180deg, #fff, var(--green-100));
  box-shadow: none;
}

.button[disabled],
button[disabled] {
  cursor: not-allowed;
  opacity: .72;
}

.social-icon,
.footer-social {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #1877f2;
  box-shadow: 0 14px 34px rgba(24, 119, 242, .2);
}

.social-icon svg,
.footer-social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.is-hidden {
  display: none !important;
}

.opening {
  width: min(1220px, calc(100% - 36px));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(48px, 7vw, 92px) 0;
}

.opening__copy {
  position: relative;
  min-height: 540px;
  display: grid;
  align-content: center;
  padding: clamp(34px, 6vw, 74px);
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 244, 220, .16), transparent 34%),
    linear-gradient(120deg, rgba(198, 150, 57, .13), transparent 34%),
    linear-gradient(135deg, rgba(5, 43, 32, .98), rgba(7, 84, 58, .94)),
    var(--green-950);
  box-shadow: var(--shadow);
}

.opening__copy::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  pointer-events: none;
}

.opening__logo {
  width: 92px;
  height: 92px;
  margin-bottom: 24px;
  object-fit: contain;
  padding: 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .18));
}

.opening__label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.opening h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.14;
}

.opening__about {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 2;
}

.opening__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.opening__links a,
.opening__links button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  cursor: pointer;
  font-weight: 800;
}

.opening__links .social-link {
  border-color: rgba(24, 119, 242, .42);
  background: rgba(24, 119, 242, .22);
}

.donation-panel {
  display: grid;
  gap: 17px;
  padding: 30px;
  border: 1px solid rgba(220, 231, 225, .88);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 249, .96));
  box-shadow: var(--shadow);
}

.donation-panel h2,
.ghouth-panel h2,
.projects-board h2 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.35;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(203, 220, 211, .9);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(8, 118, 79, .55);
  box-shadow: 0 0 0 4px rgba(8, 118, 79, .1);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.amount-grid button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-900);
  background: linear-gradient(180deg, #fff, var(--paper));
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.amount-grid button.is-active {
  border-color: rgba(8, 118, 79, .42);
  background: linear-gradient(180deg, var(--green-100), #fff);
  box-shadow: 0 10px 24px rgba(8, 118, 79, .08);
}

.projects-board {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 6vw, 76px) 0;
}

.articles-board {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 58px) 0 clamp(42px, 6vw, 76px);
}

.articles-board h2 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.35;
}

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

.article-card {
  display: grid;
  align-content: start;
  overflow: hidden;
  border: 1px solid rgba(220, 231, 225, .9);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfdfb);
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 72px rgba(5, 43, 32, .12);
}

.article-card__media {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(220, 231, 225, .75);
  background:
    radial-gradient(circle at 25% 20%, rgba(198, 150, 57, .18), transparent 34%),
    linear-gradient(135deg, var(--green-100), #fff7dc);
}

.article-card__media img,
.article-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card__media video {
  object-fit: contain;
  background: #071a12;
}

.article-card__placeholder {
  color: var(--green-900);
  font-family: "Noto Kufi Arabic", sans-serif;
  font-weight: 900;
  padding: 20px;
  text-align: center;
}

.article-card__body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.article-card__body span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.article-card__body h3 {
  margin: 0;
  color: var(--green-900);
  font-size: 20px;
  line-height: 1.5;
}

.article-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.donor-portal {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 58px) 0 clamp(42px, 6vw, 76px);
}

.donor-portal__head {
  align-items: end;
}

.section-label {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.donor-portal h2 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.35;
}

.donor-login,
.donor-profile-complete,
.donor-dashboard {
  border: 1px solid rgba(220, 231, 225, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.donor-login {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 340px);
  align-items: center;
  gap: 20px;
  padding: clamp(18px, 3vw, 28px);
}

.donor-login h3,
.donor-profile-complete h3 {
  margin: 0;
  color: var(--green-900);
  font-size: 22px;
}

.donor-login p,
.donor-profile-complete p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.google-login-box {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.google-login-box > div {
  width: 100%;
}

.google-login-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.google-fallback {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.donor-profile-complete {
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(170px, .75fr)) auto;
  align-items: end;
  gap: 14px;
  margin-top: 14px;
  padding: clamp(18px, 3vw, 28px);
}

.donor-status,
.donation-status {
  min-height: 24px;
  color: var(--green-800);
  font-size: 13px;
  font-weight: 800;
}

.donor-status {
  grid-column: 1 / -1;
}

.donor-status.is-error,
.donation-status.is-error {
  color: #b42318;
}

.donor-dashboard {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
}

.donor-profile {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.donor-profile div,
.donor-item,
.portal-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.donor-profile div {
  display: grid;
  gap: 5px;
  padding: 15px;
}

.donor-profile span,
.donor-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.donor-profile strong {
  color: var(--green-900);
  overflow-wrap: anywhere;
  font-size: 16px;
}

.donor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.donor-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 320px;
  padding: 16px;
  border: 1px solid rgba(8, 118, 79, .14);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f9fcfa);
}

.donor-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.donor-card h3 {
  margin: 0;
  color: var(--green-900);
  font-size: 24px;
}

.donor-card__head .button {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 13px;
}

.donor-list {
  display: grid;
  gap: 10px;
}

.donor-item {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.donor-item__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.donor-item h4 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
}

.donor-item__amount {
  color: var(--green-800);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.donor-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.donor-item__meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--green-100);
}

.donor-item__details {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.portal-empty {
  padding: 20px;
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 14%, rgba(198, 150, 57, .2), transparent 30%),
    radial-gradient(circle at 78% 22%, rgba(8, 118, 79, .18), transparent 34%),
    linear-gradient(180deg, #f7faf8, #fff);
}

.auth-shell {
  min-height: 100vh;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 0;
}

.auth-card {
  width: min(620px, 100%);
  display: grid;
  gap: 22px;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.auth-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--green-900);
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 22px;
  font-weight: 900;
}

.auth-brand img {
  width: 108px;
  height: 108px;
  object-fit: contain;
}

.auth-copy {
  text-align: center;
}

.auth-copy h1 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.25;
}

.auth-copy p:not(.section-label) {
  margin: 10px auto 0;
  max-width: 420px;
  color: var(--muted);
}

.auth-card .google-login-box {
  justify-items: center;
}

.auth-card .google-login-box > div {
  width: min(340px, 100%);
}

.auth-back {
  justify-self: center;
  color: var(--green-800);
  font-weight: 900;
}

.donor-login-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.donor-login-modal__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 18%, rgba(198, 150, 57, .18), transparent 34%),
    rgba(5, 43, 32, .58);
  backdrop-filter: blur(10px);
}

.donor-login-modal__card {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(220, 231, 225, .95);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0, rgba(198, 150, 57, .1), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(248, 251, 249, .98));
  box-shadow: var(--shadow);
}

.donor-login-modal__close {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-900);
  background: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.donor-login-modal .google-login-box {
  justify-items: center;
}

.donor-login-modal .google-login-box > div {
  width: min(340px, 100%);
}

.portal-page {
  background: linear-gradient(180deg, #f8fbf9 0, #fff 100%);
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(220, 231, 225, .8);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
}

.portal-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.portal-tab {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-900);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.portal-tab.is-active {
  color: #fff;
  border-color: var(--green-700);
  background: var(--green-700);
}

.portal-shell {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 62px) 0;
}

.portal-hero,
.portal-panel {
  border: 1px solid rgba(220, 231, 225, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-soft);
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .36fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: clamp(22px, 4vw, 36px);
}

.portal-hero h1 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(30px, 4vw, 48px);
}

.portal-hero p:not(.section-label) {
  margin: 10px 0 0;
  color: var(--muted);
}

.portal-profile {
  display: grid;
  gap: 8px;
}

.portal-profile span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--green-900);
  font-weight: 800;
}

.portal-panel {
  display: none;
  gap: 14px;
  padding: clamp(18px, 3vw, 26px);
}

.portal-panel.is-active {
  display: grid;
}

.portal-panel h2 {
  margin: 0;
  color: var(--green-900);
  font-size: 30px;
}

.portal-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.portal-project-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(220, 231, 225, .9);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfdfb);
  box-shadow: 0 14px 42px rgba(5, 43, 32, .06);
}

.portal-project-card img,
.portal-ghouth-meter {
  width: 160px;
  height: 128px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--green-100);
}

.portal-project-card h3 {
  margin: 3px 0 5px;
  color: var(--green-900);
  font-size: 22px;
}

.portal-project-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.8;
}

.portal-project-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.portal-ghouth-meter {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.portal-ghouth-meter i {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  background: rgba(8, 118, 79, .35);
}

.portal-ghouth-meter strong {
  position: relative;
  z-index: 1;
  color: var(--green-950);
  font-size: 28px;
  font-weight: 900;
}

.ghouth-feature {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.board-controls {
  display: flex;
  gap: 8px;
}

.project-showcase {
  height: clamp(540px, 48vw, 700px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  border: 1px solid rgba(220, 231, 225, .95);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #fbfdfb);
  box-shadow: var(--shadow);
}

.project-visual {
  position: relative;
  height: 100%;
  min-height: 0;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(198, 150, 57, .15), transparent 32%),
    linear-gradient(135deg, rgba(231, 244, 237, .9), rgba(255, 244, 220, .52)),
    #eef5f1;
}

#project-image,
.project-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.project-details {
  display: grid;
  align-content: center;
  gap: 17px;
  padding: clamp(28px, 4vw, 56px);
}

.project-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-mini-icon {
  width: 38px;
  height: 38px;
  padding: 6px;
  border: 1px solid rgba(8, 118, 79, .16);
  border-radius: 8px;
  object-fit: contain;
  background: var(--green-100);
}

#project-counter {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.project-details h3 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.22;
}

.project-details p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.95;
}

.project-amount {
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid rgba(198, 150, 57, .28);
  border-radius: 8px;
  color: #704c12;
  background: linear-gradient(180deg, var(--gold-soft), #fffaf0);
  font-weight: 900;
}

.inline-donation {
  display: grid;
  gap: 10px;
  max-width: 360px;
}

.inline-donation label {
  margin: 0;
}

.inline-donation .button {
  width: 100%;
}

.donation-status {
  min-height: 26px;
  color: var(--green-800);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.7;
}

.donation-status:empty {
  display: none;
}

.donation-status a {
  color: var(--green-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.donation-status.is-error {
  color: #b42318;
}

.icon-button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(8, 118, 79, .2);
  border-radius: 8px;
  color: var(--green-900);
  background: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.project-strip {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.project-thumb {
  flex: 0 0 178px;
  min-height: 76px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(220, 231, 225, .9);
  border-radius: 8px;
  color: var(--green-900);
  background: linear-gradient(180deg, #fff, #fbfdfb);
  cursor: pointer;
  text-align: start;
}

.project-thumb.is-active {
  border-color: rgba(8, 118, 79, .46);
  background: linear-gradient(180deg, var(--green-100), #fff);
  box-shadow: 0 12px 28px rgba(8, 118, 79, .08);
}

.project-thumb img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.project-thumb span {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.service-board {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  gap: 18px;
  padding: clamp(42px, 6vw, 82px) 0;
}

.ghouth-panel,
.map-panel,
.contact-panel {
  border: 1px solid rgba(220, 231, 225, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-soft);
}

.ghouth-panel {
  padding: clamp(22px, 3vw, 34px);
}

.ghouth-head {
  align-items: start;
}

.ghouth-head p {
  margin: 0;
  color: var(--green-900);
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 900;
  line-height: 1.8;
}

.ghouth-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ghouth-card,
.ghouth-empty {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(220, 231, 225, .9);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfdfb);
  box-shadow: 0 12px 38px rgba(5, 43, 32, .055);
}

.ghouth-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.ghouth-card__head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.ghouth-card h3 {
  margin: 0;
  color: var(--green-900);
  font-size: 21px;
}

.ghouth-card__head span {
  padding: 6px 9px;
  border-radius: 8px;
  color: #704c12;
  background: var(--gold-soft);
  font-size: 12px;
  font-weight: 900;
}

.ghouth-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.ghouth-donation {
  max-width: none;
}

.ghouth-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--green-100);
}

.ghouth-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green-700);
}

.ghouth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ghouth-stats span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--paper);
  font-size: 12px;
  font-weight: 900;
}

.ghouth-stats strong {
  color: var(--green-900);
  font-size: 13px;
}

.map-panel,
.contact-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.contact-list a,
.contact-list div {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contact-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.contact-list strong {
  color: var(--green-900);
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.65;
}

.contact-list .contact-facebook strong {
  color: #1877f2;
}

.association-map-card {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.association-map-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.association-map-card__head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.association-map-card__head a {
  color: var(--green-800);
  font-size: 12px;
  font-weight: 900;
}

.association-map {
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--green-100), #fff7dc);
}

.association-map > a {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--green-900);
  text-align: center;
  font-weight: 900;
}

.site-footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

.site-footer img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.site-footer a {
  color: var(--green-800);
  font-weight: 900;
}

.site-footer .footer-social {
  color: #fff;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
}

.site-footer .footer-social svg {
  width: 20px;
  height: 20px;
}

[data-association-phone],
.bidi-phone,
.phone-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  text-align: left;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    display: none;
  }

  .opening,
  .project-showcase,
  .service-board,
  .articles-grid,
  .portal-header,
  .portal-hero,
  .donor-login,
  .donor-profile-complete,
  .donor-grid {
    grid-template-columns: 1fr;
  }

  .opening__copy {
    min-height: 420px;
  }

  .donation-panel {
    max-width: 520px;
  }

  .project-visual {
    height: min(680px, 78vw);
  }

  .project-showcase {
    height: auto;
  }

  .ghouth-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donor-profile {
    grid-template-columns: 1fr;
  }

  .portal-nav {
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .portal-projects {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 70px;
    padding: 10px 14px;
  }

  .brand__logo {
    width: 46px;
    height: 46px;
  }

  .brand span {
    max-width: 130px;
    font-size: 14px;
    line-height: 1.35;
  }

  .header-action {
    min-height: 40px;
    padding-inline: 13px;
    font-size: 13px;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }

  .social-icon svg {
    width: 19px;
    height: 19px;
  }

  .opening,
  .projects-board,
  .articles-board,
  .ghouth-feature,
  .donor-portal,
  .portal-shell,
  .service-board {
    width: calc(100% - 28px);
  }

  .opening {
    min-height: 0;
    padding: 24px 0 42px;
  }

  .opening__copy {
    min-height: 0;
    padding: 28px;
  }

  .opening__logo {
    width: 70px;
    height: 70px;
  }

  .opening h1 {
    font-size: 42px;
  }

  .opening__about {
    font-size: 16px;
  }

  .amount-grid,
  .ghouth-list,
  .ghouth-stats,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .donation-panel {
    padding: 18px;
    box-shadow: 0 16px 48px rgba(5, 43, 32, .09);
  }

  .article-card__body h3 {
    font-size: 18px;
  }

  .board-head {
    align-items: start;
    flex-direction: column;
  }

  .auth-shell {
    width: calc(100% - 28px);
    padding: 18px 0;
  }

  .auth-card {
    padding: 20px;
  }

  .auth-copy h1 {
    font-size: 34px;
  }

  .portal-header {
    position: static;
    padding: 12px 14px;
  }

  .portal-nav {
    width: 100%;
  }

  .portal-tab {
    flex: 0 0 auto;
  }

  .portal-project-card {
    grid-template-columns: 1fr;
  }

  .portal-project-card img,
  .portal-ghouth-meter {
    width: 100%;
    height: 190px;
  }

  .donor-login-modal__card {
    padding: 22px 16px;
  }

  .donor-portal__head,
  .donor-card__head,
  .donor-item__top {
    align-items: stretch;
    flex-direction: column;
  }

  .donor-login,
  .donor-profile-complete,
  .donor-dashboard,
  .donor-card {
    padding: 14px;
  }

  .project-visual {
    height: min(480px, 98vw);
  }

  .project-details {
    padding: 24px;
  }

  .project-details h3 {
    font-size: 28px;
  }

  .project-thumb {
    flex-basis: 152px;
  }

  .map-panel,
  .contact-panel {
    padding: 12px;
  }

  .association-map,
  .association-map > a {
    min-height: 280px;
  }

  .site-footer {
    flex-wrap: wrap;
    text-align: center;
  }
}
