/* ECO Online Module - progressive journey, navigation states and quizzes */

/* --- Header navigation states --- */
.eco-nav-item .eco-nav-step {
  color: #fff;
  opacity: 1;
  font-weight: 600;
  margin-right: 2px;
}
.eco-nav-item .eco-nav-icon {
  font-size: 11px;
  margin-left: 4px;
}
.eco-nav-item.eco-passed > .nav-link .eco-nav-icon {
  color: #7ac943;
}
.eco-nav-item.eco-locked > .nav-link,
.eco-outline-item.eco-locked > span {
  opacity: 0.45;
  cursor: not-allowed;
}
.eco-nav-item.eco-locked > ul {
  display: none !important;
}

/* No divider line under the header */
.main-header .container-fluid::before {
  display: none !important;
}
header.main-header .header-sticky.active {
  border-bottom: none !important;
}

.eco-header-progress {
  align-items: center;
}
.eco-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.eco-progress-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: right;
}
.eco-progress-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.eco-progress-sub {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.6;
  white-space: nowrap;
}
.eco-progress-ring {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(#7ac943 var(--eco-ring, 0%), rgba(255, 255, 255, 0.22) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease;
}
.eco-progress-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--primary-color, #0d1117);
}
.eco-progress-ring-value {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

/* --- Home page outline --- */
.eco-outline {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: eco;
}
.eco-outline-item {
  counter-increment: eco;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border: 0;
  font-size: 18px;
}
.eco-outline-item::before {
  content: counter(eco) ".";
  font-weight: 700;
  opacity: 0.5;
  margin-right: 10px;
}
.eco-outline-item a {
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.eco-outline-item > span {
  flex: 1;
}
.eco-chip {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.eco-chip-done {
  background: rgba(122, 201, 67, 0.15);
  color: #4f8c22;
}
.eco-chip-open {
  background: rgba(0, 0, 0, 0.08);
}
.eco-chip-locked {
  background: rgba(0, 0, 0, 0.05);
  opacity: 0.7;
}

/* --- Section footer / step bar --- */
.eco-section-footer {
  padding: 70px 0 90px;
  background: #f4f5f2;
}
.eco-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
.eco-panel-text h3 {
  margin: 0 0 8px;
}
.eco-panel-text p {
  margin: 0;
}
.eco-pending {
  margin: 12px 0 0;
  padding-left: 18px;
}

/* --- Knowledge check CTA card --- */
.eco-cta {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 32px 38px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(122, 201, 67, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.eco-cta:hover {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.eco-cta-icon {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(122, 201, 67, 0.18);
  color: #4f8c22;
  font-size: 24px;
}
.eco-cta-text {
  flex: 1 1 260px;
}
.eco-cta-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4f8c22;
  margin-bottom: 4px;
}
.eco-cta-text h3 {
  margin: 0 0 6px;
}
.eco-cta-meta {
  margin: 0;
  font-size: 15px;
  opacity: 0.75;
}
.eco-cta-meta-pass {
  color: #4f8c22;
  opacity: 1;
}
.eco-cta-meta i {
  margin-right: 6px;
}
.eco-cta-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.eco-cta-btn {
  border: 0;
  cursor: pointer;
}
.eco-cta-next {
  font-size: 15px;
  color: #4f8c22;
  text-decoration: none;
}
.eco-cta-next i {
  transition: transform 0.2s ease;
}
.eco-cta-next:hover i {
  transform: translateX(4px);
}

/* --- Quiz modal --- */
body.eco-modal-open {
  overflow: hidden;
}
.eco-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 25, 12, 0.72);
  backdrop-filter: blur(6px);
  animation: eco-fade 0.25s ease;
}
.eco-modal-overlay.is-closing {
  opacity: 0;
  transition: opacity 0.2s ease;
}
@keyframes eco-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes eco-pop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes eco-shake {
  10%, 90% { transform: translateX(-2px); }
  30%, 70% { transform: translateX(5px); }
  50% { transform: translateX(-7px); }
}
.eco-modal {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: eco-pop 0.32s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.eco-modal.eco-shake {
  animation: eco-shake 0.45s ease;
}
.eco-modal-sm {
  max-width: 520px;
  text-align: center;
}
.eco-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 34px 18px;
}
.eco-modal-head.is-hidden {
  display: none;
}
.eco-modal-head h3 {
  margin: 0;
}
.eco-modal-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4f8c22;
  margin-bottom: 3px;
}
.eco-modal-count {
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}
.eco-modal-count .eco-count-total {
  opacity: 0.45;
  font-size: 17px;
}
.eco-modal-track {
  height: 5px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.eco-modal-track-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #7ac943, #4f8c22);
  transition: width 0.35s ease;
}
.eco-modal-body {
  padding: 30px 34px 34px;
}
.eco-step {
  animation: eco-pop 0.28s ease;
}
.eco-step-question {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 20px;
}
.eco-choices {
  display: grid;
  gap: 12px;
}
.eco-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 15px 18px;
  border-radius: 14px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.eco-choice:hover {
  border-color: rgba(122, 201, 67, 0.6);
  background: rgba(122, 201, 67, 0.06);
  transform: translateX(3px);
}
.eco-choice-key {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}
.eco-choice-label {
  flex: 1;
  font-size: 16px;
}
.eco-choice-tick {
  opacity: 0;
  color: #4f8c22;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.eco-choice.is-active {
  border-color: #4f8c22;
  background: rgba(122, 201, 67, 0.1);
}
.eco-choice.is-active .eco-choice-key {
  background: #4f8c22;
  color: #fff;
}
.eco-choice.is-active .eco-choice-tick {
  opacity: 1;
  transform: scale(1);
}
.eco-choice-cross {
  opacity: 0;
  color: #c92a2a;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
/* Locked (answered) state */
.eco-choice.is-locked {
  cursor: default;
  transform: none;
}
.eco-choice.is-locked:hover {
  border-color: rgba(0, 0, 0, 0.1);
  background: #fff;
  transform: none;
}
.eco-choice.is-correct,
.eco-choice.is-correct:hover {
  border-color: #4f8c22;
  background: rgba(122, 201, 67, 0.12);
}
.eco-choice.is-correct .eco-choice-tick {
  opacity: 1;
  transform: scale(1);
}
.eco-choice.is-wrong,
.eco-choice.is-wrong:hover {
  border-color: #c92a2a;
  background: rgba(201, 42, 42, 0.08);
}
.eco-choice.is-wrong .eco-choice-key {
  background: #c92a2a;
  color: #fff;
}
.eco-choice.is-wrong .eco-choice-tick {
  opacity: 0;
}
.eco-choice.is-wrong .eco-choice-cross {
  opacity: 1;
  transform: scale(1);
}
.eco-modal-hint.is-correct {
  color: #4f8c22;
  font-weight: 700;
}
.eco-modal-hint.is-wrong {
  color: #c92a2a;
  font-weight: 700;
}

.eco-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.eco-modal-hint {
  font-size: 14px;
  opacity: 0.6;
}
.eco-modal-foot .eco-next {
  border: 0;
  cursor: pointer;
}
.eco-modal-foot .eco-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.eco-modal-foot .eco-next i {
  margin-left: 6px;
}

/* --- Results screen --- */
.eco-results {
  text-align: center;
  padding: 10px 0;
}
.eco-results h3 {
  margin: 16px 0 6px;
}
.eco-results-badge {
  width: 74px;
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 34px;
}
.eco-results.is-pass .eco-results-badge {
  background: rgba(122, 201, 67, 0.16);
  color: #4f8c22;
}
.eco-results.is-fail .eco-results-badge {
  background: rgba(192, 57, 43, 0.12);
  color: #c0392b;
}
.eco-modal-sm .eco-results-badge {
  background: rgba(0, 0, 0, 0.06);
  color: #333;
}
.eco-results-score {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
}
.eco-results-score span {
  font-size: 28px;
  opacity: 0.55;
}
.eco-results.is-pass .eco-results-score {
  color: #4f8c22;
}
.eco-results.is-fail .eco-results-score {
  color: #c0392b;
}
.eco-results-note {
  max-width: 460px;
  margin: 10px auto 0;
}
.eco-results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
}
.eco-results-actions button.btn-default {
  border: 0;
  cursor: pointer;
}
.eco-result {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 14px;
  font-size: 17px;
}
.eco-result i {
  margin-right: 8px;
}
.eco-result-pass {
  background: rgba(122, 201, 67, 0.15);
  color: #3f7a17;
}
.eco-result-fail {
  background: rgba(192, 57, 43, 0.1);
  color: #a33227;
}

@media (max-width: 767px) {
  .eco-quiz,
  .eco-panel {
    padding: 26px 22px;
  }
  .eco-section-footer {
    padding: 45px 0 60px;
  }
}

/* --- Keep the six-step navigation on one line --- */
.main-header .nav-menu-wrapper .navbar-nav > li.eco-nav-item > .nav-link,
.main-header .nav-menu-wrapper .navbar-nav > li > .nav-link {
  font-size: 17px;
  white-space: nowrap;
  padding-left: 10px;
  padding-right: 10px;
}
.main-header .nav-menu-wrapper .navbar-nav > li.eco-nav-item > ul .nav-link {
  white-space: normal;
}
@media (max-width: 1399px) {
  .main-header .nav-menu-wrapper .navbar-nav > li > .nav-link {
    font-size: 15px;
    padding-left: 7px;
    padding-right: 7px;
  }
  .eco-progress {
    gap: 8px;
  }
  .eco-progress-ring {
    width: 38px;
    height: 38px;
  }
}

/* --- Global typography: Geist everywhere --- */
* {
  font-family: 'Geist', sans-serif;
}
/* Keep icon fonts working */
i.fa, i.fas, i.far, i.fab, i.fa-solid, i.fa-regular, i.fa-brands {
  font-family: "Font Awesome 6 Free", "FontAwesome";
}
i.fab, i.fa-brands {
  font-family: "Font Awesome 6 Brands";
}

/* --- Typography weights: minimum 500 --- */
body,
p, li, td, th, span, a, div, label, input, textarea, select, button,
.section-title h1, .section-title h2, .section-title h3,
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
}
h1, h2, h3, h4, h5, h6,
.section-title h1 span,
.section-title h2 span,
strong, b {
  font-weight: 700;
}
.section-title h2,
.section-title h2 span {
  font-weight: 700;
}

/* --- Hero content sits at the bottom-left of the banner --- */
.page-header,
.page-header2,
.page-header3 {
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
}
.page-header .page-header-box,
.page-header2 .page-header-box,
.page-header3 .page-header-box,
.page-header .page-header-box2,
.page-header2 .page-header-box2 {
  margin-bottom: 0;
}
.page-header-content,
.page-header-box,
.page-header-box2 {
  text-align: left;
}

/* wider gap between button label and the arrow icon */
.eco-topic-next.btn-default,
.eco-cta-btn.btn-default,
.eco-next.btn-default {
  padding-right: 64px;
}

/* ---------- Global text colours ---------- */
:root {
  --eco-heading-color: #042a2d;
  --eco-body-color: rgba(4, 42, 45, 0.72);
}

body,
p,
li,
td,
th,
label,
span,
figcaption,
blockquote,
input,
textarea,
select {
  color: var(--eco-body-color);
}

h1,
h2,
h3,
h4,
h5,
h6,
h1 span,
h2 span,
h3 span,
h4 span,
h5 span,
h6 span,
strong,
b {
  color: var(--eco-heading-color);
}

/* ---------- Global button styling: no arrow icons, uniform size ---------- */
.btn-default::before,
.btn-default::after,
.btn-2::before,
.btn-2::after,
.eco-topic-next.btn-default::before,
.eco-cta-btn.btn-default::before,
.eco-next.btn-default::before {
  content: none !important;
  display: none !important;
  background: none !important;
}
.btn-default.btn-highlighted::after {
  content: "" !important;
  display: block !important;
  background: linear-gradient(263deg, var(--dark-color) 0.16%, var(--accent-color) 99.84%) !important;
}

.btn-default,
.btn-2,
.eco-topic-next.btn-default,
.eco-topic-prev,
.eco-cta-btn.btn-default,
.eco-next.btn-default,
button.btn-default,
a.btn-default,
input[type="submit"],
button[type="submit"] {
  padding: 0 40px !important;
  height: 60px;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Footer knowledge check: locked until all topics are worked through */
.eco-cta.is-disabled {
  opacity: 0.85;
}
.eco-cta.is-disabled .eco-cta-btn,
.eco-cta .eco-cta-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.eco-cta-meta-locked i {
  margin-right: 6px;
}

/* Align header width with the hero/page-header container */
header.main-header {
  width: 100%;
  max-width: 1560px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Home hero top overlay gradient (index.html does not load eco-topics.css) --- */
.hero {
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(to bottom, var(--primary-color), transparent);
  z-index: 1;
  pointer-events: none;
}

.hero-section {
  position: relative;
  z-index: 2;
}

/* --- Header progress text stays white --- */
.eco-progress,
.eco-progress-label,
.eco-progress-ring-value {
  color: #ffffff !important;
}

.eco-progress-sub {
  color: rgba(255, 255, 255, 0.7) !important;
  opacity: 1;
}
