/* =========================================================================
   FEC §9 — CTA panel (Apply / Become a Member)
   White section with dark Navy panel + decorative EU-stars
   Scoped to body.page-id-333930
   ========================================================================= */

body.page-id-333930 .fec-cta-section {
  position: relative;
  z-index: 0;
  background-color: #283582 !important;  /* brand Navy, override Divi inline white */
  background-image:
    radial-gradient(70% 80% at 50% 0%, rgba(58, 72, 163, 0.45) 0%, rgba(40, 53, 130, 0) 65%),
    radial-gradient(60% 70% at 50% 100%, rgba(22, 27, 74, 0.55) 0%, rgba(40, 53, 130, 0) 60%);
  /* Slide up under §9 News' bottom-radius (60px) curve — same overlap pattern as §8 */
  margin-top: -75px !important;
  padding-top: 140px !important;
}

@media (max-width: 980px) {
  body.page-id-333930 .fec-cta-section {
    margin-top: -40px !important;
    padding-top: 116px !important;
  }
}

body.page-id-333930 .fec-cta-section .et_pb_row {
  position: relative;
  z-index: 1;
}

/* PANEL — dark navy, rounded, atmospheric bloom + decorative stars */
body.page-id-333930 .fec-cta-panel-mod .et_pb_text_inner {
  margin: 0 !important;
}

body.page-id-333930 .fec-cta-panel {
  position: relative;
  /* Diagonal light-source gradient — top-left bright, bottom-right deep
     (uses #283582 brand-Navy variations: lighter #3a48a3, darker #161b4a) */
  background-color: #283582;
  background-image:
    linear-gradient(135deg, #3a48a3 0%, #283582 38%, #1d2660 78%, #161b4a 100%);
  border-radius: 36px;
  padding: clamp(64px, 8vw, 110px) clamp(28px, 5vw, 72px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  /* Strong 3D relief — neumorphism on dark.
     Top-left light catches edges; bottom-right shadow deepens drop. */
  box-shadow:
    /* Inner highlight on top edge */
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    /* Inner highlight on top-left edge (diagonal) */
    inset 2px 0 0 rgba(255, 255, 255, 0.10),
    /* Inner shadow on bottom edge */
    inset 0 -2px 0 rgba(0, 0, 0, 0.32),
    /* Inner shadow on bottom-right edge (diagonal) */
    inset -2px 0 0 rgba(0, 0, 0, 0.18),
    /* Subtle outline highlight (separates from section bg) */
    0 0 0 1px rgba(255, 255, 255, 0.06),
    /* Close-in dark line for crisp lift */
    0 4px 8px -2px rgba(0, 0, 0, 0.45),
    /* Main soft drop shadow */
    0 24px 48px -16px rgba(0, 0, 0, 0.55),
    /* Long deep ambient drop */
    0 48px 96px -32px rgba(0, 0, 0, 0.7);
}

/* Brand-Navy bloom (top-left) */
body.page-id-333930 .fec-cta-panel::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 70%;
  background: radial-gradient(55% 65% at 22% 28%, rgba(40, 53, 130, 0.55) 0%, rgba(40, 53, 130, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Cyan-light glow (bottom-right) */
body.page-id-333930 .fec-cta-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -15% auto;
  width: 75%;
  height: 70%;
  background: radial-gradient(45% 55% at 78% 75%, rgba(95, 184, 232, 0.18) 0%, rgba(95, 184, 232, 0) 65%);
  pointer-events: none;
  z-index: 0;
}

/* Decorative EU-stars SVG */
body.page-id-333930 .fec-cta-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Content above bloom + stars */
body.page-id-333930 .fec-cta-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

/* Eyebrow */
body.page-id-333930 .fec-cta-eyebrow {
  margin: 0 0 24px;
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5fb8e8;
}

/* H2 */
body.page-id-333930 .fec-cta-h2 {
  margin: 0 0 28px;
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #ffffff;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

body.page-id-333930 .fec-cta-h2 em {
  font-style: italic;
  font-weight: 500;
  color: #5fb8e8;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

/* Body */
body.page-id-333930 .fec-cta-body {
  margin: 0 auto 40px;
  font-family: "Avenir", "Avenir Next", "Inter", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 56ch;
}

/* Actions row */
body.page-id-333930 .fec-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* CTA links — locked spec (Rubik 500 18px, 35px radius, 25px 35px padding)
   §9 overrides Navy-fill primary with Cyan-fill since panel bg is dark Navy */
body.page-id-333930 .fec-cta-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 35px;
  padding: 25px 35px;
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease,
    background-color 0.32s ease,
    border-color 0.32s ease,
    color 0.32s ease;
  will-change: transform;
}

body.page-id-333930 .fec-cta-link--primary {
  background-color: #3ca3dd;
  color: #ffffff;
  border: 0;
}

body.page-id-333930 .fec-cta-link--primary:hover {
  background-color: #5fb8e8;
  transform: scale(1.03);
  box-shadow: 0 18px 48px -16px rgba(60, 163, 221, 0.55);
}

body.page-id-333930 .fec-cta-link--secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

body.page-id-333930 .fec-cta-link--secondary:hover {
  border-color: #5fb8e8;
  color: #5fb8e8;
  transform: scale(1.03);
}

body.page-id-333930 .fec-cta-link:focus-visible {
  outline: 2px solid #5fb8e8;
  outline-offset: 4px;
}

body.page-id-333930 .fec-cta-arrow {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.32s ease;
}

body.page-id-333930 .fec-cta-link:hover .fec-cta-arrow {
  transform: translateX(4px);
}

/* RESPONSIVE */
@media (max-width: 780px) {
  body.page-id-333930 .fec-cta-panel {
    border-radius: 28px;
    padding: 56px 24px;
  }
  body.page-id-333930 .fec-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  body.page-id-333930 .fec-cta-link {
    justify-content: center;
    padding: 22px 28px;
  }
}
