/* IT Girls Events — scoped frontend styles (.itg-ev- / .itg-dn- only).
   Mirrors the portal's Bee & Blossom look: pink accents, serif headings. */

.itg-ev-wrap {
  --itg-pink: #ec4899;
  --itg-pink-deep: #c02572;
  --itg-pink-tint: #ffe3f0;
  --itg-ink: #241b21;
  --itg-muted: #6b5560;
  font-size: 16px;
}

.itg-ev-section {
  margin: 0 0 2.6rem;
}

.itg-ev-heading {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  color: var(--itg-ink);
  margin: 0 0 1.1rem;
}

.itg-ev-empty {
  background: #fff5fa;
  border: 1px solid #fbd7e9;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  color: var(--itg-muted);
}

.itg-ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 1.3rem;
}

.itg-ev-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #f6d9e8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(96, 27, 63, 0.07);
}

.itg-ev-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #fdeef5;
}

.itg-ev-media .itg-ev-img,
.itg-ev-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.itg-ev-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 0.35rem 0.5rem;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(96, 27, 63, 0.18);
  line-height: 1.05;
}

.itg-ev-badge small {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--itg-pink-deep);
}

.itg-ev-badge strong {
  font-size: 1.25rem;
  color: var(--itg-ink);
}

.itg-ev-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
  padding: 1rem 1.1rem 1.15rem;
}

.itg-ev-title {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  line-height: 1.3;
  margin: 0;
  color: var(--itg-ink);
  overflow-wrap: anywhere;
}

.itg-ev-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.itg-ev-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--itg-muted);
  overflow-wrap: anywhere;
}

.itg-ev-meta-row svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 0.14em;
  color: var(--itg-pink);
}

.itg-ev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.62rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #ec4899, #d6337f);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.itg-ev-btn:hover,
.itg-ev-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(192, 37, 114, 0.36);
  color: #ffffff !important;
}

.itg-ev-card--past .itg-ev-body {
  gap: 0.3rem;
}

.itg-ev-past-date {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--itg-pink-deep);
}

.itg-ev-title--past {
  font-size: 1.05rem;
}

/* ---- Donation band ---- */
.itg-dn-band {
  --itg-pink-deep: #c02572;
  --itg-navy: #0f1f38;
  border-radius: 22px;
  padding: clamp(1.7rem, 4vw, 2.9rem) clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(118deg, #ec4899 0%, #c02572 74%, #a11d60 100%);
  color: #ffffff;
  text-align: left;
}

.itg-dn-inner {
  max-width: 900px;
  margin: 0 auto;
}

.itg-dn-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* heading block and the frequency choice share a baseline */
.itg-dn-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.8rem;
}

.itg-dn-eyebrow {
  flex: 1 0 100%;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.9;
  margin: 0 0 0.1rem;
}

.itg-dn-heading {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.08;
  color: #ffffff;
  margin: 0;
}

/* real radio inputs, so arrow keys and screen readers behave correctly */
.itg-dn-freq {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.itg-dn-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  color: #ffffff;
  cursor: pointer;
}

.itg-dn-radio input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
}

.itg-dn-radio input::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s ease;
}

.itg-dn-radio input:checked::before {
  background: #ffffff;
}

.itg-dn-radio input:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.itg-dn-copy {
  color: #ffffff;
  opacity: 0.92;
  margin: 0.85rem 0 0;
  max-width: 60ch;
}

.itg-dn-monthly-note {
  font-size: 0.88rem;
  color: #ffffff;
  opacity: 0.92;
  margin: 0.55rem 0 0;
}

.itg-dn-sandbox {
  background: #fff4ce;
  border: 1px solid #e8c86a;
  color: #6b4e00;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  margin: 1rem 0 0;
}

.itg-dn-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 1.7rem;
}

.itg-dn-amount {
  flex: 1 1 130px;
  min-height: 54px;
  border: 2px solid #ffffff;
  background: #ffffff;
  color: var(--itg-navy);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.itg-dn-amount:hover {
  transform: translateY(-2px);
}

.itg-dn-amount[aria-checked="true"] {
  background: #ffe3f0;
  color: #a11d60;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.65);
}

.itg-dn-amount:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

/* "Other $ ____" keeps the pill shape with the field sitting inside it */
.itg-dn-other {
  flex: 1 1 155px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.55rem 1.1rem;
  background: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: var(--itg-navy);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: text;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.itg-dn-other.is-active {
  background: #ffe3f0;
  color: #a11d60;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.65);
}

.itg-dn-other:focus-within {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
}

.itg-dn-other input {
  width: 76px;
  min-width: 0;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
  -moz-appearance: textfield;
}

.itg-dn-other input::-webkit-outer-spin-button,
.itg-dn-other input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.itg-dn-other input:focus {
  outline: none;
}

.itg-dn-actions {
  display: flex;
  justify-content: center;
}

.itg-dn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.7rem;
  border-radius: 999px;
  background: var(--itg-navy);
  color: #ffffff !important;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none !important;
  box-shadow: 0 14px 30px rgba(15, 31, 56, 0.32);
  transition: transform 0.18s ease, background 0.18s ease;
}

.itg-dn-btn:hover,
.itg-dn-btn:focus {
  transform: translateY(-2px);
  background: #1b3054;
  color: #ffffff !important;
}

.itg-dn-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

/* Themes and Elementor kits style bare `button` / `input` selectors with more
   specificity than a plugin class can reach, so the controls are pinned here. */
.itg-dn-band .itg-dn-amount {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--itg-navy) !important;
  box-shadow: none;
}

.itg-dn-band .itg-dn-amount[aria-checked="true"] {
  background: #ffe3f0 !important;
  color: #a11d60 !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.65);
}

.itg-dn-band .itg-dn-other {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--itg-navy) !important;
}

.itg-dn-band .itg-dn-other.is-active {
  background: #ffe3f0 !important;
  color: #a11d60 !important;
}

.itg-dn-band .itg-dn-other input {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid currentColor !important;
  border-radius: 0 !important;
  color: inherit !important;
  box-shadow: none !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 1.3 !important;
}

.itg-dn-band .itg-dn-radio input {
  background: transparent !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  min-height: 0 !important;
  height: 18px !important;
  width: 18px !important;
  padding: 0 !important;
}

.itg-dn-band .itg-dn-radio input::before {
  background: transparent !important;
}

.itg-dn-band .itg-dn-radio input:checked::before {
  background: #ffffff !important;
}
.itg-dn-band .itg-dn-btn {
  background: var(--itg-navy) !important;
  color: #ffffff !important;
}

.itg-dn-band .itg-dn-btn:hover,
.itg-dn-band .itg-dn-btn:focus {
  background: #1b3054 !important;
  color: #ffffff !important;
}

/* the sandbox warning is a working note, not a design element */
.itg-dn-sandbox {
  display: inline-block;
  max-width: 100%;
}
@media (max-width: 600px) {
  .itg-dn-freq {
    flex: 1 0 100%;
    margin-top: 0.2rem;
  }

  .itg-dn-amount,
  .itg-dn-other {
    flex: 1 1 calc(50% - 0.35rem);
    font-size: 1rem;
  }

  .itg-dn-actions .itg-dn-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .itg-dn-amount,
  .itg-dn-other,
  .itg-dn-btn,
  .itg-dn-radio input::before {
    transition: none;
  }

  .itg-dn-amount:hover,
  .itg-dn-btn:hover,
  .itg-dn-btn:focus {
    transform: none;
  }
}
@media (max-width: 480px) {
  .itg-ev-grid {
    grid-template-columns: 1fr;
  }
}


/* ---- Site popups ---- */
.itg-pop {
  --itg-pop-deep: #c02572;
  --itg-pop-navy: #0f1f38;
  position: fixed;
  z-index: 100000;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

.itg-pop[hidden] { display: none; }

.itg-pop__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 31, 56, 0.58);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.itg-pop.is-open .itg-pop__backdrop { opacity: 1; }

.itg-pop__panel {
  position: relative;
  background: linear-gradient(150deg, #ec4899 0%, #c02572 74%, #a11d60 100%);
  color: #ffffff;
  box-shadow: 0 28px 64px rgba(15, 31, 56, 0.38);
}

.itg-pop__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.itg-pop__close:hover { background: rgba(255, 255, 255, 0.34); }
.itg-pop__close:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }

.itg-pop__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffe3f0;
}

.itg-pop__title {
  margin: 0 0 12px;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: #ffffff;
  line-height: 1.15;
}

.itg-pop__copy {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
}

.itg-pop__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--itg-pop-deep) !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease;
}

.itg-pop__btn:hover,
.itg-pop__btn:focus {
  transform: translateY(-2px);
  background: #ffe3f0;
  color: #a11d60 !important;
}

.itg-pop__btn:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }

/* centred modal */
.itg-pop--modal {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.itg-pop--modal .itg-pop__panel {
  width: min(540px, 100%);
  border-radius: 26px;
  padding: 44px 42px 46px;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.itg-pop--modal.is-open .itg-pop__panel { opacity: 1; transform: none; }
.itg-pop--modal .itg-pop__title { font-size: 32px; }

/* slide-in from the right */
.itg-pop--slide {
  right: 0;
  bottom: 0;
  padding: 0 24px 24px;
  max-width: 100%;
}

.itg-pop--slide .itg-pop__panel {
  width: min(370px, calc(100vw - 48px));
  border-radius: 22px;
  padding: 30px 28px 32px;
  opacity: 0;
  transform: translateX(110%);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.itg-pop--slide.is-open .itg-pop__panel { opacity: 1; transform: none; }
.itg-pop--slide .itg-pop__title { font-size: 23px; }
.itg-pop--slide .itg-pop__copy { font-size: 15px; margin-bottom: 18px; }
.itg-pop--slide .itg-pop__btn { padding: 12px 24px; font-size: 15px; }

@media (max-width: 600px) {
  .itg-pop--modal .itg-pop__panel { padding: 36px 24px 38px; }
  .itg-pop--modal .itg-pop__title { font-size: 26px; }
  .itg-pop--slide { padding: 0 12px 12px; }
  .itg-pop--slide .itg-pop__panel { padding: 26px 22px 28px; }
  .itg-pop__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .itg-pop__panel,
  .itg-pop__backdrop,
  .itg-pop__btn { transition: none; }
  .itg-pop--modal .itg-pop__panel { transform: none; }
  .itg-pop--slide .itg-pop__panel { transform: none; }
  .itg-pop__btn:hover { transform: none; }
}