/* =========================================================================
   FEC §9 — NEWS (Divi blog module + v2-C Industry Premium card design)
   Cool-white section between §8 Members (dark) and §10 CTA Apply (white)
   Scoped to body.page-id-333930
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

body.page-id-333930 .fec-news-section {
  position: relative;
  z-index: 1;
  background-color: #f5f7fb;
  border-radius: 0 0 60px 60px !important;
  /* Slide up under §8 Members' bottom-radius (80px) curve — same overlap pattern */
  margin-top: -75px !important;
  padding-top: 140px !important;
}

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

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

/* HEAD — eyebrow + H2 + deck + "all news" link, magazine-style */
body.page-id-333930 .fec-news-eyebrow p {
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5fb8e8;
}

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

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

body.page-id-333930 .fec-news-deck p {
  margin: 0;
  font-family: "Avenir", "Avenir Next", "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #6b7286;
  max-width: 48ch;
}

/* HEAD layout — magazine-style 2-col with all-news link top-right */
body.page-id-333930 .fec-news-head-mod .et_pb_text_inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(40, 53, 130, 0.12);
  margin-bottom: 56px;
}

body.page-id-333930 .fec-news-head-grid {
  display: contents;
}

body.page-id-333930 .fec-news-head-text {
  grid-column: 1;
}

body.page-id-333930 .fec-news-all-link {
  grid-column: 2;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #283582;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(40, 53, 130, 0.32);
  transition: color 0.24s ease, border-color 0.24s ease;
  white-space: nowrap;
}

body.page-id-333930 .fec-news-all-link:hover {
  color: #3ca3dd;
  border-bottom-color: #3ca3dd;
}

body.page-id-333930 .fec-news-all-link .arrow {
  transition: transform 0.24s ease;
}

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

/* DIVI BLOG GRID — restyle the .et_pb_post cards as editorial cards
   Divi wraps posts in salvattore masonry: .et_pb_blog_grid > .et_pb_ajax_pagination_container
   > .et_pb_salvattore_content > <div column-wrappers> > article.et_pb_post
   Use display:contents to flatten so articles become direct grid children. */
body.page-id-333930 .fec-news-blog .et_pb_blog_grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
  margin: 0 !important;
}

body.page-id-333930 .fec-news-blog .et_pb_blog_grid > .et_pb_ajax_pagination_container,
body.page-id-333930 .fec-news-blog .et_pb_ajax_pagination_container > .et_pb_salvattore_content,
body.page-id-333930 .fec-news-blog .et_pb_salvattore_content > div {
  display: contents !important;
}

@media (max-width: 980px) {
  body.page-id-333930 .fec-news-blog .et_pb_blog_grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  body.page-id-333930 .fec-news-blog .et_pb_blog_grid {
    grid-template-columns: 1fr !important;
  }
}

/* Card — v2-C Industry Premium: white card, 3px radius, hairline border,
   16/10 image top, mono meta, Fraunces UPPERCASE serif title, mono CTA.
   Hover: still card. ZERO lift, ZERO border-shift, ZERO shadow-appear.
   Single subtle affordance: image "breath" + title underline-draw. */
body.page-id-333930 .fec-news-blog .et_pb_post {
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid rgba(40, 53, 130, 0.12) !important;
  border-radius: 3px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: 100%;
  /* Card itself: no transition. Hover changes are scoped to children. */
}

/* Featured image — 16/10 plate, flush with card top */
body.page-id-333930 .fec-news-blog .et_pb_post .entry-featured-image-url,
body.page-id-333930 .fec-news-blog .et_pb_post .et_pb_image_container {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f7fb;
  position: relative;
  width: 100%;
}

body.page-id-333930 .fec-news-blog .et_pb_post .entry-featured-image-url img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
  /* Slow ease-out-quart "breath" — 800ms, scale just 1.025 (imperceptible-feels-alive) */
  transition: transform 800ms cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.page-id-333930 .fec-news-blog .et_pb_post:hover .entry-featured-image-url img {
  transform: scale(1.025);
}

/* Hide Divi default ::before/::after */
body.page-id-333930 .fec-news-blog .et_pb_post::before,
body.page-id-333930 .fec-news-blog .et_pb_post::after {
  display: none;
}

/* Card body — magazine order: image > meta > title > excerpt */
body.page-id-333930 .fec-news-blog .et_pb_post > .entry-featured-image-url { order: 0; }
body.page-id-333930 .fec-news-blog .et_pb_post > .post-meta { order: 1; }
body.page-id-333930 .fec-news-blog .et_pb_post > .entry-title { order: 2; }
body.page-id-333930 .fec-news-blog .et_pb_post > .post-content { order: 3; }

body.page-id-333930 .fec-news-blog .et_pb_post > .post-meta,
body.page-id-333930 .fec-news-blog .et_pb_post > .entry-title,
body.page-id-333930 .fec-news-blog .et_pb_post > .post-content {
  padding-left: 28px;
  padding-right: 28px;
}

/* Meta line: mono CATEGORY · DATE */
body.page-id-333930 .fec-news-blog .et_pb_post .post-meta {
  margin: 28px 0 14px !important;
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", "Menlo", monospace;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7286;
}

/* Category pill — high-contrast solid Cyan + white (consistency with blog listing) */
body.page-id-333930 .fec-news-blog .et_pb_post .post-meta a[rel="category tag"],
body.page-id-333930 .fec-news-blog .et_pb_post .post-meta a[rel~="category"],
body.page-id-333930 .fec-news-blog .et_pb_post .post-meta a[href*="/category/"] {
  display: inline-block;
  padding: 7px 14px;
  background: #3ca3dd !important;
  color: #ffffff !important;
  border-radius: 999px;
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.4;
  transition: background 240ms cubic-bezier(0.165, 0.84, 0.44, 1),
              transform 240ms cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.page-id-333930 .fec-news-blog .et_pb_post .post-meta a[rel="category tag"]:hover,
body.page-id-333930 .fec-news-blog .et_pb_post .post-meta a[rel~="category"]:hover,
body.page-id-333930 .fec-news-blog .et_pb_post .post-meta a[href*="/category/"]:hover {
  background: #2e96d1 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

body.page-id-333930 .fec-news-blog .et_pb_post .post-meta .published {
  color: #6b7286 !important;
}

/* Title: Fraunces UPPERCASE serif Navy, magazine display feel */
body.page-id-333930 .fec-news-blog .et_pb_post .entry-title {
  margin: 0 0 14px !important;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-variation-settings: "opsz" 60;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #283582;
}

body.page-id-333930 .fec-news-blog .et_pb_post .entry-title a {
  color: inherit !important;
  text-decoration: none;
  /* Underline-draws-in — modern hyperlink affordance, performant via background-size */
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  padding-bottom: 2px;
  transition: background-size 360ms cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.page-id-333930 .fec-news-blog .et_pb_post:hover .entry-title a {
  background-size: 100% 1px;
}

/* Post content wraps excerpt + more-link as flex column;
   only the excerpt paragraph gets the 3-line clamp */
body.page-id-333930 .fec-news-blog .et_pb_post .post-content {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  gap: 18px;
  margin: 0 !important;
  padding-bottom: 32px;
}

body.page-id-333930 .fec-news-blog .et_pb_post .post-content > p,
body.page-id-333930 .fec-news-blog .et_pb_post .post-content-inner {
  margin: 0 !important;
  font-family: "Inter", "Avenir", "Avenir Next", sans-serif;
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.6;
  color: #4f566b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* "Read article →" mono CTA — overrides Divi's default "Read More / MEHR LESEN" label
   via font-size:0 + ::before injected text.
   Hover scoped to direct .more-link:hover only — card hover does NOT trigger gap-grow. */
body.page-id-333930 .fec-news-blog .et_pb_post .more-link {
  align-self: flex-start;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: auto 0 0 !important;  /* push to bottom of flex column */
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 0 !important;       /* hide native "MEHR LESEN" text */
  text-decoration: none !important;
}

body.page-id-333930 .fec-news-blog .et_pb_post .more-link::before {
  content: "Read article";
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", "Menlo", monospace;
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3ca3dd;
  transition: color 240ms cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.page-id-333930 .fec-news-blog .et_pb_post .more-link::after {
  content: "→";
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 14px;
  letter-spacing: 0;
  color: #3ca3dd;
  transition: transform 240ms cubic-bezier(0.165, 0.84, 0.44, 1),
              color 240ms cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Direct link hover (only fires when cursor is on the link itself, not the card) */
body.page-id-333930 .fec-news-blog .et_pb_post .more-link:hover::before,
body.page-id-333930 .fec-news-blog .et_pb_post .more-link:hover::after {
  color: #283582;
}

body.page-id-333930 .fec-news-blog .et_pb_post .more-link:hover::after {
  transform: translateX(3px);
}
