/* Original Easy Train palette and typography, adapted for Bootstrap 5. */
:root {
    --train-primary: #007297;
    --train-primary-hover: #005f7e;
    --train-dark: #161b29;
    --site-header-height: 165px;
    scroll-padding-top: 12rem;
}
body {
    font-family: 'Montserrat', Arial, sans-serif;
    color: #2e353e;
    font-size: 1rem;
    line-height: 1.75;
}
a { color: var(--train-primary); }
a:hover { color: var(--train-primary-hover); }
a, button, input, select { touch-action: manipulation; }
:focus-visible { outline: 3px solid #007297; outline-offset: 4px; }
section, main, .footer-heading { scroll-margin-top: 1rem; }
.skip-link { position: absolute; z-index: 1030; background: white; padding: 1rem; }
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    background: rgb(22 27 41 / 78%);
    color: #fff;
    box-shadow: 0 1px 0 rgb(255 255 255 / 12%);
}
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
    .site-header {
        background: rgb(22 27 41 / 62%);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
}
.site-header :focus-visible { outline-color: #b5e9fa; }
.account-bar { background: rgb(0 0 0 / 16%); padding: .5rem 0; font-size: .875rem; }
.account-bar a { color: #d5edf5; padding: .35rem 0; }
.account-bar a:hover, .account-bar a:focus-visible { color: #fff; }
.site-header .navbar { padding: .5rem 0; }
.navbar-brand img { max-width: 100%; height: auto; }
.navbar-nav .nav-link { color: #f2f5f8; font-size: .875rem; font-weight: 600; padding: 1rem .75rem; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus-visible, .navbar-nav .nav-link.active { color: #fff; background: rgb(255 255 255 / 14%); }
.navbar-toggler { min-width: 48px; min-height: 48px; }
.site-header.is-compact .account-bar { display: none; }
.site-header.is-compact .navbar { padding-block: .25rem; }
.site-header.is-compact .navbar-brand img { width: 112px; }
.site-header.is-compact .nav-link { padding-block: .5rem; }
.hero .carousel-item { position: relative; }
.hero-image { width: 100%; height: calc(var(--site-header-height) + clamp(420px, 48vw, 740px)); object-fit: cover; }
.hero .carousel-item::after { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / 35%); }
.hero-caption { position: absolute; inset: var(--site-header-height) 0 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 15%; text-align: center; color: white; }
.hero .carousel-control-prev, .hero .carousel-control-next { top: var(--site-header-height); }
.hero-caption h1, .hero-caption h2 { font-size: clamp(2rem, 4vw, 3.3125rem); line-height: 1.15; font-weight: 700; max-width: 800px; margin-bottom: 2.5rem; }
.brand-button, .brand-button-outline {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--train-primary);
    --bs-btn-border-color: var(--train-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--train-primary-hover);
    --bs-btn-hover-border-color: var(--train-primary-hover);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--train-primary-hover);
    --bs-btn-active-border-color: var(--train-primary-hover);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #526871;
    --bs-btn-disabled-border-color: #526871;
    border-radius: 0;
    padding: .85rem 2rem;
    font-weight: 600;
    font-size: .875rem;
    text-transform: uppercase;
    white-space: normal;
}
.brand-button-outline { --bs-btn-color: var(--train-primary); --bs-btn-bg: transparent; }
.page-section { padding: 5rem 0; }
.section-heading { font-size: clamp(1.65rem, 3vw, 2rem); line-height: 1.3; font-weight: 700; margin-bottom: 2rem; }
.section-muted { background: #e9e9e9; }
.course-card { background: #fff; display: flex; flex-direction: column; }
.course-link { color: #2e353e; text-decoration: none; display: block; }
.course-link:hover, .course-link:focus-visible { color: var(--train-primary); }
.course-link img { width: 100%; height: auto; aspect-ratio: 263 / 201; object-fit: cover; }
.course-copy { padding: 1.5rem 1.25rem 1rem; }
.course-copy h3 { font-size: 1.125rem; line-height: 1.5; font-weight: 600; margin: 0; }
.course-meta { margin-top: auto; display: grid; gap: .35rem; padding: 1rem 1.25rem; border-top: 1px solid #e5e5e5; font-size: .875rem; }
.course-meta i { color: var(--train-primary); margin-right: .35rem; }
.enquiry-section { background: #e9e9e9 url('/images/parallax/parallax-2.jpg') center / cover no-repeat; }
.enquiry-panel { background: #fff; padding: clamp(1.5rem, 4vw, 3rem); }
.enquiry-panel .section-heading { margin-bottom: .5rem; }
.form-control, .form-select { min-height: 48px; border-radius: 0; }
.form-label { font-weight: 600; }
.testimonial { margin: 0; padding: 1.5rem; text-align: center; display: flex; flex-direction: column; }
.testimonial blockquote { font-style: italic; font-size: 1.125rem; }
.testimonial figcaption { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: auto; }
.testimonial img { border-radius: 50%; object-fit: cover; }
.testimonial strong { font-size: .875rem; text-transform: uppercase; }
.benefits-section { background: #e9e9e9 url('/images/parallax/parallax-1.jpg') center / cover no-repeat; }
.benefits-panel { padding: 2rem; background: rgb(255 255 255 / 94%); }
.feature-icon { flex: 0 0 60px; object-fit: contain; }
.site-footer { background: var(--train-dark); color: #b9bdc7; padding-top: 4rem; font-size: .875rem; }
.site-footer a { color: #b9bdc7; overflow-wrap: anywhere; }
.site-footer a:hover, .site-footer a:focus-visible { color: white; }
.footer-heading { font-size: 1.25rem; }
.site-footer .list li { margin-bottom: .5rem; }
.site-footer .brand-button-outline { --bs-btn-color: #fff; --bs-btn-border-color: #8fc7da; color: #fff; }
.social-icons { display: flex; gap: .5rem; list-style: none; padding: 0; margin-top: 1rem; }
.social-icons a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
.footer-copyright { padding: 2rem 0; margin-top: 3rem; border-top: 1px solid #2a3040; }
@media (max-width: 575.98px) {
    :root { scroll-padding-top: 14rem; }
    .page-section { padding: 3rem 0; }
    .navbar-brand img { width: 154px; }
    .hero-caption { padding-inline: 14%; }
    .hero-caption h1, .hero-caption h2 { font-size: 2rem; }
    .benefits-panel { padding: 1.5rem; }
}
@media (max-width: 1199.98px) {
    .site-header { max-height: 100vh; max-height: 100svh; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .carousel-item { transition: none; }
}
.inner-page-header { background-color: var(--train-dark); background-position: center; background-size: cover; color: white; padding: calc(var(--site-header-height) + 4rem) 0 4rem; }
.inner-page-header h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; }
.inner-page-header .breadcrumb { --bs-breadcrumb-divider-color: #fff; }
.inner-page-header .breadcrumb a, .inner-page-header .breadcrumb-item.active { color: white; }
.page-banner-about { background-image: linear-gradient(rgb(22 27 41 / 75%), rgb(22 27 41 / 75%)), url('/images/parallax-4.jpg'); }
.page-banner-faq { background-image: linear-gradient(rgb(22 27 41 / 75%), rgb(22 27 41 / 75%)), url('/images/parallax-2.jpg'); }
.page-banner-contact { background-image: linear-gradient(rgb(22 27 41 / 75%), rgb(22 27 41 / 75%)), url('/images/parallax-3.jpg'); }
.page-banner-privacy, .page-banner-tandc { background-image: linear-gradient(rgb(22 27 41 / 75%), rgb(22 27 41 / 75%)), url('/images/parallax-5.jpg'); }
.training-callout { background: #e9e9e9; }
.legal-copy { max-width: 960px; overflow-wrap: anywhere; }
.legal-copy li { margin-bottom: .75rem; }
.contact-information { overflow-wrap: anywhere; }
.accordion { --bs-accordion-active-color: var(--train-primary-hover); --bs-accordion-active-bg: #edf5f7; }
.accordion-button { font-family: inherit; font-weight: 600; line-height: 1.6; min-height: 48px; }
.page-banner-courses { background-image: linear-gradient(rgb(22 27 41 / 75%), rgb(22 27 41 / 75%)), url('/images/parallax-1.jpg'); }
.page-banner-companies { background-image: linear-gradient(rgb(22 27 41 / 75%), rgb(22 27 41 / 75%)), url('/images/parallax-6.jpg'); }
.directory-tags { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-left: 1.25rem; margin-bottom: 2rem; }
.provider-card { background: #fff; border: 1px solid #dee2e6; overflow-wrap: anywhere; }
.provider-logo { width: 100%; height: auto; aspect-ratio: 360 / 193; object-fit: contain; }
.provider-address, .provider-description { white-space: pre-line; overflow-wrap: anywhere; }
.provider-summary { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.enquiry-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
