/* Direction page (layout of 2026-10-30). Hero, anchors, intro, formats, trust, FAQ and the slider use the
   service page styles from style.css unchanged. This file holds the helmet, the panel button, and the
   sizes of the blocks the service page does not have: steps, program cards, document cards and forms. */
.services-page.ecoips-direction {
  --direction-navy:#283c64;
  --direction-blue:#0099ff;
  --direction-mist:#e6eff0;
}

/* Hero: the helmet stands on the bottom edge and is not cropped like the service image */
.services-page.ecoips-direction .svc-audit-hero.ecoips-direction-hero .svc-audit-hero__image {
  left:50%;
  bottom:0;
  width:min(27%, 410px);
  height:auto;
  aspect-ratio:523 / 347;
  transform:translateX(-50%);
}
.services-page.ecoips-direction .ecoips-direction-hero .svc-audit-hero__image img { width:100%; height:100%; }

/* Formats: the button of the layout inside the service panel */
.ecoips-direction-panel-button {
  position:relative;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  width:338px;
  max-width:100%;
  min-height:54px;
  margin-top:26px;
  padding:0 26px;
  color:var(--direction-navy);
  background:#fff;
  border-radius:999px;
  font-size:16px;
  font-weight:500;
  text-decoration:none;
  transition:background-color .2s ease;
}
.ecoips-direction-panel-button:hover { background:#dff1fc; }

/* Steps */
.services-page.ecoips-direction .services-training { margin:0; padding:58px 0 0; background:transparent; }
.services-page.ecoips-direction .services-training__steps { grid-auto-rows:auto; }
.services-page.ecoips-direction .training-step { height:auto; }
.services-page.ecoips-direction .training-step__icon { width:auto; height:auto; opacity:1; }
.services-page.ecoips-direction .training-step__icon svg { display:block; width:auto; height:auto; }

/* Program cards */
.services-page.ecoips-direction .training-programs__filters { display:grid; grid-template-columns:minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.services-page.ecoips-direction .training-programs__filters:not(:has([data-filter="area"])) { grid-template-columns:minmax(0, 3fr) minmax(0, 1fr); }
.services-page.ecoips-direction .training-programs__search,
.services-page.ecoips-direction .training-programs__select { width:100%; }
.services-page.ecoips-direction .training-programs__search { position:relative; display:flex; align-items:center; overflow:hidden; border:1px solid #9fd6fb; border-radius:999px; background:#fff; }
.services-page.ecoips-direction .training-programs__search-input { flex:1; min-width:0; height:100%; padding:0 28px; border:0; background:transparent; outline:0; }
.services-page.ecoips-direction .training-programs__search-button { flex:0 0 auto; height:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; border:0; border-radius:999px; color:#fff; background:var(--direction-blue); cursor:pointer; }
.services-page.ecoips-direction .training-programs__select {
  padding:0 48px 0 28px;
  border:1px solid #9fd6fb;
  border-radius:999px;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M5 6 0 0h10z' fill='%23283c64'/%3E%3C/svg%3E") no-repeat right 24px center;
  -webkit-appearance:none;
  appearance:none;
}
.services-page.ecoips-direction .training-programs__grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); }
.services-page.ecoips-direction .training-program-card { width:auto; }
.services-page.ecoips-direction .training-program-card.is-hidden { display:none; }
.services-page.ecoips-direction .training-program-card__link { display:flex; flex-direction:column; height:100%; }
.services-page.ecoips-direction .training-program-card__title { text-transform:uppercase; overflow-wrap:anywhere; }
.services-page.ecoips-direction .training-program-card__title a { color:inherit; text-decoration:none; }
.services-page.ecoips-direction .training-program-card__title a:hover { text-decoration:underline; text-underline-offset:4px; }
.services-page.ecoips-direction .training-program-card__button { display:inline-flex; align-items:center; justify-content:space-between; max-width:100%; border:0; cursor:pointer; font-family:inherit; }
.services-page.ecoips-direction .training-program-card.is-selected .training-program-card__button { color:#fff; background:var(--direction-blue); }
.services-page.ecoips-direction .training-program-card__meta { margin-top:auto; }
.services-page.ecoips-direction .training-program-card__top { display:flex; justify-content:space-between; gap:16px; }
.services-page.ecoips-direction .training-program-card__hours { margin-left:auto; flex:0 0 auto; }
/* Programs without an area code: the long name is the title */
.services-page.ecoips-direction .training-program-card--plain .training-program-card__title { text-transform:none; line-height:1.2; }
.services-page.ecoips-direction .training-program-card--plain .training-program-card__button { margin-top:auto; }
.services-page.ecoips-direction .training-programs__load-more { display:flex; width:100%; align-items:center; justify-content:center; gap:8px; }
.services-page.ecoips-direction .training-programs__load-more[hidden],
.services-page.ecoips-direction .training-programs__empty[hidden] { display:none; }

/* Documents: service cards on the full-width tint of the layout */
.services-page.ecoips-direction .svc-audit-materials {
  width:100%;
  max-width:none;
  margin:0;
  padding:88px max(20px, calc((100% - 1520px) / 2)) 100px;
  background:var(--direction-mist);
}
.services-page.ecoips-direction .svc-audit-materials__card { --svc-material-color:#fff; background:#fff; }
.services-page.ecoips-direction .svc-audit-materials__cta { background:var(--direction-navy); }
/* Open card: switched by the script, or the one under the pointer. Text stays under the title at any length. */
.services-page.ecoips-direction .svc-audit-materials__card.is-active,
.services-page.ecoips-direction .svc-audit-materials__card:hover { background:var(--direction-blue); }
.services-page.ecoips-direction .svc-audit-materials__card.is-active .svc-audit-materials__card-title,
.services-page.ecoips-direction .svc-audit-materials__card:hover .svc-audit-materials__card-title { color:#fff; }
.services-page.ecoips-direction .svc-audit-materials__card.is-active .svc-audit-materials__card-bottom,
.services-page.ecoips-direction .svc-audit-materials__card:hover .svc-audit-materials__card-bottom { position:relative; left:auto; right:auto; bottom:auto; margin-top:8px; color:rgba(255,255,255,.9); transform:none; }
.services-page.ecoips-direction .svc-audit-materials__card.is-active .svc-audit-materials__card-image,
.services-page.ecoips-direction .svc-audit-materials__card:hover .svc-audit-materials__card-image { opacity:1; transform:translateX(-50%) translateY(0); }

/* The card is tall enough for the text and the picture together, so nothing overlaps. */
.services-page.ecoips-direction .svc-audit-materials__card-image { width:190px; max-width:80%; height:130px; }
.services-page.ecoips-direction .svc-audit-materials__card { min-height:255px; }
@media (max-width:1500px) {
  .services-page.ecoips-direction .svc-audit-materials__card { min-height:265px; }
}
@media (max-width:1300px) {
  .services-page.ecoips-direction .svc-audit-materials__card { min-height:315px; }
}
@media (max-width:1024px) {
  .services-page.ecoips-direction .svc-audit-materials__card { min-height:240px; }
  .services-page.ecoips-direction .svc-audit-materials__card-image { height:120px; }
}
@media (max-width:600px) {
  .services-page.ecoips-direction .svc-audit-materials__card { min-height:285px; }
  .services-page.ecoips-direction .svc-audit-materials__card-image { height:120px; }
}

/* Forms */
.services-page.ecoips-direction .services-consultation,
.services-page.ecoips-direction .teach-consultation { background:#fff; }
.services-page.ecoips-direction .services-consultation .services-consultation__image { overflow:hidden; background:linear-gradient(90deg, #06246a 0%, #2f7de0 100%); }
.services-page.ecoips-direction .services-consultation .services-consultation__image img { display:block; width:100%; height:100%; object-fit:contain; object-position:bottom center; }
.services-page.ecoips-direction .services-form-field--select { position:relative; }
.services-page.ecoips-direction .services-form-field--select select {
  width:100%;
  min-height:56px;
  padding:0 24px 0 0;
  color:inherit;
  background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M5 6 0 0h10z' fill='%23283c64'/%3E%3C/svg%3E") no-repeat right 4px center;
  border:0;
  border-bottom:1px solid #d9dfe8;
  border-radius:0;
  font:inherit;
  -webkit-appearance:none;
  appearance:none;
}
.services-page.ecoips-direction .services-form-selected { margin:0 0 14px; color:var(--direction-navy); font-size:14px; line-height:1.4; }
.services-page.ecoips-direction .services-form-selected[hidden] { display:none; }

/* Titles wrap in two lines as in the layout; their size stays from style.css */
@media (min-width:769px) {
  .services-page.ecoips-direction :is(.services-training__heading h2,.svc-audit-included__title,.training-programs__title,.svc-audit-materials__title,.services-consultation__heading h2,.svc-audit-faq__title) { max-width:900px; margin-left:auto; margin-right:auto; text-wrap:balance; }
  .services-page.ecoips-direction .svc-audit-trust__title { max-width:560px; margin-left:auto; margin-right:auto; text-wrap:balance; }
  .services-page.ecoips-direction :is(.services-training__heading p,.svc-audit-included__description,.training-programs__subtitle,.svc-audit-materials__description,.services-consultation__heading p,.svc-audit-trust__description,.svc-audit-faq__description) { max-width:900px; margin-left:auto; margin-right:auto; text-wrap:balance; }
}

/* Formats: four tabs are shorter than the six of the service page, the panel keeps its height */
@media (min-width:1200px) {
  .services-page.ecoips-direction .svc-audit-included__content { min-height:571px; }
}

/* Desktop sizes of the blocks the service page does not have, in the scale of its 1520 px container */
@media (min-width:1025px) {
  .services-page.ecoips-direction .services-training__heading { margin-bottom:45px; }
  .services-page.ecoips-direction .services-training__steps { grid-template-columns:repeat(4, minmax(0, 1fr)); gap:20px; margin:0; }
  .services-page.ecoips-direction .services-training .training-step { min-height:276px; padding:32px 38px; }
  .services-page.ecoips-direction .training-step__icon { margin-bottom:20px; }
  .services-page.ecoips-direction .training-step__border { margin:16px 0; }
  .services-page.ecoips-direction .training-programs { padding:88px 0 100px; }
  .services-page.ecoips-direction .training-programs__heading { margin-bottom:45px; }
  .services-page.ecoips-direction .training-programs__filters { gap:20px; margin-bottom:45px; }
  .services-page.ecoips-direction .training-programs__search,
  .services-page.ecoips-direction .training-programs__select { height:70px; min-height:70px; font-size:18px; }
  .services-page.ecoips-direction .training-programs__search-input { font-size:18px; }
  .services-page.ecoips-direction .training-programs__search-button { min-width:156px; padding:0 26px; font-size:18px; }
  .services-page.ecoips-direction .training-programs__grid { gap:20px; }
  .services-page.ecoips-direction .training-program-card { border-radius:20px; }
  .services-page.ecoips-direction .training-program-card__link { min-height:clamp(480px, 31.5vw, 606px); padding:26px 40px 30px; }
  .services-page.ecoips-direction .training-program-card__department,
  .services-page.ecoips-direction .training-program-card__hours { font-size:16px; }
  .services-page.ecoips-direction .training-program-card__title { margin:40px 0 0; font-size:clamp(24px, 1.75vw, 33px); line-height:1.1; }
  .services-page.ecoips-direction .training-program-card__label { margin-top:24px; font-size:16px; }
  .services-page.ecoips-direction .training-program-card__description { margin-top:8px; font-size:clamp(18px, 1.25vw, 24px); line-height:1.25; font-weight:500; }
  .services-page.ecoips-direction .training-program-card__button { width:430px; min-height:66px; margin-top:30px; padding:0 30px; font-size:18px; }
  .services-page.ecoips-direction .training-program-card__meta { padding-top:32px; }
  .services-page.ecoips-direction .training-program-card--plain .training-program-card__link { min-height:340px; }
  .services-page.ecoips-direction .training-program-card--plain .training-program-card__title { margin-bottom:24px; font-size:clamp(16px, 1.15vw, 21px); }
  .services-page.ecoips-direction .training-program-card__meta-label { font-size:16px; }
  .services-page.ecoips-direction .training-program-card__meta-value { font-size:18px; }
  .services-page.ecoips-direction .training-programs__load-more { min-height:64px; margin-top:20px; font-size:18px; }
  .services-page.ecoips-direction .services-consultation { padding:96px 0 100px; }
  .services-page.ecoips-direction .services-consultation__heading { margin-bottom:48px; }
  .services-page.ecoips-direction .services-consultation .services-consultation__image { height:620px; min-height:0; }
}

/* Tablet: steps and program cards in two columns as in the layout */
@media (max-width:1024px) {
  .services-page.ecoips-direction .svc-audit-hero.ecoips-direction-hero .svc-audit-hero__image { display:block; left:calc(50% - 100px); width:190px; }
  .services-page.ecoips-direction .services-training { padding-top:40px; }
  .services-page.ecoips-direction .services-training__steps { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); grid-template-rows:repeat(2, auto); grid-auto-flow:column; gap:10px; margin-top:26px; }
  .services-page.ecoips-direction .services-training .training-step { min-height:243px; padding:22px; }
  .services-page.ecoips-direction .training-step h3 { font-size:17px; text-transform:uppercase; }
  .services-page.ecoips-direction .training-step__icon { margin-bottom:26px; }
  .services-page.ecoips-direction .training-programs { padding:50px 0; }
  .services-page.ecoips-direction .training-programs__filters { grid-template-columns:1fr; gap:10px; margin-bottom:24px; }
  .services-page.ecoips-direction .training-programs__filters:not(:has([data-filter="area"])) { grid-template-columns:1fr; }
  .services-page.ecoips-direction .training-programs__search,
  .services-page.ecoips-direction .training-programs__select { height:54px; min-height:54px; font-size:15px; }
  .services-page.ecoips-direction .training-programs__search-input { font-size:15px; }
  .services-page.ecoips-direction .training-programs__search-button { min-width:110px; padding:0 18px; }
  .services-page.ecoips-direction .training-programs__grid { gap:10px; }
  .services-page.ecoips-direction .training-program-card { border-radius:14px; }
  .services-page.ecoips-direction .training-program-card__link { min-height:300px; padding:16px; }
  .services-page.ecoips-direction .training-program-card__title { margin:24px 0 0; font-size:16px; }
  .services-page.ecoips-direction .training-program-card__description { font-size:14px; }
  .services-page.ecoips-direction .training-program-card--plain .training-program-card__link { min-height:220px; }
  .services-page.ecoips-direction .training-program-card--plain .training-program-card__title { margin-bottom:16px; font-size:14px; }
  .services-page.ecoips-direction .training-program-card__button { width:100%; min-height:46px; margin-top:16px; padding:0 16px; }
  .services-page.ecoips-direction .training-programs__load-more { min-height:54px; margin-top:10px; }
  .services-page.ecoips-direction .training-program-card:nth-child(4n+2) { --training-card-color:#076DB0 !important; }
  .services-page.ecoips-direction .training-program-card:nth-child(4n+3) { --training-card-color:#93B3C5 !important; }
  .services-page.ecoips-direction .training-program-card:nth-child(4n+4) { --training-card-color:#1D2027 !important; }
  .services-page.ecoips-direction .svc-audit-materials { padding:50px 20px; }
}

@media (max-width:600px) {
  .services-page.ecoips-direction .svc-audit-materials__card-title { font-size:16px; }
  .services-page.ecoips-direction .svc-audit-materials__card-bottom { font-size:13px; }
  .services-page.ecoips-direction .svc-audit-materials { padding:50px 15px; }
  .services-page.ecoips-direction .services-training__steps { grid-template-columns:1fr; grid-template-rows:none; grid-auto-flow:row; }
  .services-page.ecoips-direction .training-programs__grid { grid-template-columns:1fr; }
}

/* Phone: the helmet stands under the hero buttons at the bottom of the panel */
@media (max-width:767px) {
  .services-page.ecoips-direction .svc-audit-hero.ecoips-direction-hero .svc-audit-hero__image { left:50%; width:calc(100% - 30px); max-width:330px; }
  .services-page.ecoips-direction .ecoips-direction-hero .svc-audit-hero__right { padding-bottom:calc(min(100vw - 60px, 330px) * .68 + 20px); }
}
