/* ── ACF WYSIWYG list reset — Tailwind preflight strips markers ─────────── */
/* Override main.css padding-left on the wrapper div */
.vrb-card-about-list { padding-left: 0 !important; }
.vrb-card-about-list ul,
.vrb-card-about-list ol {
  padding-left: 0 !important;
  margin: 0 !important;
  list-style-position: inside !important;
}
.vrb-card-about-list ul { list-style-type: disc !important; }
.vrb-card-about-list ol { list-style-type: decimal !important; }
.vrb-card-about-list li { display: list-item !important; }

/* ══ ALL VOLUNTEER BLOCK (avb-*) ══════════════════════════════════════════ */
/* Full CSS preserved so deprecated v1 blocks (pure avb-* markup) still render
   correctly. New Tailwind-classed markup is additive — same values, no conflict. */

/* ── Section wrapper ─────────────────────────────────────────────────────── */
.avb-section {
  width: 100%;
  background: #fff5f0 !important;
  padding: clamp(40px, 5vw, 64px) 0;
}

/* ── Inner container (deprecated v1 only — new markup uses Tailwind flex) ── */
.avb-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* ── Header (deprecated v1) ──────────────────────────────────────────────── */
.avb-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1032px;
  text-align: center;
  margin: 0;
}
.avb-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.3;
  color: #1d2026;
  margin: 0;
  padding: 0;
  text-transform: capitalize;
  max-width: 819px;
}
.avb-subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.5;
  color: #4d4d4d;
  margin: 0;
  padding: 0;
}

/* ── Filter Bar ──────────────────────────────────────────────────────────── */
.avb-filter-bar {
  width: 100%;
  max-width: 1320px;
  background: #fefefe;
  border-radius: 8px;
  padding: 16px 32px;
  margin: -20px 0 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  box-sizing: border-box;
  overflow: hidden; /* clip anything that somehow still escapes */
}
.avb-search-wrap {
  flex: 1 1 0;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9f3ef;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  padding: 16px;
}
.avb-search-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-dgf-dark);
  opacity: 0.55;
}
.avb-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: "Roboto", "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-dgf-dark);
  outline: none;
  min-width: 0;
}
.avb-search-input::placeholder { color: var(--color-dgf-dark); opacity: 0.7; }

.avb-filter-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  /* Override Tailwind flex-shrink-0 so the row can shrink inside the bar */
  flex: 0 1 auto !important;
  min-width: 0;
  /* Horizontal scroll when buttons overflow — scrollbar hidden */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;       /* Firefox */
  flex-wrap: nowrap !important; /* keep buttons in a single row */
}
.avb-filter-btns::-webkit-scrollbar { display: none; } /* Chrome / Safari */
.avb-filter-btn {
  background: #f7e9dd;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  padding: 16px 32px;
  font-family: "Roboto", "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-dgf-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.avb-filter-btn:hover { background: #f2dcc8; }
.avb-filter-btn.avb-filter-active {
  background: #f2994a;
  color: #ffffff;
  border-color: #f2994a;
}

/* ── Cards Grid ──────────────────────────────────────────────────────────── */
.avb-cards-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 410px));
  justify-content: center;
  gap: 30px;
}

/* ── No results ──────────────────────────────────────────────────────────── */
.avb-no-results {
  width: 100%;
  text-align: center;
  color: #6b7280;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

/* ══ MODAL (avb-modal-*) — Redesigned ══════════════════════════════════════ */

/* Overlay — JS toggles .avb-modal-open ──────────────────────────────────── */
.avb-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.avb-modal-overlay.avb-modal-open {
  display: flex;
  animation: avb-fade 0.22s ease forwards;
}
@keyframes avb-fade {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* Modal panel ────────────────────────────────────────────────────────────── */
.avb-modal {
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
  filter: none !important;        /* remove old drop-shadow blur */
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;               /* clips teal header to rounded corners */
}

/* Close button — dark circle for contrast against white header ───────────── */
.avb-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1.5px solid #cfd6dc;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.18s, border-color 0.18s;
}
.avb-modal-close:hover { background: #f5f5f5; border-color: #b0b8c1; }
.avb-modal-close svg { width: 15px; height: 15px; }
/* Keep original dark stroke — works against white header */
.avb-modal-close svg path { stroke: #374151; }

/* Scroll wrapper ──────────────────────────────────────────────────────────── */
.avb-modal-scroll {
  display: flex;
  flex-direction: column;
  gap: 0 !important;        /* override Tailwind gap-5 */
  padding: 0 !important;    /* override Tailwind pb-6 */
  overflow-y: auto;
  max-height: 90vh;
  -webkit-overflow-scrolling: touch;
}

/* ── Header: clean white, icon stacked above title ───────────────────────── */
.avb-modal-head {
  background: #ffffff !important;
  padding: 24px 56px 20px 24px !important; /* right padding clears close button */
  border-radius: 0 !important;
  border-bottom: 1px solid #f0f2f4;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 14px !important;
  margin: 0;
}

.avb-modal-icon-wrap {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f6f9;
  border: 1px solid #e8ecf0;
  margin: 0;
}
.avb-modal-icon-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avb-modal-icon-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #f3f6f9;
}

.avb-modal-head-text {
  display: flex;
  flex-direction: column;
  gap: 10px !important;  /* override Tailwind gap-4 */
  min-width: 0;
  width: 100%;
}

.avb-modal-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.8vw, 26px) !important;
  line-height: 1.25;
  color: #1a1a1a !important;
  margin: 0;
  padding: 0;
  text-transform: capitalize;
}

.avb-modal-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.avb-modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fdeade !important;
  color: #ff6636 !important;
  padding: 6px 16px;
  border-radius: 20px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.3px;
  text-transform: capitalize;
  white-space: nowrap;
  width: fit-content;
  border: none;
}

/* ── Description ──────────────────────────────────────────────────────────── */
.avb-modal-desc {
  background: #ffffff !important;
  padding: 20px 24px !important;
  border-radius: 0 !important;
  margin: 0 !important;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 15px !important;
  line-height: 1.7;
  color: #4d4d4d;
  border-bottom: 1px solid #f0f2f4;
}

.avb-modal-sep { display: none !important; }

/* ── Accordion ────────────────────────────────────────────────────────────── */
.avb-modal-accordion {
  display: flex;
  flex-direction: column;
  gap: 0 !important;      /* override Tailwind gap-5 */
  padding: 0 !important;  /* override Tailwind px-6 */
  margin: 0;
  background: #ffffff;
}

.avb-modal-acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  cursor: pointer;
  background: #f7f9fa;
  border-top: 1px solid #eef0f2;
  border-bottom: 1px solid #eef0f2;
  user-select: none;
  transition: background 0.15s;
}
.avb-modal-acc-header:hover { background: #edf2f5; }

.avb-modal-acc-label {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 18px !important;
  line-height: 1.4;
  color: #1a1a1a;
  text-transform: none;
  letter-spacing: 0;
}

.avb-modal-acc-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #1a1a1a;
  transition: transform 0.22s;
}
.avb-modal-acc-arrow.avb-acc-rotated { transform: rotate(180deg); }

/* Accordion body — JS toggles .avb-acc-open ─────────────────────────────── */
.avb-modal-acc-body {
  display: none;
  flex-direction: column;
  gap: 0 !important;           /* override Tailwind */
  background: #ffffff !important;
  border-radius: 0 !important; /* override Tailwind rounded-t-[6px] */
  padding: 0 !important;       /* override Tailwind p-6 */
}
.avb-modal-acc-body.avb-acc-open { display: flex; }

/* ── Sub-sections ─────────────────────────────────────────────────────────── */
.avb-modal-sub-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 18px 24px;
  border-bottom: 1px solid #f5f5f5;
}
.avb-modal-sub-sec:last-child { border-bottom: none; }

/* Remove old ::before rule */
.avb-modal-sub-sec + .avb-modal-sub-sec::before {
  display: none;
  height: 0;
  margin: 0;
  background: transparent;
}

/* Section label — bold dark, matches Figma */
.avb-modal-sub-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 15px !important;
  line-height: 1.4;
  color: #1a1a1a;
  margin: 0;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}

/* Lists — about, skills, tools */
.avb-modal-about-list,
.avb-modal-skills-list,
.avb-modal-tools-list {
  margin: 6px 0 0;
  padding-left: 20px;
  list-style: disc;
}
.avb-modal-about-list li,
.avb-modal-skills-list li,
.avb-modal-tools-list li {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  color: #4d4d4d;
  display: list-item;
}

/* Plain-text value fields */
.avb-modal-task-val,
.avb-modal-time-val,
.avb-modal-loc-val,
.avb-modal-commit-val {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  color: #4d4d4d;
  margin: 6px 0 0;
  padding: 0;
}

/* ── Apply button ─────────────────────────────────────────────────────────── */
.avb-modal-apply-wrap {
  background: #ffffff;
  padding: 16px 24px 20px;
  border-radius: 0;
  flex-shrink: 0;
  border-top: 1px solid #f0f2f4;
}
.avb-modal-apply-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  background: #429CBB;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s ease;
  padding: 0 16px;
}
.avb-modal-apply-btn:hover  { background: #347d97; color: #ffffff; }
.avb-modal-apply-btn:active { background: #2d6880; color: #ffffff; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .avb-filter-bar  { flex-wrap: wrap; padding: 14px 18px; gap: 12px; }
  .avb-search-wrap { flex: 1 1 100%; padding: 14px; }
  /* Full-width scrollable button row on tablet/mobile */
  .avb-filter-btns { flex: 1 1 100% !important; gap: 10px; }
  .avb-filter-btn  { padding: 10px 18px; flex-shrink: 0; }
}
@media (max-width: 920px) {
  .avb-cards-grid { grid-template-columns: repeat(2, minmax(0, 410px)); }
}
@media (max-width: 600px) {
  .avb-section          { padding: 32px 0; }
  .avb-cards-grid       { grid-template-columns: 1fr; gap: 20px; }
  /* Modal mobile */
  .avb-modal            { border-radius: 12px !important; }
  .avb-modal-head       { padding: 22px 52px 20px 16px !important; gap: 12px !important; }
  .avb-modal-icon-wrap  { width: 52px; height: 52px; border-radius: 10px; }
  .avb-modal-title      { font-size: 15px !important; }
  .avb-modal-desc       { padding: 16px !important; font-size: 13px !important; }
  .avb-modal-sub-sec    { padding: 14px 16px; }
  .avb-modal-acc-header { padding: 12px 16px; }
  .avb-modal-apply-wrap { padding: 14px 16px 18px; }
}
