/* flexcodesys.com additions on top of the FlexCode Middle East design (site.min.css). */

/* Language switcher in the header: EN | DE side by side */
.fx-lang-switch { display: flex; align-items: center; gap: .15rem; }
.fx-lang-switch .nav-link { font-size: .85rem; letter-spacing: .02em; color: var(--700, #495057); }
.fx-lang-switch .nav-link + .nav-link::before { content: "|"; margin-right: .4rem; color: var(--400, #CED4DA); }
.fx-lang-switch .nav-link.active { color: #3B2BE3; }

/* Blog content blocks (from the live site's article markup: §§ stats, !! callout, ✓ checklist) */
.o_wblog_read_text .fc-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem;
  margin: 2rem 0;
}
.o_wblog_read_text .fc-stat {
  background: #f2f0f5; border-radius: 14px; padding: 1.1rem 1rem; display: flex; flex-direction: column; gap: .35rem;
}
.o_wblog_read_text .fc-stat__value { font-family: Sora, sans-serif; font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: #3B2BE3; }
.o_wblog_read_text .fc-stat__label { font-size: .9rem; line-height: 1.35; color: var(--700, #495057); }
.o_wblog_read_text .fc-callout {
  border-left: 4px solid #3B2BE3; background: #f2f0f5; border-radius: 0 12px 12px 0;
  padding: 1rem 1.25rem; margin: 1.75rem 0; font-weight: 500; color: #1d142e;
}
.o_wblog_read_text ul.fc-checklist { list-style: none; padding-left: 0; }
.o_wblog_read_text ul.fc-checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .5rem; }
.o_wblog_read_text ul.fc-checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: #3B2BE3; color: #fff; font-size: .75rem; line-height: 1.3rem; text-align: center; font-weight: 700;
}
.o_wblog_read_text blockquote { border-left: 4px solid #3B2BE3; margin: 1.75rem 0; padding: .25rem 0 .25rem 1.25rem; font-style: italic; }
.o_wblog_read_text table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.o_wblog_read_text th, .o_wblog_read_text td { border-bottom: 1px solid var(--300, #DEE2E6); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.o_wblog_read_text thead th { background: #f2f0f5; font-weight: 700; }
.o_wblog_read_text .wp-block-table { overflow-x: auto; margin: 0; }
.o_wblog_read_text hr { margin: 2.25rem 0; opacity: .15; }
.o_wblog_read_text h2 { margin-top: 2.25rem; }
.o_wblog_read_text h3 { margin-top: 1.75rem; }

@media (max-width: 575px) {
  .o_wblog_read_text .fc-stats { grid-template-columns: 1fr 1fr; }
  .o_wblog_read_text .fc-stat__value { font-size: 1.3rem; }
}

/* Footer additions */
.cx-footer .fc-partner-pill { display: inline-block; color: inherit; border: 1px solid currentColor; border-radius: 999px; padding: .3rem .8rem; font-size: .8rem; font-weight: 600; text-decoration: none; opacity: .85; }
.cx-footer .fc-partner-pill:hover { opacity: 1; }
.cx-footer .fc-cookie-settings { background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cx-footer .fc-cookie-settings:hover { text-decoration: underline; }

/* Pages rebuilt from the live site (tools/extract_live.mjs + build_page_records.py) */
.fc-live-section .container > p, .fc-live-section .fc-card > p { max-width: 820px; }
.fc-live-section p.fc-eyebrow, .fc-prose p.fc-eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #3B2BE3; background: rgba(59,43,227,.08); border-radius: 999px; padding: .3rem .8rem; margin-bottom: 1rem;
}
.fc-live-section .fc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin: 2rem 0;
}
.fc-live-section .fc-card {
  background: #fff; border-radius: 18px; padding: 1.5rem; box-shadow: 0 10px 30px rgba(29,20,46,.07);
  display: flex; flex-direction: column; gap: .5rem;
}
.fc-live-section .fc-card h3, .fc-live-section .fc-card h4, .fc-live-section .fc-card h5 { font-size: 1.15rem; font-weight: 700; margin: .25rem 0; }
.fc-live-section .fc-card p { margin-bottom: .25rem; }
.fc-live-section .fc-card .fc-grid { margin: .5rem 0 0; }
.fc-live-section .fc-card .fc-card { box-shadow: none; background: #f2f0f5; }
.fc-live-section ul { padding-left: 1.2rem; }
.fc-live-section li { margin-bottom: .35rem; }
.fc-live-section img { max-width: 100%; height: auto; border-radius: 12px; }
.fc-live-section .fc-btn-label { display: none; } /* labels of JS-only buttons in the live page */
.fc-live-section details { background: #fff; border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: .75rem; box-shadow: 0 6px 18px rgba(29,20,46,.05); }
.fc-live-section summary { font-weight: 700; cursor: pointer; }
.fc-prose { font-size: 1.02rem; line-height: 1.7; }
.fc-prose h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2.25rem; }
.fc-prose h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.5rem; }
.fc-prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .95rem; }
.fc-prose th, .fc-prose td { border-bottom: 1px solid var(--300, #DEE2E6); padding: .5rem .6rem; text-align: left; vertical-align: top; }
.fc-live-section .fc-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.fc-live-section .fc-chip { display: inline-block; border: 1px solid rgba(59,43,227,.25); color: #3B2BE3; background: rgba(59,43,227,.05); border-radius: 999px; padding: .2rem .7rem; font-size: .8rem; font-weight: 600; }
.fc-live-section .fc-actions { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: 1rem; }

/* Home */
.fc-logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.5rem; }
.fc-logo-row .fc-logo { height: 44px; width: auto; filter: grayscale(1); opacity: .75; transition: opacity .2s, filter .2s; }
.fc-logo-row .fc-logo:hover { filter: none; opacity: 1; }
details.fc-faq { background: #fff; border-radius: 16px; padding: 1.1rem 1.4rem; margin-bottom: .85rem; box-shadow: 0 6px 18px rgba(29,20,46,.05); }
details.fc-faq summary { font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
details.fc-faq summary::-webkit-details-marker { display: none; }
details.fc-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: #3B2BE3; }
details.fc-faq[open] summary::after { content: "−"; }
@media (min-width: 1200px) { .fc-industries > .col-xl { flex: 0 0 20%; max-width: 20%; } }

/* Forms (flexcode-core/inc/forms.php) */
.fc-form .fc-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fc-form altcha-widget { display: block; margin-top: 4px; width: 100%; --altcha-max-width: 100%; }
.fc-form .form-control, .fc-form .form-select { border-radius: 12px; padding: .65rem .9rem; }
.cx-panel .fc-form .form-label, .cx-panel .fc-form .form-check-label { color: inherit; }

/* Cookie banner (bundle/src/consentBanner.ts): slim bar along the bottom edge, like the live site */
.fc-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1060; background: rgba(10,15,30,.96); color: #fff; box-shadow: 0 -8px 30px rgba(0,0,0,.25); padding: .9rem 0; }
.fc-consent__inner { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.fc-consent__text { flex: 1 1 420px; font-size: .88rem; }
.fc-consent__title { display: block; margin-bottom: .2rem; }
.fc-consent a { color: #A3A3D9; }
.fc-consent__actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.fc-consent__actions .btn-primary { min-height: 40px; font-weight: 700; white-space: nowrap; }
.fc-consent__actions .btn-link { color: #fff; }
.fc-consent__settings { margin-top: .75rem; max-height: 50vh; overflow: auto; }
.fc-consent__cat { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; border-top: 1px solid rgba(255,255,255,.12); }
.fc-consent__cat small { display: block; opacity: .75; }
.fc-consent__cat em { font-style: normal; font-size: .8rem; opacity: .75; white-space: nowrap; }

/* Live chat launcher (bundle/src/chat.ts), same place and colour as the live site */
.fc-chat-launcher { position: fixed; right: 25px; bottom: 10px; z-index: 1040; width: 56px; height: 56px; border-radius: 50%; border: 0; background: #5a8187; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.2); display: grid; place-items: center; }
.fc-chat-launcher.is-loading { opacity: .7; }
body.fc-consent-open .fc-chat-launcher, body.fc-consent-open .cx-wa { bottom: 120px; }
.fc-debug-panel { position: fixed; bottom: 1rem; right: 1rem; z-index: 2000; max-width: 360px; background: #fff; border: 1px solid #ddd; border-radius: 12px; padding: 1rem; font: 12px/1.4 monospace; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.fc-live-section .fc-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.fc-live-section .fc-statbox { background: #fff; border-radius: 16px; padding: 1.1rem 1rem; text-align: center; box-shadow: 0 6px 18px rgba(29,20,46,.05); }
.fc-live-section .fc-card .fc-statbox { background: #f2f0f5; box-shadow: none; padding: .7rem .5rem; }
.fc-live-section .fc-statbox strong { display: block; font-family: Sora, sans-serif; font-size: 1.6rem; line-height: 1.1; color: #3B2BE3; }
.fc-live-section .fc-card .fc-statbox strong { font-size: 1.15rem; }
.fc-live-section .fc-statbox span { display: block; font-size: .85rem; opacity: .8; margin-top: .25rem; }
.fc-live-section .fc-chip:empty { display: none; }

/* Blog post extras (single-fc_insight.php) */
.fc-byline, .fc-readtime { color: rgba(255,255,255,.85); font-size: .9rem; margin: .5rem 0 0; }
.o_wblog_read_text .fc-lede { font-size: 1.2rem; line-height: 1.6; font-weight: 500; color: #1d142e; }
.o_wblog_read_text .fc-disclose { font-size: .85rem; opacity: .7; border-left: 3px solid #DEE2E6; padding-left: .8rem; }
.o_wblog_read_text .fc-keyquote blockquote { font-size: 1.15rem; font-style: italic; border-left: 4px solid #3B2BE3; padding-left: 1.25rem; margin: 1.75rem 0; }
.o_wblog_read_text .fc-plug { display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #3B2BE3; color: #fff; border-radius: 18px; padding: 1.5rem; margin: 2.5rem 0; }
.o_wblog_read_text .fc-plug h4 { color: #fff; font-size: 1.15rem; margin-bottom: .35rem; }
.o_wblog_read_text .fc-plug p { margin: 0; color: rgba(255,255,255,.85); }
.o_wblog_read_text .fc-endnote { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #DEE2E6; margin-top: 2rem; padding-top: 1rem; font-size: .9rem; }
@media (min-width: 992px) { .fc-railcard { position: sticky; top: 100px; } }
.fc-flow { padding-left: 1.2rem; margin: .75rem 0; } .fc-flow li { margin-bottom: .35rem; }

/* mobile: nothing may push the page sideways */
.fc-logo-row .fc-logo { max-width: 100%; object-fit: contain; }
@media (max-width: 575px) { .fc-logo-row { gap: 1.25rem; } .fc-logo-row .fc-logo { height: 34px; max-width: 42%; } }
.o_wblog_read_text figure.wp-block-table, .o_wblog_read_text .wp-block-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.o_wblog_read_text table { min-width: 0; }
.o_wblog_read_text, .fc-live-section { overflow-wrap: anywhere; }
.o_wblog_read_text figure.wp-block-table table { width: max-content; min-width: 100%; }
.o_wblog_post_title .fc-byline, .o_wblog_post_title .fc-readtime { color: #fff !important; opacity: .9; font-weight: 500; }
@media (max-width: 767px) {
  #o_wblog_post_content_jump { display: none !important; }
  .o_wblog_post_page_cover .o_wblog_post_title { padding: 2rem 0; }
  .o_wblog_post_page_cover .o_wblog_post_subtitle { font-size: 1rem; line-height: 1.5; }
  .o_wblog_post_page_cover .o_wblog_post_name { font-size: 1.9rem; }
}
.fc-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Cloned live sections (home): scroll reveal like the live framer-motion animations.
   html.fc-js is set inline in <head>; if the script never runs, everything shows after 2.5 s. */
html.fc-js [data-fc-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); animation: fc-reveal-fallback 0s linear 2.5s forwards; }
html.fc-js [data-fc-reveal].fc-in { opacity: 1; transform: none; animation: none; }
@keyframes fc-reveal-fallback { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html.fc-js [data-fc-reveal] { opacity: 1; transform: none; transition: none; } }
.fc-tw details.fc-tw-faq > summary::-webkit-details-marker { display: none; }
.fc-tw details.fc-tw-faq[open] .lucide-plus { transform: rotate(45deg); }
.fc-tw .fc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fc-tw-page { background: #fff; }
/* floating hero cards (live: framer-motion y loop) */
@keyframes fc-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.fc-tw .fc-float-a { animation: fc-bob 4s ease-in-out infinite; }
.fc-tw .fc-float-b { animation: fc-bob 5s ease-in-out .8s infinite; }
@media (prefers-reduced-motion: reduce) { .fc-tw .fc-float-a, .fc-tw .fc-float-b { animation: none; } }
/* the live hero reserves 64px for its own fixed navbar; the theme header is in the flow */
.fc-tw-section[data-fc-live-section="0"] > :first-child { margin-top: -64px; }

/* Blog boxes on the indigo background: the theme's "#wrap h4 / #wrap p" (dark ink, ID specificity)
   beat the class rules above, so the end-of-post box text was dark on indigo. */
#wrap .o_wblog_read_text .fc-plug h4 { color: #fff; }
#wrap .o_wblog_read_text .fc-plug p { color: rgba(255,255,255,.9); }
#wrap .fc-newsletter-box .fc-nl-legal { color: rgba(255,255,255,.9); }
#wrap .fc-newsletter-box input::placeholder { color: #6b6890; opacity: 1; }
/* Wide tables in posts scroll inside the post on phones instead of pushing the page sideways */
@media (max-width: 767.98px) {
  .o_wblog_read_text table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Legal pages (imprint, privacy, terms): numbered sections, TOC, sub-headings */
.fc-prose h2[id^="section-"] { scroll-margin-top: 110px; margin-top: 2.5rem; }
.fc-prose .fc-secnum { color: #3B2BE3; margin-right: .15em; }
.fc-prose .fc-toc-title { font-weight: 700; color: var(--cx-ink, #15115c); margin: 1.5rem 0 .5rem; }
#wrap .fc-prose h3.fc-subhead { font-size: 1.05rem; font-weight: 700; margin: 1.6rem 0 .4rem; color: var(--cx-ink, #15115c); }
#wrap .fc-prose h3.fc-subhead + p { margin-top: 0; }

/* Careers perks as cards, About CTA buttons, gated download card */
.fc-live-section .fc-perk .fc-perk-icon { font-size: 1.8rem; line-height: 1; margin-bottom: .5rem; }
.fc-live-section .fc-cta-row { margin: 1.5rem 0 3rem; }
.fc-live-section .fc-download-card { max-width: 560px; margin-top: 1.25rem; }
.fc-download-form .form-control { margin-bottom: .75rem; }
#wrap .o_wblog_read_text .fc-plug p.fc-plug-t { color: #fff; font-size: 1.15rem; font-weight: 700; margin-bottom: .35rem; }
