/* ============================================================
   Section types (one block per flexible layout)
   ============================================================ */

/* Shared grid column helper: .cols-2 … .cols-5 */
.services-grid, .highlight-grid, .org-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }
.org-grid { gap: 16px; }

/* ---------- Image cards ---------- */
.service-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  color: var(--ink);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card .service-image { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--navy-50); }
.service-card .service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.service-card:hover .service-image img { transform: scale(1.07); }
.service-card .service-body { padding: 0 28px 28px; display: flex; flex-direction: column; flex: 1; }
.service-card .icon {
  width: 60px; height: 60px; background: #fff; color: var(--orange);
  border-radius: 16px; display: grid; place-items: center;
  margin: -32px 0 16px; font-size: 1.75rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  position: relative; z-index: 2;
  transition: background var(--transition), border-color var(--transition);
}
.service-card .icon .icon-img { width: 32px; height: 32px; object-fit: contain; }
.service-card .icon-spacer { height: 24px; }
.service-card:hover .icon { background: var(--orange); border-color: var(--orange); }
.service-card h3 { font-size: 1.375rem; color: var(--navy); margin: 0 0 12px; font-weight: 700; }
.service-card p { color: var(--muted); margin: 0 0 22px; flex: 1; }
.more { color: var(--orange-text); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.more::after { content: var(--arrow); transition: transform var(--transition); }
.service-card:hover .more::after, .org-card:hover .more::after { transform: translateX(var(--arrow-shift)); }

/* ---------- Icon cards ---------- */
.highlight-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; background: #fff; color: var(--ink);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column; align-items: flex-start;
}
.highlight-card:hover { border-color: var(--navy); transform: translateY(-4px); box-shadow: var(--shadow); }
.highlight-card .icon-circle {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: 1.625rem;
  margin-bottom: 20px;
}
.highlight-card .icon-circle .icon-img { width: 30px; height: 30px; object-fit: contain; }
.highlight-card h3 { color: var(--navy); margin: 0 0 10px; font-size: 1.375rem; }
.highlight-card p { color: var(--muted); margin: 0 0 18px; }
/* Equal-height cards: the button sits at the bottom so buttons line up across a row. */
.highlight-grid { align-items: stretch; }
.highlight-card > .btn { margin-top: auto; }

/* ---------- Dark compact cards ---------- */
.org-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.org-card:hover { background: rgba(255,255,255,.10); transform: translateY(-4px); border-color: var(--orange); }
.org-card .ico { font-size: 2rem; margin-bottom: 14px; }
.org-card h3 { color: #fff; font-size: 1.125rem; margin: 0 0 10px; line-height: 1.3; }
.org-card p { color: rgba(255,255,255,.75); font-size: .875rem; margin: 0 0 14px; flex: 1; }
.org-card .more { color: var(--orange); font-size: .875rem; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card .news-image { aspect-ratio: 16/11; position: relative; overflow: hidden; background: var(--navy-50); }
.news-card .news-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.news-card:hover .news-image img { transform: scale(1.05); }
.news-card .news-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(29,29,76,.35) 100%); }
.news-card .news-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-card .news-meta {
  font-size: .8125rem; color: var(--orange-text); font-weight: 700;
  letter-spacing: 1px; margin-bottom: 10px;
}
.news-card h3 { margin: 0 0 12px; font-size: 1.25rem; color: var(--navy); font-weight: 700; line-height: 1.3; }
.news-card p { color: var(--muted); margin: 0 0 18px; font-size: .9375rem; flex: 1; }
.news-card .read-more { color: var(--navy); font-weight: 700; }
.news-card .read-more::after { content: " " var(--arrow); }
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news-card:focus-within { outline: 3px solid var(--orange); outline-offset: 3px; }
.news-card .stretched-link:focus-visible { outline: none; }

/* Text-only news card (posts have no featured image) */
.news-grid:has(.news-card--text) { gap: 20px; }
.news-card--text {
  border-top: 2px solid var(--orange);
  box-shadow: var(--shadow-sm);
}
.news-card--text:hover { transform: translateY(-3px); }
.news-card--text .news-body { padding: 22px 24px 20px; }
.news-card--text .news-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  letter-spacing: 0; margin-bottom: 8px; color: var(--muted); font-weight: 500;
}
.news-card--text .news-meta__label {
  color: var(--orange-text); font-weight: 700;
  padding-inline-start: 10px; border-inline-start: 1px solid var(--line);
}
.news-card--text h3 { font-size: 1.125rem; margin-bottom: 8px; }
.news-card--text p {
  flex: 0 0 auto; font-size: .9375rem; line-height: 1.6; margin-bottom: 14px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}
.news-card--text .read-more { font-size: .9375rem; margin-top: auto; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 700;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty-state { text-align: center; color: var(--muted); font-size: 1.125rem; }

/* ---------- Donate banner ---------- */
.donate-banner {
  background:
    radial-gradient(800px 400px at 90% 50%, rgba(254,119,0,.25), transparent 70%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff; border-radius: var(--radius-lg);
  padding: 60px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.donate-banner::before {
  content: ""; position: absolute; inset-inline-end: -100px; bottom: -100px;
  width: 360px; height: 360px; background: var(--orange); opacity: .12; border-radius: 50%;
}
.donate-banner > * { position: relative; }
.section .donate-banner h2 { color: #fff; margin: 0 0 14px; font-size: 2.25rem; }
.donate-banner p { color: rgba(255,255,255,.85); margin: 0 0 26px; font-size: 1.0625rem; }
.donate-banner__aside { text-align: center; }
.donate-banner .aside-icon { font-size: 5rem; line-height: 1; margin-bottom: 12px; }
.donate-banner .aside-label { font-size: .875rem; color: rgba(255,255,255,.75); margin-bottom: 8px; }
.donate-banner .aside-number { font-size: 3.5rem; font-weight: 800; color: var(--orange); line-height: 1; }
.donate-banner .aside-note { margin: 10px 0 0; }

/* ---------- Stats ---------- */
.section--stats { background-image: radial-gradient(800px 400px at 50% 0%, rgba(29,29,76,.06), transparent 70%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-grid--3 { grid-template-columns: repeat(3, 1fr); }
.stat-card {
  background: #fff; border-radius: var(--radius);
  padding: 36px 24px; box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.bg-white .stat-card { border: 1px solid var(--line); }
.bg-navy .stat-card { background: rgba(255,255,255,.06); box-shadow: none; }
.bg-navy .stat-card .label { color: rgba(255,255,255,.75); }
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.stat-card .number { font-size: 3.25rem; color: var(--orange); font-weight: 800; line-height: 1; margin-bottom: 8px; letter-spacing: -1px; }
.stat-card .label { color: var(--muted); font-size: .875rem; line-height: 1.5; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-block: 20px; }
.timeline::before {
  content: ""; position: absolute;
  inset-inline-start: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--line); transform: translateX(50%);
}
[dir="ltr"] .timeline::before { transform: translateX(-50%); }
.timeline-item {
  display: grid; grid-template-columns: 1fr 60px 1fr;
  gap: 32px; margin-bottom: 36px; align-items: center;
}
.timeline-item .dot {
  grid-column: 2; grid-row: 1;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--orange); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--orange);
  margin-inline: auto;
}
.timeline-item .content {
  grid-row: 1;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; box-shadow: var(--shadow-sm);
}
.timeline-item.left .content { grid-column: 1; }
.timeline-item.right .content { grid-column: 3; }
.timeline-item .year { color: var(--orange-text); font-weight: 800; font-size: 1.375rem; margin-bottom: 6px; }
.timeline-item h3 { color: var(--navy); margin: 0 0 6px; font-size: 1.125rem; }
.timeline-item p { color: var(--muted); margin: 0; font-size: .9375rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 20px; transition: all var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card .avatar {
  width: 112px; height: 112px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cream), var(--navy-50));
  display: grid; place-items: center; font-size: 2.75rem; overflow: hidden;
}
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { color: var(--navy); margin: 0 0 4px; font-size: 1.125rem; }
.team-card .role { color: var(--orange-text); font-weight: 700; font-size: .8125rem; letter-spacing: 1px; margin-bottom: 10px; }
.team-card .bio { color: var(--muted); font-size: .875rem; margin: 0; }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; padding-top: 18px !important; }
.step-card {
  position: relative; padding: 32px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  counter-increment: step; transition: all var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-card::before {
  content: counter(step);
  position: absolute; top: -18px; inset-inline-start: 28px;
  background: var(--orange); color: #fff;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.125rem;
}
.step-card h3 { color: var(--navy); margin: 8px 0; font-size: 1.125rem; }
.step-card p { color: var(--muted); font-size: .875rem; margin: 0; }

/* ---------- Split ---------- */
.split-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-block--text-only { grid-template-columns: minmax(0, 800px); }
.split-block.reverse .split-image { order: -1; }
.split-block .split-image { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-block .split-image img { width: 100%; height: 100%; object-fit: cover; }
/* Diagrams / infographics: show the whole image at its own proportions. */
.split-block .split-image--contain { aspect-ratio: auto; box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: #fff; }
.split-block .split-image--contain img { height: auto; object-fit: contain; }
.section .split-block h2 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); }
.split-content { color: var(--ink); }
.split-content p { color: var(--muted); margin: 0 0 16px; }
.split-content ul, .split-content ol { padding-inline-start: 20px; line-height: 1.85; margin: 0 0 16px; }
.split-content a { color: var(--orange-text); text-decoration: underline; }
.bg-navy .split-content, .bg-navy .split-content p { color: rgba(255,255,255,.85); }
.bg-navy .split-content a { color: var(--orange); }
.split-text .btn-row { margin-top: 24px; }

/* Numbered list in 2 columns with orange number badges.
   In the editor: a numbered list with the class "numbered-list"; the bold part is the item title. */
ol.numbered-list {
  list-style: none; counter-reset: bekol-n;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px;
  padding: 0; margin: 8px 0 0; line-height: 1.6;
}
ol.numbered-list li {
  counter-increment: bekol-n; position: relative;
  padding-inline-start: 46px; min-height: 34px;
  color: var(--muted); font-size: .9375rem;
}
ol.numbered-list li::before {
  content: counter(bekol-n);
  position: absolute; inset-inline-start: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: .9375rem; line-height: 1;
}
ol.numbered-list li strong { display: block; color: var(--navy); font-size: 1rem; margin-bottom: 2px; }
@media (max-width: 640px) {
  ol.numbered-list { grid-template-columns: 1fr; gap: 18px; }
}

/* Link list: "more info" links under a text, each in its own light box.
   In the editor: a bulleted list with the class "link-list". */
ul.link-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; line-height: 1.6; }
ul.link-list li {
  margin: 0; padding: 12px 16px; border-radius: 12px;
  background: var(--navy-50); color: var(--ink); font-size: .9375rem;
}
.bg-soft ul.link-list li { background: #fff; border: 1px solid var(--line); }
ul.link-list a { font-weight: 700; white-space: nowrap; }

/* Photo grid under the text: the "גלריה מתחת לטקסט" field of split / free text sections. */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 28px 0 0; }
.prose > .photo-grid:first-child { margin-top: 0; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; margin: 0; }
@media (max-width: 640px) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  /* Odd count: the last photo takes the full row instead of leaving an empty cell. */
  .photo-grid img:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

/* Link tiles: a row of large navy link buttons (e.g. the four HMOs).
   In the editor: a <div class="link-tiles"> with one link per tile. */
.link-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 24px 0 0; }
.split-content .link-tiles a,
.prose .link-tiles a,
.prose .link-tiles a:not(.wp-block-button__link):not(.btn),
.link-tiles a {
  display: grid; place-items: center; text-align: center;
  min-height: 84px; padding: 14px 16px; border-radius: 12px;
  background: var(--navy); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.0625rem; line-height: 1.3;
  transition: background var(--transition), transform var(--transition);
}
.split-content .link-tiles a:hover,
.prose .link-tiles a:hover,
.prose .link-tiles a:not(.wp-block-button__link):not(.btn):hover,
.link-tiles a:hover { background: var(--orange); color: #fff; transform: translateY(-2px); }
@media (max-width: 640px) {
  .link-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  ul.link-list a { white-space: normal; }
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--navy); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 28px;
  color: var(--navy); font-weight: 700; font-size: 1.125rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--orange); font-size: 1.75rem; font-weight: 300; line-height: 1; transition: transform var(--transition); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 28px 22px; color: var(--muted); line-height: 1.7; }
.faq-item .answer > :first-child { margin-top: 0; }
.faq-item .answer > :last-child { margin-bottom: 0; }

/* ---------- Tiers ---------- */
.tiers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tier-card {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; display: flex; flex-direction: column;
  transition: all var(--transition); position: relative;
}
.tier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tier-card.featured { border-color: var(--orange); background: linear-gradient(180deg, var(--cream) 0%, #fff 40%); }
.tier-card .badge {
  position: absolute; top: -14px; inset-inline-end: 30px;
  background: var(--orange); color: #fff;
  padding: 6px 14px; border-radius: 999px; font-size: .8125rem; font-weight: 700; letter-spacing: 1px;
}
.tier-card h3 { color: var(--navy); margin: 0 0 6px; font-size: 1.5rem; }
.tier-card .tier-sub { color: var(--muted); margin-bottom: 22px; font-size: .875rem; }
.tier-card .price { color: var(--navy); font-size: 2.625rem; font-weight: 800; line-height: 1; }
.tier-card .price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.tier-card ul { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tier-card li { display: flex; gap: 10px; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.tier-card li::before { content: "\2713"; color: var(--orange); font-weight: 800; flex: 0 0 auto; }

/* ---------- Callout ---------- */
.callout {
  background: linear-gradient(135deg, #FEF1E2 0%, var(--cream) 100%);
  border: 2px solid var(--orange); border-radius: var(--radius);
  padding: 28px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.callout__icon { font-size: 3.5rem; line-height: 1; }
.callout__text { flex: 1; min-width: 240px; }
.section .callout__title { font-weight: 800; color: var(--navy); font-size: 1.375rem; margin: 0 0 6px; letter-spacing: 0; }
.callout__text p { color: var(--muted); margin: 0; }

/* ---------- Map ---------- */
.map-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); aspect-ratio: 16/7; background: var(--bg-soft);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.section--map .btn-row { margin-top: 24px; }

/* ---------- Prose (editor content + free text) ---------- */
.prose { max-width: 800px; margin-inline: auto; }
.prose--wide { max-width: none; }
.prose--center { text-align: center; }
.prose--center p { font-size: 1.125rem; color: var(--muted); }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--navy); margin-block: 28px 12px; }
.section .prose h2 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); }
.prose h3 { font-size: 1.375rem; font-weight: 700; }
.prose h4 { font-size: 1.125rem; font-weight: 700; }
.prose p { margin-block: 0 16px; line-height: 1.75; }
.prose ul, .prose ol { padding-inline-start: 22px; line-height: 1.75; margin-block: 0 16px; }
.prose li { margin-bottom: 6px; }
.prose blockquote {
  border-inline-start: 4px solid var(--orange);
  margin: 24px 0; padding: 8px 22px;
  color: var(--muted); font-size: 1.125rem; font-style: italic;
}
.prose a:not(.wp-block-button__link):not(.btn) { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; }
.bg-navy .prose, .bg-navy .prose h2, .bg-navy .prose h3 { color: #fff; }

/* ---------- Documents ---------- */
.docs-grid { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.docs-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.docs-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.doc-card {
  height: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.bg-white .doc-card { background: var(--bg-soft); }
.doc-card:hover, .doc-card:focus-visible { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.doc-card__icon {
  flex: 0 0 52px; height: 52px; border-radius: 14px;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  transition: background var(--transition);
}
.doc-card:hover .doc-card__icon { background: var(--orange); }
.doc-card__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.doc-card__title { color: var(--navy); font-weight: 700; font-size: 1.0625rem; line-height: 1.35; }
.doc-card__meta { color: var(--muted); font-size: .8125rem; display: flex; flex-wrap: wrap; gap: 6px; }
.doc-card__action { color: var(--orange-text); font-weight: 700; }
.doc-card__action::after { content: " " var(--arrow); }

/* ---------- Logos / partners ---------- */
.logos-grid { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.logos-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.logos-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.logos-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.logo-card__inner {
  height: 100%; min-height: 120px; padding: 18px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
a.logo-card__inner:hover, a.logo-card__inner:focus-visible { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.logo-card__inner img { max-width: 85%; max-height: 70px; width: auto; height: auto; object-fit: contain; transition: filter var(--transition), opacity var(--transition); }
.logos-grid--gray .logo-card__inner img { filter: grayscale(1); opacity: .75; }
.logos-grid--gray .logo-card__inner:hover img,
.logos-grid--gray .logo-card__inner:focus-visible img { filter: none; opacity: 1; }
.logo-card__name { color: var(--navy); font-weight: 700; font-size: .9375rem; line-height: 1.35; transition: color var(--transition); }
/* Text-only partners follow the same grey → colour behaviour as the logos. */
.logos-grid--gray .logo-card__name { color: var(--muted); }
.logos-grid--gray .logo-card__inner:hover .logo-card__name,
.logos-grid--gray .logo-card__inner:focus-visible .logo-card__name { color: var(--navy); }
.bg-navy .logo-card__inner { background: rgba(255,255,255,.95); }

/* ---------- Events ---------- */
.event-badge {
  position: absolute; z-index: 2; top: 16px; inset-inline-start: 16px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  min-width: 64px; padding: 8px 10px; text-align: center; line-height: 1.1;
  display: flex; flex-direction: column;
}
.event-badge__day { color: var(--orange); font-size: 1.75rem; font-weight: 800; }
.event-badge__month { color: var(--navy); font-size: .8125rem; font-weight: 700; }
.event-card .event-meta {
  list-style: none; padding: 0; margin: -4px 0 14px; flex: 0 0 auto;
  display: flex; flex-direction: column; gap: 6px;
  color: var(--navy); font-size: .875rem; font-weight: 600; line-height: 1.4;
}
.event-card .event-meta__item { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.event-card .event-meta__icon { flex: 0 0 16px; margin-top: .1em; color: var(--orange); }
.event-card.is-past .event-meta__icon { color: var(--muted); }
.event-card.is-past .event-badge { background: var(--navy-50); box-shadow: none; }
.event-card.is-past .event-badge__day { color: var(--muted); }
.event-card.is-past .news-image img { filter: grayscale(.6); }
.events-empty {
  text-align: center; color: var(--muted); font-size: 1.125rem;
  background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 32px; margin: 0;
}
.bg-soft .events-empty { background: #fff; }
.events-past { margin-top: 64px; }
.events-past__title { color: var(--navy); font-size: 1.5rem; margin: 0 0 24px; }
.event-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 20px !important; color: var(--navy); font-weight: 600; }

/* ---------- Final CTA ---------- */
.final-cta {
  background:
    radial-gradient(circle at 80% 20%, rgba(254,119,0,.20), transparent 50%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #fff; text-align: center;
  padding: 90px 24px; border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.section .final-cta h2 { color: #fff; font-size: 2.625rem; margin: 0 0 16px; }
.final-cta p { color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto 28px; font-size: 1.125rem; }
.final-cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cols-3, .cols-4, .services-grid, .highlight-grid, .news-grid, .news-grid--even, .tiers-grid, .steps-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .org-grid.cols-4, .org-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .cols-5 { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .donate-banner { grid-template-columns: 1fr; padding: 40px; }
  .final-cta { padding: 60px 24px; }
  .split-block { grid-template-columns: 1fr; gap: 28px; }
  .split-block.reverse .split-image { order: 0; }
  .split-block .split-image { max-width: 540px; margin-inline: auto; width: 100%; }
  .timeline::before { inset-inline-start: 30px; transform: none; }
  .timeline-item { grid-template-columns: 60px 1fr; gap: 16px; }
  .timeline-item .dot { grid-column: 1; }
  .timeline-item.left .content, .timeline-item.right .content { grid-column: 2; }
  .map-frame { aspect-ratio: 4/3; }
  .logos-grid.cols-4, .logos-grid.cols-5, .logos-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
  .docs-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4, .cols-5,
  .services-grid, .highlight-grid, .org-grid, .org-grid.cols-4, .org-grid.cols-5, .news-grid, .news-grid--even, .tiers-grid, .steps-grid, .team-grid { grid-template-columns: 1fr; }
  .steps-grid { row-gap: 36px; }
  .logos-grid.cols-4, .logos-grid.cols-5, .logos-grid.cols-6 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .logo-card__inner { min-height: 100px; padding: 12px; }
  .docs-grid.cols-2, .docs-grid.cols-3 { grid-template-columns: 1fr; }
  .logo-card__name { font-size: .875rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-card { padding: 26px 14px; }
  .stat-card .number { font-size: 2.375rem; }
  .donate-banner { padding: 28px 22px; border-radius: var(--radius); }
  .section .donate-banner h2 { font-size: 1.625rem; }
  /* Long button labels: stack full-width and wrap instead of overflowing the card. */
  .donate-banner > * { min-width: 0; }
  .donate-banner .btn-row .btn { width: 100%; white-space: normal; padding-inline: 18px; }
  .final-cta { padding: 50px 22px; }
  .section .final-cta h2 { font-size: 1.625rem; }
  .faq-item summary { padding: 18px 22px; font-size: 1rem; }
  .faq-item .answer { padding: 0 22px 18px; }
  .callout { padding: 22px; }
}

/* SVG icons (bekol_svg) inside existing icon boxes */
.event-card .event-meta__icon { width: 16px; height: 16px; }
.news-meta__dot { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: currentColor; margin-inline-end: .45em; vertical-align: .1em; }
.event-facts li { display: inline-flex; align-items: center; gap: 6px; }
.event-facts .bk-icon { width: 1.15em; height: 1.15em; color: var(--orange); }
