/* Aegle Alliance — shared additions for inner content pages (product specs, comparisons, etc.) */

.aegle-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 575px) {
  .aegle-stat-grid { grid-template-columns: 1fr; }
}
.aegle-stat {
  background: #fff;
  border: 1px solid var(--tj-color-border-1);
  border-radius: 12px;
  padding: 18px 20px;
}
.aegle-stat .stat-value {
  display: block;
  font-family: var(--tj-ff-heading);
  font-size: 19px;
  font-weight: var(--tj-fw-bold);
  color: var(--tj-color-heading-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}
.aegle-stat .stat-label {
  display: block;
  font-size: 13px;
  color: var(--tj-color-text-body);
}

.aegle-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 767px) {
  .aegle-two-col { grid-template-columns: 1fr; }
}
.aegle-two-col .col-card {
  background: #fff;
  border: 1px solid var(--tj-color-border-1);
  border-radius: 16px;
  padding: 32px;
  height: 100%;
}
.aegle-two-col .col-card.warn {
  background: #fdf6f0;
  border-color: #ecd9c4;
}
.aegle-two-col .eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  color: var(--tj-color-theme-primary);
  font-weight: var(--tj-fw-bold);
  margin-bottom: 8px;
  display: block;
}
.aegle-two-col .col-title {
  margin-bottom: 18px;
}

.aegle-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.aegle-related-card {
  display: block;
  background: #fff;
  border: 1px solid var(--tj-color-border-1);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  transition: .3s;
}
.aegle-related-card:hover {
  border-color: var(--tj-color-theme-primary);
  transform: translateY(-3px);
}
.aegle-related-card .code {
  font-size: 12px;
  color: var(--tj-color-theme-primary);
  font-weight: 700;
  letter-spacing: .04em;
}
.aegle-related-card .name {
  display: block;
  font-family: var(--tj-ff-heading);
  font-size: 16px;
  color: var(--tj-color-heading-primary);
  margin: 4px 0 2px;
}
.aegle-related-card .mat {
  font-size: 13px;
  color: var(--tj-color-text-body);
}
.aegle-related-card.current {
  border-color: var(--tj-color-theme-primary);
  background: #f2f8f7;
}

.aegle-product-figure {
  background: #eef4f3;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.aegle-product-figure img {
  max-width: 100%;
  height: auto;
}

.aegle-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 8px;
}
.aegle-cat-tabs a {
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid var(--tj-color-border-1);
  color: var(--tj-color-heading-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: .3s;
}
.aegle-cat-tabs a:hover {
  background: var(--tj-color-theme-primary);
  color: #fff;
  border-color: var(--tj-color-theme-primary);
}

.aegle-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.aegle-product-card {
  display: block;
  background: #fff;
  border: 1px solid var(--tj-color-border-1);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: .3s;
}
.aegle-product-card:hover {
  border-color: var(--tj-color-theme-primary);
  box-shadow: 0 16px 40px rgba(12,30,33,.08);
  transform: translateY(-4px);
}
.aegle-product-card .thumb {
  background: #eef4f3;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
}
.aegle-product-card .thumb img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.aegle-product-card .body {
  padding: 18px 20px 22px;
}
.aegle-product-card .code {
  font-size: 12px;
  color: var(--tj-color-theme-primary);
  font-weight: 700;
  letter-spacing: .04em;
}
.aegle-product-card .name {
  display: block;
  font-family: var(--tj-ff-heading);
  font-size: 17px;
  color: var(--tj-color-heading-primary);
  margin: 4px 0 2px;
}
.aegle-product-card .mat {
  font-size: 13px;
  color: var(--tj-color-text-body);
}

.aegle-placeholder-panel {
  background: #f7fafa;
  border: 1px dashed var(--tj-color-border-1);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin-top: 32px;
}
.aegle-placeholder-panel h3 { margin-bottom: 10px; }
.aegle-placeholder-panel p { max-width: 640px; margin: 0 auto; color: var(--tj-color-text-body); }

.aegle-leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.aegle-leader-card {
  background: #fff;
  border: 1px solid var(--tj-color-border-1);
  border-radius: 16px;
  padding: 26px;
}
.aegle-leader-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
}
.aegle-leader-card .avatar img { width: 100%; height: 100%; display: block; }
.aegle-leader-card .name { font-family: var(--tj-ff-heading); font-size: 18px; color: var(--tj-color-heading-primary); margin-bottom: 2px; }
.aegle-leader-card .role { display: block; font-size: 13px; font-weight: 700; color: var(--tj-color-theme-primary); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.aegle-leader-card .bio { font-size: 14px; color: var(--tj-color-text-body); line-height: 1.7; }

.aegle-quote-block {
  background: #eef4f3;
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  margin: 8px 0;
}
.aegle-quote-block blockquote {
  font-family: var(--tj-ff-heading);
  font-size: 26px;
  color: var(--tj-color-heading-primary);
  max-width: 720px;
  margin: 0 auto 16px;
  line-height: 1.5;
}
.aegle-quote-block p { color: var(--tj-color-text-body); max-width: 640px; margin: 0 auto; }

.aegle-positioning-banner {
  background: var(--tj-color-theme-primary);
  border-radius: 20px;
  padding: 40px 48px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.aegle-positioning-banner h3 { color: #fff; margin-bottom: 6px; }
.aegle-positioning-banner p { color: rgba(255,255,255,.85); max-width: 520px; margin: 0; }

/* Inner-page banner (.tj-page-header) — lighter, matching the home hero panel instead of dark navy */
.tj-page-header {
  background-color: #eef4f3;
  background-image: none;
  background-blend-mode: normal;
}
.tj-page-header .tj-page-title {
  color: var(--tj-color-heading-primary);
}
.tj-page-header .tj-page-link {
  background: rgba(12, 30, 33, .05);
  border: 1px solid var(--tj-color-border-1);
  backdrop-filter: none;
}
.tj-page-header .tj-page-link span {
  color: var(--tj-color-text-body);
}
.tj-page-header .tj-page-link span i {
  color: var(--tj-color-theme-primary);
}
.tj-page-header .tj-page-link span:not(:first-child) i {
  color: var(--tj-color-border-1);
}
.tj-page-header .tj-page-link span a {
  color: var(--tj-color-text-body);
}
.tj-page-header .tj-page-link span a:hover {
  color: var(--tj-color-theme-primary);
}
.tj-page-header .page-header-overlay {
  display: none;
}

/* ============================================================
   Homepage imagery — replacing generic/irrelevant stock photos
   with real Aegle/DemeTech assets and branded category panels.
   ============================================================ */

/* Real product photography shown honestly on a soft brand panel
   (object-fit: contain) instead of being force-cropped like a
   lifestyle photo — these are studio product renders, not scenery. */
.aegle-visual-panel {
  background: linear-gradient(135deg, #eef4f3 0%, #dbe9e7 100%);
}
.aegle-visual-panel img {
  -o-object-fit: contain !important;
     object-fit: contain !important;
  padding: 9%;
}

.faq-img-area .faq-img.aegle-visual-panel::after {
  display: none;
}
.faq-img-area .faq-img.aegle-visual-panel .title {
  color: var(--tj-color-heading-primary);
}

/* Branded icon panels for categories with no real photography yet
   (Enterprise IT / Workforce & Compliance / Consumer & Retail) —
   uses the site's own category icon at large scale instead of an
   unrelated stock photo. */
.aegle-icon-visual {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: linear-gradient(135deg, var(--tj-color-theme-dark) 0%, #16383d 100%);
}
.aegle-icon-visual i {
  font-size: 56px;
  color: var(--tj-color-common-white);
  opacity: .9;
}
.project-item .project-img.aegle-icon-visual {
  background: linear-gradient(135deg, var(--tj-color-theme-primary) 0%, var(--tj-color-theme-dark) 100%);
}
.project-item .project-img.aegle-icon-visual i {
  font-size: 64px;
}
.blog-item .blog-thumb .aegle-icon-visual,
.blog-item .blog-thumb a.aegle-icon-visual {
  min-height: 280px;
}

/* Customer trust-row: plain colour avatar circles instead of
   unrelated stock headshots standing in for real people. */
.customers ul li.aegle-avatar-circle {
  width: 59px;
  height: 59px;
  border-radius: 50%;
  background: var(--tj-color-theme-primary);
  -webkit-box-shadow: 0 0 0 2px var(--tj-color-common-white);
          box-shadow: 0 0 0 2px var(--tj-color-common-white);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: var(--tj-color-common-white);
}
.customers ul li.aegle-avatar-circle i {
  font-size: 22px;
}

/* Real video thumbnail + play affordance for the About section
   (wired to the actual Aegle Alliance video file). */
.video-img a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.aegle-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--tj-color-common-white);
  color: var(--tj-color-theme-primary);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 13px;
  z-index: 2;
}

/* ============================================================
   Coded timeline component (history.html) — replaces the flat
   infographic image with a real, theme-matched HTML/CSS timeline.
   ============================================================ */
.aegle-timeline {
  position: relative;
  max-width: 980px;
  margin: 32px auto 0;
  padding: 12px 0;
}
.aegle-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--tj-color-border-1);
  transform: translateX(-50%);
}
.aegle-timeline-item {
  position: relative;
  width: 50%;
  padding: 0 44px 48px;
  box-sizing: border-box;
}
.aegle-timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}
.aegle-timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}
.aegle-timeline-dot {
  position: absolute;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tj-color-theme-primary);
  border: 3px solid var(--tj-color-common-white);
  box-shadow: 0 0 0 2px var(--tj-color-theme-primary);
  z-index: 2;
}
.aegle-timeline-item:nth-child(odd) .aegle-timeline-dot { right: -9px; }
.aegle-timeline-item:nth-child(even) .aegle-timeline-dot { left: -9px; }
.aegle-timeline-card {
  display: inline-block;
  background: var(--tj-color-common-white);
  border: 1px solid var(--tj-color-border-1);
  border-radius: 14px;
  padding: 18px 22px;
  max-width: 320px;
  transition: border-color .25s ease, transform .25s ease;
}
.aegle-timeline-item:hover .aegle-timeline-card {
  border-color: var(--tj-color-theme-primary);
  transform: translateY(-3px);
}
.aegle-timeline-year {
  display: block;
  font-family: var(--tj-ff-heading);
  font-weight: var(--tj-fw-bold);
  font-size: 28px;
  color: var(--tj-color-theme-primary);
  line-height: 1;
  margin-bottom: 8px;
}
.aegle-timeline-label {
  display: block;
  color: var(--tj-color-text-body);
  font-size: 15px;
  line-height: 1.5;
}
@media (max-width: 767px) {
  .aegle-timeline { margin-top: 20px; }
  .aegle-timeline::before { left: 8px; }
  .aegle-timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding: 0 0 32px 40px;
  }
  .aegle-timeline-item .aegle-timeline-dot {
    left: 0 !important;
    right: auto !important;
  }
  .aegle-timeline-card { max-width: 100%; }
}

/* ============================================================
   Team / People & Culture page — extra components
   ============================================================ */
.aegle-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 991px) {
  .aegle-icon-grid { grid-template-columns: repeat(2, 1fr); }
}
.aegle-icon-grid-item {
  background: var(--tj-color-common-white);
  border: 1px solid var(--tj-color-border-1);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color .25s ease, transform .25s ease;
}
.aegle-icon-grid-item:hover {
  border-color: var(--tj-color-theme-primary);
  transform: translateY(-3px);
}
.aegle-icon-grid-item i {
  font-size: 32px;
  color: var(--tj-color-theme-primary);
  margin-bottom: 12px;
  display: inline-block;
}
.aegle-icon-grid-item span {
  display: block;
  font-family: var(--tj-ff-heading);
  font-weight: var(--tj-fw-bold);
  color: var(--tj-color-heading-primary);
  font-size: 16px;
}

/* ============================================================
   Inline video modal (About section) — plays the real Aegle
   video on top of the homepage instead of navigating away.
   ============================================================ */
.aegle-video-trigger {
  all: unset;
  cursor: pointer;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.aegle-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12, 30, 33, .9);
  padding: 20px;
}
.aegle-video-modal.is-open {
  display: flex;
}
.aegle-video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 960px;
}
.aegle-video-modal video {
  width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  background: #000;
  display: block;
}
.aegle-video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--tj-color-common-white);
  color: var(--tj-color-heading-primary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Home: "What Our Teams Are Saying" left column */
.aegle-voices {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.aegle-voices-head {
  flex: 1;
  background: linear-gradient(135deg, #f4f9f9 0%, #dcedee 55%, #c4e1e3 100%);
  border-radius: 12px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.aegle-voices-head .sec-heading {
  margin-bottom: 18px;
}
.aegle-voices-head .sec-heading .sec-title span,
.aegle-voices-head .sec-heading .sec-title span div {
  color: var(--tj-color-theme-primary);
}
.aegle-voices-head .desc {
  margin: 0;
  max-width: 440px;
}
.aegle-voices-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.aegle-voices-stat {
  border-radius: 12px;
  padding: 24px 26px;
  background: var(--tj-color-common-white);
}
.aegle-voices-stat:first-child {
  background: linear-gradient(135deg, var(--tj-color-theme-primary) 0%, #3fa7a7 100%);
}
.aegle-voices-stat .title {
  font-size: 54px;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--tj-color-theme-primary);
}
.aegle-voices-stat .text {
  display: block;
  color: var(--tj-color-text-body);
}
.aegle-voices-stat:first-child .title,
.aegle-voices-stat:first-child .text {
  color: var(--tj-color-common-white);
}
@media (max-width: 575px) {
  .aegle-voices-head { padding: 30px 22px; }
  .aegle-voices-stat { padding: 20px 18px; }
  .aegle-voices-stat .title { font-size: 40px; }
}


/* Home: light theme (client asked to drop dark green backgrounds) */
.tj-slider-item {
  background-color: #eaf3f3;
}
.tj-slider-item::after {
  background: linear-gradient(90deg, #f4f9f9 22%, rgba(234, 243, 243, 0.88) 48%, rgba(216, 232, 236, 0.15) 100%);
}
.tj-slider-item .slider-content .slider-title {
  color: var(--tj-color-heading-primary);
}
.tj-slider-item .slider-content .slider-title span {
  color: var(--tj-color-theme-primary);
}
.tj-slider-item .slider-content .slider-desc {
  color: var(--tj-color-text-body);
}
.tj-slider-section .banner-scroll .scroll-down span::before {
  background-color: var(--tj-color-theme-primary);
}

.tj-service-section.service-2 {
  background: linear-gradient(160deg, #f4f9f9 0%, #e1eeef 50%, #cfe5e7 100%);
}
.tj-service-section.service-2 .sec-heading.style-2 .sub-title {
  background-color: var(--tj-color-common-white);
}
.tj-service-section.service-2 .sec-title span {
  color: var(--tj-color-theme-primary);
}
.tj-service-section.service-2 .bg-shape-3 {
  display: none;
}
.service-2 .service-item.style-2 {
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(30, 138, 138, 0.15);
  border-radius: 12px;
}
.service-2 .service-item.style-2 .title,
.service-2 .service-item.style-2 .title a {
  color: var(--tj-color-heading-primary);
}
.service-2 .service-item.style-2 .desc,
.service-2 .service-item.style-2 .list-items li {
  color: var(--tj-color-text-body);
}
.service-2 .service-item.style-2:hover {
  background-color: var(--tj-color-common-white);
  border-color: var(--tj-color-common-white);
  box-shadow: 0 12px 30px rgba(12, 30, 33, 0.06);
}

.hero-navigation .slider-next,
.hero-navigation .slider-prev {
  border-color: rgba(30, 138, 138, 0.3);
  background-color: rgba(255, 255, 255, 0.6);
}
.hero-navigation .slider-next .anim-icon i,
.hero-navigation .slider-prev .anim-icon i {
  color: var(--tj-color-theme-primary);
}
.hero-navigation .slider-next .anim-icon i:last-child,
.hero-navigation .slider-prev .anim-icon i:last-child {
  color: var(--tj-color-common-white);
}
.hero-navigation .slider-next:hover,
.hero-navigation .slider-prev:hover {
  border-color: var(--tj-color-theme-primary);
  background-color: var(--tj-color-theme-primary);
}

/* CTA: photo blended into the teal panel with a gradient */
.cta-area {
  background: linear-gradient(120deg, var(--tj-color-theme-primary) 0%, #2a9d9d 100%);
}
.cta-area .cta-img.aegle-cta-photo {
  position: relative;
}
.cta-area .cta-img.aegle-cta-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #2a9d9d 0%, rgba(42, 157, 157, 0.55) 30%, rgba(216, 232, 236, 0.15) 75%, rgba(216, 232, 236, 0) 100%);
}
@media (max-width: 767px) {
  .cta-area .cta-img.aegle-cta-photo::after {
    background: linear-gradient(180deg, #2a9d9d 0%, rgba(42, 157, 157, 0.35) 40%, rgba(216, 232, 236, 0) 100%);
  }
}

/* Home: "Get to Know Us" — text starts at the column edge, video as a real thumbnail */
@media (min-width: 992px) {
  .about-content-area-2 {
    flex-wrap: nowrap;
    align-items: center;
    gap: 40px;
  }
  .about-content-area-2 .about-content {
    flex: 1 1 auto;
    max-width: none;
    -webkit-margin-start: 0;
            margin-inline-start: 0;
  }
  .about-content-area-2 .video-img {
    flex: 0 0 42%;
    max-width: none;
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 991px) {
  .about-content-area-2 .video-img {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }
}
.about-content-area-2 .video-img::before {
  opacity: 0.1;
  pointer-events: none;
}
.about-content-area-2 .aegle-play-btn {
  width: 64px;
  height: 64px;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(12, 30, 33, 0.15);
}

/* Collaborations: brand intro (replaces the dark DemeTech intro) */
.aegle-brand-intro {
  background: linear-gradient(135deg, #f4f9f9 0%, #e1eeef 55%, #cfe5e7 100%);
  border-radius: 12px;
}
.aegle-brand-intro .sec-heading {
  margin-bottom: 22px;
}
.aegle-brand-intro .sec-heading .sub-title {
  background-color: var(--tj-color-common-white);
}
.aegle-brand-intro .sec-heading .sec-title span,
.aegle-brand-intro .sec-heading .sec-title span div {
  color: var(--tj-color-theme-primary);
}
.aegle-brand-intro .desc {
  max-width: 540px;
}
.aegle-brand-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.aegle-brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 170px;
  padding: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(30, 138, 138, 0.12);
  transition: all 0.3s ease-in-out;
}
.aegle-brand-card .num {
  font-family: var(--tj-ff-heading);
  font-size: 64px;
  line-height: 1;
  color: var(--tj-color-theme-primary);
  margin-bottom: 10px;
}
.aegle-brand-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(30, 138, 138, 0.1);
  color: var(--tj-color-theme-primary);
  font-size: 24px;
  margin-bottom: auto;
}
.aegle-brand-card .label {
  font-weight: var(--tj-fw-sbold);
  color: var(--tj-color-heading-primary);
  line-height: 1.35;
}
.aegle-brand-card .go {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--tj-color-theme-primary);
  font-size: 20px;
  transition: transform 0.3s ease-in-out;
}
.aegle-brand-card.is-link:first-child {
  background: linear-gradient(135deg, var(--tj-color-theme-primary) 0%, #3fa7a7 100%);
  border-color: transparent;
}
.aegle-brand-card.is-link:first-child .num,
.aegle-brand-card.is-link:first-child .label,
.aegle-brand-card.is-link:first-child .go {
  color: var(--tj-color-common-white);
}
.aegle-brand-card.is-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(12, 30, 33, 0.08);
}
.aegle-brand-card.is-link:hover .go {
  transform: translateX(4px);
}
@media (max-width: 575px) {
  .aegle-brand-card { min-height: 140px; padding: 18px; }
  .aegle-brand-card .num { font-size: 46px; }
}

/* Careers: centre the application form and style the resume upload */
#apply .contact-form.style-2 {
  margin-inline: auto;
}
#apply .form-input input[type=file] {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--tj-color-border-1);
  background: transparent;
  color: var(--tj-color-text-body);
  font-size: 15px;
}
#apply .form-input input[type=file]::file-selector-button {
  margin-inline-end: 12px;
  padding: 7px 16px;
  border: 1px solid rgba(30, 138, 138, 0.3);
  border-radius: 50px;
  background: var(--tj-color-common-white);
  color: var(--tj-color-theme-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
#apply .form-input input[type=file]::file-selector-button:hover {
  background: var(--tj-color-theme-primary);
  border-color: var(--tj-color-theme-primary);
  color: var(--tj-color-common-white);
}

/* Home hero: smaller title (client feedback) */
.tj-slider-item .slider-content {
  max-width: 720px;
}
.tj-slider-item .slider-content .slider-title {
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
@media only screen and (min-width: 992px) and (max-width: 1399px) {
  .tj-slider-item .slider-content .slider-title { font-size: 56px; }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .tj-slider-item .slider-content .slider-title { font-size: 48px; }
}
@media (max-width: 767px) {
  .tj-slider-item .slider-content .slider-title { font-size: 38px; letter-spacing: -1px; }
}

/* Home hero: full DemeTECH video instead of the slider */
.aegle-hero-video {
  margin: 0 15px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
}
.aegle-hero-video video {
  display: block;
  width: 100%;
  height: auto;
}
/* clear the floating header so the top of the video isn't covered */
.aegle-hero-video { margin-top: 75px; }
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .aegle-hero-video { margin-top: 120px; }
}
@media (max-width: 991px) {
  .aegle-hero-video { margin-top: 78px; }
}

/* Home: company logo strip */
.client-logo .aegle-company-logo {
  max-height: 56px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}
/* Our Companies: logo beside each company */
.aegle-company-logo-col {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.aegle-company-logo-col img {
  max-width: 200px;
  max-height: 120px;
  width: auto;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--tj-color-border-1);
  border-radius: 12px;
  object-fit: contain;
  box-sizing: content-box;
}
@media (max-width: 991px) {
  .aegle-company-logo-col { justify-content: flex-start; margin-top: 24px; }
}

/* Leadership: real portraits instead of initials avatars */
.aegle-leader-card .avatar.aegle-leader-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #111;
  margin-bottom: 20px;
}
.aegle-leader-card .avatar.aegle-leader-photo img {
  object-fit: cover;
  object-position: center top;
}
@media (min-width: 992px) {
  .aegle-leader-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Contact / careers form feedback */
.aegle-form-status { margin: 0 0 16px; font-size: 15px; min-height: 0; }
.aegle-form-status:empty { display: none; }
.aegle-form-status.is-error { color: #b42318; }
.aegle-form-status.is-success { color: var(--tj-color-theme-primary); }
.form-input.aegle-invalid input,
.form-input.aegle-invalid textarea,
.form-input.aegle-invalid .nice-select { border-color: #b42318 !important; }
