
.bg-image {
   position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100% !important;
    transform: translate(-50%, -50%); 
    object-fit: cover; 
    transition: opacity 1s ease; 
    z-index: -1;
    display: block !important;
    opacity: 0;
}

.bg-image.fadeout {
  opacity: 0 !important;
}
.bg-image.next {
    opacity: 1;
    z-index: 0 !important;
}
.bg-image.current {
    opacity: 1;
    z-index: 1 !important;
}

{# ============================== #}
{#      TYPEWRITER CURSOR         #}
{# ============================== #}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background-color: currentColor;
  margin-left: 2px;
  vertical-align: baseline;
  animation: blink-cursor 0.7s step-end infinite;
}

@keyframes blink-cursor {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

{# ============================== #}
{#     VIDEO EMBED CONTAINER      #}
{# ============================== #}

.c-video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.c-video-embed.c-video-vertical {
  padding-bottom: 177.78%;
  max-width: 360px;
}

.c-video-vertical .hs-video-wrapper {
  padding-bottom: 177.78% !important;
}

.c-video-vertical .hs-video-container {
  max-width: 360px;
  margin: 0 auto;
}

.c-content-con.c-video-vertical {
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.c-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

{# ============================== #}
{#     DONATION CARD STYLES       #}
{# ============================== #}

========================================== */
.donation-card-stitch {
  background-color: var(--card-bg, #ffffff);
  border-radius: 24px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12), 0 0 1px 1px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
  width: 100%;
  max-width: 550px;
  min-width: min(100%, max-content);
  box-sizing: border-box;
  container-type: inline-size;
  container-name: donation-card;
}

.donation-card-stitch.card-invisible {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.donation-card-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.donation-card-stitch.img-placement-left .donation-card-inner {
  flex-direction: row;
}
.donation-card-stitch.img-placement-right .donation-card-inner {
  flex-direction: row-reverse;
}

.donation-card-media {
  flex: 0 0 45%;
  min-width: 200px;
}
.donation-campaign-photo {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.donation-card-form {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.donation-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--adra-text-main);
  margin: 0;
  line-height: 1.25;
}

.donation-stats-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stats-top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.stats-raised-col,
.stats-goal-col {
  display: flex;
  gap: 4px;
  align-items: baseline;
}
.stats-label {
  font-size: 0.75rem;
  color: var(--adra-text-muted);
  font-weight: 500;
}
.stats-raised-value {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--adra-text-main);
}
.stats-goal-label,
.stats-goal-value {
  font-size: 0.8125rem;
  color: var(--adra-text-muted);
  font-weight: 600;
}
.progress-track {
  height: 6px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--theme-color, var(--adra-green));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.donation-subtitle-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--adra-text-main);
}

.donation-amounts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.donation-amounts-grid.layout-option_1 { grid-template-columns: 1fr; }
.donation-amounts-grid.layout-option_2 { grid-template-columns: 1fr; }

.stitch-amount-btn {
  background: var(--adra-gray-btn);
  border: 2px solid transparent;
  color: var(--adra-text-main);
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.stitch-amount-btn:hover {
  background: var(--adra-gray-btn-hover);
}
.stitch-amount-btn.selected {
  background: var(--theme-color, var(--adra-green));
  color: #ffffff;
  border-color: var(--theme-color, var(--adra-green));
}

.stitch-open-amount-box {
  background: var(--adra-gray-btn);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--adra-text-main);
}
.stitch-open-amount-box:hover {
  background: var(--adra-gray-btn-hover);
}
.stitch-open-amount-box.selected {
  background: #ffffff;
  border-color: var(--theme-color, var(--adra-green));
}

.open-amount-input-mode {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 4px;
}
.open-amount-input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--adra-text-main);
  outline: none;
  text-align: center;
  -moz-appearance: textfield;
}
.open-amount-input::-webkit-outer-spin-button,
.open-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.open-amount-currency {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--adra-text-main);
}

.stitch-help-banner {
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.4;
}

.stitch-error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.stitch-consent-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stitch-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--adra-text-muted);
  cursor: pointer;
}
.consent-checkbox {
  margin-top: 2px;
  accent-color: var(--theme-color, var(--adra-green));
}
.stitch-consent-label a {
  color: inherit;
  text-decoration: underline;
}
.consent-error-msg {
  font-size: 0.75rem;
  color: #b91c1c;
}

.stitch-action-buttons {
  display: flex;
  gap: var(--action-buttons-gap, 10px);
  margin-top: 4px;
  width: 100%;
}
.stitch-btn-pill {
  flex: 1 1 auto;
  min-width: max-content;
  background-color: var(--action-btn-bg, var(--adra-dark));
  color: var(--action-btn-text, #ffffff) !important;
  border: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
  box-sizing: border-box;
}
.stitch-btn-pill span,
.stitch-btn-pill .arrow {
  color: inherit !important;
}
.stitch-btn-pill:hover {
  background-color: var(--action-btn-bg-hover, var(--action-btn-bg, var(--adra-dark-hover)));
  color: var(--action-btn-text-hover, var(--action-btn-text, #ffffff)) !important;
  filter: brightness(0.92);
}
.stitch-btn-pill .arrow {
  font-size: 1.1rem;
}

@container donation-card (max-width: 360px) {
  .stitch-action-buttons {
    flex-direction: column;
  }
  .stitch-btn-pill {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .stitch-btn-pill {
    padding: 13px 18px;
    font-size: 0.875rem;
  }
}

/* Swish QR Modal */
.swish-qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.swish-qr-modal-content {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 28px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.swish-qr-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--adra-text-main);
  margin: 0 0 6px 0;
}
.swish-qr-desc {
  font-size: 0.875rem;
  color: var(--adra-text-muted);
  margin: 0 0 20px 0;
}
.swish-qr-box {
  position: relative;
  width: 220px;
  height: 220px;
  background: #ffffff;
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}
.swish-qr-image {
  width: 100%;
  height: 100%;
  display: block;
}
.swish-qr-center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.swish-qr-center-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.swish-qr-summary {
  font-size: 0.875rem;
  color: var(--adra-text-main);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qr-summary-amt strong {
  font-size: 1.1rem;
  color: var(--adra-green);
}
.swish-qr-close-btn {
  background: #f1f5f9;
  border: none;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: inherit;
}
.swish-qr-close-btn:hover {
  background: #e2e8f0;
}

/* ==========================================
   ANIMATIONS (Keyframes & CSS Classes)
========================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translate3d(-40px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translate3d(40px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 40px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translate3d(0, -40px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale3d(0.85, 0.85, 0.85); }
  to { opacity: 1; transform: scale3d(1, 1, 1); }
}
@keyframes bounceIn {
  0% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
  50% { opacity: 0.9; transform: scale3d(1.05, 1.05, 1.05); }
  70% { transform: scale3d(0.9, 0.9, 0.9); }
  100% { opacity: 1; transform: scale3d(1, 1, 1); }
}

.has-animation {
  animation-duration: 0.8s;
  animation-fill-mode: both;
}
.has-animation.anim-speed-slow { animation-duration: 1.4s; }
.has-animation.anim-speed-fast { animation-duration: 0.4s; }
.has-animation.anim-speed-default { animation-duration: 0.8s; }

.has-animation.anim-fadeIn, .has-animation.anim-fade_in { animation-name: fadeIn; }
.has-animation.anim-fadeInLeft, .has-animation.anim-fade_in_left { animation-name: fadeInLeft; }
.has-animation.anim-fadeInRight, .has-animation.anim-fade_in_right { animation-name: fadeInRight; }
.has-animation.anim-fadeInUp, .has-animation.anim-fade_in_up { animation-name: fadeInUp; }
.has-animation.anim-fadeInDown, .has-animation.anim-fade_in_down { animation-name: fadeInDown; }
.has-animation.anim-zoomIn, .has-animation.anim-zoom_in { animation-name: zoomIn; }
.has-animation.anim-bounceIn, .has-animation.anim-bounce_in { animation-name: bounceIn; }

/* ==========================================
   ROBUST RESPONSIVE STACKING BREAKPOINTS
========================================== */

/* ==========================================
   RESPONSIVE STACKING & MOBILE ORDER (1–6)
========================================== */
/* 1. Container-based auto stacking */
@container hero-container (max-width: 880px) {
  .hero-columns-grid {
    display: flex !important;
    flex-direction: column !important;
  }
  .hero-columns-grid .hero-col {
    width: 100% !important;
  }
  .donation-card-stitch {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 2. Breakpoint: Early Stacking (1140px) */
@media (max-width: 1140px) {
  .breakpoint-early_1140 .hero-columns-grid {
    display: flex !important;
    flex-direction: column !important;
  }
  .breakpoint-early_1140 .hero-columns-grid .hero-col {
    width: 100% !important;
  }
}

/* 3. Breakpoint: Tablet (992px) & Smart Auto */
@media (max-width: 992px) {
  .breakpoint-tablet_992 .hero-columns-grid,
  .breakpoint-auto_smart .hero-columns-grid {
    display: flex !important;
    flex-direction: column !important;
  }
  .breakpoint-tablet_992 .hero-columns-grid .hero-col,
  .breakpoint-auto_smart .hero-columns-grid .hero-col {
    width: 100% !important;
  }
}

/* 4. Mobile Breakpoint (768px) & Mobile Stacking Options */
@media (max-width: 768px) {
  .hero-donation-module {
    padding-top: max(28px, calc(var(--hero-pt, 48px) * 0.6));
    padding-bottom: max(28px, calc(var(--hero-pb, 48px) * 0.6));
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-columns-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px;
  }
  .hero-columns-grid .hero-col {
    width: 100% !important;
  }

  /* Custom Mobile Stacking Order (1–6) */
  .hero-col[data-mob-pos="first"], .hero-col[data-mob-pos="1"] { order: 1 !important; }
  .hero-col[data-mob-pos="second"], .hero-col[data-mob-pos="2"] { order: 2 !important; }
  .hero-col[data-mob-pos="third"], .hero-col[data-mob-pos="3"] { order: 3 !important; }
  .hero-col[data-mob-pos="fourth"], .hero-col[data-mob-pos="4"] { order: 4 !important; }
  .hero-col[data-mob-pos="fifth"], .hero-col[data-mob-pos="5"] { order: 5 !important; }
  .hero-col[data-mob-pos="sixth"], .hero-col[data-mob-pos="6"] { order: 6 !important; }

  .donation-card-stitch {
    padding: 20px 16px;
    border-radius: 20px;
    max-width: 100%;
  }

  .donation-card-inner,
  .donation-card-stitch.img-placement-right .donation-card-inner,
  .donation-card-stitch.img-placement-left .donation-card-inner {
    flex-direction: column !important;
    gap: 16px;
  }

  .donation-card-media {
    width: 100%;
    min-width: 100%;
  }

  .donation-campaign-photo {
    min-height: 180px;
    max-height: 240px;
    width: 100%;
    border-radius: 14px;
  }
}

/* Fallback */
.hero-donation-fallback {
  padding: 3rem;
  text-align: center;
  color: var(--adra-text-muted);
  font-size: 1rem;
}
/* Cache buster Wed Aug 26 13:11:58 CEST 2026 */
