/* =========================
   VOLUNTEER PAGE STYLES
========================= */

.volunteer-page section[id] {
  scroll-margin-top: 96px;
}

/* Hero */
.vol-hero {
  position: relative;
  padding: clamp(72px, 11vw, 130px) 0 clamp(56px, 8vw, 90px);
  background: var(--gradient-hero);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.vol-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.vol-hero-bg .hero-mesh { position: absolute; inset: 0; }

.vol-hero-bg .hero-circle-1 {
  width: 380px; height: 380px;
  top: -90px; right: -70px;
  opacity: 0.14;
}

.vol-hero-bg .hero-circle-2 {
  width: 280px; height: 280px;
  bottom: -50px; left: -50px;
  opacity: 0.11;
}

.vol-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.vol-hero-eyebrow { color: rgba(255,255,255,0.92); }
.vol-hero-eyebrow::before { background: rgba(255,255,255,0.55); }

.vol-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.vol-hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  opacity: 0.9;
  max-width: 580px;
  margin: 0 auto 28px;
}

.vol-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Stories Slider */
.vol-stories {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.vol-slider-viewport {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(201, 162, 39, 0.1);
  background: var(--soft-gray);
}

.vol-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.vol-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.vol-slide-img {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

.vol-slide-img img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

.vol-slide-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 40px);
}

.vol-slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 14px;
  background: var(--soft-blue);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.vol-slide-body h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 12px;
}

.vol-slide-body p {
  font-size: 0.96rem;
  color: var(--text-gray);
  line-height: 1.7;
}

.vol-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.vol-slider-arrow,
.vol-gallery-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  border: 1px solid rgba(201, 162, 39, 0.15);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.vol-slider-arrow:hover,
.vol-gallery-arrow:hover {
  background: var(--gradient-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.vol-slider-dots,
.vol-gallery-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.vol-dot,
.vol-gdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.25);
  padding: 0;
  transition: all var(--transition);
}

.vol-dot.is-active,
.vol-gdot.is-active {
  width: 26px;
  border-radius: var(--radius-pill);
  background: var(--gradient-primary);
}

/* Replace buttons */
.vol-replace-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(16, 42, 86, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transition: all var(--transition);
  z-index: 3;
}

.vol-slide-img:hover .vol-replace-btn,
.vol-cta-img:hover .vol-replace-btn,
.vol-gallery-slide:hover .vol-replace-btn {
  opacity: 1;
}

.vol-replace-btn:hover { background: var(--primary); }

.vol-replace-btn--round {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  bottom: 56px;
  right: 16px;
  opacity: 1;
  font-size: 0.9rem;
}

/* ===== Gallery Carousel ===== */
.vol-gallery-section {
  padding: var(--section-pad) 0;
  background: var(--soft-gray);
}

/* .vol-gallery-carousel {
  max-width: 0 auto;
  max-height: 0 auto;
  margin: 0 auto;
} */

.vol-gallery-carousel {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.vol-gallery-carousel img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* -------------- */

.vol-gallery-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vol-gallery-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
  background: var(--navy);
  min-width: 0;
}

.vol-gallery-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.vol-gallery-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
  margin: 0;
}

.vol-gallery-slide img {
  width: 100%;
  height: clamp(240px, 44vw, 520px);
  object-fit: contain;
  background: rgba(10, 22, 18, 0.65);
  display: block;
}

.vol-gallery-slide figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(16, 42, 86, 0.85), transparent);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.vol-gallery-counter {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.vol-gallery-dots {
  margin-top: 14px;
}

.vol-gallery-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  overflow-x: auto;
  padding: 6px 4px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.vol-gthumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  border: 3px solid transparent;
  opacity: 0.5;
  transition: all var(--transition);
  cursor: pointer;
}

.vol-gthumb.is-active {
  opacity: 1;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.3);
}

.vol-gthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vol-gallery-note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-gray);
  line-height: 1.6;
}

.vol-gallery-note code {
  background: var(--white);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.78rem;
  color: var(--primary);
}

/* Roles */
.vol-roles { background: var(--white); }

/* CTA */
.vol-cta-section {
  padding: var(--section-pad) 0;
  background: var(--soft-gray);
}

.vol-cta-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  background: linear-gradient(135deg, var(--navy), #1a3d7a);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 52px);
  color: var(--white);
  overflow: hidden;
}

.vol-cta-text .section-eyebrow { color: var(--secondary); }
.vol-cta-text .section-eyebrow::before { background: var(--secondary); }

.vol-cta-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.vol-cta-text p {
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.88;
  margin-bottom: 24px;
}

.vol-cta-stats {
  display: flex;
  gap: clamp(16px, 4vw, 36px);
  flex-wrap: wrap;
}

.vol-cta-stats div { display: flex; flex-direction: column; }

.vol-cta-stats strong {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--secondary);
  line-height: 1;
}

.vol-cta-stats span {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-top: 4px;
}

.vol-cta-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  min-height: 260px;
}

.vol-cta-img img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

/* Responsive */
@media (max-width: 992px) {
  .vol-slide { grid-template-columns: 1fr; }
  .vol-slide-img, .vol-slide-img img { min-height: 220px; }
  .vol-cta-card { grid-template-columns: 1fr; }
  .vol-cta-img { order: -1; }
}

@media (max-width: 768px) {
  .vol-hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .vol-hero-actions .btn { width: 100%; max-width: 300px; }

  .vol-gallery-main { gap: 8px; }
  .vol-gallery-arrow { width: 40px; height: 40px; font-size: 0.85rem; }

  .volunteer-page .volunteer-grid { grid-template-columns: 1fr; }

  .vol-replace-btn { opacity: 1; }
  .vol-replace-btn span { display: none; }

  .vol-gthumb { width: 52px; height: 52px; }

  .vol-gallery-slide img {
    height: clamp(220px, 55vw, 380px);
  }
}

@media (max-width: 480px) {
  .vol-gallery-arrow.vol-gallery-prev { margin-left: -4px; }
  .vol-gallery-arrow.vol-gallery-next { margin-right: -4px; }

  .vol-gallery-slide img {
    height: clamp(200px, 58vw, 330px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vol-slider-track,
  .vol-gallery-track {
    transition: none;
  }
}
