/* SEAYAPI Easton Plugin v1.0.11 – H1 Feature 2.
   Strictly scoped: original H1 Feature cards are unaffected. */
.feature-section.seayapi-feature2 {
  --sf2-outer: #515358;
  --sf2-outer-hover: #f0965e;
  --sf2-panel: #26282e;
  --sf2-panel-hover: #eb7328;
  --sf2-card-title: #ffffff;
  --sf2-card-text: #ffffff;
  --sf2-icon: #eb7328;
  --sf2-icon-hover: #ffffff;
  --sf2-link: #ffffff;
  --sf2-link-hover: #ffffff;
  width: 100%;
}
.seayapi-feature2 .sf2-intro {
  max-width: 1120px;
  margin: 0 auto 46px;
  text-align: center;
}
.seayapi-feature2 .sf2-intro--left { text-align: left; }
.seayapi-feature2 .sf2-intro--right { text-align: right; }
.seayapi-feature2 .sf2-intro__eyebrow {
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #eb7328;
}
.seayapi-feature2 .sf2-intro__heading {
  color: #202126;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 16px;
}
.seayapi-feature2 .sf2-intro__description {
  font-size: 16px;
  line-height: 1.75;
  color: #777;
}
.seayapi-feature2 .sf2-intro__description > :last-child { margin-bottom: 0; }
.seayapi-feature2 .sf2-grid { row-gap: 28px; }
.seayapi-feature2 .sf2-col { container: sf2-card / inline-size; min-width: 0; }
/* Easton's responsive.css fixes feature cards at max-width:300px below 1699px.
   Lift this constraint only for the cloned widget. */
.feature-section.seayapi-feature2 .feature-block-one,
.feature-section.seayapi-feature2 .feature-block-one .inner-box {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}
.feature-section.seayapi-feature2 .feature-block-one .inner-box {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 320px;
  background: var(--sf2-outer);
  border-radius: 5px;
  box-shadow: 0 12px 32px rgba(23,28,35,.07);
  transition: background-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.feature-section.seayapi-feature2 .feature-block-one .inner-box:hover,
.feature-section.seayapi-feature2 .feature-block-one .inner-box:focus-within {
  background: var(--sf2-outer-hover);
  box-shadow: 0 20px 42px rgba(23,28,35,.14);
}
.feature-section.seayapi-feature2 .feature-block-one .image-box {
  flex: 0 0 39%;
  width: 39%;
  min-width: 0;
  max-width: none !important;
  margin: 0;
  float: none !important;
  overflow: hidden;
  position: relative;
}
.feature-section.seayapi-feature2 .feature-block-one .image-box > a,
.feature-section.seayapi-feature2 .feature-block-one .image-box > button {
  display: block;
  width: 100%;
  height: 100%;
  background: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
  text-align: inherit;
  cursor: pointer;
}
.feature-section.seayapi-feature2 .feature-block-one .image-box img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center center;
  transition: transform .45s ease;
}
.feature-section.seayapi-feature2 .feature-block-one .image-box .noimage {
  min-height: 320px;
  height: 100%;
  background: linear-gradient(135deg, #505359 0%, #2e3138 100%);
}
.feature-section.seayapi-feature2 .feature-block-one .content-box {
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
  min-height: 0;
  max-width: none !important;
  float: none !important;
  background: var(--sf2-panel);
  clip-path: none;
  padding: clamp(24px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  transition: background-color .35s ease;
}
.feature-section.seayapi-feature2 .feature-block-one .inner-box:hover .content-box,
.feature-section.seayapi-feature2 .feature-block-one .inner-box:focus-within .content-box {
  background: var(--sf2-panel-hover);
}
.feature-section.seayapi-feature2 .feature-block-one .content-box .icon-box {
  color: var(--sf2-icon);
  margin: 0 0 16px;
  transition: color .35s ease;
}
.feature-section.seayapi-feature2 .feature-block-one .inner-box:hover .content-box .icon-box,
.feature-section.seayapi-feature2 .feature-block-one .inner-box:focus-within .content-box .icon-box {
  color: var(--sf2-icon-hover);
}
.feature-section.seayapi-feature2 .feature-block-one .content-box h3 {
  color: var(--sf2-card-title);
  overflow-wrap: anywhere;
  margin: 0 0 13px;
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.28;
}
.feature-section.seayapi-feature2 .feature-block-one .content-box h3 a,
.feature-section.seayapi-feature2 .feature-block-one .content-box h3 span,
.feature-section.seayapi-feature2 .feature-block-one .content-box .sf2-title-trigger {
  font: inherit;
  display: inline;
  color: var(--sf2-card-title);
  line-height: inherit;
  text-align: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
}
.feature-section.seayapi-feature2 .feature-block-one .content-box .sf2-title-trigger {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-weight: inherit;
}
.feature-section.seayapi-feature2 .feature-block-one .content-box h3 a:hover,
.feature-section.seayapi-feature2 .feature-block-one .content-box .sf2-title-trigger:hover {
  text-decoration: underline;
}
.feature-section.seayapi-feature2 .feature-block-one .content-box p {
  color: var(--sf2-card-text);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.feature-section.seayapi-feature2 .feature-block-one .content-box .link { margin-top: 4px; }
.feature-section.seayapi-feature2 .feature-block-one .content-box .link a,
.feature-section.seayapi-feature2 .feature-block-one .content-box .link button {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sf2-link);
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color .25s ease;
}
.feature-section.seayapi-feature2 .feature-block-one .content-box .link a:hover,
.feature-section.seayapi-feature2 .feature-block-one .content-box .link button:hover {
  color: var(--sf2-link-hover);
}
.feature-section.seayapi-feature2 .feature-block-one .content-box .link i {
  opacity: 1;
  font-size: 13px;
  position: static;
  margin: 0;
  transition: transform .2s ease;
}
.feature-section.seayapi-feature2 .feature-block-one .content-box .link :is(a,button):hover i { transform: translateX(4px); }
/* Keyboard cues are always visible without suppressing the site's global focus styling. */
.feature-section.seayapi-feature2 :is(button,a):focus-visible,
.sf2-modal :is(button,a):focus-visible { outline: 3px solid #f2a361; outline-offset: 4px; }
/* Container query adapts every card independently, not merely the viewport width.
   Column 12 stays broad; columns 4 and smaller stack naturally. */
@container sf2-card (max-width: 540px) {
  .feature-section.seayapi-feature2 .feature-block-one .inner-box { flex-direction: column; min-height: 0; }
  .feature-section.seayapi-feature2 .feature-block-one .image-box { flex: none; width: 100%; height: clamp(175px, 42cqw, 275px); }
  .feature-section.seayapi-feature2 .feature-block-one .image-box img { min-height: 0; height: 100%; }
  .feature-section.seayapi-feature2 .feature-block-one .image-box .noimage { height: 100%; min-height: 0; }
  .feature-section.seayapi-feature2 .feature-block-one .content-box { width: 100% !important; flex: 1 1 auto; padding: clamp(22px, 6cqw, 34px); }
}
@media(max-width: 767px) {
  .seayapi-feature2 .sf2-intro { margin-bottom: 28px; }
  .feature-section.seayapi-feature2 .feature-block-one .inner-box { flex-direction: column; }
  .feature-section.seayapi-feature2 .feature-block-one .image-box { flex: none; width: 100%; height: 240px; }
  .feature-section.seayapi-feature2 .feature-block-one .image-box img { min-height: 0; height: 100%; }
  .feature-section.seayapi-feature2 .feature-block-one .content-box { width: 100% !important; flex: 1 1 auto; }
}
/* Native <dialog> is rendered in the browser top layer, above Elementor popups.
   Modal shows a profile/hero image plus a long scrollable detail article. */
.sf2-modal {
  box-sizing: border-box;
  position: fixed;
  width: min(1100px, calc(100vw - 36px));
  max-width: 1100px;
  max-height: min(90dvh, 920px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: #24272c;
  box-shadow: 0 40px 110px rgba(0,0,0,.35);
  overflow: auto;
}
.sf2-modal:not([open]) { display: none; }
.sf2-modal[open] { animation: sf2-enter .25s ease both; }
.sf2-modal::backdrop { background: rgba(12, 17, 22, .76); backdrop-filter: blur(3px); }
.sf2-modal-close {
  position: sticky;
  top: 18px;
  left: calc(100% - 66px);
  float: right;
  z-index: 6;
  display: flex;
  width: 44px;
  height: 44px;
  margin: 18px 18px -64px 0;
  justify-content: center;
  align-items: center;
  appearance: none;
  border: 1px solid #eee;
  border-radius: 50%;
  background: #fff;
  color: #1d242a;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,.15);
  transition: transform .2s ease, background .2s ease;
}
.sf2-modal-close:hover { background: #fbe3d4; transform: rotate(90deg); }
.sf2-modal-layout { display: block; }
.sf2-modal-layout--with-image { display: grid; grid-template-columns: minmax(0,40%) minmax(0,60%); }
.sf2-modal-profile { min-height: 380px; background: #eceff0; overflow: hidden; }
.sf2-modal-profile img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; display: block; }
.sf2-modal-copy { min-width: 0; padding: clamp(32px,4.3vw,68px); padding-top: 72px; }
.sf2-modal-kicker { font-size: 13px; letter-spacing: .11em; text-transform: uppercase; color: #eb7328; font-weight: 700; margin-bottom: 14px; }
.sf2-modal-title { font-size: clamp(27px, 3vw, 42px); line-height: 1.2; font-weight: 700; color: #1e2228; margin: 0 0 24px; }
.sf2-modal-richtext { color: #60656d; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.sf2-modal-richtext :where(p, ul, ol) { margin: 0 0 18px; }
.sf2-modal-richtext :where(ul, ol) { padding-left: 25px; }
.sf2-modal-richtext a { color: #e46f29; text-decoration: underline; }
.sf2-modal-richtext img { max-width: 100%; height: auto; }
.sf2-modal-richtext :last-child { margin-bottom: 0; }
html.sf2-modal-open { overflow: hidden; }
@keyframes sf2-enter { from {opacity:0;transform:translateY(16px) scale(.985)} to {opacity:1;transform:translateY(0) scale(1)} }
@media(max-width: 767px) {
  .sf2-modal { width: calc(100vw - 22px); max-height: 93dvh; border-radius: 10px; }
  .sf2-modal-layout--with-image { grid-template-columns: 1fr; }
  .sf2-modal-profile { min-height: 0; height: 230px; }
  .sf2-modal-profile img { min-height: 0; height: 100%; }
  .sf2-modal-copy { padding: 32px 25px 40px; }
  .sf2-modal-close { top: 10px; margin: 10px 10px -54px 0; width: 42px; height: 42px; }
}
@media(prefers-reduced-motion:reduce) {
  .sf2-modal[open] { animation:none; }
  .feature-section.seayapi-feature2 * { transition: none !important; }
}

/* SEAYAPI v1.0.12 – Restore theme icon glyph visibility on the horizontal cards. */
.feature-section.seayapi-feature2 .feature-block-one .content-box .icon-box {
  display: block;
  flex: 0 0 auto;
  visibility: visible;
  line-height: 1;
  min-height: 47px;
  font-size: 44px;
  text-align: left;
}
.feature-section.seayapi-feature2 .feature-block-one .content-box .icon-box :is(i,svg) {
  display: inline-block;
  color: inherit;
  font-size: inherit;
  line-height: 1;
  width: auto;
  height: 1em;
  vertical-align: middle;
}
.feature-section.seayapi-feature2 .feature-block-one .content-box .icon-box svg {
  width: 1em;
  fill: currentColor;
}
