/* ===== Skilled-OFW Loan: soft cards on white, matching the home page ===== */
:root { --soft-card: #F4F9FB; --soft-card-hover: #EAF3F8; }

/* Same section spacing as the home page: equal space above and below every section */
.ofw-section { padding: clamp(60px, 8vw, 100px) clamp(20px, 4vw, 48px); background: #FFFFFF; }
.ofw-container { max-width: 1200px; margin: 0 auto; }
.ofw-heading { max-width: 960px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.ofw-heading h2 { margin: 0; color: var(--charcoal-navy); font-size: clamp(36px, 4vw, 56px); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); font-weight: var(--fw-heading); }
.ofw-heading p { margin: 12px auto 0; color: var(--muted-blue-gray); font-size: 16px; line-height: var(--lh-body); }
.ofw-center { margin-top: clamp(24px, 3vw, 36px); text-align: center; }
.ofw-footnote { margin: 20px 0 0; text-align: center; color: var(--muted-blue-gray); font-size: 14px; }

/* Buttons and links */
.ofw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: 999px; font: inherit; font-size: 16px; font-weight: var(--fw-heading);
  text-decoration: none; cursor: pointer; transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.ofw-btn span { display: inline-block; transition: transform 200ms ease; }
.ofw-btn:hover span { transform: translateX(4px); }
.ofw-btn--apply { background: #FFA51F; border-color: #FFA51F; color: #FFFFFF; }
.ofw-btn--apply:hover { background: #E58E0B; border-color: #E58E0B; color: #FFFFFF; }
.ofw-btn--ghost { background: rgba(255,255,255,.7); border-color: rgba(27,96,131,.25); color: var(--deep-teal); }
.ofw-btn--ghost:hover { background: #FFFFFF; border-color: var(--deep-teal); }
.ofw-btn:focus-visible, .ofw-link:focus-visible, .ofw-tab:focus-visible, .ofw-contact-item:focus-visible { outline: 3px solid rgba(45,174,224,.55); outline-offset: 3px; }
.ofw-link { display: inline-flex; align-items: center; gap: 8px; color: var(--deep-teal); font-weight: var(--fw-heading); font-size: 15px; text-decoration: none; }
.ofw-link span { transition: transform 200ms ease; }
.ofw-link:hover span { transform: translateX(4px); }

/* Hero: text + cut-out photo */
.ofw-hero .faq-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: stretch; height: auto !important; min-height: 600px !important; }
.ofw-hero .faq-hero-content { align-self: center; width: auto !important; max-width: none !important; padding: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 40px) clamp(40px, 5vw, 72px) clamp(32px, 4.5vw, 68px) !important; }
.ofw-hero .faq-hero h1 { font-size: clamp(56px, 5.8vw, 88px) !important; }
.ofw-hero .faq-hero-copy { max-width: 540px !important; margin: 24px 0 30px !important; }
.ofw-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: faqHeroRiseIn 820ms cubic-bezier(.22,1,.36,1) 1450ms both; }
.ofw-hero-media { position: relative; z-index: 1; align-self: stretch; opacity: 0; animation: faqHeroRiseIn 900ms cubic-bezier(.22,1,.36,1) 700ms both; }
.ofw-hero-media img {
  position: absolute; right: clamp(8px, 2vw, 32px); bottom: 0; display: block;
  width: 100%; height: calc(100% - 24px); object-fit: contain; object-position: right bottom;
  filter: drop-shadow(0 18px 30px rgba(32, 37, 47, 0.12));
}

.ofw-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #FFFFFF; color: var(--deep-teal); }
.ofw-icon svg { width: 22px; height: 22px; }

/* Loan at a glance */
/* Loan at a glance: open stats on white, split by thin lines */
/* Why Skilled-OFW Loan: open layout with large tinted icons (same design as "What we stand for" on Our Story) */
.ofw-glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; max-width: 1200px; margin: 0 auto; }
.ofw-glance-item { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 300px; margin: 0 auto; padding: 8px 12px; text-align: center; }
.ofw-tint-blue  { --tint-color: #1E9FD3; --tint-bg: #E4F5FC; }
.ofw-tint-teal  { --tint-color: #1D6083; --tint-bg: #E3EFF5; }
.ofw-tint-slate { --tint-color: #527386; --tint-bg: #EAEFF2; }
.ofw-tint-amber { --tint-color: #D98A0B; --tint-bg: #FFF1D9; }
.ofw-glance-icon {
  display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 16px;
  background: none;
  transition: transform 400ms cubic-bezier(.22,1,.36,1);
}
.ofw-glance-icon img { display: block; width: 80px; height: 80px; }
.ofw-glance-item:hover .ofw-glance-icon { transform: rotate(-6deg) scale(1.06); }
.ofw-glance-label { margin: 0; color: var(--charcoal-navy); font-size: 22px; font-weight: var(--fw-heading); line-height: var(--lh-ui); letter-spacing: 0; }
.ofw-glance-sub { margin: 0; color: var(--muted-blue-gray); font-size: 16px; line-height: var(--lh-body); }
.ofw-glance-sub strong { color: var(--deep-teal); font-weight: var(--fw-heading); }
/* Icons pop in and draw their outline when scrolled into view */
.lp-reveal-on .ofw-glance-icon { transform: scale(.6) rotate(-12deg); }
.lp-reveal-on .ofw-glance-item.is-revealed .ofw-glance-icon { transform: none; transition: transform 700ms cubic-bezier(.34,1.56,.64,1) var(--reveal-delay, 0ms); }
.lp-reveal-on .ofw-glance-item.is-revealed:hover .ofw-glance-icon { transform: rotate(-6deg) scale(1.06); transition-delay: 0ms; }

/* Teal panel (used by the stats band) */
.ofw-section--teal, .ofw-section--soft { background: transparent; }
/* Soft light-blue panel (used by the steps) */
.ofw-section--soft > .ofw-container { padding: clamp(56px, 7vw, 88px) clamp(24px, 4vw, 56px); border-radius: 40px; background: var(--soft-card); }
.ofw-section--teal > .ofw-container {
  padding: clamp(56px, 7vw, 88px) clamp(24px, 4vw, 56px); border-radius: 40px;
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(45,174,224,.55) 0%, rgba(45,174,224,0) 60%),
    linear-gradient(135deg, #1B6083 0%, #175473 100%);
}
.ofw-section--teal .ofw-heading h2 { color: #FFFFFF; }
/* Steps: icon circles joined by a dashed line, step number in the title */
.ofw-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ofw-steps::before {
  content: ""; position: absolute; top: 40px; left: 16.67%; right: 16.67%; height: 2px; z-index: 0;
  background: repeating-linear-gradient(to right, rgba(27,96,131,.25) 0 8px, transparent 8px 16px);
}
.ofw-step { position: relative; z-index: 1; text-align: center; padding: 0 12px; }
.ofw-step-num {
  position: relative; display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--deep-teal); box-shadow: 0 0 0 8px var(--soft-card), 0 8px 20px rgba(27,96,131,.18);
}
.ofw-step-num svg { display: block; width: 44px; height: 44px; }
.ofw-step-n { color: inherit; }
.ofw-step h3 { margin: 0 0 12px; color: var(--charcoal-navy); font-size: 22px; font-weight: var(--fw-heading); line-height: var(--lh-ui); }
.ofw-step p { margin: 0 auto; max-width: 300px; color: var(--muted-blue-gray); font-size: 16px; line-height: var(--lh-body); }
/* Steps on the teal panel: white circles and text */
.ofw-section--teal .ofw-steps::before { background: repeating-linear-gradient(to right, rgba(255,255,255,.35) 0 8px, transparent 8px 16px); }
.ofw-section--teal .ofw-step-num { background: #FFFFFF; color: var(--deep-teal); box-shadow: 0 0 0 8px rgba(255,255,255,.16), 0 10px 24px rgba(10,40,58,.25); }
.ofw-section--teal .ofw-step h3 { color: #FFFFFF; }
.ofw-section--teal .ofw-step p { color: rgba(255,255,255,.8); }

/* Stories: testimonial cards and carousel (same as the home page) */
#stories .carousel-track-viewport { overflow: hidden; width: 100%; touch-action: pan-y; transition: height .45s cubic-bezier(.22,1,.36,1); }
#stories .carousel-track { --quote-gap: 24px; display: flex; align-items: stretch; gap: var(--quote-gap); transition: transform .55s cubic-bezier(.22,1,.36,1); }
.quote-card {
  flex: 0 0 calc((100% - 2 * var(--quote-gap)) / 3); min-width: 0; display: flex; flex-direction: column; gap: 20px;
  padding: 28px; border: 0; border-radius: 20px; background: var(--soft-card); transition: background-color 300ms ease;
}
@media (hover: hover) { .quote-card:hover { background: #EAF3F8; } }
.quote-stars { display: flex; gap: 3px; }
.quote-stars svg { display: block; width: 18px; height: 18px; }
.quote-stars .is-on { color: #FFA51F; }
.quote-stars .is-off { color: #DCE6EB; }
.quote-stars path { fill: currentColor; }
.quote-text {
  margin: 0; color: #111827; font-size: 16px; font-weight: 500; font-style: normal; line-height: var(--lh-body);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden;
}
.quote-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.quote-loan, .quote-place { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: var(--lh-heading); background: #FFFFFF; }
.quote-loan { color: #1B6083; }
.quote-place { color: var(--muted-blue-gray); }
.quote-place svg { width: 13px; height: 13px; flex: 0 0 13px; }
.quote-person { display: flex; align-items: center; gap: 12px; min-width: 0; padding-top: 18px; border-top: 1px solid rgba(27,96,131,.10); }
.quote-avatar {
  display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; overflow: hidden; border-radius: 50%;
  background: #FFFFFF; color: var(--deep-teal); font-size: 13px; font-weight: var(--fw-label); letter-spacing: .02em; user-select: none;
}
.quote-name { display: block; color: #111827; font-size: 15px; font-weight: 700; line-height: var(--lh-ui); }
.quote-role { display: block; margin-top: 6px; color: var(--muted-blue-gray); font-size: 14px; line-height: var(--lh-ui); }
#stories .carousel-indicators { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 40px; }
#stories .indicator-line {
  position: relative; height: 5px; width: 36px; padding: 0; border: none; border-radius: 999px; background: rgba(27,96,131,.18); cursor: pointer;
  transition: width .35s cubic-bezier(.16,1,.3,1), background-color .35s ease;
}
#stories .indicator-line::before { content: ""; position: absolute; inset: -18px -4px; }
#stories .indicator-line:hover { background: rgba(27,96,131,.4); }
#stories .indicator-line.active { width: 72px; background: var(--accent-orange); }
#stories .indicator-line:focus-visible { outline: 3px solid rgba(45,174,224,.65); outline-offset: 3px; }
@media (max-width: 1024px) { .quote-card { flex-basis: calc((100% - var(--quote-gap)) / 2); } }
@media (max-width: 640px) {
  #stories .carousel-track { --quote-gap: 16px; }
  .quote-card { flex-basis: 100%; padding: 24px; border-radius: 18px; }
  #stories .indicator-line { width: 8px; height: 8px; }
  #stories .indicator-line.active { width: 28px; }
  #stories .carousel-indicators { gap: 8px; margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  #stories .carousel-track, #stories .carousel-track-viewport, .quote-card, #stories .indicator-line { transition: none; }
}
/* Have questions: three simple contact options split by thin lines */
.ofw-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; margin: 0 auto; }
.ofw-contact-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 8px; padding: 20px 16px;
  border-radius: 20px; text-align: center; text-decoration: none; transition: background-color 200ms ease;
}
.ofw-contact-item + .ofw-contact-item { position: relative; }
.ofw-contact-item + .ofw-contact-item::before { content: ""; position: absolute; left: -8px; top: 20%; bottom: 20%; width: 1px; background: rgba(27,96,131,.15); }
.ofw-contact-item:hover { background: #EAF7FC; }
.ofw-contact-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; color: var(--deep-teal); }
.ofw-contact-icon img { display: block; width: 44px; height: 44px; }
.ofw-contact-item strong { color: var(--charcoal-navy); font-size: 17px; font-weight: var(--fw-heading); }
.ofw-contact-item span:last-child { color: var(--deep-teal); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .ofw-contact { grid-template-columns: minmax(0, 1fr); }
  .ofw-contact-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; margin: 0; padding: 14px 8px; text-align: left; }
  .ofw-contact-icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
  .ofw-contact-icon img { width: 34px; height: 34px; }
  .ofw-contact-item + .ofw-contact-item::before { left: 8px; right: 8px; top: 0; bottom: auto; width: auto; height: 1px; }
}

/* Reveal */
.lp-reveal-on [data-reveal] { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity 700ms cubic-bezier(.22,1,.36,1), transform 700ms cubic-bezier(.22,1,.36,1), background-color 300ms ease; transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms; }
.lp-reveal-on [data-reveal].is-revealed { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .ofw-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
}
@media (max-width: 960px) {
  .ofw-hero .faq-hero { grid-template-columns: minmax(0, 1fr); min-height: 0 !important; }
  .ofw-hero .faq-hero-content { padding: 44px 32px 20px !important; }
  .ofw-hero-media { height: 360px; }
  .ofw-hero-media img { right: 0; height: 100%; object-position: center bottom; }
}
@media (max-width: 760px) {
  .ofw-steps { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .ofw-steps::before { display: none; }
}
@media (max-width: 640px) {
  .ofw-section { padding: 60px 16px; }
  .ofw-section--teal > .ofw-container, .ofw-section--soft > .ofw-container { padding: 48px 20px; border-radius: 28px; }
  .ofw-hero .faq-hero-content { padding: 40px 22px 40px !important; }
  .ofw-hero .faq-hero h1 { font-size: clamp(40px, 11vw, 52px) !important; }
  .ofw-hero-actions .ofw-btn { flex: 1 1 100%; }
  .ofw-hero-media { display: none; } /* hero image hidden on phones */
  .ofw-glance { gap: 32px 16px; }
  .ofw-glance-item { padding: 0 4px; gap: 6px; }
  .ofw-glance-label { font-size: 18px; }
  .ofw-glance-icon { width: 64px; height: 64px; margin-bottom: 10px; }
  .ofw-glance-icon img { width: 64px; height: 64px; }
  .ofw-glance-sub { font-size: 15px; line-height: var(--lh-body); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ofw-hero-actions, .ofw-hero-media { animation: none !important; opacity: 1 !important; }
  .ofw-contact-item, .ofw-btn span, .ofw-link span, .ofw-tab { transition: none !important; }
  .ofw-glance-icon { transform: none !important; transition: none !important; }
}
