/* Based on TemplateMo 586 Scholar: https://templatemo.com/tm-586-scholar */
/* Anchor destinations retain focus without outlining an entire content section. */
.hero[tabindex="-1"]:focus,
.home-section[tabindex="-1"]:focus {
  outline: none;
}
body {
  margin: 0;
  color: var(--color-text);
  background: #fff;
  font-family: var(--font-body);
}
.container {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: 1280px;
  padding-inline: 0;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 600;
}
p {
  margin: 0;
  color: var(--color-secondary);
  font-size: 16px;
  line-height: 1.8;
}
a {
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.home-section {
  margin-top: clamp(56px, 6vw, 80px);
  scroll-margin-top: calc(var(--site-header-height) + 8px);
}
.section-heading {
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-heading h2 {
  margin: 12px 0 24px;
  font-size: clamp(27px, 2.8vw, 38px);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
  letter-spacing: -.025em;
}
.section-heading .section-label {
  color: var(--color-brand);
  font-size: 14px;
  text-transform: uppercase;
}
.hero-action a, .course-action a, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 10px;
  background: #fff;
  color: var(--color-brand);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.hero-action a:hover, .course-action a:hover, .button-link:hover {
  background: var(--color-brand);
  color: #fff;
}

/* Banner: slides remain readable if JavaScript is unavailable. */
.hero {
  padding: calc(var(--site-header-height) + 32px) 0 clamp(32px, 4vw, 48px);
  background: linear-gradient(135deg, #2472bb, #2b78bf);
}
.hero-slides {
  position: relative;
}
.hero-slides .hero-slide {
  min-height: 440px;
  padding: clamp(28px, 4.5vw, 64px) clamp(72px, 6vw, 90px) 84px;
  border-radius: 24px;
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 32px rgb(22 58 93 / 10%);
}
.hero-slides .hero-slide + .hero-slide {
  margin-top: 24px;
}
.hero-slides.is-carousel-ready {
  display: grid;
}
.hero-slides.is-carousel-ready .hero-slide {
  grid-area: 1 / 1;
  margin-top: 0;
}
/* Reserve the tallest slide's space so controls stay still when text wraps. */
.hero-slides.is-carousel-ready .hero-slide[hidden] {
  /* Override Bootstrap's display:none while keeping slides inaccessible. */
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}
.hero-slides .hero-slide-training {
  background-image: linear-gradient(90deg, rgb(10 30 50 / 15%), transparent), url('../images/hero-training.jpg?v=6c14c5634729');
}
.hero-slides .hero-slide-financing {
  background-image: linear-gradient(90deg, rgb(10 30 50 / 15%), transparent), url('../images/hero-financing.jpg?v=c4781a81d94c');
}
.hero-slides .hero-slide-flexible-learning {
  background-image: linear-gradient(90deg, rgb(10 30 50 / 15%), transparent), url('../images/hero-flexible-learning.jpg?v=3e55b69a94cf');
}
.hero-slides .hero-label {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 20px;
  background: #246fb8;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-slides h2 {
  max-width: 700px;
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(29px, 3vw + 10px, 50px);
  line-height: 1.15;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.hero-slides p {
  max-width: 580px;
  color: #fff;
  font-size: 17px;
  line-height: 1.7;
}
.hero-slides .hero-actions {
  margin-top: 28px;
}
.hero-carousel-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 4px;
  border: 0;
  border-radius: 50%;
  background: rgb(10 30 50 / 55%);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: background .2s;
}
.hero-carousel-arrow.is-previous { left: 16px; }
.hero-carousel-arrow.is-next { right: 16px; }
.hero-carousel-arrow:hover { background: rgb(10 30 50 / 85%); }
.hero-carousel-controls :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-carousel-pagination {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  padding: 0 4px;
  border-radius: 28px;
  background: rgb(10 30 50 / 45%);
  pointer-events: auto;
}
.hero-carousel-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
}
.hero-carousel-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: rgb(255 255 255 / 65%);
  transition: width .2s, background .2s;
}
.hero-carousel-dot[aria-current="true"]::before { width: 24px; background: #fff; }
.hero-carousel-dot:hover::before { background: #fff; }
@media (hover: hover) and (pointer: fine) {
  .hero-carousel-controls {
    opacity: 0;
    transition: opacity .2s;
  }
  .hero-slides:hover .hero-carousel-controls,
  .hero-slides:focus-within .hero-carousel-controls {
    opacity: 1;
  }
}
@media (width < 760px) {
  .hero-carousel-arrow { display: none; }
  .hero-slides .hero-slide { padding-inline: 28px; }
}

/* Courses */
.course-grid, .team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}
.course-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-muted);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .2s, box-shadow .2s;
}
@media (hover: hover) {
  .course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgb(22 58 93 / 10%);
  }
}
.course-card .course-image {
  position: relative;
}
.course-card .course-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.course-card .course-category {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #fff;
  color: var(--color-brand);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.course-card .course-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  text-align: left;
}
.course-card h3 {
  font-size: 19px;
  line-height: 1.4;
}
.course-card .course-meta {
  color: var(--color-secondary);
  font-size: 14px;
}
.course-card .course-content .course-action {
  margin-top: auto;
  padding-top: 10px;
}
.course-action a {
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: #eef5fc;
  color: #174f88;
  font-weight: 600;
}
.course-action a::after, .hero-action a::after {
  content: "→" / "";
  margin-left: 16px;
}

/* Team: normal document flow avoids overlapping avatars and text. */
.team-section {
  padding-block: clamp(40px, 5vw, 64px);
  background: var(--color-surface);
  border-block: 1px solid var(--color-muted);
}
.trainer-card {
  width: 100%;
  height: 100%;
}
.trainer-card .trainer-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--color-muted);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.trainer-card img {
  width: clamp(112px, 10vw, 128px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}
.trainer-card .trainer-role {
  margin: 20px 0 8px;
  color: var(--color-brand);
  min-height: 3em;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: .02em;
}
.trainer-card h3 {
  font-size: 18px;
  line-height: 1.4;
}
.trainer-bio {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
}

/* Contact */
.contact-section {
  padding: clamp(40px, 6vw, 80px) 0;
  background: #f2f7fc;
  border-top: 1px solid #e1ebf5;
}
.contact-section .section-heading {
  margin-bottom: 24px;
}
.contact-heading {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
}
.contact-heading .section-label {
  color: #246fb8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
}
.contact-heading h2 {
  margin: 12px 0;
  color: #163a5d;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  text-wrap: balance;
}
.contact-heading > p:last-child {
  color: #536477;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  max-width: 1120px;
  margin: auto;
  align-items: start;
}
.contact-information {
  padding: 12px 0;
}
.contact-information h3, .contact-form-panel h3 {
  color: #163a5d;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
}
.contact-information-intro, .contact-form-intro {
  margin: 8px 0 24px;
  color: #536477;
  font-size: 14px;
}
.contact-detail {
  display: flex;
  align-items: start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #dce6f0;
}
.contact-detail > div {
  min-width: 0;
}
.contact-detail-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid #d7e7f6;
  border-radius: 12px;
  background: #e6f1fc;
  color: #246fb8;
}
.contact-detail h4 {
  margin: 0 0 8px;
  color: #536477;
  font-size: 12px;
  font-weight: 500;
}
.contact-detail a {
  display: inline-block;
  color: #174f88;
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}
.contact-detail a:hover {
  text-decoration: underline;
}
.contact-detail-divider {
  margin-inline: 6px;
  color: #536477;
  font-size: 12px;
}
.contact-detail .contact-company-name {
  margin: 0 0 4px;
  color: #163a5d;
  font-size: 14px;
  font-weight: 500;
}
.contact-detail address {
  margin: 0;
  color: #536477;
  font-size: 14px;
  line-height: 1.7;
  font-style: normal;
}
.contact-map-details summary {
  padding: 18px 0;
  color: #174f88;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.contact-map {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--color-muted);
  border-radius: 16px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.contact-form-panel {
  width: 100%;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid #dce6f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 36px rgb(22 58 93 / 6%);
}
.contact-fields-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
#contact-form label {
  display: block;
  margin-bottom: 8px;
  color: #263445;
  font-size: 14px;
  font-weight: 500;
}
#contact-form input, #contact-form textarea {
  width: 100%;
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid #c9d6e5;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.5;
}
#contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
#contact-form input::placeholder, #contact-form textarea::placeholder {
  color: #64748b;
}
#contact-form button {
  min-height: 48px;
  padding: 14px 24px;
  border: 0;
  width: 100%;
  border-radius: 10px;
  background: #246fb8;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#contact-form button:hover {
  background: #174f88;
}
#contact-form :focus-visible {
  outline-color: #174f88;
}
#contact-form .contact-form-note {
  margin: 12px 0 0;
  color: #536477;
  font-size: 12px;
  text-align: center;
}
#contact-form .contact-form-status {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
}
#contact-form .contact-form-status:empty {
  display: none;
}
#contact-form [aria-invalid="true"] {
  border-color: #a61b29;
}
#contact-form button:disabled {
  opacity: .7;
  cursor: wait;
}
#contact-form button span {
  margin-left: 10px;
}
@media (width < 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (width < 576px) {
  .contact-fields-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .contact-form-panel {
    padding: 24px 20px;
  }
}
#contact-form .form-spam-trap {
  display: none;
}

/* Utility pages */
.maintenance-message {
  padding: 68px 0 clamp(40px, 6vw, 80px);
  background: #f9f9f9;
}
.confirmation-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  background: #f6f7fb;
}
.confirmation-message {
  align-self: center;
  max-width: 640px;
  width: calc(100% - 2 * var(--page-gutter));
  margin-block: 40px;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--color-muted);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.confirmation-message p {
  margin: 20px 0;
}
.confirmation-message h1, .maintenance-message h1 {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.2;
  text-wrap: balance;
}
.confirmation-message .button-link {
  background: var(--color-brand);
  color: #fff;
}
.confirmation-message .button-link:hover {
  background: #2475c6;
}

@media (width < 1100px) {
  .course-grid, .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (width < 1200px) {
  .hero {
    padding-top: calc(var(--site-header-height) + 32px);
  }
}
@media (width < 640px) {
  .course-grid, .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .course-card .course-action a, #contact-form button {
    width: 100%;
  }
}
@media (width < 576px) {
  .hero-slides .hero-slide {
    min-height: 420px;
    padding: 28px 24px 84px;
  }
  .hero-slides .hero-label {
    font-size: 12px;
    margin-bottom: 24px;
  }
  .contact-map {
    aspect-ratio: 4 / 3;
  }
}
