body.public-body {
  --public-bg: #f7f9fb;
  --public-surface: #ffffff;
  --public-ink: #172033;
  --public-muted: #667085;
  --public-line: #dde6ee;
  --public-teal: #0f766e;
  --public-teal-dark: #115e59;
  --public-blue: #2f5d83;
  --public-gold: #a8742a;
  --public-red: #a33d35;
  background: var(--public-bg);
  color: var(--public-ink);
  overflow-x: hidden;
}

/* Interactive public events calendar */
.events-calendar-hero {
  background:
    radial-gradient(circle at 15% 15%, rgba(23, 164, 99, .18), transparent 28%),
    linear-gradient(135deg, #073f52, #0b6c63 58%, #123e72);
}

.events-calendar-section {
  background: linear-gradient(180deg, #f5f9ff, #eef5ff);
}

.event-calendar-shell {
  display: grid;
  grid-template-columns: minmax(230px, .34fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.calendar-side-panel,
.calendar-main-panel,
.events-timeline-panel {
  background: rgba(255, 255, 255, .96);
  border: 1px solid #d7e5f6;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(14, 54, 104, .1);
}

.calendar-side-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
}

.calendar-today-card {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 20px 14px;
  text-align: center;
  color: #fff;
  background: linear-gradient(145deg, #0d67ce, #08459a);
  border-radius: 20px;
}

.calendar-today-card > span {
  font-weight: 900;
  opacity: .84;
}

.calendar-today-card > strong {
  font-size: 3.2rem;
  line-height: 1;
}

.calendar-today-card > b {
  font-size: .95rem;
}

.calendar-today-card p {
  margin: 10px 0 0;
  font-size: .84rem;
  line-height: 1.6;
  opacity: .9;
}

.calendar-category-filter {
  display: grid;
  gap: 8px;
}

.calendar-category-filter > strong {
  margin-bottom: 3px;
  color: #0a2348;
}

.calendar-category-filter button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 12px;
  color: #36506f;
  text-align: right;
  background: #f7faff;
  border: 1px solid #e0eaf7;
  border-radius: 13px;
  font-weight: 800;
}

.calendar-category-filter button:hover,
.calendar-category-filter button.active {
  color: #0755b5;
  background: #edf6ff;
  border-color: #a9cff6;
}

.calendar-category-filter i {
  width: 11px;
  height: 11px;
  background: #55708e;
  border-radius: 999px;
}

.calendar-note {
  display: flex;
  gap: 9px;
  margin-top: auto;
  padding: 12px;
  color: #5b6d82;
  background: #fff9e9;
  border: 1px solid #f1dfab;
  border-radius: 14px;
}

.calendar-note i {
  margin-top: 3px;
  color: #c3890b;
}

.calendar-note p {
  margin: 0;
  font-size: .78rem;
  line-height: 1.7;
}

.calendar-main-panel {
  padding: 20px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.calendar-nav {
  display: flex;
  gap: 7px;
}

.calendar-nav button,
.calendar-today-button,
.events-timeline-head button {
  min-width: 40px;
  min-height: 40px;
  color: #0755b5;
  background: #eef6ff;
  border: 1px solid #cfe3fb;
  border-radius: 12px;
  font-weight: 900;
}

.calendar-selectors {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.calendar-selectors select {
  min-width: 120px;
  padding: 9px 13px;
  color: #092752;
  background: #fff;
  border: 1px solid #d5e4f5;
  border-radius: 12px;
  font-weight: 900;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  margin-bottom: 6px;
  color: #657b97;
  text-align: center;
  font-size: .78rem;
  font-weight: 900;
}

.calendar-weekdays span {
  padding: 8px 2px;
}

.calendar-grid {
  overflow: hidden;
  border-top: 1px solid #dce8f5;
  border-right: 1px solid #dce8f5;
  border-radius: 16px;
}

.calendar-day {
  position: relative;
  min-height: 105px;
  padding: 8px;
  overflow: hidden;
  color: #0a2348;
  text-align: right;
  background: #fff;
  border: 0;
  border-left: 1px solid #dce8f5;
  border-bottom: 1px solid #dce8f5;
}

.calendar-day:hover {
  z-index: 1;
  background: #f4f9ff;
  box-shadow: inset 0 0 0 2px #b6d7fa;
}

.calendar-day.outside {
  color: #a4b2c3;
  background: #f8fafc;
}

.calendar-day.today > b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: #0d67ce;
  border-radius: 999px;
}

.calendar-day.selected {
  background: #edf7ff;
  box-shadow: inset 0 0 0 2px #2684e6;
}

.calendar-day-events {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.calendar-day-events i {
  display: block;
  padding: 4px 6px;
  overflow: hidden;
  color: #24415f;
  font-size: .68rem;
  font-style: normal;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #eef3f8;
  border-right: 3px solid #55708e;
  border-radius: 6px;
}

.calendar-day-events em {
  color: #59728f;
  font-size: .68rem;
  font-style: normal;
}

.cat-family,
.calendar-category-filter .cat-family { --category-color: #1769d2; }
.cat-palestinian,
.calendar-category-filter .cat-palestinian { --category-color: #14874c; }
.cat-islamic,
.calendar-category-filter .cat-islamic { --category-color: #9b6a08; }
.cat-community,
.calendar-category-filter .cat-community { --category-color: #7b48c6; }

.calendar-category-filter i[class^="cat-"] {
  background: var(--category-color);
}

.calendar-day-events i[class^="cat-"] {
  color: color-mix(in srgb, var(--category-color) 75%, #10233b);
  background: color-mix(in srgb, var(--category-color) 10%, #fff);
  border-color: var(--category-color);
}

.events-timeline-panel {
  margin-top: 24px;
  padding: 24px;
}

.events-timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.events-timeline-head span {
  color: #14874c;
  font-weight: 900;
}

.events-timeline-head h2 {
  margin: 2px 0 0;
  color: #082452;
}

.events-timeline-head > div:last-child {
  display: flex;
  gap: 12px;
  align-items: center;
}

.events-timeline-head b {
  color: #5f728c;
}

.events-timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.events-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 41px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(#8dbdf2, #cfe3f8);
}

.timeline-event {
  --category-color: #1769d2;
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr 34px;
  gap: 17px;
  align-items: center;
  padding: 15px 16px;
  color: #0a2348;
  text-decoration: none;
  background: #fbfdff;
  border: 1px solid #dce8f5;
  border-right: 4px solid var(--category-color);
  border-radius: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.timeline-event:hover {
  transform: translateX(-3px);
  box-shadow: 0 14px 28px rgba(15, 60, 110, .1);
}

.timeline-event time {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding: 9px;
  color: #fff;
  background: var(--category-color);
  border: 4px solid #fff;
  border-radius: 15px;
  box-shadow: 0 0 0 1px #cfe0f2;
}

.timeline-event time strong {
  font-size: 1.5rem;
  line-height: 1;
}

.timeline-event time span,
.timeline-event time small {
  font-size: .7rem;
}

.timeline-event h3 {
  margin: 4px 0 6px;
  font-size: 1.08rem;
}

.timeline-event p {
  margin: 3px 0;
  color: #58708d;
  font-size: .86rem;
  line-height: 1.55;
}

.timeline-category {
  color: var(--category-color);
  font-size: .75rem;
  font-weight: 900;
}

.timeline-event > i {
  color: var(--category-color);
}

.calendar-empty {
  display: grid;
  justify-items: center;
  padding: 42px 20px;
  color: #60758e;
  text-align: center;
  background: #f7faff;
  border: 1px dashed #bdd3eb;
  border-radius: 18px;
}

.calendar-empty i {
  margin-bottom: 10px;
  color: #75a4d4;
  font-size: 2.2rem;
}

.calendar-empty p {
  margin: 4px 0 0;
}

.personalities-summary {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: center;
  margin: 18px 0 26px;
  padding: 18px 22px;
  color: #fff;
  background: linear-gradient(135deg, #0c5bb6, #0d8271);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(10, 74, 133, .16);
}

.personalities-summary div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.personalities-summary strong {
  font-size: 2.4rem;
}

.personalities-summary span {
  font-weight: 900;
}

.personalities-summary p {
  margin: 0;
  line-height: 1.8;
  opacity: .92;
}

.personality-source {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: auto;
  color: #0b63c8;
  text-decoration: none;
  font-size: .83rem;
  font-weight: 900;
}

@media (max-width: 900px) {
  .event-calendar-shell {
    grid-template-columns: 1fr;
  }

  .calendar-side-panel {
    display: grid;
    grid-template-columns: minmax(170px, .7fr) 1fr;
  }

  .calendar-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .calendar-side-panel {
    display: flex;
  }

  .calendar-main-panel,
  .events-timeline-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .calendar-toolbar {
    grid-template-columns: 1fr auto;
  }

  .calendar-selectors {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .calendar-selectors select {
    flex: 1;
    min-width: 0;
  }

  .calendar-weekdays {
    font-size: .63rem;
  }

  .calendar-weekdays span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .calendar-day {
    min-height: 70px;
    padding: 5px;
  }

  .calendar-day-events i {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: transparent;
    background: var(--category-color);
  }

  .calendar-day-events {
    display: flex;
    flex-wrap: wrap;
  }

  .events-timeline-head,
  .events-timeline-head > div:last-child {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-event {
    grid-template-columns: 66px 1fr;
    gap: 12px;
  }

  .timeline-event > i {
    display: none;
  }

  .personalities-summary {
    grid-template-columns: 1fr;
  }
}

body.public-body a > i,
body.public-body button > i,
body.public-body .btn > i,
body.public-body .family-brand i,
body.public-body .nav-links i,
body.public-body .hero-values i,
body.public-body .member-gateway-actions i,
body.public-body .family-live-ribbon i {
  width: 1.18em;
  min-width: 1.18em;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  flex: 0 0 auto;
}

body.public-body .btn,
body.public-body .nav-links a,
body.public-body .public-auth-links a,
body.public-body .member-gateway-actions a,
body.public-body .hero-values span {
  align-items: center;
}

body.public-body .fa,
body.public-body .fa-solid,
body.public-body .fa-regular,
body.public-body .fa-brands,
body.public-body .fas,
body.public-body .far,
body.public-body .fab {
  line-height: 1;
  vertical-align: -0.08em;
}

.family-container {
  width: min(1180px, calc(100% - 28px));
  margin-inline: auto;
}

.family-nav {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--public-line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-sizing: border-box;
}

.family-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--public-ink);
}

.family-brand small {
  display: block;
  color: var(--public-muted);
  font-size: .78rem;
}

.nav-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #cfe0f7;
  border-radius: 12px;
  background: #f3f8ff;
  color: #075ac7;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links a,
.admin-pill {
  text-decoration: none;
  padding: 9px 11px;
  border-radius: 8px;
  color: #344054;
  white-space: nowrap;
  font-size: .92rem;
}

.nav-links a:hover,
.nav-links a.active {
  background: #edf7f4;
  color: var(--public-teal);
}

.admin-pill {
  background: var(--public-teal);
  color: #fff;
}

.admin-pill:hover {
  background: var(--public-teal-dark);
  color: #fff;
}

.public-hero {
  min-height: calc(78vh - 72px);
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(13, 70, 67, .95), rgba(47, 93, 131, .80) 58%, rgba(163, 61, 53, .62)),
    #123532;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .8fr);
  align-items: center;
  gap: 36px;
  padding: 58px 0;
}

.hero-content {
  max-width: 780px;
}

.eyebrow,
.tag {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .82rem;
}

.eyebrow {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  color: rgba(255,255,255,.94);
  margin-bottom: 14px;
}

.tag {
  background: #eef8f6;
  color: var(--public-teal);
}

.public-hero h1 {
  font-size: clamp(2.45rem, 7vw, 5.35rem);
  line-height: 1.08;
  font-weight: 700;
  margin: 0;
}

.public-hero p {
  color: rgba(255,255,255,.88);
  font-size: 1.06rem;
  max-width: 720px;
}

.hero-note {
  border-right: 3px solid rgba(255,255,255,.5);
  padding-right: 12px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

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

.collage-card {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
  background: rgba(255,255,255,.08);
}

.collage-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.collage-card.c2,
.collage-card.c3 {
  transform: translateY(24px);
}

.section {
  padding: 44px 0;
}

.section.alt {
  background: #ffffff;
  border-block: 1px solid var(--public-line);
}

.section-head,
.official-strip,
.tree-board-head,
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head h2,
.official-strip h2,
.page-hero h1,
.tree-board-head h2,
.closing-cta h2 {
  font-weight: 700;
  margin: 8px 0 0;
}

.section-head p,
.official-strip p,
.page-hero p,
.tree-board-head p,
.closing-cta p {
  color: var(--public-muted);
  margin: 6px 0 0;
}

.official-card {
  background: var(--public-surface);
  border: 1px solid var(--public-line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23,32,51,.06);
}

.story-card {
  padding: 26px;
  min-height: 100%;
}

.story-card h2,
.values-panel h2,
.contact-form h2,
.detail-card h2,
.side-panel h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.story-card p,
.news-card p,
.event-card p,
.post-card p,
.honor-card p,
.detail-card p {
  color: #475467;
  line-height: 1.9;
}

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

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

.news-card,
.event-card,
.post-card,
.honor-card {
  overflow: hidden;
  min-height: 100%;
}

.news-card {
  display: flex;
  flex-direction: column;
}

.news-card-media {
  display: block;
  overflow: hidden;
  background: linear-gradient(145deg,#edf3f7,#dce6ec);
}

.news-card .media-cover {
  object-fit: contain;
  object-position: center;
}

.news-card .card-pad {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.news-card .card-pad h2 {
  min-height: 2.8em;
  line-height: 1.4;
}

.news-card .card-pad h2 a {
  color: #102a43;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-card .card-pad > p {
  display: -webkit-box;
  min-height: 5.7em;
  margin-bottom: 18px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--public-muted);
  font-size: .82rem;
}

.news-card-meta span {
  color: #0f766e;
  font-weight: 800;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #0f766e;
  font-weight: 850;
  text-decoration: none;
}

.news-read-more:hover {
  color: #0b5f59;
}

.social-feed {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 880px;
}

.social-post {
  overflow: hidden;
}

.social-post-image {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: #111827;
  display: block;
}

.social-post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.social-post p {
  white-space: pre-line;
  color: #344054;
  line-height: 1.95;
}

.public-link-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.public-link-card:hover {
  border-color: #b9d7d1;
  transform: translateY(-1px);
}

.media-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #edf2f7;
}

.article-hero {
  padding: 58px 0;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.12), transparent 34%),
    linear-gradient(120deg, #0f766e, #173b66 68%, #4b3949);
}

.article-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 36px;
  align-items: center;
}

.article-heading h1 {
  max-width: 820px;
  margin: 16px 0 18px;
  font-size: clamp(2rem, 4.1vw, 3.5rem);
  line-height: 1.25;
  font-weight: 900;
}

.article-summary {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 1.12rem;
  line-height: 1.9;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  color: rgba(255,255,255,.82);
  font-weight: 700;
}

.article-hero-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 5px solid rgba(255,255,255,.22);
  border-radius: 18px;
  object-fit: contain;
  object-position: center;
  background: rgba(255,255,255,.1);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: start;
}

.article-content {
  padding: clamp(22px, 4vw, 48px);
}

.article-body {
  color: #26394d;
  font-size: 1.08rem;
  line-height: 2.15;
  white-space: normal;
}

.article-gallery-section {
  padding-top: 34px;
  margin-top: 36px;
  border-top: 1px solid var(--public-line);
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title-row h2 {
  margin: 4px 0 0;
  font-size: 1.55rem;
  font-weight: 900;
}

.eyebrow,
.photo-count {
  color: #0f766e;
  font-size: .86rem;
  font-weight: 850;
}

.photo-count {
  padding: 7px 12px;
  border-radius: 999px;
  background: #e8f6f3;
}

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

.article-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #edf2f7;
}

.article-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: #edf2f7;
  transition: transform .2s ease;
}

.article-gallery a:hover img {
  transform: scale(1.025);
}

.article-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 12px;
}

.share-card {
  padding: 20px;
}

.share-card h2 {
  font-size: 1.2rem;
  font-weight: 900;
}

.share-card p {
  color: var(--public-muted);
  line-height: 1.7;
}

.share-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 14px;
  margin-top: 10px;
  border: 1px solid var(--public-line);
  border-radius: 9px;
  background: #fff;
  color: #23364d;
  font-weight: 850;
  text-decoration: none;
}

.share-button.whatsapp {
  border-color: #16a269;
  background: #16a269;
  color: #fff;
}

.card-pad {
  padding: 16px;
}

.card-pad h2,
.card-pad h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 10px 0 8px;
}

.meta {
  color: var(--public-muted);
  font-size: .86rem;
}

.honor-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #edf2f7;
}

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

.gallery-page-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--public-line);
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(145deg,#edf3f7,#dce6ec);
  display: block;
}

.gallery-card .caption {
  min-height: 52px;
  padding: 10px;
  font-size: .88rem;
  color: #475467;
  display: block;
}

.gallery-card .caption strong,
.gallery-card .caption small {
  display: block;
}

.gallery-card .caption small {
  color: var(--public-muted);
  margin-top: 2px;
}

.split-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 18px;
  align-items: start;
}

.about-story {
  border-top: 4px solid var(--public-teal);
}

.values-panel,
.side-panel,
.contact-form {
  padding: 22px;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
  color: #475467;
}

.clean-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.clean-list i {
  color: var(--public-teal);
  margin-top: 4px;
}

.page-hero {
  padding: 54px 0 22px;
  background:
    linear-gradient(180deg, #ffffff, #f0f6f5);
  border-bottom: 1px solid var(--public-line);
}

.page-hero-inner {
  max-width: 900px;
}

.filters-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-panel {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, .8fr) minmax(150px, .8fr) auto auto;
  align-items: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 18px;
}

.detail-cover {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.info-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--public-line);
  padding-bottom: 10px;
}

.info-list span {
  color: var(--public-muted);
}

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

.comment-item {
  border: 1px solid var(--public-line);
  border-radius: 8px;
  padding: 12px;
}

.comment-item span {
  display: block;
  color: var(--public-muted);
  font-size: .82rem;
}

.tree-preview,
.public-family-tree {
  display: grid;
  gap: 18px;
}

.public-tree-card,
.tree-board {
  padding: 22px;
}

.tree-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tree-row.compact {
  justify-content: flex-start;
}

.tree-line {
  width: 2px;
  height: 22px;
  background: var(--public-line);
  margin-inline: auto;
}

.tree-generation {
  border-top: 1px solid var(--public-line);
  padding-top: 18px;
}

.generation-label {
  color: var(--public-muted);
  font-size: .86rem;
  margin-bottom: 10px;
}

.tree-node {
  min-width: 150px;
  max-width: 230px;
  background: #fff;
  border: 1px solid var(--public-line);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.tree-node span {
  display: block;
  color: var(--public-muted);
  font-size: .78rem;
  margin-bottom: 4px;
}

.tree-node.root {
  background: var(--public-teal);
  color: #fff;
  border-color: var(--public-teal);
}

.tree-node.root span {
  color: rgba(255,255,255,.78);
}

.tree-node.small {
  min-width: 130px;
  font-size: .9rem;
}

.empty-state {
  padding: 22px;
  color: var(--public-muted);
  grid-column: 1 / -1;
}

.closing-cta {
  background: linear-gradient(105deg, var(--public-teal), var(--public-blue));
  color: #fff;
  padding: 34px 0;
}

.closing-cta p {
  color: rgba(255,255,255,.82);
}

.family-footer {
  background:
    radial-gradient(circle at 50% 0, rgba(202, 148, 54, .16), transparent 28%),
    #f4f8ff;
  border-top: 1px solid #dceafe;
  padding: 28px 0 34px;
}

.footer-brand-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 18px;
  color: #08235a;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social strong,
.footer-copy strong,
.footer-center-brand strong,
.footer-center-brand small,
.footer-copy span {
  display: block;
}

.footer-social span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #0b78d8, #073fc4);
}

.footer-center-brand {
  text-align: center;
}

.footer-wreath {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  color: #b77d2a;
  border: 1px solid rgba(183, 125, 42, .38);
  border-radius: 999px;
  background: #fff;
}

.footer-center-brand strong {
  font-size: 1.8rem;
  font-weight: 900;
}

.footer-center-brand small,
.footer-copy span {
  color: #59708e;
  font-weight: 800;
}

.footer-copy {
  text-align: left;
}

.public-auth-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.new-home-shell {
  background:
    radial-gradient(circle at 18% 8%, rgba(0, 98, 255, .10), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(192, 133, 46, .12), transparent 24%),
    #f4f8ff;
  padding-bottom: 28px;
}

.family-nav {
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto -78px;
  border: 1px solid rgba(180, 204, 236, .72);
  border-radius: 22px;
  box-shadow: 0 14px 44px rgba(23, 64, 118, .12);
  background: #fff;
}

.nav-inner {
  min-height: 64px;
  padding: 0 18px;
  direction: ltr;
  flex-wrap: nowrap;
}

.family-brand {
  order: 3;
  direction: rtl;
  flex: 0 0 auto;
  min-height: 42px;
}

.family-brand .brand-mark {
  background: linear-gradient(135deg, #eef7ff, #fff);
  border: 1px solid #cfe0f7;
  color: #0b4db3;
}

.family-brand strong {
  display: block;
  color: #061b42;
  font-size: 1.1rem;
  line-height: 1;
  text-align: center;
}

.nav-links {
  order: 2;
  margin-inline: auto;
  gap: 18px;
  direction: rtl;
  flex: 0 1 auto;
  min-width: 0;
}

.nav-links a {
  color: #061b42;
  font-weight: 700;
  padding: 18px 4px 16px;
  border-radius: 0;
  border-bottom: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  background: transparent;
  color: #0b63ce;
  border-bottom-color: #0b63ce;
}

.public-auth-links {
  order: 1;
  direction: rtl;
  flex: 0 0 auto;
}

.admin-pill,
.search-pill {
  height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(27, 103, 210, .18);
}

.admin-pill {
  background: linear-gradient(135deg, #0f78df, #063ac1);
  padding-inline: 18px;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.search-pill {
  background: #fff;
  border: 1px solid #d5e5fb;
  color: #08235a;
  text-decoration: none;
}

.home-hero-v2 {
  min-height: 690px;
  position: relative;
  overflow: hidden;
  padding-top: 110px;
  background: #eaf4ff;
}

.home-hero-v2::before,
.home-hero-v2::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero-v2::before {
  background: url("../images/shawaf-palestine-hero.png") center bottom / cover no-repeat;
}

.home-hero-v2::after {
  content: none;
}

.hero-v2-inner {
  min-height: 560px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 30px;
}

.hero-side-brand {
  display: none;
}

.brand-wreath {
  width: 96px;
  height: 96px;
  margin: 0 auto 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #bd822c;
  border: 2px solid rgba(189, 130, 44, .45);
  background: rgba(255,255,255,.58);
  font-size: 2.1rem;
}

.hero-side-brand strong,
.hero-side-brand small {
  display: block;
}

.hero-side-brand strong {
  font-size: 2rem;
  font-weight: 900;
}

.hero-side-brand small {
  color: #345071;
  font-weight: 700;
}

.hero-v2-content {
  text-align: center;
  color: #061b42;
  max-width: 760px;
  margin-inline: auto;
  transform: translateY(-188px);
}

.hero-title-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: min(100%, 860px);
  padding: 18px 34px 20px;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.74)),
    linear-gradient(135deg, rgba(8, 74, 140, .16), rgba(189, 130, 44, .12));
  box-shadow:
    0 22px 55px rgba(7, 35, 84, .18),
    inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  font-size: clamp(3.7rem, 7.3vw, 6.6rem);
  line-height: 1;
  font-weight: 900;
  color: #061b42;
  margin: 0;
  white-space: nowrap;
  text-shadow:
    0 0 2px #fff,
    0 0 7px #fff,
    0 0 16px rgba(255, 255, 255, .98),
    0 0 32px rgba(255, 255, 255, .88),
    0 0 52px rgba(255, 255, 255, .72);
}

.hero-bottom-slogan {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 124px;
  transform: translateX(-50%);
  width: min(100% - 42px, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: clamp(1.4rem, 2.4vw, 2.4rem);
  font-weight: 900;
  color: #061b42;
  padding: 10px 18px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(255, 255, 255, .88);
  box-shadow: 0 16px 38px rgba(7, 35, 84, .14);
  backdrop-filter: blur(10px);
  text-shadow:
    0 0 2px #fff,
    0 0 8px #fff,
    0 0 18px rgba(255, 255, 255, .96),
    0 0 34px rgba(255, 255, 255, .82);
}

.hero-bottom-slogan span {
  width: 74px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d08d29, transparent);
}

.hero-v2-content p {
  max-width: 720px;
  margin: 0 auto;
  color: #12213e;
  font-size: 1.2rem;
  line-height: 2;
  font-weight: 700;
}

.hero-values {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-values span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(193, 211, 235, .9);
  border-radius: 999px;
  padding: 11px 20px;
  color: #0c1d3f;
  box-shadow: 0 12px 28px rgba(31, 76, 132, .11);
  font-weight: 800;
}

.home-quick-wrap {
  position: relative;
  z-index: 5;
  margin-top: -118px;
}

.member-gateway {
  margin: 0 8px 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(190, 212, 238, .92);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(22, 68, 130, .16), inset 0 0 0 5px rgba(255,255,255,.56);
}

.member-gateway-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.member-gateway-title > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 18px;
  background: linear-gradient(135deg, #075ac7, #0a84dd);
  color: #fff;
  box-shadow: 0 14px 26px rgba(7, 90, 199, .24);
  font-size: 1.35rem;
}

.member-gateway-title > div {
  min-width: 0;
}

.member-gateway-title small,
.member-gateway-title strong {
  display: block;
}

.member-gateway-title small {
  color: #0a6f47;
  font-size: .78rem;
  font-weight: 900;
}

.member-gateway-title strong {
  color: #071f4c;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.55;
}

.member-gateway-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.member-gateway-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 14px;
  border: 1px solid #d6e4f5;
  background: #f7fbff;
  color: #08235a;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 900;
  white-space: nowrap;
}

.member-gateway-actions a.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #075ac7, #006ee6);
  color: #fff;
  box-shadow: 0 13px 24px rgba(7, 90, 199, .22);
}

.family-pulse {
  margin: 0 8px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .8fr) minmax(220px, .8fr);
  gap: 12px;
}

.pulse-main,
.pulse-card {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 7px;
  border: 1px solid rgba(190, 212, 238, .92);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 36px rgba(22, 68, 130, .13), inset 0 0 0 5px rgba(255,255,255,.54);
  color: #071f4c;
  text-decoration: none;
}

.pulse-main {
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(7, 90, 199, .96), rgba(10, 132, 221, .92)),
    #075ac7;
  color: #fff;
}

.pulse-main span {
  color: rgba(255,255,255,.82);
  font-size: .8rem;
  font-weight: 900;
}

.pulse-main strong {
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.55;
}

.pulse-main small {
  color: rgba(255,255,255,.82);
  font-weight: 800;
}

.pulse-card {
  grid-template-columns: 48px 58px 1fr;
  align-items: center;
  padding: 14px;
}

.pulse-card > i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eef8f6;
  color: #0a6f47;
  font-size: 1.25rem;
}

.pulse-card > span {
  display: grid;
  justify-items: center;
  color: #075ac7;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
}

.pulse-card > span small {
  margin-top: 5px;
  color: #667b98;
  font-size: .68rem;
}

.pulse-card strong {
  font-size: .94rem;
  font-weight: 900;
  line-height: 1.55;
}

.family-live-ribbon {
  min-height: 58px;
  margin: 0 8px 18px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(190, 212, 238, .9);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 28px rgba(22, 68, 130, .10);
  color: #071f4c;
}

.live-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #13a05f;
  box-shadow: 0 0 0 0 rgba(19, 160, 95, .38);
  animation: livePulse 1.8s ease-out infinite;
}

.family-live-ribbon strong {
  font-size: .86rem;
  font-weight: 900;
}

.family-live-ribbon time {
  min-width: 56px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef8f6;
  color: #0a6f47;
  font-size: .82rem;
  font-weight: 900;
  text-align: center;
}

.family-live-ribbon em {
  min-width: 0;
  color: #334c72;
  font-size: .86rem;
  font-style: normal;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-main,
.pulse-card,
.member-gateway,
.family-live-ribbon,
.quick-tile,
.home-metric,
.home-panel {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.pulse-main:hover,
.pulse-card:hover,
.member-gateway:hover,
.quick-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(7, 90, 199, .34);
  box-shadow: 0 20px 46px rgba(22, 68, 130, .18), inset 0 0 0 5px rgba(255,255,255,.58);
}

.pulse-card.is-live {
  border-color: rgba(7, 90, 199, .42);
  background: #f6fbff;
}

.is-reveal-ready {
  opacity: 0;
  transform: translateY(18px);
}

.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .55s ease, transform .55s ease;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(19, 160, 95, .38); }
  70% { box-shadow: 0 0 0 10px rgba(19, 160, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(19, 160, 95, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot {
    animation: none;
  }

  .pulse-main,
  .pulse-card,
  .member-gateway,
  .family-live-ribbon,
  .quick-tile,
  .home-metric,
  .home-panel {
    transition: none;
  }
}

.privacy-policy {
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.privacy-policy h2 {
  margin-top: 1.75rem;
  margin-bottom: .55rem;
  color: var(--family-ink, #18241f);
  font-size: 1.2rem;
}

.privacy-policy h2:first-child {
  margin-top: 0;
}

.privacy-policy p {
  color: #52625b;
  line-height: 1.95;
}

.policy-updated {
  border-top: 1px solid rgba(22, 82, 55, .12);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: .9rem;
}

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

.public-service-grid article {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.public-service-grid article > i {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: #eaf7f3;
  color: #0f766e;
  font-size: 1.3rem;
}

.public-service-grid h2 { margin: 16px 0 8px; font-size: 1.2rem; }
.public-service-grid p { min-height: 76px; color: #66766f; line-height: 1.8; }
.public-service-grid article > a { display: flex; justify-content: space-between; margin-top: 15px; color: #0f766e; font-weight: 850; text-decoration: none; }
.service-number { position: absolute; inset-inline-end: 16px; top: 10px; color: rgba(15,118,110,.1); font-size: 2.7rem; font-weight: 900; }
.service-sla { display: flex; justify-content: space-between; padding: 10px; border-radius: 10px; background: #f5f8f7; font-size: .85rem; }
.service-process { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 24px; }
.service-process div { flex: 1; text-align: center; }
.service-process div > span { display: grid; width: 38px; height: 38px; margin: 0 auto 8px; place-items: center; border-radius: 50%; background: #0f766e; color: #fff; font-weight: 900; }
.service-process strong, .service-process p { display: block; }
.service-process p { margin: 4px 0 0; color: #738078; font-size: .82rem; }
.service-process > i { color: #a9b7b1; }

@media (max-width: 960px) {
  .public-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-process { flex-direction: column; }
  .service-process > i { transform: rotate(-90deg); }
}
@media (max-width: 640px) {
  .public-service-grid { grid-template-columns: 1fr; }
}

/* Family identity, support and public community */
.identity-page,
.support-public-page {
  overflow: hidden;
}

.heritage-hero,
.programs-hero,
.support-hero {
  position: relative;
  padding: 92px 0 78px;
}

.heritage-hero,
.programs-hero {
  background:
    radial-gradient(circle at 15% 15%, rgba(213, 174, 91, .2), transparent 24rem),
    linear-gradient(135deg, #0b3f3a, #0f766e 64%, #164e63);
  color: #fff;
}

.heritage-hero::after,
.programs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .08;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.heritage-hero-grid,
.support-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 50px;
}

.heritage-eyebrow,
.support-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-weight: 800;
}

.heritage-hero h1,
.programs-hero h1,
.support-hero h1 {
  max-width: 820px;
  margin: 18px 0 12px;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  font-weight: 950;
  letter-spacing: -.04em;
}

.heritage-hero p,
.programs-hero p,
.support-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, .84);
  font-size: 1.12rem;
  line-height: 1.9;
}

.heritage-actions,
.support-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.heritage-seal {
  width: min(330px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), rgba(255,255,255,.05));
  box-shadow: inset 0 0 0 14px rgba(255, 255, 255, .05), 0 28px 60px rgba(0,0,0,.18);
}

.heritage-seal i { font-size: 4.5rem; color: #e4bf68; }
.heritage-seal strong { font-size: 2.2rem; }
.heritage-seal span { max-width: 190px; color: rgba(255,255,255,.78); }

.heritage-story-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
}

.heritage-story-card { padding: 34px; }
.heritage-story-card h2 { margin: 14px 0; font-weight: 900; color: #123f3b; }
.heritage-story-card p { color: #516b69; line-height: 2; }

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

.heritage-values article {
  padding: 22px;
  display: grid;
  gap: 8px;
  border: 1px solid #dce9e7;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(19, 63, 59, .07);
}

.heritage-values i { font-size: 1.7rem; color: #0f766e; }
.heritage-values strong { font-size: 1.12rem; color: #123f3b; }
.heritage-values span { color: #6a7e7c; line-height: 1.7; }

.family-timeline { position: relative; display: grid; gap: 18px; }
.family-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; right: 82px; width: 2px; background: linear-gradient(#0f766e,#d7b467); }
.family-timeline article { position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: start; }
.timeline-year { position: relative; z-index: 1; padding: 14px 16px; border-radius: 16px; background: #0f766e; color: #fff; text-align: center; font-weight: 900; box-shadow: 0 10px 24px rgba(15,118,110,.18); }
.timeline-content { padding: 20px 24px; border: 1px solid #dce9e7; border-radius: 18px; background: #fff; }
.timeline-content h3 { margin: 0 0 8px; color: #123f3b; font-weight: 900; }
.timeline-content p { margin: 0; color: #5d7471; line-height: 1.8; }
.timeline-content small { display: block; margin-top: 10px; color: #0f766e; }

.heritage-empty,
.support-empty {
  grid-column: 1 / -1;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.heritage-empty > i,
.support-empty > i { font-size: 2rem; color: #0f766e; }
.heritage-empty p,
.support-empty p { margin: 4px 0 0; color: #6a7e7c; }

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

.identity-figure-card {
  min-height: 310px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #123f3b;
}
.identity-figure-card img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: .3s ease; }
.identity-figure-card:hover img { transform: scale(1.04); opacity: .9; }
.identity-figure-card > div { position: absolute; inset: auto 0 0; padding: 22px; color: #fff; background: linear-gradient(transparent,rgba(4,25,23,.92)); }
.identity-figure-card span { color: #efd58f; }
.identity-figure-card h3 { margin: 5px 0; font-weight: 900; }
.identity-figure-card p { margin: 0; color: rgba(255,255,255,.75); }

.heritage-contribute-card {
  padding: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg,#123f3b,#0f766e);
  box-shadow: 0 22px 50px rgba(18,63,59,.18);
}
.heritage-contribute-card span { color: #efd58f; font-weight: 800; }
.heritage-contribute-card h2 { margin: 6px 0; font-weight: 900; }
.heritage-contribute-card p { margin: 0; color: rgba(255,255,255,.78); }

.figure-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.figure-filters a { padding: 9px 14px; border: 1px solid #d7e5e3; border-radius: 999px; color: #345c58; background: #fff; font-weight: 800; }
.figure-filters a.active { color: #fff; border-color: #0f766e; background: #0f766e; }
.personality-card { overflow: hidden; border: 1px solid #dce9e7; border-radius: 24px; background: #fff; box-shadow: 0 16px 38px rgba(19,63,59,.08); }
.personality-photo { position: relative; height: 340px; display:grid; place-items:center; overflow:hidden; background:linear-gradient(145deg,#edf3f7,#dde8ee); }
.personality-photo img { width: 100%; height: 100%; object-fit: contain; object-position:center; }
.personality-photo span { position: absolute; right: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; color: #fff; background: rgba(15,118,110,.92); font-size: .82rem; font-weight: 800; }
.personality-body { padding: 22px; }
.personality-body small { color: #9b7434; font-weight: 800; }
.personality-body h2 { margin: 5px 0; color: #123f3b; font-weight: 900; }
.personality-body strong { color: #0f766e; }
.personality-body p { margin: 12px 0 0; color: #5f7472; line-height: 1.8; }

.programs-hero { text-align: center; }
.programs-hero p { margin-inline: auto; }
.programs-public-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.public-program-card { min-height: 320px; padding: 26px; display: flex; flex-direction: column; gap: 18px; border: 1px solid #dce9e7; border-radius: 26px; background: #fff; box-shadow: 0 16px 38px rgba(19,63,59,.08); }
.program-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(135deg,#0f766e,#2f6f8f); font-size: 1.6rem; }
.public-program-card h2 { margin: 10px 0; color: #123f3b; font-size: 1.3rem; font-weight: 900; }
.public-program-card p { color: #607572; line-height: 1.8; }
.public-program-card > a { margin-top: auto; color: #0f766e; font-weight: 900; }

.support-hero { color: #fff; background: linear-gradient(135deg,#7f1d3d,#b43b5f 55%,#c7773e); }
.support-impact-card { padding: 26px; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 26px; background: rgba(255,255,255,.12); backdrop-filter: blur(14px); }
.support-impact-card > span,.support-impact-card > p { grid-column: 1/-1; }
.support-impact-card > div { padding: 15px; border-radius: 17px; background: rgba(255,255,255,.12); }
.support-impact-card strong { display: block; font-size: 1.8rem; }
.support-impact-card small { color: rgba(255,255,255,.76); }
.support-impact-card p { margin: 0; color: rgba(255,255,255,.8); }
.support-campaign-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.support-campaign-card { overflow: hidden; border: 1px solid #eadde2; border-radius: 24px; background: #fff; box-shadow: 0 16px 38px rgba(96,27,52,.08); }
.support-campaign-card > img { width: 100%; height: 190px; object-fit: cover; }
.support-campaign-body { padding: 22px; }
.support-campaign-body > span { color: #a1264f; font-weight: 900; font-size: .85rem; }
.support-campaign-body h3 { margin: 7px 0; color: #52142b; font-weight: 900; }
.support-campaign-body p { color: #715863; line-height: 1.75; }
.campaign-progress { height: 9px; overflow: hidden; border-radius: 999px; background: #f1e3e8; }
.campaign-progress > div { height: 100%; border-radius: inherit; background: linear-gradient(90deg,#a1264f,#d28a44); }
.campaign-numbers { display: flex; justify-content: space-between; gap: 8px; margin: 9px 0; font-size: .88rem; }
.campaign-numbers strong { color: #a1264f; }
.support-campaign-body > small { display: block; color: #7c6971; }
.support-campaign-body > a { display: inline-flex; margin-top: 14px; color: #a1264f; font-weight: 900; }

.support-form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; align-items: start; }
.support-trust-card,.public-support-form { padding: 28px; }
.support-trust-card h2,.public-support-form h2 { margin: 10px 0; color: #52142b; font-weight: 900; }
.support-trust-card ul { padding: 0; list-style: none; display: grid; gap: 12px; }
.support-trust-card li { display: flex; gap: 9px; color: #5f4a53; }
.support-trust-card li i { color: #16815d; }
.support-payment-note { margin-top: 22px; padding: 18px; border-radius: 18px; background: #fff5f7; }
.support-payment-note p { color: #70555f; line-height: 1.7; }
.support-payment-note .btn { margin-top: 8px; width: 100%; }
.support-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 20px 0; }
.support-form-grid label { display: grid; gap: 6px; color: #5d4851; font-weight: 800; }
.support-message { grid-column: 1/-1; }

.family-share-bar { margin: 28px 0; padding: 14px 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; border: 1px solid #dce9e7; border-radius: 18px; background: #fff; }
.family-share-bar > span { margin-inline-end: auto; color: #345c58; font-weight: 900; }
.family-share-bar a,.family-share-bar button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; color: #fff; cursor: pointer; }
.share-whatsapp { background: #168b5b; }.share-telegram { background: #268bc0; }.share-facebook { background: #315d9d; }
.family-share-bar button { background: #6b7d7b; }.family-share-bar button.copied { background: #0f766e; }
.social-channel-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.social-channel-links a { padding: 10px 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 13px; color: #fff; background: rgba(255,255,255,.1); font-weight: 800; }
.social-post-share { margin-top: 14px; display: flex; align-items: center; gap: 7px; }
.social-post-share span { color: #6a7d7b; font-size: .85rem; font-weight: 800; }
.social-post-share a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #0f766e; }
.assistant-hero { padding: 96px 0 70px; text-align: center; color: #fff; background: radial-gradient(circle at 20% 10%,rgba(84,174,166,.35),transparent 25rem),linear-gradient(135deg,#102f4a,#0f766e); }
.assistant-hero span { display: inline-flex; align-items: center; gap: 8px; color: #d9c17d; font-weight: 900; }
.assistant-hero h1 { margin: 12px 0 8px; font-size: clamp(2.2rem,5vw,4rem); font-weight: 950; }
.assistant-hero p { max-width: 720px; margin: 0 auto; color: rgba(255,255,255,.78); line-height: 1.8; }
.assistant-hero form { max-width: 760px; margin: 26px auto 0; padding: 7px; display: flex; gap: 7px; border-radius: 18px; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.assistant-hero input { min-width: 0; flex: 1; border: 0; padding: 0 15px; outline: 0; }
.assistant-hero button { padding: 13px 20px; border: 0; border-radius: 13px; color: #fff; background: #0f766e; font-weight: 900; }
.assistant-results { display: grid; gap: 10px; margin-bottom: 24px; }
.assistant-results > a { padding: 18px; display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; border: 1px solid #dce9e7; border-radius: 18px; background: #fff; color: #234a46; }
.assistant-results > a > i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: #0f766e; }
.assistant-results strong { font-size: 1.05rem; }
.assistant-results p { margin: 3px 0 0; color: #6a7d7b; }
.assistant-quick-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.assistant-quick-grid a { min-height: 170px; padding: 22px; display: grid; align-content: center; gap: 10px; border: 1px solid #dce9e7; border-radius: 22px; background: #fff; color: #234a46; box-shadow: 0 12px 30px rgba(19,63,59,.06); }
.assistant-quick-grid i { font-size: 1.7rem; color: #0f766e; }
.assistant-quick-grid strong { font-size: 1.06rem; }
.assistant-quick-grid span { color: #6a7d7b; font-size: .84rem; }

.mobile-identity-links { display: none; }
.home-identity-stage { margin-top: 30px; padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; border-radius: 30px; color: #fff; background: linear-gradient(135deg,#0d3f3a,#0f766e); box-shadow: 0 22px 50px rgba(15,76,69,.16); }
.home-identity-copy > span { color: #efd58f; font-weight: 900; }
.home-identity-copy h2 { margin: 8px 0; font-size: clamp(1.7rem,3vw,2.6rem); font-weight: 950; }
.home-identity-copy p { color: rgba(255,255,255,.78); line-height: 1.9; }
.home-identity-copy > div { display: flex; flex-wrap: wrap; gap: 8px; }
.home-figures-preview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.home-figures-preview a { min-height: 230px; position: relative; overflow: hidden; border-radius: 18px; background: rgba(255,255,255,.1); color: #fff; }
.home-figures-preview img { width: 100%; height: 100%; object-fit: cover; opacity: .74; }
.home-figures-preview a > div { position: absolute; inset: auto 0 0; padding: 14px; background: linear-gradient(transparent,rgba(0,0,0,.8)); }
.home-figures-preview strong,.home-figures-preview span { display: block; }
.home-figures-preview span { color: rgba(255,255,255,.75); font-size: .8rem; }
.home-memory-placeholder { padding: 20px; display: grid; place-items: center; align-content: center; text-align: center; }
.home-memory-placeholder > i { font-size: 2.5rem; color: #efd58f; }
.home-programs-section { margin-top: 26px; }
.home-programs-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.home-programs-grid > a { min-height: 190px; padding: 22px; display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: start; border: 1px solid #dce9e7; border-radius: 22px; background: #fff; color: #234a46; box-shadow: 0 12px 30px rgba(19,63,59,.06); }
.home-programs-grid > a > i { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: #0f766e; font-size: 1.3rem; }
.home-programs-grid span { color: #a27b35; font-size: .8rem; font-weight: 900; }
.home-programs-grid strong { display: block; margin: 5px 0; font-size: 1.08rem; }
.home-programs-grid p { margin: 0; color: #6a7d7b; line-height: 1.65; }
.home-support-banner { margin-top: 28px; padding: 28px; display: grid; grid-template-columns: 70px 1fr auto auto; gap: 20px; align-items: center; border-radius: 26px; color: #fff; background: linear-gradient(135deg,#7f1d3d,#b43b5f 65%,#cf8344); box-shadow: 0 20px 46px rgba(127,29,61,.18); }
.support-banner-icon { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 20px; background: rgba(255,255,255,.14); font-size: 1.8rem; }
.home-support-banner span { color: #ffd9a2; font-weight: 800; }
.home-support-banner h2 { margin: 3px 0; font-weight: 950; }
.home-support-banner p { margin: 0; color: rgba(255,255,255,.8); }
.support-banner-stats { text-align: center; }
.support-banner-stats strong { display: block; font-size: 1.8rem; }
.support-banner-stats span { font-size: .78rem; }
.home-social-community { margin-top: 24px; padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border: 1px solid #dce9e7; border-radius: 24px; background: #fff; }
.home-social-community h2 { margin: 3px 0; color: #123f3b; font-weight: 900; }
.home-social-community p { margin: 0; color: #6a7d7b; }
.home-social-community > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.home-social-community a { padding: 11px 14px; display: inline-flex; align-items: center; gap: 8px; border-radius: 14px; color: #fff; background: #0f766e; font-weight: 800; }

@media (max-width: 1040px) {
  .heritage-hero-grid,.support-hero-grid,.heritage-story-grid,.support-form-layout,.home-identity-stage { grid-template-columns: 1fr; }
  .heritage-seal { width: 250px; }
  .identity-figures-grid,.personalities-grid,.programs-public-grid,.support-campaign-grid,.home-programs-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-support-banner { grid-template-columns: 60px 1fr auto; }
  .home-support-banner > .btn { grid-column: 2/-1; }
  .assistant-quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .heritage-hero,.programs-hero,.support-hero { padding: 112px 0 54px; }
  .heritage-hero h1,.programs-hero h1,.support-hero h1 { font-size: 2.25rem; }
  .heritage-seal { width: 210px; }
  .heritage-values,.identity-figures-grid,.personalities-grid,.programs-public-grid,.support-campaign-grid,.support-form-grid,.home-programs-grid { grid-template-columns: 1fr; }
  .family-timeline::before { right: 22px; }
  .family-timeline article { grid-template-columns: 1fr; padding-right: 44px; gap: 8px; }
  .timeline-year { justify-self: start; }
  .heritage-contribute-card { padding: 24px; align-items: stretch; flex-direction: column; }
  .mobile-identity-links { display: grid; gap: 9px; margin-top: 12px; }
  .mobile-identity-links a { min-height: 66px; padding: 12px; display: flex; align-items: center; gap: 12px; border: 1px solid #d9e8e6; border-radius: 17px; color: #123f3b; background: #fff; box-shadow: 0 10px 24px rgba(19,63,59,.05); }
  .mobile-identity-links i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: #0f766e; }
  .mobile-identity-links strong,.mobile-identity-links span { display: block; }
  .mobile-identity-links span { color: #728381; font-size: .8rem; }
  .mobile-identity-links .support i { background: #a1264f; }
  .home-identity-stage { margin: 20px 10px 0; padding: 24px; border-radius: 24px; }
  .home-figures-preview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-figures-preview a { min-height: 190px; }
  .home-programs-section { margin-inline: 10px; }
  .home-support-banner { margin: 22px 10px 0; padding: 22px; grid-template-columns: 52px 1fr; }
  .support-banner-icon { width: 52px; height: 52px; }
  .support-banner-stats { grid-column: 1/-1; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.1); }
  .home-support-banner > .btn { grid-column: 1/-1; }
  .home-social-community { margin: 20px 10px 0; padding: 20px; align-items: stretch; flex-direction: column; }
  .home-social-community a { flex: 1 1 100%; justify-content: center; }
  .family-share-bar > span { flex: 1 1 100%; }
  .support-impact-card { grid-template-columns: 1fr; }
  .support-impact-card > span,.support-impact-card > p { grid-column: auto; }
  .public-support-form,.support-trust-card { padding: 20px; }
  .assistant-hero { padding: 112px 0 52px; }
  .assistant-hero form { align-items: stretch; flex-direction: column; }
  .assistant-hero input { min-height: 52px; }
  .assistant-quick-grid { grid-template-columns: 1fr; }
}

/* Mobile-first family home */
.mobile-home-dashboard { display: none; }
@media (max-width: 700px) {
  .new-home-shell > .home-hero-v2,
  .new-home-shell > .home-quick-wrap,
  .new-home-shell > .home-main-grid,
  .new-home-shell > .home-lower-grid,
  .new-home-shell > .service-strip,
  .new-home-shell > .home-cta-v2 { display: none; }
  .mobile-home-dashboard {
    display: grid;
    gap: 16px;
    padding: 88px 14px 34px;
    background: #f3f7f8;
  }
  .mobile-home-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px;
    color: #fff;
    border-radius: 24px;
    background: linear-gradient(135deg,#0f766e,#164e63);
    box-shadow: 0 16px 34px rgba(15,118,110,.2);
  }
  .mobile-home-welcome span { font-size: .78rem; opacity: .82; }
  .mobile-home-welcome h1 { margin: 2px 0; font-size: 1.55rem; }
  .mobile-home-welcome p { margin: 0; font-size: .88rem; opacity: .85; }
  .mobile-home-welcome > a {
    width: 48px; height: 48px; border-radius: 16px;
    display: grid; place-items: center; flex: 0 0 auto;
    background: rgba(255,255,255,.16); color: #fff; font-size: 1.2rem;
  }
  .mobile-family-alert {
    display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
    padding: 13px 14px; border-radius: 18px; color: #713f12; background: #fef3c7;
  }
  .mobile-family-alert.level-urgent { color: #9f1239; background: #ffe4e6; }
  .mobile-family-alert.level-success { color: #065f46; background: #d1fae5; }
  .mobile-family-alert small { display: block; opacity: .75; }
  .mobile-family-alert strong { font-size: .92rem; }
  .mobile-primary-actions {
    display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px;
  }
  .mobile-primary-actions a {
    min-width: 0; display: grid; justify-items: center; gap: 7px;
    padding: 13px 5px; text-align: center; color: #334155;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 17px;
    box-shadow: 0 8px 22px rgba(15,23,42,.05); font-size: .72rem; font-weight: 800;
  }
  .mobile-primary-actions i {
    display: grid; place-items: center; width: 36px; height: 36px;
    border-radius: 12px; color: #0f766e; background: #e6f5f2; font-size: 1rem;
  }
  .mobile-home-section-head { display: flex; justify-content: space-between; align-items: center; }
  .mobile-home-section-head h2 { margin: 0; font-size: 1.18rem; }
  .mobile-home-section-head a { color: #0f766e; font-size: .8rem; font-weight: 800; }
  .mobile-news-slider {
    display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px;
    scrollbar-width: none;
  }
  .mobile-news-slider::-webkit-scrollbar { display: none; }
  .mobile-news-slider > a {
    position: relative; overflow: hidden; min-height: 210px; border-radius: 22px;
    scroll-snap-align: start; color: #fff; background: #0f172a;
  }
  .mobile-news-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .73; }
  .mobile-news-slider > a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 24%,rgba(15,23,42,.9)); }
  .mobile-news-slider > a > div { position: absolute; z-index: 1; inset-inline: 16px; bottom: 14px; display: grid; gap: 4px; }
  .mobile-news-slider strong { font-size: 1rem; line-height: 1.55; }
  .mobile-news-slider small,.mobile-news-slider span { font-size: .72rem; opacity: .84; }
  .mobile-empty-card { padding: 30px; border-radius: 20px; background: #fff; color: #64748b; }
  .mobile-next-event {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px;
    padding: 14px; border: 1px solid #dbe7e7; border-radius: 21px; color: #1e293b; background: #fff;
  }
  .mobile-next-event .datebox { display: grid; place-items: center; width: 60px; min-height: 62px; border-radius: 16px; color: #fff; background: #0f766e; }
  .mobile-next-event .datebox strong { font-size: 1.35rem; line-height: 1; }
  .mobile-next-event .datebox small { font-size: .68rem; }
  .mobile-next-event > div { display: grid; gap: 2px; }
  .mobile-next-event > div small { color: #0f766e; font-weight: 800; }
  .mobile-next-event > div strong { font-size: .94rem; }
  .mobile-next-event p { margin: 0; color: #64748b; font-size: .75rem; }
  .mobile-gallery-strip { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: 82px 82px; gap: 7px; }
  .mobile-gallery-strip a { overflow: hidden; border-radius: 15px; background: #e2e8f0; }
  .mobile-gallery-strip a:first-child { grid-row: 1 / 3; }
  .mobile-gallery-strip img { width: 100%; height: 100%; object-fit: cover; }
}

/* Public community */
.community-hero { background: linear-gradient(135deg,#0f766e,#164e63 55%,#7c3f4d); }
.community-public-page .section-page { display: grid; gap: 30px; }
.public-community-notices { display: grid; gap: 10px; }
.public-community-notices article {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border-radius: 18px; background: #eef6ff; border: 1px solid #bfdbfe;
}
.public-community-notices article.level-urgent { background: #fff1f2; border-color: #fecdd3; }
.public-community-notices article.level-success { background: #ecfdf5; border-color: #a7f3d0; }
.public-community-notices p { margin: 2px 0 0; color: #64748b; }
.community-public-section { display: grid; gap: 16px; }
.public-opportunity-grid,.public-initiative-grid,.public-directory-grid {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px;
}
.public-opportunity-grid article,.public-initiative-grid article,.public-directory-grid article {
  padding: 22px; border: 1px solid #e2e8f0; border-radius: 22px;
  background: #fff; box-shadow: 0 12px 35px rgba(15,23,42,.05);
}
.public-opportunity-grid article > i { font-size: 1.5rem; color: #0f766e; margin-bottom: 13px; }
.public-opportunity-grid span,.public-initiative-grid span { color: #0f766e; font-size: .76rem; font-weight: 800; }
.public-opportunity-grid h3,.public-initiative-grid h3,.public-directory-grid h3 { margin: 6px 0; font-size: 1.08rem; }
.public-opportunity-grid p,.public-initiative-grid p,.public-directory-grid p { color: #64748b; }
.directory-avatar { display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#e6f5f2;color:#0f766e;font-weight:900;font-size:1.2rem; }
.public-directory-grid article > strong { color:#0f766e; }
.public-directory-grid article > small,.public-directory-grid article > a { display:block;margin-top:6px;color:#64748b; }
@media(max-width:900px){
  .public-opportunity-grid,.public-initiative-grid,.public-directory-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  .public-opportunity-grid,.public-initiative-grid,.public-directory-grid{grid-template-columns:1fr}
}

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  padding-inline: 8px;
  direction: ltr;
}

.quick-tile {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: #fff;
  color: #081f4c;
  text-decoration: none;
  border: 1px solid rgba(196, 214, 238, .82);
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(22, 68, 130, .15), inset 0 0 0 5px rgba(255,255,255,.55);
  font-weight: 900;
  text-align: center;
  direction: rtl;
}

.quick-tile i {
  font-size: 3.1rem;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.12));
}

.quick-tile.blue i { color: #0a84dd; }
.quick-tile.green i { color: #16844a; }
.quick-tile.purple i { color: #612fd0; }
.quick-tile.amber i { color: #e38712; }
.quick-tile.rose i { color: #db204a; }
.quick-tile.teal i { color: #10a5a2; }

.family-tree-tile i {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .95), transparent 28%),
    linear-gradient(135deg, #0a84dd, #063ac1);
  color: #fff !important;
  box-shadow: 0 18px 36px rgba(7, 90, 199, .22);
}

.home-metrics-bar {
  margin: 28px 8px 0;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(202, 219, 242, .95);
  border-radius: 28px;
  box-shadow: 0 16px 42px rgba(22, 68, 130, .12), inset 0 0 0 5px rgba(255,255,255,.52);
  direction: ltr;
}

.home-metric {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  border-left: 1px solid #cbdcf1;
  direction: rtl;
}

.home-metric:last-child {
  border-left: 0;
}

.home-metric i {
  grid-row: span 2;
  font-size: 2.5rem;
}

.home-metric strong {
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 900;
}

.home-metric span {
  color: #12213e;
  font-weight: 800;
}

.home-metric.blue i,.home-metric.blue strong { color: #0a74d9; }
.home-metric.green i,.home-metric.green strong { color: #15905a; }
.home-metric.purple i,.home-metric.purple strong { color: #6c35df; }
.home-metric.amber i,.home-metric.amber strong { color: #e48a12; }
.home-metric.ink i,.home-metric.ink strong { color: #061b42; }

.home-main-grid,
.home-lower-grid {
  display: grid;
  gap: 24px;
  margin-top: 30px;
  direction: ltr;
}

.home-main-grid {
  grid-template-columns: 1fr 1.25fr 1fr;
}

.home-lower-grid {
  grid-template-columns: 1.08fr 1fr;
}

.home-panel {
  background: #fff;
  border: 1px solid rgba(203, 220, 242, .95);
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(22, 68, 130, .12), inset 0 0 0 5px rgba(255,255,255,.45);
  padding: 20px;
  overflow: hidden;
  direction: rtl;
}

.home-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.home-panel-head.centered {
  justify-content: center;
}

.home-panel-head h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #061b42;
  font-weight: 900;
}

.home-panel-head a,
.panel-action {
  color: #0c62d5;
  text-decoration: none;
  background: #eef6ff;
  border: 1px solid #d5e7ff;
  border-radius: 999px;
  padding: 7px 13px;
  font-weight: 800;
}

.home-news-list,
.home-event-list {
  display: grid;
  gap: 12px;
}

.home-news-list[data-news-slider] {
  --home-news-item-height: 214px;
  display: block;
  height: calc((var(--home-news-item-height) * 2) + 12px);
  overflow-x: hidden;
  overflow-y: auto;
  padding-inline-end: 5px;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-color: #8bb9ee #eef6ff;
  scrollbar-width: thin;
}

.home-news-list[data-news-slider]::-webkit-scrollbar {
  width: 7px;
}

.home-news-list[data-news-slider]::-webkit-scrollbar-track {
  background: #eef6ff;
  border-radius: 999px;
}

.home-news-list[data-news-slider]::-webkit-scrollbar-thumb {
  background: #8bb9ee;
  border-radius: 999px;
}

.home-news-list[data-news-slider] .home-news-item {
  height: var(--home-news-item-height);
  margin-bottom: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.home-news-list[data-news-slider] .home-news-item:last-child {
  margin-bottom: 0;
}

.home-news-list[data-news-slider] .home-news-item strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-news-list[data-news-slider] .home-news-item p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-news-item,
.home-event-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  color: #061b42;
  text-decoration: none;
  background: rgba(250,252,255,.82);
  border: 1px solid #deebfb;
  border-radius: 16px;
  padding: 10px;
}

.home-news-item img {
  width: 112px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
}

.home-news-item strong,
.home-event-item strong {
  font-weight: 900;
}

.home-news-item p,
.home-event-item p {
  color: #4c617f;
  line-height: 1.55;
  margin: 4px 0;
  font-size: .92rem;
}

.home-news-item span {
  color: #59708e;
  font-size: .82rem;
}

.home-event-item {
  grid-template-columns: 76px 1fr;
}

.datebox {
  min-height: 82px;
  display: grid;
  place-items: center;
  align-content: center;
  background: linear-gradient(180deg, #eef6ff, #f9fcff);
  border-radius: 18px;
  color: #0e48a7;
}

.datebox strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.datebox small {
  color: #245caa;
  font-weight: 900;
}

.panel-action {
  display: block;
  text-align: center;
  margin-top: 14px;
}

.tree-illustration {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: end center;
  background:
    url("../images/home-seed/tree-family-art.jpg") center 42% / min(86%, 430px) auto no-repeat,
    radial-gradient(circle at 50% 26%, rgba(72, 155, 91, .10), transparent 32%),
    linear-gradient(180deg, #f8fcff, #eef7ff);
  border-radius: 22px;
  overflow: hidden;
  padding-bottom: 28px;
}

.tree-illustration.tree-family-real {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
  min-height: 430px;
  padding: 24px 20px 78px;
  background:
    radial-gradient(circle at 50% 38%, rgba(45, 143, 76, .14), transparent 36%),
    linear-gradient(180deg, #f9fdff, #eaf6ff);
}

.tree-family-intro {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #0c683b;
}

.tree-family-intro span {
  font-size: .82rem;
  font-weight: 900;
}

.tree-family-intro strong {
  color: #08235a;
  font-size: 1.08rem;
}

.tree-family-people {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tree-family-people::before {
  content: "";
  position: absolute;
  inset: 18% 22% 15%;
  z-index: -1;
  border: 2px solid rgba(63, 143, 79, .2);
  border-radius: 50%;
}

.tree-family-people a {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 10px 6px;
  color: #08235a;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, .9);
  border: 1px solid #d6e7ff;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(22, 68, 130, .1);
  transition: transform .2s ease, box-shadow .2s ease;
}

.tree-family-people a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(22, 68, 130, .16);
}

.tree-family-people img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center 24%;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 3px #bcd9f7;
}

.tree-family-people strong {
  overflow: hidden;
  max-width: 100%;
  font-size: .88rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-family-people span {
  color: #52708f;
  font-size: .72rem;
}

.tree-illustration .tree-canopy,
.tree-illustration .tree-trunk {
  display: none;
}

.tree-canopy {
  position: absolute;
  top: 42px;
  width: 360px;
  height: 250px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 48%, rgba(42, 130, 70, .32), transparent 36%),
    radial-gradient(circle at 30% 35%, rgba(72, 166, 89, .28), transparent 34%),
    radial-gradient(circle at 70% 38%, rgba(72, 166, 89, .24), transparent 34%);
}

.tree-canopy::before,
.tree-canopy::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 3px solid rgba(71, 130, 67, .45);
  border-radius: 50%;
  top: 35px;
}

.tree-canopy::before { right: 30px; }
.tree-canopy::after { left: 30px; }

.tree-face {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  border: 3px solid #d6e7ff;
  color: #08235a;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(22, 68, 130, .18);
}

.tree-face.f1 { right: 148px; top: 0; }
.tree-face.f2 { right: 80px; top: 48px; }
.tree-face.f3 { right: 205px; top: 55px; }
.tree-face.f4 { right: 42px; top: 126px; }
.tree-face.f5 { right: 150px; top: 112px; }
.tree-face.f6 { right: 245px; top: 130px; }
.tree-face.f7 { right: 95px; top: 178px; }
.tree-face.f8 { right: 190px; top: 190px; }
.tree-face.f9 { right: 300px; top: 82px; }
.tree-face.f10 { right: 12px; top: 72px; }
.tree-face.f11 { right: 265px; top: 20px; }
.tree-face.f12 { right: 20px; top: 186px; }

.tree-trunk {
  width: 210px;
  height: 180px;
  display: grid;
  place-items: end center;
  text-align: center;
  padding: 0 20px 30px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(90deg, #754315, #b87927, #6e3d14);
  clip-path: polygon(38% 0, 62% 0, 74% 100%, 26% 100%);
}

.tree-btn {
  position: absolute;
  bottom: 18px;
  z-index: 2;
  color: #08235a;
  background: rgba(255,255,255,.88);
  border: 1px solid #d6e7ff;
  box-shadow: 0 12px 28px rgba(22, 68, 130, .16);
  border-radius: 999px;
  padding: 12px 26px;
  text-decoration: none;
  font-weight: 900;
}

.home-album-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 128px;
  gap: 8px;
}

.home-album-grid a {
  border-radius: 14px;
  overflow: hidden;
}

.home-album-grid a:nth-child(1),
.home-album-grid a:nth-child(3) {
  grid-column: span 2;
}

.home-album-grid a:nth-child(4),
.home-album-grid a:nth-child(5) {
  grid-column: span 3;
}

.home-album-grid a:nth-child(2),
.home-album-grid a:nth-child(6) {
  grid-column: span 1;
}

.home-album-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.world-map-card {
  position: relative;
  min-height: 265px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 24% 44%, #8cc9ff 0 1.4px, transparent 1.5px),
    radial-gradient(circle at 58% 40%, #8cc9ff 0 1.4px, transparent 1.5px),
    radial-gradient(circle at 75% 54%, #8cc9ff 0 1.4px, transparent 1.5px),
    linear-gradient(180deg, #f7fbff, #eef7ff);
  background-size: 14px 14px, 14px 14px, 14px 14px, auto;
  overflow: hidden;
  border: 1px solid #dceafe;
}

.world-map-card::before {
  content: "";
  position: absolute;
  inset: 28px;
  background: rgba(29, 116, 216, .12);
  clip-path: polygon(3% 38%, 24% 28%, 37% 42%, 29% 62%, 7% 58%, 48% 32%, 63% 26%, 79% 36%, 91% 47%, 83% 65%, 61% 58%, 48% 70%, 40% 54%);
}

.pin {
  position: absolute;
  font-size: 2.3rem;
  filter: drop-shadow(0 10px 12px rgba(22,68,130,.18));
}

.p1 { right: 42%; top: 34%; color: #08a6d4; }
.p2 { right: 54%; top: 22%; color: #7e38dd; }
.p3 { right: 29%; top: 29%; color: #e39a14; }
.p4 { right: 18%; top: 44%; color: #db2c3c; }

.country-chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.country-chips span {
  background: #f7fbff;
  border: 1px solid #dceafe;
  color: #0c285b;
  border-radius: 13px;
  text-align: center;
  padding: 9px 6px;
  font-weight: 800;
  font-size: .86rem;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
  direction: ltr;
}

.service-strip a {
  min-height: 100px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  column-gap: 12px;
  text-decoration: none;
  color: #08235a;
  background: #fff;
  border: 1px solid #dceafe;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 16px 36px rgba(22, 68, 130, .10);
  direction: rtl;
}

.service-strip i {
  grid-row: span 2;
  color: #0b78d8;
  font-size: 2rem;
}

.service-strip strong {
  font-weight: 900;
}

.service-strip span {
  color: #59708e;
  font-size: .88rem;
}

.home-cta-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 30px;
  direction: ltr;
}

.quote-card,
.join-card {
  min-height: 180px;
  border-radius: 28px;
  border: 1px solid #dceafe;
  box-shadow: 0 18px 42px rgba(22, 68, 130, .12);
  background: #fff;
}

.quote-card {
  position: relative;
  display: grid;
  align-content: center;
  padding: 32px 46px;
  color: #08235a;
  overflow: hidden;
  direction: rtl;
}

.quote-card::before {
  content: "";
  position: absolute;
  inset: 0 62% 0 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.86), rgba(255,255,255,.24)),
    url("../images/shawaf-palestine-hero.png") left center / cover no-repeat;
}

.quote-card span {
  color: #b67b29;
  font-size: 4rem;
  line-height: .4;
}

.quote-card strong {
  font-size: 1.45rem;
  line-height: 1.9;
  position: relative;
  z-index: 1;
}

.join-card {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 30px;
  direction: rtl;
  background:
    radial-gradient(circle at 18% 20%, rgba(11, 120, 216, .14), transparent 34%),
    #fff;
}

.join-card h2 {
  color: #08235a;
  font-weight: 900;
  margin: 0;
  font-size: 2rem;
}

.join-card p {
  color: #59708e;
}

.home-empty {
  padding: 22px;
  color: #59708e;
  background: #f7fbff;
  border: 1px dashed #cbdcf1;
  border-radius: 16px;
}

.member-portal-page {
  padding-top: 32px;
  padding-bottom: 52px;
}

.portal-auth-card,
.portal-topline,
.portal-grid,
.portal-profile-grid,
.portal-metrics,
.committee-strip,
.committee-admin-grid {
  display: grid;
  gap: 16px;
}

.portal-auth-card {
  min-height: 64vh;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
}

.portal-auth-card h1,
.portal-topline h1 {
  color: var(--public-ink);
  font-weight: 800;
  margin: 8px 0;
}

.portal-auth-card p,
.portal-topline p {
  color: var(--public-muted);
  line-height: 1.9;
}

.portal-auth-points,
.portal-actions,
.committee-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-actions {
  justify-content: flex-end;
}

.portal-auth-points span,
.committee-tabs a,
.committee-strip a,
.committee-admin-grid article {
  background: #fff;
  border: 1px solid var(--public-line);
  border-radius: 8px;
  color: var(--public-ink);
  text-decoration: none;
}

.portal-auth-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.portal-login-panel,
.portal-panel,
.portal-metric {
  background: #fff;
  border: 1px solid var(--public-line);
  border-radius: 8px;
  box-shadow: var(--public-shadow);
}

.portal-login-panel,
.portal-panel {
  padding: 20px;
}

.portal-login-panel h2,
.portal-panel h2,
.portal-form-section h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.portal-topline {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 18px;
}

.portal-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.portal-metric {
  padding: 16px;
}

.portal-metric span,
.portal-member-list span,
.portal-request-list span,
.portal-dl dt,
.committee-strip span,
.committee-admin-grid p {
  color: var(--public-muted);
}

.portal-metric span,
.committee-strip strong,
.committee-strip span {
  display: block;
}

.portal-metric strong {
  display: block;
  color: var(--public-ink);
  font-size: 1.5rem;
  margin-top: 6px;
}

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

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-heading h2 {
  margin-bottom: 0;
}

.panel-heading a {
  color: var(--public-teal);
  text-decoration: none;
  font-weight: 700;
}

.portal-member-list,
.portal-request-list {
  display: grid;
  gap: 10px;
}

.portal-member-list article,
.portal-request-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--public-line);
  border-radius: 8px;
  padding: 12px;
}

.portal-dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.portal-dl dd {
  margin: 0;
  font-weight: 700;
}

.portal-form-section {
  border-bottom: 1px solid var(--public-line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.committee-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.committee-strip a,
.committee-admin-grid article {
  padding: 14px;
}

.committee-strip i {
  color: var(--public-teal);
  margin-bottom: 8px;
}

.committee-tabs a {
  padding: 9px 12px;
}

.committee-tabs a.active {
  background: var(--public-teal);
  border-color: var(--public-teal);
  color: #fff;
}

.lightbox-view {
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 23, .86);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.lightbox-view.active {
  display: flex;
}

.lightbox-panel {
  width: min(1100px, 100%);
  position: relative;
}

.lightbox-panel img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  background: #111827;
}

.lightbox-caption {
  color: #fff;
  margin-top: 10px;
}

.lightbox-close {
  position: absolute;
  top: -12px;
  inset-inline-start: -12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--public-ink);
}

@media (max-width: 1040px) {
  .family-nav {
    width: min(100% - 18px, 980px);
    margin-top: 8px;
  }

  .nav-inner {
    align-items: stretch;
  }

  .family-brand,
  .nav-links,
  .public-auth-links {
    order: initial;
  }

  .hero-v2-inner,
  .home-main-grid,
  .home-lower-grid,
  .home-cta-v2 {
    grid-template-columns: 1fr;
  }

  .footer-brand-v2 {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

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

  .hero-side-brand {
    display: none;
  }

  .hero-v2-content {
    transform: translateY(-96px);
  }

  .home-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-metrics-bar,
  .service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-metric {
    border-left: 0;
    border-bottom: 1px solid #cbdcf1;
    padding-bottom: 10px;
  }

  .country-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-inner {
    align-items: flex-start;
    padding: 12px 0;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .hero-grid,
  .split-layout,
  .detail-layout,
  .contact-layout,
  .portal-auth-card,
  .portal-topline,
  .portal-grid,
  .portal-profile-grid {
    grid-template-columns: 1fr;
  }

  .hero-collage {
    max-width: 560px;
  }

  .grid-3,
  .grid-4,
  .gallery-grid,
  .gallery-page-grid,
  .committee-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .member-portal-page > .portal-auth-card {
    padding-top: 48px;
  }

  .new-home-shell > .family-container {
    width: calc(100% - 48px);
  }

  .family-nav {
    width: calc(100% - 18px);
    border-radius: 16px;
    margin-bottom: -74px;
  }

  .nav-inner {
    width: 100%;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 8px 10px;
    gap: 8px;
  }

  .family-brand {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    gap: 6px;
  }

  .family-brand span:not(.brand-mark) {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
  }

  .family-brand .brand-mark {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
  }

  .family-brand strong {
    font-size: .9rem;
    white-space: nowrap;
    text-align: right;
  }

  .nav-menu-toggle {
    order: 1;
    display: grid;
    flex: 0 0 auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 8px;
  }

  .nav-links a {
    min-height: 40px;
    display: grid;
    place-items: center;
    padding: 8px 6px;
    border: 1px solid #dceafe;
    border-radius: 12px;
    background: #f8fbff;
    font-size: .84rem;
  }

  .public-auth-links {
    order: 4;
    width: 100%;
    display: none;
    grid-template-columns: 1fr 44px;
    gap: 8px;
    padding-top: 8px;
  }

  .family-nav.is-open .nav-links,
  .family-nav.is-open .public-auth-links {
    display: grid;
  }

  .family-brand small {
    display: none;
  }

  .admin-pill {
    width: 100%;
  }

  .home-hero-v2 {
    min-height: 560px;
    padding-top: 76px;
    background:
      linear-gradient(180deg, #f3f9ff 0%, #eaf4ff 42%, #dcecff 100%);
  }

  .home-hero-v2::before {
    background-image: url("../images/shawaf-palestine-hero.png");
    background-position: 8% top;
    background-size: 178% auto;
    background-repeat: no-repeat;
  }

  .hero-v2-inner {
    z-index: 8;
  }

  .hero-v2-content {
    position: relative;
    z-index: 9;
    width: min(100% - 28px, 340px);
    transform: translateY(-195px);
  }

  .hero-title-card {
    font-size: clamp(2.05rem, 10.4vw, 2.65rem);
    width: fit-content;
    max-width: 100%;
    padding: 10px 14px 13px;
    border-radius: 20px;
    white-space: nowrap;
  }

  .hero-bottom-slogan {
    top: 306px;
    bottom: auto;
    width: min(100% - 24px, 360px);
    gap: 8px;
    padding: 7px 10px 8px;
    font-size: .96rem;
  }

  .hero-bottom-slogan span {
    width: 30px;
    height: 2px;
  }

  .hero-values {
    position: relative;
    z-index: 12;
    width: min(100% - 18px, 360px);
    margin: 16px auto 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 8px 10px;
    border: 1px solid rgba(193, 211, 235, .88);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 26px rgba(31, 76, 132, .10);
    transform: translateY(88px);
  }

  .hero-values span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #0c1d3f;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
  }

  .hero-values span:not(:last-child)::after {
    content: "|";
    margin: 0 6px 0 3px;
    color: #8aa1c0;
    font-weight: 700;
  }

  .hero-values i {
    font-size: .72rem;
  }

  .home-quick-wrap {
    margin-top: -286px;
  }

  .home-quick-wrap .family-container {
    display: grid;
    gap: 10px;
  }

  .home-quick-wrap,
  .home-quick-wrap .family-container,
  .family-live-ribbon,
  .member-gateway,
  .family-pulse,
  .pulse-main,
  .pulse-card,
  .home-metrics-bar {
    min-width: 0;
  }

  .member-gateway {
    margin: 0 8px;
    padding: 12px;
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 20px;
    overflow: hidden;
  }

  .member-gateway-title {
    justify-content: center;
    gap: 9px;
    text-align: center;
  }

  .member-gateway-title > span {
    display: none;
  }

  .member-gateway-title small {
    font-size: .68rem;
  }

  .member-gateway-title strong {
    font-size: .88rem;
    line-height: 1.45;
  }

  .member-gateway-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .member-gateway-actions a.primary {
    grid-column: 1 / -1;
  }

  .member-gateway-actions a {
    min-height: 42px;
    border-radius: 13px;
    font-size: .82rem;
  }

  .family-pulse {
    margin: 0 8px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pulse-main,
  .pulse-card {
    min-height: 78px;
    border-radius: 18px;
    position: relative;
    z-index: 1;
  }

  .pulse-main {
    padding: 13px 14px;
    justify-items: center;
    text-align: center;
  }

  .pulse-main strong {
    font-size: .88rem;
    line-height: 1.45;
  }

  .pulse-main small,
  .pulse-main span {
    font-size: .7rem;
  }

  .pulse-card {
    grid-template-columns: 38px 48px 1fr;
    padding: 10px;
  }

  .pulse-card > i {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    font-size: 1rem;
  }

  .pulse-card > span {
    font-size: 1rem;
  }

  .pulse-card strong {
    font-size: .8rem;
    line-height: 1.45;
  }

  .family-live-ribbon {
    min-height: 64px;
    margin: 0 8px;
    grid-template-columns: auto 1fr;
    gap: 7px;
    padding: 9px 10px;
    border-radius: 16px;
  }

  .family-live-ribbon strong {
    font-size: .72rem;
  }

  .family-live-ribbon time {
    display: none;
  }

  .family-live-ribbon em {
    grid-column: 1 / -1;
    font-size: .72rem;
    line-height: 1.55;
    text-align: center;
    white-space: normal;
  }

  .home-quick-grid,
  .home-metrics-bar,
  .service-strip,
  .country-chips {
    grid-template-columns: 1fr;
  }

  .home-metrics-bar {
    margin: 0 8px;
    justify-items: center;
  }

  .home-metric {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    row-gap: 4px;
  }

  .home-metric i {
    grid-row: auto;
  }

  .quick-tile {
    min-height: 122px;
    grid-template-columns: 70px 1fr;
    padding-inline: 18px;
    overflow: hidden;
    text-align: right;
  }

  .quick-tile i {
    justify-self: center;
    font-size: 2.4rem;
    transform: translateX(-16px);
  }

  .family-tree-tile i {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    font-size: 1.75rem;
  }

  .home-news-item {
    grid-template-columns: 92px 1fr;
  }

  .home-news-item img {
    width: 92px;
    height: 76px;
  }

  .home-news-list[data-news-slider] {
    --home-news-item-height: 188px;
  }

  .home-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 116px;
  }

  .home-album-grid a {
    grid-column: span 1 !important;
  }

  .tree-illustration {
    min-height: 360px;
  }

  .tree-illustration.tree-family-real {
    min-height: 430px;
  }

  .tree-canopy {
    transform: scale(.78);
    transform-origin: top center;
  }

  .quote-card::before {
    inset: 0;
    opacity: .18;
  }

  .public-hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 42px 0;
  }

  .public-hero h1 {
    font-size: 2.55rem;
  }

  .hero-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .collage-card.c2,
  .collage-card.c3 {
    transform: none;
  }

  .section-head,
  .official-strip,
  .tree-board-head,
  .cta-inner {
    display: block;
  }

  .grid-3,
  .grid-4,
  .gallery-grid,
  .gallery-page-grid,
  .filter-panel,
  .portal-metrics,
  .committee-strip {
    grid-template-columns: 1fr;
  }

  .portal-member-list article,
  .portal-request-list article {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .tree-node {
    min-width: 138px;
  }
}


.family-real-map {
  min-height: 300px;
  background: #eef6ff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #dceafe;
  isolation: isolate;
}

.family-real-map::before {
  content: none;
}

.family-real-map .leaflet-container,
.family-real-map .leaflet-pane,
.family-real-map .leaflet-control,
.family-real-map .leaflet-popup-content {
  font-family: CairoLocal, Tahoma, Arial, sans-serif;
}

.map-fallback {
  min-height: 300px;
  display: grid;
  place-items: center;
  color: #59708e;
  font-weight: 800;
  text-align: center;
  padding: 20px;
  line-height: 1.8;
}

.leaflet-popup-content {
  direction: rtl;
  text-align: right;
}

.world-map-marker {
  position: relative;
  width: 32px !important;
  height: 32px !important;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #075ac7;
  border: 3px solid #fff;
  box-shadow: 0 12px 22px rgba(8, 35, 90, .24);
  color: #fff;
}

.world-map-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 11px;
  height: 11px;
  background: #075ac7;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: translateX(-50%) rotate(45deg);
}

.world-map-marker span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: .9rem;
  font-weight: 900;
}

.palestine-map-marker {
  display: grid;
  place-items: center;
  gap: 2px;
  width: 118px !important;
  height: 82px !important;
  color: #08235a;
  text-align: center;
  transform: translate3d(0, 0, 0);
}

.palestine-map-marker::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 1px solid rgba(7, 90, 199, .32);
  border-bottom: 1px solid rgba(7, 90, 199, .32);
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 10px 18px rgba(8, 35, 90, .14);
}

.palestine-map-marker span,
.palestine-map-marker strong,
.palestine-map-marker small {
  position: relative;
  z-index: 1;
}

.palestine-map-marker .marker-flag {
  display: block;
  position: relative;
  width: 40px;
  height: 28px;
  margin-bottom: -4px;
  border-radius: 7px;
  background: linear-gradient(180deg, #0b0b0b 0 33.333%, #fff 33.333% 66.666%, #148342 66.666% 100%);
  border: 1px solid rgba(7, 90, 199, .22);
  box-shadow: 0 12px 26px rgba(8, 35, 90, .18);
  overflow: hidden;
}

.palestine-map-marker .marker-flag::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 19px;
  background: #cf2334;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.palestine-map-marker strong {
  min-width: 88px;
  padding: 4px 10px 2px;
  border-radius: 999px 999px 8px 8px;
  background: #fff;
  border: 1px solid rgba(7, 90, 199, .22);
  box-shadow: 0 12px 26px rgba(8, 35, 90, .16);
  color: #075ac7;
  font-size: 1rem;
  font-weight: 900;
}

.palestine-map-marker small {
  min-width: 74px;
  padding: 2px 8px 5px;
  margin-top: -4px;
  border-radius: 0 0 999px 999px;
  background: #fff;
  border: 1px solid rgba(7, 90, 199, .18);
  border-top: 0;
  color: #08235a;
  font-size: .72rem;
  font-weight: 900;
}

.footer-social .social-glyph {
  font-family: Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1;
}

.footer-social .fb { background: #1877f2; }
.footer-social .ig { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.footer-social .yt { background: #ff0033; }
.footer-social .tg { background: #229ed9; }
.footer-social .wa { background: #25d366; }

.world-panel .country-chips {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.world-panel .country-chips span {
  display: block;
  line-height: 1.55;
}

.world-panel .country-chips b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: 5px;
  border-radius: 999px;
  background: #075ac7;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: .82rem;
  font-weight: 900;
}

/* 2026 professional experience layer */
body.public-body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 8% 0%, rgba(15, 118, 110, .07), transparent 30rem),
    radial-gradient(circle at 92% 18%, rgba(47, 93, 131, .06), transparent 34rem),
    var(--public-bg);
}

.family-nav {
  box-shadow: 0 10px 34px rgba(20, 44, 68, .06);
}

.family-brand .brand-mark {
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 118, 110, .18);
}

.family-brand strong {
  white-space: nowrap;
}

@media (min-width: 1041px) and (max-width: 1320px) {
  .family-nav {
    width: calc(100% - 24px);
  }

  .nav-inner {
    gap: 8px;
    padding-inline: 12px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a,
  .admin-pill {
    font-size: .88rem;
  }

  .admin-pill {
    padding-inline: 14px;
  }
}

.nav-links a,
.admin-pill,
.search-pill,
body.public-body .btn {
  border-radius: 12px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.admin-pill {
  box-shadow: 0 10px 24px rgba(15, 118, 110, .22);
}

.admin-pill:hover,
body.public-body .btn:hover {
  transform: translateY(-1px);
}

.official-card {
  border-radius: 20px;
  box-shadow: 0 14px 42px rgba(31, 45, 61, .07);
}

.official-card:hover {
  border-color: rgba(15, 118, 110, .28);
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.15), transparent 20rem),
    linear-gradient(120deg, #0b5f59, #274f73 62%, #6f3e3d);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -8rem -11rem auto;
  width: 25rem;
  height: 25rem;
  border: 3rem solid rgba(255,255,255,.05);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero,
.page-hero h1,
.page-hero p,
.page-hero .tag,
.page-hero .eyebrow {
  color: #fff;
}

.page-hero p {
  opacity: .9;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.request-hero .tag {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.26);
}

.pagination-shell {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.pagination-shell .btn {
  min-width: 44px;
  min-height: 44px;
}

body.public-body :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(9, 120, 190, .35);
  outline-offset: 3px;
}

body.public-body input,
body.public-body select,
body.public-body textarea {
  min-height: 48px;
  border-radius: 12px;
}

body.public-body textarea {
  min-height: 136px;
}

@media (max-width: 640px) {
  .family-container {
    width: min(100% - 22px, 1180px);
  }

  .public-hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 34px 0 42px;
    gap: 24px;
  }

  .public-hero h1 {
    font-size: clamp(2.15rem, 13vw, 3.4rem);
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 50px;
  }

  .page-hero-inner {
    padding-block: 42px;
  }

  .official-card {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
@media (max-width: 900px) {
  .article-hero-inner,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-hero-image {
    max-height: 480px;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .article-hero {
    padding: 34px 0;
  }

  .article-gallery {
    grid-template-columns: 1fr;
  }

  .article-content {
    padding: 20px;
  }

  .article-body {
    font-size: 1rem;
  }
}
.tree-family-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.memory-tree-btn{background:#25384f!important}
.tree-person-placeholder{width:58px;height:58px;border-radius:50%;display:grid!important;place-items:center;background:linear-gradient(145deg,#e8f1fa,#d8e6f3);color:#24435f;font-size:1.35rem;border:3px solid #fff;box-shadow:0 0 0 2px #bad4ea}
.memory-filter-link{background:#25384f!important;color:#fff!important;border-color:#25384f!important}
.personality-photo-empty{display:grid;place-items:center;min-height:235px;background:linear-gradient(145deg,#edf3f8,#dce7f0);color:#29445c;font-size:4rem}
.personality-photo-empty span{font-size:.78rem}
.memory-hero{background:linear-gradient(125deg,#192a3d,#40566b)}
.memory-intro{display:flex;align-items:center;gap:16px;padding:20px 24px;margin-bottom:24px;border-radius:22px;background:#fff;border:1px solid #dce5ed;box-shadow:0 12px 30px rgba(25,42,61,.08)}
.memory-intro>i{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:#edf3f8;color:#29445c;font-size:1.4rem}
.memory-intro div{flex:1}.memory-intro strong{font-size:1.15rem;color:#182c42}.memory-intro p{margin:5px 0 0;color:#647488}
.memory-intro>a{padding:10px 16px;border-radius:999px;background:#eef5fb;color:#155fa8;font-weight:800}
.memory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.memory-card{background:#fff;border:1px solid #dbe5ed;border-radius:24px;overflow:hidden;box-shadow:0 12px 30px rgba(26,43,62,.08);display:flex;flex-direction:column}
.memory-photo{height:320px;position:relative;background:linear-gradient(145deg,#edf3f7,#dce6ec);overflow:hidden;display:grid;place-items:center}
.memory-photo img{width:100%;height:100%;object-fit:contain;object-position:center;filter:saturate(.9)}
.memory-photo>span{position:absolute;right:14px;bottom:14px;padding:7px 12px;border-radius:999px;background:rgba(20,32,45,.86);color:#fff;font-size:.8rem;font-weight:800}
.memory-photo-empty{display:grid;place-items:center;background:linear-gradient(145deg,#e9eef3,#cfdbe5);color:#53697d;font-size:4rem}
.memory-body{padding:20px;display:flex;flex-direction:column;gap:8px;flex:1}
.memory-body small{color:#748295}.memory-body h2{margin:0;color:#152b42;font-size:1.25rem}.memory-body>strong{color:#9b6b28}.memory-body p{color:#5f7082;line-height:1.9;margin:2px 0 12px}
.memory-source{margin-top:auto;display:inline-flex;align-items:center;gap:7px;width:max-content;padding:9px 13px;border-radius:999px;background:#edf5ff;color:#1466b8;font-weight:800}
@media(max-width:980px){.memory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.memory-grid{grid-template-columns:1fr}.memory-intro{align-items:flex-start;flex-wrap:wrap}.memory-intro>a{width:100%;text-align:center}.memory-photo{height:280px}.personality-photo{height:300px}}
.panel-count {
    display: inline-flex;
    align-items: center;
    margin-inline-start: .35rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: #e9f3ff;
    color: #0c60be;
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
}
