/* ==========================================================================
   Omega Academix — brand layer (WBS-style): square corners, navy panels with
   cut corners, orange stripes, rectangular buttons, section sub-nav, modal.
   Loaded on every public page after the page styles, before dark-mode.css.
   Square corners for existing components come from oa-square.css (generated).
   ========================================================================== */

:root {
    --oa-navy: #07285A;
    --oa-navy-deep: #051c40;
    --oa-navy-soft: #0e3a7a;
    --oa-orange: #f26a21;
    --oa-orange-2: #ff8a3d;
    --oa-grad: linear-gradient(100deg, #e85d14 0%, #ff8a3d 100%);
    --oa-ink: #0f1d33;
    --oa-body: #4a5568;
    --oa-line: #dde3ee;
    --oa-grey: #f1f4f9;
    --oa-cut: 64px;

    --modern-radius: 0;
    --modern-radius-sm: 0;
    --bs-border-radius: 0;
    --bs-border-radius-sm: 0;
    --bs-border-radius-lg: 0;
    --bs-border-radius-xl: 0;
    --bs-border-radius-xxl: 0;
    --bs-border-radius-2xl: 0;
    --bs-border-radius-pill: 0;
}

/* ── Buttons ──────────────────────────────────────────── */
.oa-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 56px; padding: 14px 30px; border: 2px solid transparent; border-radius: 0;
    font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.oa-btn i { font-size: 14px; transition: transform .25s; }
.oa-btn:hover i { transform: translateX(4px); }
.oa-btn:focus-visible { outline: 3px solid var(--oa-orange-2); outline-offset: 3px; }
.oa-btn--primary { background: var(--oa-grad); color: #fff; }
.oa-btn--primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(242, 106, 33, .35); transform: translateY(-2px); }
.oa-btn--light { border-color: #fff; color: #fff; background: transparent; }
.oa-btn--light:hover { background: #fff; color: var(--oa-navy); }
.oa-btn--outline { border-color: var(--oa-navy); color: var(--oa-navy); background: transparent; }
.oa-btn--outline:hover { background: var(--oa-navy); color: #fff; }
.oa-btn[disabled] { opacity: .6; pointer-events: none; }

.oa-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--oa-navy); text-decoration: none; border-bottom: 2px solid var(--oa-orange); padding-bottom: 3px; }
.oa-link:hover { color: var(--oa-orange); }
.oa-link i { font-size: 13px; transition: transform .25s; }
.oa-link:hover i { transform: translateX(4px); }

/* existing theme buttons pick up the same shape and accent */
.btn-primary-modern { background: var(--oa-grad) !important; border-radius: 0 !important; }
.btn-secondary-modern { border-radius: 0 !important; }

/* ── Headings ─────────────────────────────────────────── */
.oa-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oa-orange); }
.oa-kicker::before { content: ""; width: 28px; height: 3px; background: var(--oa-grad); }
.oa-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.oa-head h2 { margin: 10px 0 0; font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--oa-ink); }
.oa-head p { margin: 12px 0 0; max-width: 620px; font-size: 17px; line-height: 1.7; color: var(--oa-body); }

/* the theme's centred section titles: pill tag becomes a ruled kicker */
.modern-section-title .section-tag { background: none !important; padding: 0 !important; border-radius: 0 !important; color: var(--oa-orange) !important; letter-spacing: .14em; display: inline-flex; align-items: center; gap: 12px; }
.modern-section-title .section-tag::before, .modern-section-title .section-tag::after { content: ""; width: 24px; height: 3px; background: var(--oa-grad); }

/* ── Stripes (the WBS ribbon, in Omega orange) ────────── */
.oa-stripes {
    display: block; height: 84px; pointer-events: none;
    background: repeating-linear-gradient(180deg, var(--oa-stripe, rgba(242, 106, 33, .55)) 0 9px, transparent 9px 19px);
    clip-path: polygon(84px 0, 100% 0, calc(100% - 84px) 100%, 0 100%);
}
.oa-stripes--anim { transform-origin: left; animation: oaStripesIn 1.1s cubic-bezier(.2, .7, .2, 1) both .3s; }
@keyframes oaStripesIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Navy band ────────────────────────────────────────── */
.oa-band { position: relative; background: var(--oa-navy); color: #fff; overflow: hidden; }
.oa-band h2, .oa-band h3 { color: #fff !important; }
.oa-band p { color: rgba(255, 255, 255, .8); }

/* ── Inner-page banners (all breadcrumb headers) ──────── */
.breadcum-area,
section.py-56,
section[data-background*="breadcrumb"] {
    background: var(--oa-navy) !important;
    background-image: none !important;
}
.breadcum-area::before,
section.py-56::before {
    content: "" !important; position: absolute !important; inset: auto 0 0 auto !important; top: auto !important; left: auto !important;
    width: min(46%, 620px) !important; height: 64px !important; border-radius: 0 !important;
    background: repeating-linear-gradient(180deg, rgba(242, 106, 33, .6) 0 8px, transparent 8px 17px) !important;
    clip-path: polygon(64px 0, 100% 0, 100% 100%, 0 100%);
    transform-origin: right; animation: oaStripesIn 1s cubic-bezier(.2, .7, .2, 1) both .2s;
}
.breadcum-area::after {
    content: "" !important; position: absolute !important; top: 0 !important; left: 0 !important; bottom: auto !important; right: auto !important;
    width: 0 !important; height: 0 !important; border-radius: 0 !important; background: none !important;
    border-style: solid; border-width: 56px 56px 0 0; border-color: #fff transparent transparent transparent;
}
.breadcum-area > .container, section.py-56 > .container { position: relative; z-index: 1; }
/* content starts below the banner (the old theme pulled it 180px up over it) */
.eNtery-item { margin-top: 0; }
.breadcum-area .showing-text { margin: 8px 0 0; }

/* ── Page hero (navy box with cut corner + stripes) ───── */
.oa-page-hero { padding: 34px 0 0; }
.oa-page-hero-box { padding: 72px 72px 120px; clip-path: polygon(var(--oa-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--oa-cut)); }
.oa-page-hero-box h1 { margin: 16px 0 16px; max-width: 760px; font-size: clamp(32px, 4vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: #fff !important; }
.oa-page-hero-box p { max-width: 640px; margin: 0 0 30px; font-size: 18px; line-height: 1.7; }
.oa-page-hero-box .oa-kicker { color: var(--oa-orange-2); }
.oa-page-hero-box .oa-stripes { position: absolute; right: 0; bottom: 28px; width: 46%; height: 60px; }
.oa-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 767px) {
    .oa-page-hero { padding-top: 16px; }
    .oa-page-hero-box { padding: 48px 24px 96px; }
    .oa-page-hero-box .oa-stripes { width: 70%; height: 46px; }
}
html.oa-dark .oa-page-hero-box { background: #0a2350; }

/* ── Section sub-nav (WBS grey strip) ─────────────────── */
.oa-subnav { position: sticky; top: 70px; z-index: 900; background: var(--oa-grey); border-bottom: 1px solid var(--oa-line); }
.oa-subnav ul { display: flex; justify-content: space-between; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.oa-subnav ul::-webkit-scrollbar { display: none; }
.oa-subnav a {
    display: block; padding: 22px 26px 19px; white-space: nowrap; border-bottom: 3px solid transparent;
    font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--oa-ink); text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.oa-subnav a:hover { color: var(--oa-navy-soft); background: rgba(255, 255, 255, .6); }
.oa-subnav a.active { background: #fff; color: var(--oa-navy-soft); border-bottom-color: var(--oa-navy-soft); }
.oa-subnav-target { scroll-margin-top: 140px; }

/* ── Modal (Talk to us) ───────────────────────────────── */
html.oa-modal-open { overflow: hidden; }
.oa-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(5, 18, 40, .62); backdrop-filter: blur(3px); }
.oa-modal[hidden] { display: none; }
.oa-modal-box { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); width: 100%; max-width: 880px; max-height: calc(100vh - 40px); overflow: auto; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: oaModalIn .3s ease both; }
@keyframes oaModalIn { from { opacity: 0; transform: translateY(16px); } }
.oa-modal-close { position: absolute; top: 10px; right: 14px; z-index: 2; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--oa-body); cursor: pointer; }
.oa-modal-side { position: relative; overflow: hidden; padding: 40px 32px 110px; background: var(--oa-navy); color: #fff; clip-path: polygon(48px 0, 100% 0, 100% 100%, 0 100%, 0 48px); }
.oa-modal-side h3 { margin: 14px 0 12px; font-size: 28px; font-weight: 700; color: #fff !important; }
.oa-modal-side p { color: rgba(255, 255, 255, .8); line-height: 1.65; font-size: 15px; }
.oa-modal-mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; color: #fff; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--oa-orange); padding-bottom: 3px; font-size: 14px; overflow-wrap: anywhere; }
.oa-modal-mail:hover { color: var(--oa-orange-2); }
.oa-stripes--modal { position: absolute; left: 0; right: 0; bottom: 26px; height: 56px; }
.oa-modal-form, .oa-modal-done { grid-column: 2; padding: 40px 36px 34px; display: flex; flex-direction: column; gap: 16px; }
.oa-modal-form[hidden], .oa-modal-done[hidden] { display: none; }
.oa-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.oa-field { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.oa-field > span { font-size: 13px; font-weight: 700; color: var(--oa-ink); }
.oa-field em { font-style: normal; font-weight: 500; color: var(--oa-body); }
.oa-field input, .oa-field select, .oa-field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #c9d2e1; border-radius: 0; background: #fff; color: var(--oa-ink);
    font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.oa-field textarea { resize: vertical; min-height: 120px; }
.oa-field input:focus, .oa-field select:focus, .oa-field textarea:focus { outline: none; border-color: var(--oa-navy-soft); box-shadow: 0 0 0 3px rgba(14, 58, 122, .15); }
.oa-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.oa-form-error { margin: 0; padding: 10px 14px; border-left: 4px solid #dc2626; background: #fef2f2; color: #991b1b; font-size: 14px; }
.oa-modal-form .oa-btn { align-self: flex-start; }
.oa-modal-done { align-items: flex-start; justify-content: center; }
.oa-done-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: #16a34a; font-size: 24px; }
.oa-modal-done h3 { margin: 6px 0 0; font-size: 26px; color: var(--oa-ink); }
.oa-modal-done p { margin: 0; color: var(--oa-body); line-height: 1.6; }

@media (max-width: 767px) {
    .oa-modal { padding: 0; align-items: stretch; }
    .oa-modal-box { grid-template-columns: 1fr; max-height: 100vh; }
    .oa-modal-side { padding: 30px 22px 84px; clip-path: none; }
    .oa-modal-side h3 { font-size: 23px; }
    .oa-stripes--modal { bottom: 16px; height: 44px; }
    .oa-modal-form, .oa-modal-done { grid-column: 1; padding: 24px 22px 30px; }
    .oa-field-row { grid-template-columns: 1fr; }
    .oa-modal-close { color: #fff; }
    .oa-subnav { top: 62px; }
    .oa-subnav a { padding: 16px 16px 13px; font-size: 12px; }
    .oa-btn { min-height: 50px; padding: 12px 22px; font-size: 15px; }
    .breadcum-area::after { border-width: 34px 34px 0 0; }
    .breadcum-area::before, section.py-56::before { height: 40px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .oa-stripes--anim, .breadcum-area::before, section.py-56::before, .oa-modal-box { animation: none !important; }
}

/* ── Dark mode ────────────────────────────────────────── */
html.oa-dark {
    --oa-ink: var(--oa-d-ink);
    --oa-body: var(--oa-d-text);
    --oa-line: var(--oa-d-line);
    --oa-grey: var(--oa-d-soft);
}
html.oa-dark .oa-btn--outline { border-color: #8fa8ff; color: #c9d6ff; }
html.oa-dark .oa-btn--outline:hover { background: #8fa8ff; color: #0b1220; }
html.oa-dark .oa-link { color: var(--oa-d-ink); }
html.oa-dark .oa-band { background: #0a2350; }
html.oa-dark .breadcum-area, html.oa-dark section.py-56 { background: #0a2350 !important; }
html.oa-dark .breadcum-area::after { border-color: var(--oa-d-bg) transparent transparent transparent; }
html.oa-dark .oa-subnav a:hover { background: var(--oa-d-card); }
html.oa-dark .oa-subnav a.active { background: var(--oa-d-card); color: #9db4ff; border-bottom-color: #9db4ff; }
html.oa-dark .oa-modal-box { background: var(--oa-d-card); }
html.oa-dark .oa-modal-side { background: #0a2350; }
html.oa-dark .oa-field input, html.oa-dark .oa-field select, html.oa-dark .oa-field textarea { background: var(--oa-d-soft); border-color: var(--oa-d-line); color: var(--oa-d-ink); }
html.oa-dark .oa-form-error { background: rgba(220, 38, 38, .12); color: #fca5a5; }

/* EGPI applicant call-to-action (partner page): navy panel with stripes */
.apply-cta-inner { position: relative; overflow: hidden; background: var(--oa-navy) !important; border-radius: 0 !important; padding: 44px 48px 88px !important; clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%, 0 40px); }
.apply-cta-inner::after { content: ""; position: absolute; right: 0; bottom: 22px; width: 42%; height: 46px; background: repeating-linear-gradient(180deg, rgba(242, 106, 33, .6) 0 7px, transparent 7px 15px); clip-path: polygon(46px 0, 100% 0, 100% 100%, 0 100%); }
.apply-cta-inner .section-tag { background: none !important; padding: 0 !important; color: var(--oa-orange-2) !important; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; font-weight: 700; }
.modern-apply-btn { background: var(--oa-grad) !important; color: #fff !important; border-radius: 0 !important; min-height: 52px; }
.modern-apply-btn:hover { box-shadow: 0 10px 26px rgba(242, 106, 33, .35); }
html.oa-dark .apply-cta-inner { background: #0a2350 !important; }

/* stripes read brighter on navy panels */
.oa-band .oa-stripes, .oa-modal-side .oa-stripes { --oa-stripe: rgba(255, 138, 61, .9); }
