/*
Theme Name: Intellicon Child
Theme URI: https://tarafud.tech
Description: Tarafud child theme for Intellicon
Author: Tarafud
Template: intellicon
Version: 1.0.0
Text Domain: intellicon-child
*/

/* ============================================================
   TARAFUD DESIGN SYSTEM
   Primary navy      : #0B2035
   Deep navy         : #071A2B
   Tarafud teal      : #008F87
   Secondary teal    : #0E7773
   Tarafud gold      : #D5A928
   Off-white bg      : #F7F8FA
   Light neutral bg  : #EEF2F4
   Main text         : #172B45
   Muted text        : #526477
   Border            : rgba(11,32,53,.12)
   ============================================================ */

:root {
  --primaryColor: #008F87;
  --secondarycolor: #D5A928;
  --titleColor: #0B2035;
  --common-black: #0B2035;
  --base: #008F87;
  --basetwo: #0B2035;
  --basethree: #D5A928;
  --darkbg: #0B2035;
  --banner: #0B2035;
  --bgsection: #F7F8FA;
  --quitborder: #008F8733;
  --quitcolor: #008F87;
  --quitibg: #E6F5F4;
  --quitboxbg: #F7F8FA;
  --themetext: #172B45;
  --mutedGreen: #4B8473;

  /* Tarafud v2 design tokens */
  --tf-navy: #0B2035;
  --tf-navy-deep: #071A2B;
  --tf-teal: #008F87;
  --tf-teal-secondary: #0E7773;
  --tf-gold: #D5A928;
  --tf-bg-offwhite: #F7F8FA;
  --tf-bg-neutral: #EEF2F4;
  --tf-text-main: #172B45;
  --tf-text-muted: #526477;
  --tf-white: #FFFFFF;
  --tf-border: rgba(11, 32, 53, 0.12);
  --tf-radius: 10px;
  --tf-shadow: 0 10px 30px rgba(11, 32, 53, 0.08);
}

/* Primary buttons */
.tp-btn,
.tp-btn-border,
button[type="submit"],
input[type="submit"],
.elementor-button,
.wp-block-button__link {
  background-color: #008F87 !important;
  border-color: #008F87 !important;
  color: #ffffff !important;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.tp-btn:hover,
.tp-btn-border:hover,
.elementor-button:hover {
  background-color: #0B2035 !important;
  border-color: #0B2035 !important;
  color: #ffffff !important;
}

/* Accent / secondary buttons */
.tp-btn-white,
.tp-btn-secondary {
  background-color: #D5A928 !important;
  border-color: #D5A928 !important;
  color: #0B2035 !important;
}

.tp-btn-white:hover,
.tp-btn-secondary:hover {
  background-color: #0B2035 !important;
  border-color: #0B2035 !important;
  color: #ffffff !important;
}

/* Links */
a { color: #008F87; }
a:hover { color: #0B2035; }

/* Headings */
h1, h2, h3, h4, h5, h6,
.tp-section-title,
.tp-section-subtitle {
  color: #0B2035;
}

/* Header background */
.tp-header-area,
.tp-header-sticky,
#masthead {
  background-color: #0B2035 !important;
}

/* Active / hovered menu items */
.tp-main-menu nav > ul > li > a:hover,
.tp-main-menu nav > ul > li.current-menu-item > a,
.tp-main-menu nav > ul > li.current-menu-ancestor > a {
  color: #D5A928 !important;
}

/* Dropdown backgrounds */
.tp-main-menu nav > ul > li > ul.submenu,
.tp-main-menu nav > ul ul {
  background-color: #0B2035 !important;
  border-top-color: #008F87 !important;
}

/* Icon accent */
.tp-service-icon i,
.tp-feature-icon i,
.tp-icon-box i {
  color: #008F87;
}

/* Section backgrounds */
.grey-bg, .tp-grey-bg { background-color: #F7F8FA !important; }

/* Override theme primary everywhere */
.tp-theme-color,
.tp-color { color: #008F87 !important; }

.tp-theme-bg,
.tp-bg { background-color: #008F87 !important; }

/* Footer */
.tp-footer-area,
.footer-dark { background-color: #0B2035 !important; }

/* Form inputs focus */
input:focus,
textarea:focus,
select:focus {
  border-color: #008F87 !important;
  outline-color: #008F87 !important;
}

/* Override theme accent in theme.css */
.tp-section-tag,
.tp-subtitle-tag {
  color: #008F87 !important;
  background-color: #E6F5F4 !important;
}

/* Counter / stats backgrounds */
.tp-counter-area { background-color: #0B2035 !important; }

/* Override inline dark bg used in hero */
[style*="background-color: #08162E"],
[style*="background:#08162E"],
[style*="background-color:#08162E"] {
  background-color: #0B2035 !important;
}

/* Hide the full-screen search overlay on page load — it has no display:none in the parent theme */
.sticky_form.tps-search-popup {
  display: none;
}

/* Counters with no real stat available yet — hide the animated number/prefix, keep icon + title only */
.tf-no-counter .rs-counter,
.tf-no-counter .prefix,
.tf-no-counter .suffix {
  display: none !important;
}

/* Language switcher (Polylang, text-only, no flags) */
.tf-lang-switcher-wrap {
  display: flex;
  align-items: center;
}
.tf-lang-switcher-wrap ul.polylang-language-switcher,
.tf-lang-switcher-wrap ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.tf-lang-switcher-wrap li {
  display: inline-flex;
  align-items: center;
  list-style: none;
}
.tf-lang-switcher-wrap li:not(:last-child)::after {
  content: "/";
  margin-inline-start: 10px;
  color: #ffffff;
  opacity: 0.5;
}
.tf-lang-switcher-wrap a {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.tf-lang-switcher-wrap a:hover,
.tf-lang-switcher-wrap li.current-lang a {
  color: #D5A928 !important;
}
.tf-footer-lang-switcher .tf-lang-switcher-wrap a {
  color: #ffffff;
}
.tf-footer-lang-switcher .tf-lang-switcher-wrap a:hover,
.tf-footer-lang-switcher .tf-lang-switcher-wrap li.current-lang a {
  color: #D5A928 !important;
}

/*
 * The header/footer builder plugin (tp-elements) pre-renders header/footer widget
 * content once for its own internal use before the real Elementor render — for most
 * widgets this pre-render is discarded, but our language-switcher HTML widget's dynamic
 * token gets substituted on every pass, so its raw <li> output leaks out as loose text
 * right before the real, properly-wrapped switcher. Hide any stray unwrapped copies.
 */
.header-inner > li.lang-item,
.footer-width-fixer > li.lang-item {
  display: none !important;
}

/*
 * Main nav wraps to a second line once there are 5 items plus the language switcher,
 * especially with longer Arabic labels ("المشاريع والمبادرات"). Tighten spacing so
 * everything fits on one line instead of hiding items on a hidden second row.
 */
.menu-area .navbar ul li {
  padding: 15px 8px !important;
}
.menu-area .navbar ul li a {
  font-size: 13px !important;
  white-space: nowrap;
}
.tf-lang-switcher-wrap {
  white-space: nowrap;
}
@media (min-width: 1200px) {
  .menu-area .navbar ul li {
    padding: 15px 10px !important;
  }
}

/* ============================================================
   HEADER REBUILD — robust flexbox layout (replaces Elementor's
   fragile percentage-width containers, which is what caused the
   nav to render with zero width on non-front pages).
   Logo | Nav (grows to fill) | Language switcher
   Order flips automatically for RTL via [dir] since these are
   plain flex children, not fixed left/right positioned.
   ============================================================ */
.tf-header-col {
  display: flex;
  align-items: center;
}
.tf-header-logo {
  flex: 0 0 auto;
}
.tf-header-nav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}
.tf-header-controls {
  flex: 0 0 auto;
  justify-content: flex-end;
}
html[dir="rtl"] .tf-header-controls {
  justify-content: flex-start;
}

/* Slightly smaller logo so it doesn't dominate a balanced header */
.tf-header-logo .hfe-site-logo-img,
.hfe-site-logo-img {
  max-width: 150px !important;
  height: auto;
}
@media (max-width: 600px) {
  .hfe-site-logo-img,
  .elementor-element-aadea0b img,
  .elementor-element-aadea0b .hfe-site-logo-container,
  .elementor-element-aadea0b .hfe-site-logo-set {
    width: 96px !important;
    max-width: 96px !important;
  }
}
html {
  overflow-x: hidden;
}

/* Global mobile overflow safety net: Elementor's "boxed" containers
   (.e-con-boxed) and the theme's Bootstrap .container can retain desktop
   max-widths on narrow screens when their own responsive rules fail to
   resolve (the same --container-* custom-property fragility documented
   elsewhere in this file). Force every container to fit the viewport. */
@media (max-width: 480px) {
  .e-con-boxed,
  .container,
  body {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  h1, h2, h3, h4, h5, h6, p, a, span, li {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
}

/* Same fragile Elementor container-width bug documented earlier in the project:
   --container-widget-width: calc((1 - flex-grow) * 100%) fails to resolve on
   narrow/RTL layouts and pushes the logo column off-canvas on mobile. Force a
   plain, predictable flex layout for the header row instead of trusting the
   calc() chain, matching the fix already applied elsewhere in the header. */
@media (max-width: 767px) {
  .elementor-element-523b5d8.e-con {
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
  }
  .elementor-element-a7138a5 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    order: -1;
    display: flex !important;
    justify-content: center !important;
    overflow: visible !important;
  }
  .elementor-element-a7138a5 .hfe-site-logo,
  .elementor-element-a7138a5 .hfe-site-logo-set,
  .elementor-element-a7138a5 .hfe-site-logo-container {
    width: 96px !important;
    display: block !important;
    margin: 0 auto !important;
  }
  .elementor-element-a7138a5 .elementor-widget-container,
  .elementor-element-aadea0b {
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
  }
}

/* Language switcher: clean "العربية | English" style, no bullets, no flags */
.tf-lang-switcher-wrap li:not(:last-child)::after {
  content: "|";
  margin-inline-start: 10px;
  color: #ffffff;
  opacity: 0.4;
}

/* ============================================================
   ARABIC TYPOGRAPHY
   ============================================================ */
html[lang="ar"] body,
html[lang="ar"] p,
html[lang="ar"] li,
html[lang="ar"] a {
  font-family: 'Noto Sans Arabic', 'Cairo', Tahoma, Arial, sans-serif;
}
html[lang="ar"] body {
  line-height: 1.85;
}
html[lang="ar"] .menu-area .navbar ul li a {
  font-size: 17px !important;
  font-weight: 600;
}
html[lang="ar"] h1, html[lang="ar"] .tp-el-title, html[lang="ar"] .themephi-heading .title {
  line-height: 1.3;
}
html[lang="ar"] p, html[lang="ar"] .tp-el-desc, html[lang="ar"] .themephi-heading .description {
  line-height: 1.85;
  letter-spacing: 0;
}
/* Prevent narrow cards from stacking Arabic headings into a vertical ladder */
html[lang="ar"] .tp-iconbox .title,
html[lang="ar"] .themephi-service-item .title,
html[lang="ar"] .tp-el-title {
  word-break: normal;
  overflow-wrap: normal;
}
@media (max-width: 767px) {
  html[lang="ar"] .menu-area .navbar ul li a {
    font-size: 16px !important;
  }
}

/* ============================================================
   FOOTER — consistent RTL-aware spacing, logo not oversized
   ============================================================ */
.tf-footer-lang-switcher {
  margin-top: 15px;
}
.footer-width-fixer .footer-widget-title,
.footer-width-fixer h3,
.footer-width-fixer h4 {
  margin-bottom: 18px;
}
.footer-width-fixer .hfe-site-logo-img {
  max-width: 130px !important;
  height: auto;
}

/* ============================================================
   RESPONSIVE / UX GUARDRAILS
   ============================================================ */
body {
  overflow-x: hidden;
}
.container, .e-con-boxed {
  max-width: 100%;
}
@media (max-width: 1024px) {
  .tf-header-logo .hfe-site-logo-img {
    max-width: 130px !important;
  }
}

/* ============================================================
   HEADER — a bit more breathing room between logo / nav / switcher
   (font-size intentionally left alone per explicit instruction)
   ============================================================ */
.tf-header-col.tf-header-nav {
  margin: 0 24px;
}
.tf-header-controls {
  margin-inline-start: 16px;
}
.menu-area .navbar ul {
  gap: 4px;
}

/* ============================================================
   HERO — eyebrow line above the main headline must read as a real
   label, not tiny metadata.
   ============================================================ */
.tf-eyebrow {
  font-size: 24px !important;
  font-weight: 600 !important;
  color: #D5A928 !important;
  letter-spacing: 0.3px;
  display: block;
  margin-bottom: 14px;
  line-height: 1.4 !important;
}
@media (max-width: 767px) {
  .tf-eyebrow {
    font-size: 18px !important;
  }
  .banner__section__four .tp-title,
  .banner__section__four .d3,
  .banner__section__four .banner__content,
  .banner__section__four .container {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
  }
  .banner__section__four .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  /* This column only declares col-lg-6 (no base .col class), so below the lg
     breakpoint it carries no Bootstrap width rule at all and falls back to
     whatever intrinsic/inherited width its content needs — which is wider
     than a 390px screen for this heading. Force it to the row's full width. */
  .banner__section__four .row {
    display: block !important;
    width: 100% !important;
  }
  .banner__section__four .row > div {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
  .banner__section__four .d3,
  .banner__section__four .tf-eyebrow {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    font-size: 22px !important;
    line-height: 1.35 !important;
  }
  .banner__section__four .tf-eyebrow {
    font-size: 14px !important;
  }
  .banner__section__four .content__box,
  .banner__section__four .banner__content,
  .banner__section__four .tp-el-content {
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    inset-inline-start: 0 !important;
  }
  .banner__section__four .banner__bgmask,
  .banner__section__four .container,
  .banner__section__four .banner__wrapper {
    overflow: visible !important;
  }
}

/* ============================================================
   HERO SECONDARY BUTTON — the widget's only second slot is a
   circular "play" button; there is no real video, so restyle it
   as a normal secondary CTA and hide the play icon entirely.
   ============================================================ */
.play__btn.video-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  border-radius: 6px;
  padding: 14px 28px;
  background: transparent;
  transition: background 0.3s ease, color 0.3s ease;
}
.play__btn.video-btn .play__icon {
  display: none !important;
}
.play__btn.video-btn .text-white {
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}
.play__btn.video-btn:hover {
  background: #ffffff;
}
.play__btn.video-btn:hover .text-white {
  color: #0B2035;
}

/* ============================================================
   STICKY HEADER — replace the fragile JS scroll-listener toggle
   (which could leave the header hidden/overlapping depending on
   scroll timing) with native CSS position:sticky. This can't
   "miss" a scroll event, never causes layout shift since sticky
   elements stay in normal flow, and needs no JS at all.
   ============================================================ */
#themephi-header {
  position: sticky !important;
  top: 0;
  z-index: 999;
  background-color: #0B2035;
}
/* Account for the WP admin bar so the header sits right below it, not under it */
body.admin-bar #themephi-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar #themephi-header {
    top: 46px;
  }
}
/* Never let sticky content sit on top of headings — reasonable breathing room */
.themephi-breadcrumbs {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Services page — 4-block structured layout (image + text, alternating)
   ========================================================================== */
.tf-services-intro {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 70px 20px 20px;
}
.tf-services-intro h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--tf-navy, #0B2035);
  margin-bottom: 16px;
}
.tf-services-intro p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--tf-text-muted, #526477);
}

.tf-service-row {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 56px 60px;
}
.tf-service-row-alt {
  background-color: var(--tf-bg-offwhite, #F7F8FA);
}
.tf-service-row-reverse {
  flex-direction: row-reverse;
}

.tf-service-img-col {
  flex: 0 0 42%;
  min-width: 0;
}
.tf-service-img-col img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(11, 32, 53, 0.15);
  display: block;
}

.tf-service-text-col {
  flex: 1 1 auto;
  min-width: 0;
}
.tf-service-text-col h2 {
  font-size: 27px;
  font-weight: 700;
  color: var(--tf-navy, #0B2035);
  margin-bottom: 6px;
  scroll-margin-top: 120px;
}
.tf-service-intro {
  font-size: 16px;
  line-height: 1.8;
  color: var(--tf-text-muted, #526477);
  margin: 14px 0 4px;
}

.tf-bullets {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.tf-bullets li {
  position: relative;
  padding-inline-start: 30px;
  color: var(--tf-text-main, #172B45);
  line-height: 1.7;
  font-size: 15px;
}
.tf-bullets li::before {
  content: "\2713";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: var(--tf-teal, #008F87);
  font-weight: 700;
}

@media (max-width: 900px) {
  .tf-service-row,
  .tf-service-row-reverse {
    flex-direction: column;
    gap: 24px;
    padding: 40px 24px;
  }
  .tf-service-img-col {
    flex: 0 0 auto;
    width: 100%;
  }
  .tf-services-intro {
    padding-top: 40px;
  }
  .tf-services-intro h2 {
    font-size: 26px;
  }
}

/* ==========================================================================
   Mobile off-canvas menu — match the main header's dark navy identity
   ========================================================================== */
.menu-wrap-off {
  background: #0B2035 !important;
}
body.on-offcanvas {
  overflow: hidden;
}
.menu-wrap-off .mobile-menus .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-wrap-off .mobile-menus .menu > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.menu-wrap-off .mobile-menus .menu li a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 4px;
  color: #FFFFFF !important;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.menu-wrap-off .mobile-menus .menu li a:hover,
.menu-wrap-off .mobile-menus .menu li a:focus {
  color: #008F87 !important;
}
.menu-wrap-off .mobile-menus .menu li.current-menu-item > a,
.menu-wrap-off .mobile-menus .menu li.current_page_item > a {
  color: #D5A928 !important;
  font-weight: 700;
}
.menu-wrap-off .nav-link-container .close-button {
  background: #D5A928;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
}
.menu-wrap-off .nav-link-container .close-button span,
.menu-wrap-off .nav-link-container .close-button i {
  background: #0B2035;
  color: #0B2035;
}

/* mobile-menu language switcher — prominent, directly above the nav items */
.tf-mobile-lang-switch {
  margin: 4px 0 18px;
  padding: 12px 4px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.tf-mobile-lang-label {
  width: 100%;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tf-mobile-lang-switch a {
  color: #FFFFFF;
  text-decoration: none;
  min-height: 48px;
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 16px;
  font-weight: 600;
}
.tf-mobile-lang-switch a.tf-lang-active {
  color: #0B2035;
  background: #D5A928;
  border-color: #D5A928;
  font-weight: 700;
}

/* ==========================================================================
   Services page — interactive tabs (no reload, single panel visible)
   ========================================================================== */
.tf-tabs-row-wrap {
  padding: 10px 40px 40px;
}
.tf-tabs-row-raw {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}
.tf-tab-btn {
  flex: 1 1 0;
  min-width: 220px;
  scroll-snap-align: start;
  background: #fff;
  border: 2px solid var(--tf-border, #ECEAFE);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tf-tab-btn:hover {
  border-color: var(--tf-teal, #008F87);
}
.tf-tab-btn-active {
  border-color: var(--tf-gold, #D5A928);
  box-shadow: 0 8px 20px rgba(213, 169, 40, 0.2);
}
.tf-tab-btn-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  display: block;
}
.tf-tab-btn-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--tf-navy, #0B2035);
  margin: 0 0 4px;
}
.tf-tab-btn-desc {
  font-size: 13px;
  color: var(--tf-text-muted, #526477);
  line-height: 1.5;
  margin: 0;
}
.tf-tabs-panels {
  scroll-margin-top: 120px;
}
.tf-tab-panel {
  display: none;
  padding: 20px 40px 50px;
}
.tf-tab-panel-active {
  display: block;
}
@media (max-width: 767px) {
  .tf-tabs-row-wrap {
    padding: 10px 16px 24px;
  }
  .tf-tabs-row-raw {
    gap: 12px;
    flex-wrap: nowrap;
  }
  .tf-tab-btn {
    min-width: 170px;
  }
  .tf-tab-panel {
    padding: 16px 20px 36px;
  }
}

/* Compact capability chips (replaces the larger card grid on Services) */
.tf-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.tf-chip {
  background: #fff;
  border: 1px solid var(--tf-border, #ECEAFE);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tf-navy, #0B2035);
}
.tf-service-note {
  margin: 18px 0;
  padding: 14px 16px;
  background: rgba(213, 169, 40, 0.1);
  border-inline-start: 3px solid var(--tf-gold, #D5A928);
  border-radius: 6px;
  font-size: 14px;
  color: var(--tf-navy, #0B2035);
}

/* ==========================================================================
   Services page — expanded Modernization hero block (first, most prominent)
   ========================================================================== */
.tf-modernization-row {
  display: flex;
  gap: 48px;
  padding: 56px 60px 40px;
  background: linear-gradient(180deg, var(--tf-bg-offwhite, #F7F8FA) 0%, #fff 100%);
  border-bottom: 3px solid var(--tf-gold, #D5A928);
}
.tf-modernization-img-col {
  flex: 0 0 34%;
  min-width: 0;
  position: sticky;
  top: 110px;
  align-self: flex-start;
}
.tf-modernization-img-col img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(11, 32, 53, 0.18);
}
.tf-modernization-text {
  flex: 1 1 auto;
  min-width: 0;
}
.tf-modernization-text h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--tf-navy, #0B2035);
  margin-bottom: 16px;
  scroll-margin-top: 120px;
}
.tf-service-statement {
  font-weight: 600;
  color: var(--tf-navy, #0B2035);
  border-inline-start: 3px solid var(--tf-gold, #D5A928);
  padding-inline-start: 14px;
  margin: 14px 0 24px;
}
.tf-service-result {
  margin-top: 24px;
  padding: 18px 20px;
  background: rgba(0, 143, 135, 0.08);
  border-radius: 10px;
  font-weight: 600;
  color: var(--tf-navy, #0B2035);
}
.tf-subsection {
  margin: 26px 0;
}
.tf-subheading h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--tf-teal, #008F87);
  margin-bottom: 8px;
}
@media (max-width: 900px) {
  .tf-modernization-row {
    flex-direction: column;
    padding: 36px 22px;
    gap: 24px;
  }
  .tf-modernization-img-col {
    position: static;
    width: 100%;
  }
}

/* Engineering capabilities supporting-services grid */
.tf-cap-grid > .e-con-inner {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}
.tf-cap-grid > .e-con-inner > * {
  width: auto !important;
}
.tf-cap-card {
  background: #fff;
  border: 1px solid var(--tf-border, #ECEAFE);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
  font-weight: 600;
  color: var(--tf-navy, #0B2035);
}
@media (max-width: 900px) {
  .tf-cap-grid > .e-con-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .tf-cap-grid > .e-con-inner {
    grid-template-columns: 1fr;
  }
}

/* Partner logo (Galions / Damasca) inside an ecosystem grid card */
.tf-partner-logo {
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}
.tf-partner-logo img {
  max-height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* ==========================================================================
   About page — values / ecosystem 4-card grid sections
   ========================================================================== */
.tf-grid-section {
  padding: 60px;
}
.tf-grid-section-alt {
  background-color: var(--tf-bg-offwhite, #F7F8FA);
}
.tf-grid-heading h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--tf-navy, #0B2035);
  text-align: center;
  margin-bottom: 36px;
}
.tf-grid-4 > .e-con-inner {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}
.tf-grid-4 > .e-con-inner > * {
  width: auto !important;
}
.tf-grid-card {
  background: #fff;
  border: 1px solid var(--tf-border, #ECEAFE);
  border-radius: 12px;
  padding: 26px 22px;
}
.tf-grid-section-alt .tf-grid-card {
  background: #fff;
}
.tf-grid-card-title h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--tf-navy, #0B2035);
  margin-bottom: 10px;
}
.tf-grid-card-text p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--tf-text-muted, #526477);
}
@media (max-width: 992px) {
  .tf-grid-4 > .e-con-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .tf-grid-section {
    padding: 40px 24px;
  }
  .tf-grid-4 > .e-con-inner {
    grid-template-columns: 1fr !important;
  }
  .tf-grid-card {
    width: 100% !important;
    min-width: 0 !important;
    padding: 20px !important;
  }
}

