/*
 * Securitas theme
 */

:root {
    --sec-navy: #031f30;
    --sec-navy-light: #2e4869;
    --sec-blue-100: #acc2dd;
    --sec-purple: #6c47cf;
    --sec-grey-800: #53565a;
    --sec-divider: rgba(172, 194, 221, .15);
    --sec-shadow: 0 2px 8px 0 rgba(0, 0, 0, .16);
    --sec-max-width: 1440px;
}

/* ---------- Header ---------- */

body {
    height: auto;
    min-height: 100%;
}

header.sec-header {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1030;
    width: 100%;
    height: auto;
    min-height: 0;
    background: var(--sec-navy) !important;
    color: #fff;
    font-family: "Open Sans", Arial, sans-serif;
}

header.sec-header .sec-container,
footer.sec-footer .sec-container {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--sec-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    header.sec-header .sec-container,
    footer.sec-footer .sec-container { padding: 0 2rem; }
}

@media (min-width: 1024px) {
    header.sec-header .sec-container,
    footer.sec-footer .sec-container { padding: 0 4rem; }
}

@media (min-width: 1441px) {
    header.sec-header .sec-container,
    footer.sec-footer .sec-container { padding: 0 5rem; }
}

/* ---------- Logo ---------- */

header.sec-header .sec-logo,
footer.sec-footer .sec-logo {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: #fff !important;
    text-decoration: none;
}

header.sec-header .sec-logo__mark,
footer.sec-footer .sec-logo__mark {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

header.sec-header .sec-logo__mark img,
footer.sec-footer .sec-logo__mark img {
    display: block;
    width: 44px;
    height: auto;
}

header.sec-header .sec-logo__name,
footer.sec-footer .sec-logo__name {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
    color: #fff;
}

header.sec-header .sec-logo__service,
footer.sec-footer .sec-logo__service {
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, .35);
    font-size: 17px;
    font-weight: 400;
    line-height: 32px;
    color: #fff;
}

/* ---------- Top row ---------- */

header.sec-header .sec-header__top .sec-container {
    display: flex;
    align-items: center;
    column-gap: 1rem;
    min-height: 68px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

header.sec-header .sec-header__utils {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

header.sec-header .sec-header__mail {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 15px;
    color: #fff !important;
    text-decoration: none;
}

header.sec-header .sec-header__mail:hover span {
    text-decoration: underline;
}

header.sec-header .sec-header__separator {
    width: 1px;
    height: 24px;
    background: #fff;
    opacity: .5;
}

header.sec-header svg {
    width: 1rem;
    height: 1rem;
    fill: #fff;
    flex-shrink: 0;
}

/* Outlined pill button */
header.sec-header .sec-header__phone {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    height: 36px;
    padding: 0 24px;
    border: 2px solid #fff;
    border-radius: 99px;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: #fff !important;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

header.sec-header .sec-header__phone:hover,
header.sec-header .sec-header__phone:focus-visible {
    background: #fff;
    color: var(--sec-navy) !important;
}

header.sec-header .sec-header__phone:hover svg,
header.sec-header .sec-header__phone:focus-visible svg {
    fill: var(--sec-navy);
}

/* ---------- Bottom row: main navigation ---------- */

header.sec-header .sec-header__bottom .sec-container > .main-navigation {
    float: none;
    display: flex;
    align-items: stretch;
    height: 63px;
    border-top: 1px solid var(--sec-divider);
}

header.sec-header .main-navigation > ul {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0 !important;
    list-style: none;
}

header.sec-header .main-navigation > ul > li,
header.sec-header .main-navigation > ul > li:last-child {
    float: none;
    position: relative;
    display: flex;
    margin: 0 2rem 0 0;
    border-top: 0;
}

header.sec-header .main-navigation > ul > li:last-child {
    margin-right: 0;
}

header.sec-header .main-navigation > ul > li.parent-item:hover {
    margin-top: 0;
    border-top: 0;
}

header.sec-header .main-navigation > ul > li:after {
    display: none !important;
}

header.sec-header .main-navigation > ul > li > a,
header.sec-header .main-navigation > ul > li:last-child > a {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 270px;
    padding: 0;
    border-bottom: 5px solid transparent;
    border-top: 5px solid transparent; /* Label vertically centred */
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    color: #fff !important;
    text-decoration: none;
    transition: border-color .1s ease, opacity .1s ease;
}

/* Dim siblings while one item is hovered */
header.sec-header .main-navigation > ul:hover > li > a {
    opacity: .75;
}

header.sec-header .main-navigation > ul > li:hover > a,
header.sec-header .main-navigation > ul > li:focus-within > a {
    opacity: 1;
    border-bottom-color: var(--sec-blue-100);
}

header.sec-header .main-navigation > ul > li.active > a {
    border-bottom-color: var(--sec-blue-100);
}

/* Small chevron on items with a dropdown */
header.sec-header .main-navigation > ul > li.haschild > a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 .5rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .15s ease;
}

header.sec-header .main-navigation > ul > li.haschild:hover > a::after,
header.sec-header .main-navigation > ul > li.haschild:focus-within > a::after {
    transform: translateY(3px) rotate(-135deg);
}

/* ---------- Dropdown ---------- */

header.sec-header .main-navigation li.parent-item ul.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 5;
    min-width: 280px;
    max-width: 360px;
    margin: 0;
    padding: .5rem 0;
    list-style: none;
    background: #fff !important;
    border: 0;
    border-radius: 0 0 6px 6px;
    box-shadow: var(--sec-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

header.sec-header .main-navigation li.parent-item ul.submenu:empty {
    display: none;
}

header.sec-header .main-navigation li.parent-item:hover > ul.submenu,
header.sec-header .main-navigation li.parent-item:focus-within > ul.submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

header.sec-header .main-navigation li.parent-item ul.submenu li a {
    display: block;
    padding: .6rem 1.25rem;
    border: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    white-space: normal;
    color: var(--sec-navy) !important;
    background: transparent;
    text-decoration: none;
}

header.sec-header .main-navigation li.parent-item ul.submenu li a:hover,
header.sec-header .main-navigation li.parent-item ul.submenu li a:focus-visible {
    background: #f4f6f9;
    color: var(--sec-purple) !important;
}

/* ---------- Mobile ---------- */

header.sec-header .mobile-navigation {
    display: none;
    position: static;
    margin: 0;
}

@media (max-width: 991.98px) {
    header.sec-header .sec-header__top,
    header.sec-header .sec-header__bottom {
        display: none;
    }

    header.sec-header .mobile-navigation {
        display: block;
    }

    header.sec-header .sec-header__mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 64px;
    }

    header.sec-header .sec-logo__mark img { width: 38px; }
    header.sec-header .sec-logo__name { font-size: 12px; }
    header.sec-header .sec-logo__service { font-size: 15px; line-height: 28px; padding-left: .75rem; }
    header.sec-header .sec-logo { gap: .75rem; }

    header.sec-header .mobile-navigation .mobile-btn {
        display: block;
        position: relative;
        width: 30px;
        height: 24px;
        padding: 0;
        margin: 0;
    }

    header.sec-header .mobile-navigation .mobile-btn span,
    header.sec-header .mobile-navigation .mobile-btn span:before,
    header.sec-header .mobile-navigation .mobile-btn span:after {
        width: 26px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
    }

    header.sec-header .mobile-navigation .mobile-btn span {
        top: 11px;
        left: 2px;
    }

    header.sec-header .mobile-navigation .mobile-btn span:before { top: -8px; }
    header.sec-header .mobile-navigation .mobile-btn span:after { bottom: -8px; }
    header.sec-header .mobile-navigation .mobile-btn.show-menu span { background: transparent; }
    header.sec-header .mobile-navigation .mobile-btn.show-menu span:before { top: 0; }
    header.sec-header .mobile-navigation .mobile-btn.show-menu span:after { top: 0; transform: rotate(-45deg); }

    header.sec-header .mobile-navigation .mobile-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        background: #fff;
        box-shadow: var(--sec-shadow);
        z-index: 1000;
    }

    header.sec-header .mobile-navigation .mobile-container ul {
        margin: 0;
        padding: 0 !important;
        list-style: none;
    }

    header.sec-header .mobile-navigation .mobile-container li.parent-item {
        float: none;
        margin: 0;
        border-top: 0;
    }

    header.sec-header .mobile-navigation .mobile-container li.parent-item a {
        display: block;
        padding: 14px 1rem;
        border-bottom: 1px solid #e6e8eb;
        font-size: 16px;
        font-weight: 400;
        text-transform: none;
        text-decoration: none !important;
        color: var(--sec-navy) !important;
        background: #fff;
    }

    header.sec-header .mobile-navigation .mobile-container li.parent-item.active > a {
        box-shadow: inset 5px 0 0 var(--sec-blue-100);
        font-weight: 600;
    }

    header.sec-header .mobile-navigation .mobile-container li.parent-item a:hover {
        background: #f4f6f9;
        color: var(--sec-purple) !important;
    }

    header.sec-header .mobile-navigation .mobile-container li.haschild > ul.submenu > li.sub-item > a {
        padding-left: 2rem;
        font-size: 15px;
        background: #f9fafb;
    }

    header.sec-header {
        height: auto !important;
        min-height: 0 !important;
    }
}

/* =========================================================
 * Footer
 * ========================================================= */

footer#footer.sec-footer {
    margin: 0;
    padding: 40px 0;
    border-top: 0;
    background: var(--sec-navy);
    color: #fff !important;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 15px;
    line-height: 24px;
}

footer.sec-footer .sec-footer__inner {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 24px;
}

footer.sec-footer .sec-footer__top {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
}

footer.sec-footer .sec-footer__contact {
    grid-column: 1 / 7;
}

footer.sec-footer .sec-footer__links {
    grid-column: span 2;
}

footer.sec-footer .sec-footer__copyright {
    grid-column: 1 / 7;
    align-self: end;
    padding-top: 64px;
    color: rgba(255, 255, 255, .6);
}

footer.sec-footer .sec-footer__social {
    grid-column: 7 / -1;
    align-self: end;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 64px 0 0;
    list-style: none;
}

footer.sec-footer h2 {
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 24px;
    text-transform: none;
    letter-spacing: normal;
    color: #fff;
}

footer.sec-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

footer.sec-footer li {
    margin: 0;
    padding: 0;
    line-height: 24px;
}

footer.sec-footer a {
    color: #fff !important;
    text-decoration: none;
}

footer.sec-footer .sec-footer__contact a:hover,
footer.sec-footer .sec-footer__links a:hover,
footer.sec-footer .sec-footer__links a:focus-visible {
    text-decoration: underline;
}

/* Back to top: white round icon + label */
footer.sec-footer .sec-footer__back-to-top {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 15px;
}

footer.sec-footer .sec-footer__back-to-top-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
}

footer.sec-footer .sec-footer__back-to-top-icon svg {
    width: 12px;
    height: 12px;
    fill: var(--sec-navy);
}

footer.sec-footer .sec-footer__back-to-top:hover {
    text-decoration: underline;
}

footer.sec-footer .sec-footer__social a {
    display: block;
    opacity: 1;
    transition: opacity .15s ease;
}

footer.sec-footer .sec-footer__social a:hover {
    opacity: .7;
}

footer.sec-footer .sec-footer__social img {
    display: block;
    width: 24px;
    height: 24px;
}

/* Small desktop: narrower contact column */
@media (min-width: 992px) and (max-width: 1199.98px) {
    footer.sec-footer .sec-footer__contact {
        grid-column: 1 / 4;
    }

    footer.sec-footer .sec-footer__links {
        grid-column: span 3;
    }
}

/* Tablet: contact full width */
@media (max-width: 991.98px) {
    footer.sec-footer .sec-footer__contact {
        grid-column: 1 / -1;
    }

    footer.sec-footer .sec-footer__links {
        grid-column: span 4;
    }

    footer.sec-footer .sec-footer__copyright {
        grid-column: 1 / 7;
        padding-top: 32px;
    }

    footer.sec-footer .sec-footer__social {
        grid-column: 7 / -1;
        justify-content: flex-end;
        padding-top: 32px;
    }
}

/* Phone: everything stacked */
@media (max-width: 575.98px) {
    footer.sec-footer .sec-footer__links,
    footer.sec-footer .sec-footer__copyright,
    footer.sec-footer .sec-footer__social {
        grid-column: 1 / -1;
    }

    footer.sec-footer .sec-footer__social {
        justify-content: flex-start;
        order: 1;
        padding-top: 8px;
    }

    footer.sec-footer .sec-footer__copyright {
        order: 2;
        padding-top: 0;
    }
}

/* Front page */

.sec-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

@media (max-width: 991.98px) {
    .sec-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .sec-cat-grid { grid-template-columns: 1fr; gap: 16px; }
}

a.sec-cat-card {
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 28px 28px 24px;
    background: #fff;
    border-radius: 6px;
    border-top: 5px solid var(--sec-blue-100);
    box-shadow: var(--sec-shadow);
    color: var(--sec-navy) !important;
    text-align: left;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

a.sec-cat-card:hover,
a.sec-cat-card:focus-visible {
    transform: translateY(-4px);
    border-top-color: var(--sec-purple);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

.sec-cat-card__title {
    margin: 0 0 12px;
    padding: 0;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--sec-navy);
    text-transform: none;
}

.sec-cat-card__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--sec-grey-800);
}

.sec-cat-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e6e8eb;
    font-size: 14px;
}

.sec-cat-card__count {
    color: var(--sec-grey-800);
}

.sec-cat-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--sec-purple);
}

.sec-cat-card__link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform .2s ease;
}

a.sec-cat-card:hover .sec-cat-card__link svg {
    transform: translateX(4px);
}

/* Announcement bar for notices */
a.sec-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    padding: 14px 20px;
    background: rgba(172, 194, 221, .12);
    border: 1px solid rgba(172, 194, 221, .35);
    border-left: 4px solid var(--sec-blue-100);
    border-radius: 6px;
    color: #fff !important;
    font-size: 15px;
    line-height: 1.4;
    text-decoration: none !important;
    transition: background-color .15s ease;
}

a.sec-notice:last-of-type {
    margin-bottom: 32px;
}

a.sec-notice:hover {
    background: rgba(172, 194, 221, .2);
}

.sec-notice__icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: var(--sec-blue-100);
}

.sec-notice__text {
    flex: 1;
}

.sec-notice__more {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--sec-blue-100);
}

a.sec-notice:hover .sec-notice__more {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .sec-notice__more { display: none; }
}

/* =========================================================
 * Category page: course cards
 * ========================================================= */

.sec-course-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 8px 0 56px;
}

.sec-course-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    background: #fff;
    border-radius: 6px;
    border-top: 5px solid var(--sec-blue-100);
    box-shadow: var(--sec-shadow);
    overflow: hidden;
    text-align: left;
}

.sec-course-card__main {
    padding: 32px 40px 32px 32px;
}

.sec-course-card__title {
    margin: 0 0 16px;
    padding: 0;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
    color: var(--sec-navy);
}

.sec-course-card__body,
.sec-course-card__body p,
.sec-course-card__body span,
.sec-course-card__body div,
.sec-course-card__body li,
.sec-course-card__body font {
    font-family: "Open Sans", Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
    color: var(--sec-grey-800) !important;
}

.sec-course-card__body strong,
.sec-course-card__body b {
    font-weight: 600;
    color: var(--sec-navy) !important;
}

.sec-course-card__body p {
    margin: 0 0 12px;
}

.sec-course-card__body p:last-child {
    margin-bottom: 0;
}

.sec-course-card__body ul,
.sec-course-card__body ol {
    margin: 0 0 12px 1.25rem;
    padding: 0;
    list-style: disc;
}

.sec-course-card__body a {
    color: var(--sec-purple) !important;
    text-decoration: underline !important;
}

.sec-course-card__body a:hover {
    color: var(--sec-navy) !important;
}

.sec-course-card__body img {
    max-width: 100%;
    height: auto;
}

/* Right column */
.sec-course-card__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 32px 24px;
    background: #f4f6f9;
    border-left: 1px solid #e6e8eb;
}

.sec-course-card__aside .sec-btn {
    width: 100%;
    white-space: nowrap;
}

.sec-course-card__hint {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--sec-grey-800);
}

/* Status label with coloured dot */
.sec-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--sec-navy);
}

.sec-status::before {
    content: "";
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
}

.sec-status--open::before { background: #2e9e5b; }
.sec-status--closed::before { background: #a0a4a8; }
.sec-status--quote::before { background: var(--sec-purple); }

/* Pill buttons */
.sec-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 24px;
    border: 2px solid var(--sec-purple);
    border-radius: 99px;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.sec-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform .2s ease;
}

.sec-btn:hover svg {
    transform: translateX(3px);
}

.sec-btn--primary {
    background: var(--sec-purple);
    color: #fff !important;
}

.sec-btn--primary:hover,
.sec-btn--primary:focus-visible {
    background: #5634b5;
    border-color: #5634b5;
}

.sec-btn--outline {
    background: transparent;
    border-color: var(--sec-navy);
    color: var(--sec-navy) !important;
}

.sec-btn--outline:hover,
.sec-btn--outline:focus-visible {
    background: var(--sec-navy);
    color: #fff !important;
}

/* No trainings in category */
.sec-course-empty {
    padding: 40px 32px;
    background: #fff;
    border-radius: 6px;
    border-top: 5px solid var(--sec-blue-100);
    box-shadow: var(--sec-shadow);
    text-align: left;
}

.sec-course-empty h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    color: var(--sec-navy);
}

.sec-course-empty p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--sec-grey-800);
}

.sec-course-empty a {
    color: var(--sec-purple) !important;
    text-decoration: underline !important;
}

/* Tablet and phone: action panel below content */
@media (max-width: 991.98px) {
    .sec-course-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .sec-course-card__aside {
        border-left: 0;
        border-top: 1px solid #e6e8eb;
    }
}

@media (max-width: 575.98px) {
    .sec-course-list { gap: 16px; }
    .sec-course-card__main { padding: 24px 20px; }
    .sec-course-card__aside { padding: 24px 20px; }
    .sec-course-card__title { font-size: 20px; }
    .sec-btn { width: 100%; }
}

/* =========================================================
 * Course schedule
 * ========================================================= */

.sec-schedule {
    margin: 8px 0 56px;
    text-align: left;
}

.sec-schedule__intro {
    margin-bottom: 40px;
    padding: 32px;
    background: #fff;
    border-radius: 6px;
    border-top: 5px solid var(--sec-blue-100);
    box-shadow: var(--sec-shadow);
}

.sec-schedule__heading {
    margin: 0 0 16px;
    padding: 0;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
    color: var(--sec-navy);
}

.sec-schedule__heading--light {
    color: #fff;
}

.sec-event {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    margin-bottom: 16px;
    padding: 24px 28px;
    background: #fff;
    border-radius: 6px;
    box-shadow: var(--sec-shadow);
    transition: box-shadow .2s ease;
}

.sec-event:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}

/* Calendar style date badge */
.sec-event__date {
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 6px;
    background: var(--sec-navy);
    color: #fff;
    line-height: 1;
    text-align: center;
}

.sec-event__weekday,
.sec-event__month {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--sec-blue-100);
}

.sec-event__day {
    margin: 4px 0;
    font-size: 30px;
    font-weight: 600;
}

.sec-event__when {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--sec-navy);
}

.sec-event__meta {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 99px;
    background: #eef1f6;
    font-size: 13px;
    font-weight: 600;
    vertical-align: middle;
    color: var(--sec-grey-800);
}

a.sec-event__location {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--sec-grey-800) !important;
    text-decoration: none;
}

a.sec-event__location:hover {
    color: var(--sec-purple) !important;
    text-decoration: underline;
}

.sec-event__location svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    fill: var(--sec-purple);
}

/* Full schedule for multi-day courses */
.sec-event__schedule {
    margin-top: 10px;
    font-size: 14px;
    color: var(--sec-grey-800);
}

.sec-event__schedule summary {
    display: inline-block;
    font-weight: 600;
    color: var(--sec-purple);
    cursor: pointer;
}

.sec-event__schedule summary:hover {
    text-decoration: underline;
}

.sec-event__schedule ul {
    margin: 8px 0 0;
    padding: 10px 14px;
    list-style: none;
    border-left: 3px solid var(--sec-blue-100);
    background: #f4f6f9;
    line-height: 1.8;
}

/* Price + call to action */
.sec-event__action {
    display: flex;
    align-items: center;
    gap: 28px;
}

.sec-event__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.sec-event__price-value {
    font-size: 22px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--sec-navy);
}

.sec-event__price-label {
    font-size: 13px;
    color: var(--sec-grey-800);
}

.sec-event__action .sec-btn {
    min-width: 160px;
    white-space: nowrap;
}

.sec-event__action .sec-status {
    min-width: 160px;
    justify-content: center;
}

.sec-event--full .sec-event__date {
    background: #a0a4a8;
}

.sec-event--full .sec-event__weekday,
.sec-event--full .sec-event__month {
    color: #fff;
}

@media (max-width: 767.98px) {
    .sec-event {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 16px 20px;
        padding: 20px;
    }

    .sec-event__date {
        width: 72px;
        height: 72px;
    }

    .sec-event__day { font-size: 24px; }

    .sec-event__action {
        grid-column: 1 / -1;
        justify-content: space-between;
        padding-top: 16px;
        border-top: 1px solid #e6e8eb;
    }

    .sec-event__price { align-items: flex-start; }
    .sec-event__when { font-size: 16px; }
    .sec-schedule__intro { padding: 24px 20px; }
}

@media (max-width: 575.98px) {
    .sec-event__action .sec-btn {
        width: auto;
        min-width: 0;
    }
}

/* =========================================================
 * Training type overview
 * ========================================================= */

.sec-events-section {
    padding: 8px 0 56px;
}

.sec-search {
    margin-bottom: 40px;
    padding: 28px 32px 32px;
    background: #fff;
    border-radius: 6px;
    border-top: 5px solid var(--sec-blue-100);
    box-shadow: var(--sec-shadow);
    text-align: left;
}

.sec-search__fields {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr) auto;
    align-items: end;
    gap: 16px;
}

.sec-search__field label {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sec-navy);
}

.sec-input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #c9ced6;
    border-radius: 6px;
    background: #fff;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 15px;
    color: var(--sec-navy);
    transition: border-color .15s ease, box-shadow .15s ease;
}

/* style.css colours text inputs #555 */
.sec-search .sec-input {
    color: var(--sec-navy) !important;
}

.sec-input::placeholder {
    color: #8a9099;
}

.sec-input:focus {
    outline: none;
    border-color: var(--sec-purple);
    box-shadow: 0 0 0 3px rgba(108, 71, 207, .2);
}

.sec-select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23031f30' d='M12 15.4l-6.7-6.7 1.4-1.4 5.3 5.3 5.3-5.3 1.4 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    cursor: pointer;
}

/* easyAutocomplete wraps the name input in a fixed width div */
.sec-search .easy-autocomplete {
    width: 100% !important;
}

.sec-search__submit .sec-btn {
    min-height: 48px;
    padding: 0 32px;
}

/* Course name inside an event row (overview page) */
.sec-event__title {
    margin: 0 0 6px;
    padding: 0;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: none;
}

.sec-event__title a {
    color: var(--sec-navy) !important;
    text-decoration: none;
}

.sec-event__title a:hover {
    color: var(--sec-purple) !important;
    text-decoration: underline;
}

.sec-event__title + .sec-event__when {
    font-size: 16px;
    font-weight: 400;
}

/* Request-a-quote trainings have no date badge */
.sec-event--nodate {
    grid-template-columns: minmax(0, 1fr) auto;
}

@media (max-width: 991.98px) {
    .sec-search__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sec-search__field--wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .sec-event--nodate {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .sec-search { padding: 24px 20px; }

    .sec-search__fields {
        grid-template-columns: 1fr;
    }

    .sec-search__submit .sec-btn { width: 100%; }
}

.categories-section.sec-cat-section {
    padding-bottom: 0 !important;
}

.categories-section.sec-cat-section .sec-cat-grid {
    margin-bottom: 0;
}

.categories-section.sec-cat-section + .clearfix + .sec-events-section {
    margin-top: -80px;
    padding-top: 48px;
}

/* =========================================================
 * Search results
 * ========================================================= */

.sec-search-results {
    padding-top: 32px;
}

.sec-course-card__category {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--sec-purple);
}

.sec-course-card__title,
.sec-course-card__excerpt,
.sec-course-card__body {
    overflow-wrap: anywhere;
}

.sec-course-card__title a {
    color: var(--sec-navy) !important;
    text-decoration: none;
}

.sec-course-card__title a:hover {
    color: var(--sec-purple) !important;
    text-decoration: underline;
}

.sec-course-card__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--sec-grey-800);
}

/* =========================================================
 * Contact page
 * ========================================================= */

.sec-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
    margin: 8px 0 56px;
    text-align: left;
}

.sec-contact__form,
.sec-contact__info {
    padding: 32px;
    background: #fff;
    border-radius: 6px;
    border-top: 5px solid var(--sec-blue-100);
    box-shadow: var(--sec-shadow);
}

.sec-contact__intro {
    margin: -4px 0 24px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--sec-grey-800);
}

.sec-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.sec-form__field--full {
    grid-column: 1 / -1;
}

.sec-form__field label {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sec-navy);
}

.sec-form__required {
    color: #c8102e;
}

.sec-form .sec-input {
    color: var(--sec-navy) !important;
}

.sec-textarea {
    height: auto;
    min-height: 150px;
    padding: 12px 14px;
    line-height: 1.5;
    resize: vertical;
}

.sec-input--error {
    border-color: #c8102e;
}

.sec-form__error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #c8102e;
}

.sec-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
}

.sec-form__note {
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--sec-grey-800);
}

/* Contact details */
.sec-contact__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sec-contact__list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e6e8eb;
    font-size: 15px;
    line-height: 1.55;
    color: var(--sec-navy);
}

.sec-contact__list li:first-child {
    padding-top: 0;
}

.sec-contact__list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.sec-contact__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef1f6;
}

.sec-contact__icon svg {
    width: 18px;
    height: 18px;
    fill: var(--sec-purple);
}

.sec-contact__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--sec-grey-800);
}

.sec-contact__list a {
    font-weight: 600;
    color: var(--sec-navy) !important;
    text-decoration: none;
}

.sec-contact__list a:hover {
    color: var(--sec-purple) !important;
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .sec-contact {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .sec-contact__form,
    .sec-contact__info {
        padding: 24px 20px;
    }

    .sec-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sec-form__footer .sec-btn {
        width: 100%;
    }
}

/* Links in the terms and privacy consent are always underlined */
.sec-consent a,
.sec-consent a:hover,
.sec-consent a:focus {
    text-decoration: underline !important;
}
