/* Volunteer Opportunity Hub */
body {
  background: #D2FFFB;
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: hidden;
}

/* Scoped to page content only. Setting these on <body> made the shared navbar
   and footer inherit Zain + line-height 1.6 on this page alone, which moved the
   nav links 4.4px and resized the Consult button relative to every other page. */
.volunteer-page,
.hub-modal {
  font-family: 'Zain', 'Zain Fallback', Arial, sans-serif;
  line-height: 1.6;
}

.volunteer-page {
  min-height: 100vh;
  padding: 160px 20px 60px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hand-drawn-border {
  width: 100%;
  max-width: 1400px;
  min-width: 0;
  background: white;
  border: 4px solid #12A89C;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(18, 168, 156, 0.15);
  box-sizing: border-box;
}

.hand-drawn-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background:
    radial-gradient(circle at 15% 15%, #12A89C 3px, transparent 3px),
    radial-gradient(circle at 85% 15%, #12A89C 3px, transparent 3px),
    radial-gradient(circle at 15% 85%, #12A89C 3px, transparent 3px),
    radial-gradient(circle at 85% 85%, #12A89C 3px, transparent 3px),
    linear-gradient(90deg, #12A89C 0%, #12A89C 100%),
    linear-gradient(0deg, #12A89C 0%, #12A89C 100%),
    linear-gradient(90deg, #12A89C 0%, #12A89C 100%),
    linear-gradient(0deg, #12A89C 0%, #12A89C 100%);
  background-size:
    120px 120px,
    120px 120px,
    120px 120px,
    120px 120px,
    100% 4px,
    4px 100%,
    100% 4px,
    4px 100%;
  background-position:
    0 0,
    100% 0,
    0 100%,
    100% 100%,
    0 0,
    0 0,
    0 100%,
    100% 0;
  background-repeat: no-repeat;
  z-index: -1;
  border-radius: 20px;
}

.content-wrapper {
  padding: 40px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Header */
.volunteer-header {
  text-align: center;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.volunteer-header h1 {
  font-family: 'Amatic SC', cursive;
  font-size: 3.5rem;
  color: #333;
  margin: 0 0 20px;
  font-weight: 700;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.volunteer-header p {
  font-family: 'Zain', cursive;
  font-size: 1.3rem;
  color: #666;
  max-width: 640px;
  margin: 0 auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Opportunity Hub Grid */
.opportunity-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}

.opportunity-card {
  background: #fff;
  border: 1px solid #e8f5f3;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.opportunity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(18, 168, 156, 0.15);
  border-color: #12A89C;
}

.opportunity-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(18, 168, 156, 0.1);
  color: #12A89C;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.opportunity-card__title {
  font-family: 'Amatic SC', cursive;
  font-size: 2rem;
  color: #12A89C;
  margin: 0 0 14px;
  font-weight: 700;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.opportunity-card__text {
  color: #555;
  font-size: 1.05rem;
  margin: 0;
  flex-grow: 1;
  line-height: 1.6;
}

.opportunity-card__btn {
  background: #FF9801;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Zain', cursive;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 48px;
  min-width: 140px;
  margin-top: auto;
}

a.opportunity-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.opportunity-card__btn:hover {
  background: #ffb300;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 152, 1, 0.3);
}

.opportunity-card__btn:focus-visible {
  outline: 3px solid #12A89C;
  outline-offset: 2px;
}

/* Hub Modals */
.hub-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1400;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  padding: 24px 16px;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
}

.hub-modal.is-open {
  display: flex;
}

.hub-modal__dialog {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
  margin: auto;
  box-sizing: border-box;
}

.hub-modal__header {
  background: #12A89C;
  color: #fff;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-shrink: 0;
}

.hub-modal__title {
  margin: 0;
  font-family: 'Amatic SC', cursive;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hub-modal__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.hub-modal__close:hover {
  transform: scale(1.1);
}

.hub-modal__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 4px;
}

.hub-modal__body {
  padding: 28px 24px 32px;
  overflow-y: auto;
  flex: 1;
}

.hub-modal__body p {
  color: #444;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 18px;
}

.hub-modal__body p:last-child {
  margin-bottom: 0;
}

.hub-modal__cta {
  font-weight: 600;
  color: #333;
}

/* CMS-authored subheadings and quotes inside the volunteer hub popups. The
   public page keeps its single primary H1; body content starts at H2. */
.hub-modal__body h2,
.hub-modal__body h3 {
  color: #12A89C;
  font-weight: 700;
  line-height: 1.3;
}

.hub-modal__body h2 {
  font-size: 1.5rem;
  margin: 24px 0 12px;
}

.hub-modal__body h3 {
  font-size: 1.25rem;
  margin: 20px 0 10px;
}

.hub-modal__body h2:first-child,
.hub-modal__body h3:first-child {
  margin-top: 0;
}

.hub-modal__body blockquote {
  margin: 0 0 18px;
  padding: 6px 0 6px 16px;
  border-left: 3px solid rgba(18, 168, 156, 0.45);
  color: #555;
  font-style: italic;
}

.hub-modal__body a {
  color: #12A89C;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.hub-modal__body a:hover {
  color: #0D948A;
}

.hub-modal__body::-webkit-scrollbar {
  width: 8px;
}

.hub-modal__body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.hub-modal__body::-webkit-scrollbar-thumb {
  background: #12A89C;
  border-radius: 4px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─── Explore Opportunities ─────────────────────────────────────── */
.volunteer-explore {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 2px solid #e8f5f3;
  max-width: 1000px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  scroll-margin-top: 140px;
  box-sizing: border-box;
}

.volunteer-explore__header {
  text-align: center;
  margin-bottom: 32px;
}

.volunteer-explore__title {
  font-family: 'Amatic SC', cursive;
  font-size: 2.75rem;
  color: #12A89C;
  margin: 0 0 14px;
  font-weight: 700;
  line-height: 1.2;
}

.volunteer-explore__subtitle {
  font-family: 'Zain', cursive;
  font-size: 1.15rem;
  color: #666;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.vol-intro-block {
  margin-bottom: 32px;
}

.volunteer-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 4px;
  border-radius: 999px;
  background: #f7fcfb;
  border: 1px solid #e8f5f3;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-sizing: border-box;
}

.volunteer-tabs::-webkit-scrollbar {
  display: none;
}

.volunteer-tabs__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #12A89C;
  font-family: 'Zain', cursive;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  min-height: 44px;
  white-space: nowrap;
}

.volunteer-tabs__button:hover {
  background: rgba(18, 168, 156, 0.08);
  border-color: #cfe9e5;
  color: #0D948A;
}

.volunteer-tabs__button:focus-visible {
  outline: 3px solid #12A89C;
  outline-offset: 2px;
}

.volunteer-tabs__button--active,
.volunteer-tabs__button--active:hover {
  background: #12A89C;
  color: #fff;
  border-color: #12A89C;
  box-shadow: 0 4px 14px rgba(18, 168, 156, 0.25);
  transform: none;
}

.volunteer-tab-panels {
  position: relative;
  min-height: 200px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-anchor: none;
  box-sizing: border-box;
}

.volunteer-tab-panel {
  margin-bottom: 0;
}

.volunteer-tab-panel[hidden] {
  display: none !important;
}

.volunteer-tab-panel--active {
  animation: volunteerTabFadeIn 0.35s ease;
}

@keyframes volunteerTabFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.vol-detail-section {
  margin-bottom: 0;
}

.vol-detail-section__header {
  text-align: center;
  margin-bottom: 28px;
}

.vol-detail-section__title {
  font-family: 'Amatic SC', cursive;
  font-size: 2.25rem;
  color: #333;
  margin: 0 0 10px;
  font-weight: 700;
  line-height: 1.2;
}

.vol-detail-section__subtitle {
  font-family: 'Zain', cursive;
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.vol-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.vol-detail-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Shared detail card base */
.vol-job-card,
.vol-program-card,
.vol-role-card {
  background: #fff;
  border: 1px solid #e8f5f3;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.vol-job-card:hover,
.vol-program-card:hover,
.vol-role-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(18, 168, 156, 0.12);
  border-color: #12A89C;
}

/* Career cards */
.vol-job-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.vol-job-card__title {
  font-family: 'Amatic SC', cursive;
  font-size: 1.75rem;
  color: #12A89C;
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  flex: 1 1 180px;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.vol-job-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(18, 168, 156, 0.12);
  color: #0D948A;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.vol-job-card__meta,
.vol-role-card__meta,
.vol-event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 14px;
}

.vol-job-card__meta-item,
.vol-role-card__meta-item,
.vol-event-card__meta-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  color: #555;
  background: #f7fcfb;
  border: 1px solid #e8f5f3;
  border-radius: 8px;
  padding: 6px 12px;
  line-height: 1.4;
}

.vol-job-card__body,
.vol-program-card__body,
.vol-role-card__body,
.vol-event-card__body {
  color: #555;
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 18px;
  flex-grow: 1;
}

.vol-job-card__body p,
.vol-program-card__body p,
.vol-role-card__body p,
.vol-event-card__body p {
  margin: 0 0 12px;
}

.vol-job-card__body p:last-child,
.vol-program-card__body p:last-child,
.vol-role-card__body p:last-child,
.vol-event-card__body p:last-child {
  margin-bottom: 0;
}

.vol-job-card__actions,
.vol-program-card__actions,
.vol-role-card__actions,
.vol-event-card__actions {
  margin-top: auto;
  padding-top: 4px;
}

/* Internship cards */
.vol-program-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.vol-program-card__title {
  font-family: 'Amatic SC', cursive;
  font-size: 1.75rem;
  color: #12A89C;
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  flex: 1 1 180px;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.vol-program-card__duration {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 152, 1, 0.12);
  color: #c67600;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.vol-program-card__stipend {
  font-size: 0.98rem;
  color: #555;
  margin: 0 0 14px;
}

/* Volunteer role cards */
.vol-role-card__title {
  font-family: 'Amatic SC', cursive;
  font-size: 1.65rem;
  color: #12A89C;
  margin: 0 0 14px;
  font-weight: 700;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.vol-role-card__meta-item strong {
  color: #12A89C;
  font-weight: 600;
}

/* Event cards */
.vol-event-card {
  display: flex;
  align-items: stretch;
  gap: 20px;
  background: #fff;
  border: 1px solid #e8f5f3;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.vol-event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(18, 168, 156, 0.12);
  border-color: #12A89C;
}

.vol-event-card__date {
  flex-shrink: 0;
  width: 76px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(18, 168, 156, 0.1);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.vol-event-card__day {
  display: block;
  font-family: 'Amatic SC', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: #12A89C;
  line-height: 1;
}

.vol-event-card__month {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0D948A;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.vol-event-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.vol-event-card__title {
  font-family: 'Amatic SC', cursive;
  font-size: 1.65rem;
  color: #12A89C;
  margin: 0 0 10px;
  font-weight: 700;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.vol-cta-block {
  margin-top: 8px;
}

/* Intro + CTA blocks */
.vol-intro-block,
.vol-cta-block {
  background: linear-gradient(180deg, #f7fcfb 0%, #fff 100%);
  border: 1px solid #e8f5f3;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.vol-intro-block .vol-detail-section__header,
.vol-cta-block .vol-detail-section__header {
  margin-bottom: 16px;
}

.vol-intro-block__text,
.vol-cta-block__text {
  font-size: 1.08rem;
  color: #555;
  line-height: 1.7;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.vol-cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

/* Detail CTAs — match hub orange buttons */
.vol-detail__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FF9801;
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Zain', cursive;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 48px;
  min-width: 140px;
  text-align: center;
  word-break: break-word;
}

.vol-detail__cta:hover {
  background: #ffb300;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 152, 1, 0.3);
}

.vol-detail__cta:focus-visible {
  outline: 3px solid #12A89C;
  outline-offset: 2px;
}

.vol-detail__cta--secondary {
  background: #fff;
  color: #12A89C;
  border: 2px solid #12A89C;
}

.vol-detail__cta--secondary:hover {
  background: rgba(18, 168, 156, 0.08);
  color: #0D948A;
  border-color: #0D948A;
  box-shadow: 0 4px 15px rgba(18, 168, 156, 0.15);
}

.vol-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  background: #f7fcfb;
  border: 1px dashed #12A89C;
  border-radius: 16px;
  color: #666;
  font-family: 'Zain', 'Zain Fallback', Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

.vol-empty-state p {
  margin: 0;
  max-width: 36rem;
}

.vol-empty-state .vol-detail__cta {
  margin-top: 20px;
}

.vol-empty-state strong {
  display: block;
  font-family: 'Amatic SC', cursive;
  font-size: 1.6rem;
  color: #12A89C;
  margin-bottom: 8px;
  font-weight: 700;
}

/* Tablet */
@media (max-width: 1024px) {
  .volunteer-page {
    padding: 148px 16px 48px;
  }

  .content-wrapper {
    padding: 32px 24px;
  }

  .opportunity-hub {
    gap: 24px;
  }

  .opportunity-card__title {
    font-size: 1.85rem;
  }

  .volunteer-explore__title {
    font-size: 2.5rem;
  }

  .vol-detail-section__title {
    font-size: 2rem;
  }

  .volunteer-explore {
    scroll-margin-top: 120px;
  }
}

/* Tablet portrait / narrow tablet */
@media (max-width: 900px) {
  .opportunity-hub {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .vol-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet: centered tabs + balanced detail cards */
@media (max-width: 820px) {
  .volunteer-tabs {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    border-radius: 16px;
    padding: 8px;
    gap: 8px;
  }

  .volunteer-tabs__button {
    flex: 0 1 auto;
  }

  .vol-job-card,
  .vol-program-card {
    height: auto;
  }

  .vol-job-card__header,
  .vol-program-card__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 10px;
    gap: 8px;
  }

  .vol-job-card__title,
  .vol-program-card__title {
    flex: none;
    width: 100%;
    text-align: center;
  }

  .vol-role-card__title,
  .vol-event-card__title {
    text-align: center;
  }

  .vol-program-card__stipend {
    text-align: center;
    margin: 0 0 10px;
  }

  .vol-job-card__meta {
    margin-bottom: 10px;
  }

  .vol-job-card__body,
  .vol-program-card__body {
    flex-grow: 0;
    margin-bottom: 12px;
  }

  .vol-job-card__actions,
  .vol-program-card__actions {
    margin-top: 0;
    padding-top: 0;
  }

  .vol-job-card__meta,
  .vol-role-card__meta,
  .vol-event-card__meta {
    justify-content: center;
  }

  .vol-job-card__body,
  .vol-program-card__body,
  .vol-role-card__body,
  .vol-event-card__body {
    text-align: center;
  }

  .vol-job-card__actions,
  .vol-program-card__actions,
  .vol-role-card__actions,
  .vol-event-card__actions {
    display: flex;
    justify-content: center;
  }

  .vol-event-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .vol-event-card__date {
    align-self: center;
  }

  .vol-event-card__content {
    align-items: center;
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .volunteer-page {
    padding: 124px 12px 140px;
  }

  .content-wrapper {
    padding: 24px 16px;
  }

  .volunteer-header {
    margin-bottom: 36px;
  }

  .volunteer-header h1 {
    font-size: 2.5rem;
  }

  .volunteer-header p {
    font-size: 1.1rem;
  }

  .opportunity-hub {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .opportunity-card {
    padding: 28px 20px;
  }

  .opportunity-card__title {
    font-size: 1.75rem;
  }

  .opportunity-card__btn {
    width: 100%;
    max-width: 280px;
  }

  .hub-modal {
    padding: 16px 12px;
  }

  .hub-modal__dialog {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 32px);
  }

  .hub-modal__header {
    padding: 16px 18px;
  }

  .hub-modal__title {
    font-size: 1.6rem;
  }

  .hub-modal__body {
    padding: 20px 18px 24px;
  }

  .volunteer-explore {
    margin-top: 32px;
    padding-top: 28px;
  }

  .volunteer-explore__title {
    font-size: 2.1rem;
  }

  .volunteer-explore__subtitle {
    font-size: 1.05rem;
  }

  .volunteer-explore {
    scroll-margin-top: 110px;
  }

  .volunteer-tabs {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    border-radius: 16px;
    padding: 8px;
    overflow-x: visible;
  }

  .volunteer-tabs__button {
    padding: 9px 16px;
    font-size: 0.95rem;
    min-height: 44px;
  }

  .vol-detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .volunteer-tab-panels {
    margin-bottom: 32px;
  }

  .vol-detail-section__title {
    font-size: 1.85rem;
  }

  .vol-job-card,
  .vol-program-card,
  .vol-role-card {
    padding: 24px 20px;
  }

  .vol-job-card__title,
  .vol-program-card__title {
    font-size: 1.55rem;
  }

  .vol-event-card {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 16px;
    text-align: center;
  }

  .vol-event-card__date {
    width: auto;
    min-height: auto;
    flex-direction: row;
    align-self: center;
    gap: 8px;
    padding: 8px 14px;
  }

  .vol-event-card__content {
    align-items: center;
  }

  .vol-event-card__day {
    font-size: 1.5rem;
  }

  .vol-event-card__month {
    margin-top: 0;
    align-self: center;
  }

  .vol-detail__cta {
    width: 100%;
    max-width: 280px;
  }

  .vol-cta-block__actions {
    flex-direction: column;
    align-items: center;
  }

  .vol-intro-block,
  .vol-cta-block {
    padding: 24px 20px;
  }

  .vol-cta-block {
    margin-bottom: 12px;
  }

  .vol-cta-block__actions .vol-detail__cta {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .volunteer-page {
    padding: 116px 10px 150px;
  }

  .content-wrapper {
    padding: 20px 14px;
  }

  .opportunity-card {
    padding: 22px 16px;
  }

  .volunteer-header h1 {
    font-size: 2rem;
  }

  .opportunity-card__icon {
    width: 60px;
    height: 60px;
  }

  .opportunity-card__icon svg {
    width: 32px;
    height: 32px;
  }

  .hub-modal__title {
    font-size: 1.45rem;
  }

  .hub-modal__body p {
    font-size: 1rem;
  }

  .volunteer-explore__title {
    font-size: 1.9rem;
  }

  .volunteer-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow-x: visible;
    overflow-y: visible;
    border-radius: 16px;
    padding: 8px;
  }

  .volunteer-tabs__button {
    width: 100%;
    flex: none;
    padding: 10px 8px;
    font-size: 0.88rem;
    min-height: 44px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  .vol-detail-section__title {
    font-size: 1.7rem;
  }

  .vol-role-card__title,
  .vol-event-card__title {
    font-size: 1.45rem;
  }

  .vol-job-card,
  .vol-program-card,
  .vol-role-card {
    padding: 20px 16px;
  }

  .vol-event-card {
    padding: 18px 16px;
  }
}

@media (max-width: 400px) {
  .volunteer-header h1 {
    font-size: 1.85rem;
  }

  .volunteer-header p {
    font-size: 1rem;
  }

  .opportunity-card__btn {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .volunteer-tabs {
    border-radius: 12px;
    padding: 6px;
    gap: 6px;
  }

  .volunteer-tabs__button {
    font-size: 0.85rem;
    padding: 10px 6px;
  }
}

@media (max-height: 520px) {
  .hub-modal {
    padding: 12px 10px;
    align-items: flex-start;
  }

  .hub-modal__dialog {
    max-height: calc(100vh - 24px);
  }

  .hub-modal__body {
    max-height: calc(100vh - 120px);
  }
}

/* Volunteer page: keep fixed floats clear of bottom CTAs */
@media (max-width: 768px) {
  body .main-footer {
    max-width: 100vw;
    overflow-x: hidden;
  }
}