/* AIAI+E overrides — trims the NetFusion theme's oversized header and
   section components (extra nav items + longer copy made the stock
   sizing wrap/overflow) without touching the vendor stylesheets. */

/* ---- Brand colors, sampled from images/logo.png ---- */
:root {
  --aiae-blue: #0941E0;
  --aiae-orange: #F28119;
}

/* style.css's .blue-btn assumed near-black text worked on the old bright
   green; our darker brand blue needs white text for the same contrast. */
.te-theme-btn.blue-btn,
.wp-block-loginout a.blue-btn,
input.te-theme-btn.blue-btn {
  color: #ffffff !important;
}

/* Secondary brand accent (logo's orange) on small badges and ratings,
   so the site reads as two-tone like the logo rather than blue-only. */
.short-title-wrapper .short-title,
.te-section-title .short-title,
.short-title.only-divider {
  color: var(--aiae-orange) !important;
}
.te-testimonial-card .te-content-wrapper .quote-icon .rating {
  color: var(--aiae-orange) !important;
}

/* These icon/illustration PNGs have the old green baked into the pixels
   (not CSS-controlled), so recolor them in-browser to match the new blue. */
.icon img,
.icon-wrapper .icon img,
.te-info-card-inner .image img,
.te-img-card-shape img {
  filter: hue-rotate(69deg) saturate(1.3) brightness(0.95);
}

/* ---- Header / logo ---- */
.te-logo,
.te-header-menu-area.te-sticky_menu .te-logo {
  height: 56px !important;
}
.te-logo img {
  max-height: 34px;
  width: auto !important;
}
.te-footer-logo img {
  max-height: 32px;
  width: auto;
}
.te-menu-sidebar-logo img {
  max-height: 32px;
  width: auto;
}

/* ---- Main nav ---- */
.te-main-menu ul li a {
  padding: 10px 11px !important;
  font-size: 14.5px !important;
}
.te-main-menu ul li ul li a {
  padding: 9px 16px !important;
  font-size: 14px !important;
}

/* ---- Header CTA button + icon ---- */
.te-header-btn {
  gap: 8px !important;
}
.te-header-btn .te-cta-btn,
.te-cta-btn {
  padding: 11px 18px !important;
  font-size: 13.5px !important;
  margin-left: 16px !important;
}
.te-header-btn .te-icon {
  width: 40px !important;
  height: 40px !important;
}
.te-header-btn .te-icon i {
  font-size: 14px !important;
}

/* ---- Hero title ---- */
.gradient-title {
  font-size: 52px !important;
  margin-bottom: 24px !important;
}
@media (max-width: 767px) {
  .gradient-title {
    font-size: 32px !important;
  }
}

/* ---- Hero (banner) as a background-image section ---- */
.aiae-hero {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 20px;
  overflow: hidden;
  padding-top: 130px !important;
  padding-bottom: 100px !important;
}
.aiae-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 6, 6, 0.88) 5%, rgba(6, 6, 6, 0.55) 48%, rgba(6, 6, 6, 0.3) 100%);
  z-index: 1;
}
.aiae-hero .container {
  position: relative;
  z-index: 2;
}
.aiae-hero .te-banner-content {
  text-align: left;
}
.aiae-hero .gradient-title {
  text-align: left;
  margin-bottom: 20px !important;
}
.aiae-hero .hero-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 32px;
}
.aiae-hero .btn-wrapper {
  margin-top: 0;
}
@media (max-width: 991px) {
  .aiae-hero {
    padding-top: 100px !important;
    padding-bottom: 70px !important;
  }
  .aiae-hero .te-banner-content,
  .aiae-hero .gradient-title {
    text-align: center;
  }
  .aiae-hero .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---- Section titles ---- */
.te-section-title .title {
  font-size: 40px !important;
  line-height: 1.2 !important;
  letter-spacing: -1px !important;
}
@media (max-width: 767px) {
  .te-section-title .title {
    font-size: 28px !important;
  }
}
.te-section-title .short-title,
.short-title {
  font-size: 13px !important;
}

/* ---- Page header (breadcrumb banner) ---- */
.page-breadcrumb-area {
  padding: 90px 0 !important;
}
.te-page-title {
  font-size: 34px !important;
}

/* ---- Focus Areas cards: theme shipped these with unrelated SaaS-dashboard
   mockup screenshots (a "Graphics 25%" progress bar, a calendar widget, a
   star-rating widget...) baked in as the .image content. Swap that slot
   for a plain icon tile that actually reflects each card's topic. ---- */
.focus-icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  margin: 0 30px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(9, 65, 224, 0.16), rgba(9, 65, 224, 0.04));
  border: 1px solid rgba(9, 65, 224, 0.25);
}
@media (max-width: 1199px) {
  .focus-icon-tile {
    margin: 0;
  }
}
.focus-icon-tile i {
  font-size: 44px;
  color: var(--aiae-blue);
}

/* ---- Core Values icons: dedicated Font Awesome glyph per value,
   replacing the single shared PNG the theme shipped with. ---- */
.te-process-step .te-title-wrapper .icon-wrapper .icon i {
  font-size: 28px;
  color: var(--aiae-blue);
  transition: transform 0.5s ease-out;
  transform: rotateY(0deg);
}
.te-process-step:hover .te-title-wrapper .icon-wrapper .icon i {
  transform: rotateY(360deg);
}

/* ---- Nice Select: the theme ships jquery.nice-select but never used it
   anywhere, so its default styling is the library's light theme (white
   dropdown list, near-invisible light-gray closed box) — jarring against
   this site's dark forms. Re-skin it to match the .comment-respond
   input/textarea box exactly. ---- */
.comment-respond .nice-select {
  height: 60px;
  line-height: 58px;
  width: 100%;
  padding: 0 40px 0 20px;
  color: #778196;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 400;
  font-family: "Inter", sans-serif;
  background-color: transparent;
  border: solid 1px transparent;
  background-image: linear-gradient(#121212, #121212), linear-gradient(to right, rgba(9, 65, 224, 0.4), transparent);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.comment-respond .nice-select .current {
  color: #778196;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}
.comment-respond .nice-select:active,
.comment-respond .nice-select.open,
.comment-respond .nice-select:focus {
  border-color: #0941E0 !important;
}
.comment-respond .nice-select::after {
  border-color: transparent transparent #778196 transparent;
}
.comment-respond .nice-select .list {
  background-color: #121212;
  border: 1px solid rgba(9, 65, 224, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  max-height: 260px;
  overflow-y: auto;
  width: 100%;
}
.comment-respond .nice-select .option {
  color: #c9ccd3;
  line-height: 1.4;
  min-height: auto;
  padding: 10px 18px;
}
.comment-respond .nice-select .option:hover,
.comment-respond .nice-select .option.focus,
.comment-respond .nice-select .option.selected.focus {
  background-color: rgba(9, 65, 224, 0.25) !important;
  color: #ffffff;
}
.comment-respond .nice-select .option.disabled {
  color: #555b68;
}

/* ---- Browser autofill (Chrome/Edge/Safari) paints its own white/yellow
   background + black text on autofilled fields, ignoring our dark theme.
   The only reliable override is an absurdly long background-color
   transition combined with an inset box-shadow that visually replaces it. ---- */
.comment-respond input:-webkit-autofill,
.comment-respond input:-webkit-autofill:hover,
.comment-respond input:-webkit-autofill:focus,
.comment-respond input:-webkit-autofill:active {
  -webkit-text-fill-color: #778196;
  -webkit-box-shadow: 0 0 0px 1000px #121212 inset;
  box-shadow: 0 0 0px 1000px #121212 inset;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: #778196;
}

/* ---- Native date input: the browser's calendar-picker icon renders
   near-black by default, invisible on this dark form background. ---- */
.comment-respond input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* ---- Anti-spam honeypot field: off-screen (not display:none, which some
   bots specifically check for) so it stays invisible to people but still
   gets auto-filled by simple scripted submissions. ---- */
.te-hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ---- Alumni CTA band (homepage) ---- */
.aiae-alumni-cta {
  background: linear-gradient(120deg, var(--aiae-blue), #062a9e);
  border-radius: 20px;
  padding: 64px 40px;
  text-align: center;
  color: #ffffff;
}
.aiae-alumni-cta .title {
  color: #ffffff;
  margin-bottom: 16px;
}
.aiae-alumni-cta p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 32px;
}
.aiae-alumni-cta .btn-wrapper {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.aiae-alumni-cta .te-theme-btn.whatsapp-btn {
  background: #25D366 !important;
  color: #ffffff !important;
}

/* ---- Events page cards: theme only styled a title + tag; add room for
   the one-line event description without it being crowded out. ---- */
.portfolio-column-in-three .portfolio-item .content-wrapper .content .title {
  font-size: 26px !important;
  line-height: 32px !important;
}
.portfolio-column-in-three .portfolio-item .content-wrapper .content .desc {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: #ffffffcc;
}

/* ---- Language switcher (header) ---- */
.te-lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
  font-size: 14px;
  font-weight: 600;
}
.te-lang-switch a {
  color: inherit;
  opacity: 0.55;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.te-lang-switch a.active {
  opacity: 1;
  color: var(--aiae-blue);
}
.te-lang-switch a:hover {
  opacity: 1;
}
.te-lang-switch span {
  opacity: 0.4;
}

/* ---- Header nav: keep the menu on one line in both languages.
   Bootstrap's container caps at 1140px (1200-1399px viewports) and
   1314px (1400px+) no matter how wide the browser gets, so there is a
   hard ceiling on space here — French labels ("Programmes",
   "Perspectives") plus the language switcher don't fit the original
   spacing at any desktop width. Trim padding everywhere, and drop the
   "Become a Partner" CTA text on the tighter 1140px-container tier. ---- */
@media (min-width: 1200px) {
  .header-area.style-1 .te-main-menu ul li a {
    padding-left: 9px;
    padding-right: 9px;
  }
  .header-area.style-1 .te-lang-switch {
    margin-right: 14px;
    font-size: 13px;
  }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .header-area.style-1 .te-header-btn .te-cta-btn {
    display: none;
  }
}
@media (min-width: 1400px) {
  .header-area.style-1 .te-header-btn .te-cta-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}
