
:root {
    --tdm-navy: #092a49;
    --tdm-navy-2: #0b2d59;
    --tdm-teal: #1aa7b8;
    --tdm-lime: #95c11f;
    --tdm-text: #344054;
    --tdm-muted: #667085;
    --tdm-border: #e7ebf0;
    --tdm-soft: #f7f9fb;
    --tdm-shadow: 0 14px 38px rgba(11,45,89,.07);
    --tdm-section: 64px;
}

html { scroll-behavior: smooth; }

body,
p, a, span, li, label, input, textarea, select, button, small, strong {
    font-family: 'Poppins', Arial, sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', Arial, sans-serif !important;
}

body {
    color: var(--tdm-text);
    background: #fff;
}

/* Preloader */
#tdm-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: opacity .35s ease, visibility .35s ease;
}
#tdm-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}
.tdm-preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.tdm-preloader-inner img {
    width: auto;
    max-width: 170px;
    height: 55px;
    object-fit: contain;
}
.tdm-preloader-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #e9edf2;
    border-top-color: var(--tdm-teal);
    border-radius: 50%;
    animation: tdm-spin .8s linear infinite;
}
@keyframes tdm-spin { to { transform: rotate(360deg); } }

/* Shared top bar */
.tdm-mobile-topbar {
    background: var(--tdm-navy) !important;
}
.tdm-mobile-topbar,
.tdm-mobile-topbar a,
.tdm-mobile-topbar h2,
.tdm-mobile-topbar i {
    color: #fff !important;
}
.tdm-mobile-topbar .text h2 {
    margin: 0;
}
.tdm-email-contact h2 a {
    text-decoration: none !important;
}
.tdm-email-contact h2 a:hover {
    color: var(--tdm-lime) !important;
}
.tdm-social-icons {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;
}
.tdm-social-icon,
.footer-social > span {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
}
.tdm-x-icon {
    font-family: Arial, sans-serif !important;
    font-size: 12px;
    font-weight: 700;
}

/* Navbar */
.navbar,
.navbar.bg-dark,
.navbar.bg-dark.nav-sticky,
.navbar.nav-sticky,
.page .navbar {
    position: relative;
    top: auto;
    width: 100%;
    background: #fff !important;
    box-shadow: 0 3px 18px rgba(9,42,73,.08);
}
.navbar .navbar-brand img {
    width: auto;
    max-width: 220px !important;
    max-height: 62px !important;
    height: 62px;
    object-fit: contain;
}
.navbar .navbar-nav .nav-link {
    font-family: 'Poppins', Arial, sans-serif !important;
    font-weight: 600;
    color: var(--tdm-navy-2) !important;
}
.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link:hover {
    color: var(--tdm-teal) !important;
}
.navbar .navbar-toggler {
    border-color: rgba(9,42,73,.25);
}
.navbar .navbar-toggler-icon {
    filter: none;
}
.navbar .tdm-quote-nav {
    margin-left: 12px !important;
    padding: 11px 18px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: var(--tdm-navy) !important;
    background: var(--tdm-lime) !important;
    border: 1px solid var(--tdm-lime) !important;
    border-radius: 0 !important;
    font-weight: 700 !important;
}
.navbar .tdm-quote-nav:hover,
.navbar .tdm-quote-nav.active {
    color: #fff !important;
    background: var(--tdm-teal) !important;
    border-color: var(--tdm-teal) !important;
}
.tdm-mobile-nav-close,
.tdm-mobile-menu-brand { display: none; }

/* Hero */
.carousel { margin-bottom: 0 !important; }
.carousel .carousel-text h1 {
    font-family: 'Poppins', Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -.02em;
}
.carousel .carousel-text p,
.carousel .carousel-text .btn {
    font-family: 'Poppins', Arial, sans-serif !important;
}
.carousel .carousel-btn .btn,
.tdm-btn {
    border-radius: 0 !important;
    text-decoration: none !important;
}
.tdm-btn {
    min-height: 42px;
    padding: 11px 17px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff !important;
    background: var(--tdm-navy-2);
    border: 1px solid var(--tdm-navy-2);
    font-size: 13px;
    font-weight: 700;
}
.tdm-btn:hover {
    color: var(--tdm-navy) !important;
    background: var(--tdm-lime);
    border-color: var(--tdm-lime);
}
.tdm-btn-light {
    color: var(--tdm-navy) !important;
    background: var(--tdm-lime);
    border-color: var(--tdm-lime);
}
.tdm-btn-light:hover {
    color: #fff !important;
    background: var(--tdm-teal);
    border-color: var(--tdm-teal);
}

/* Shared sections */
.tdm-section {
    padding: var(--tdm-section) 0;
}
.tdm-section-soft { background: var(--tdm-soft); }
.tdm-section-white { background: #fff; }

.section-header {
    margin: 0 0 28px !important;
    padding: 0 !important;
}
.section-header p {
    margin: 0 0 7px !important;
    color: var(--tdm-teal) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: uppercase;
}
.section-header h2 {
    margin: 0 !important;
    color: var(--tdm-navy-2) !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}
.section-header h2::before,
.section-header h2::after,
.section-header p::before,
.section-header p::after {
    display: none !important;
    content: none !important;
}

/* Small inner-page hero */
.tdm-page-hero {
    position: relative;
    min-height: 190px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 0;
    background:
        linear-gradient(rgba(9,42,73,.86), rgba(9,42,73,.86)),
        url('../img/single.jpg?v=20260913-1') center/cover no-repeat;
}
.tdm-page-hero .container { position: relative; z-index: 2; }
.tdm-page-hero-content { padding: 52px 0 46px; }
.tdm-page-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
}
.tdm-page-hero p {
    max-width: 700px;
    margin: 10px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 15px;
    line-height: 1.7;
}

/* Home about */
.tdm-about-container,
.tdm-why-container {
    display: grid;
    grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
    overflow: hidden;
    border: 1px solid var(--tdm-border);
    background: #fff;
    box-shadow: var(--tdm-shadow);
}
.tdm-about-image,
.tdm-why-image {
    min-height: 470px;
    overflow: hidden;
    background: #eef4f8;
}
.tdm-about-image img,
.tdm-why-image img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f7f9fb;
}
.tdm-about-content,
.tdm-why-content {
    padding: 42px;
}
.tdm-about-lead,
.tdm-about-text,
.tdm-why-message {
    color: var(--tdm-muted);
    font-size: 15px;
    line-height: 1.75;
}
.tdm-about-lead {
    color: var(--tdm-text);
    font-weight: 600;
}
.tdm-about-points,
.tdm-why-stats {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
    margin: 26px 0 28px;
}
.tdm-about-point,
.tdm-stat-card {
    min-height: 126px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--tdm-border);
    background: #fff;
}
.tdm-about-point { background: #fafcfd; }
.tdm-about-point-icon,
.tdm-stat-icon,
.service-fa-icon,
.tdm-value-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--tdm-navy-2);
    font-size: 20px;
}
.tdm-about-point h3,
.tdm-stat-text h3 {
    margin: 0 0 5px;
    color: var(--tdm-navy-2);
    font-size: 16px;
    font-weight: 700;
}
.tdm-about-point p,
.tdm-stat-text p {
    margin: 0;
    color: var(--tdm-muted);
    font-size: 13px;
    line-height: 1.55;
}
.tdm-stat-card:nth-child(2) .tdm-stat-icon { background: var(--tdm-teal); }
.tdm-stat-card:nth-child(3) .tdm-stat-icon { background: var(--tdm-lime); }
.tdm-stat-text h3 { font-size: 24px; }

/* Services */
.service { padding: var(--tdm-section) 0 !important; background: var(--tdm-soft); }
.service .container > .section-header { text-align: center; }
.service .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}
.service .row > [class*="col-"] {
    display: flex;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}
.service .service-item {
    width: 100%;
    min-height: 330px;
    height: 100%;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--tdm-border);
    background: #fff;
    box-shadow: var(--tdm-shadow);
}
.service-fa-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;
    margin-bottom: 20px;
    font-size: 24px;
}
.service .row > [class*="col-"]:nth-child(3n+2) .service-fa-icon { background: var(--tdm-teal); }
.service .row > [class*="col-"]:nth-child(3n) .service-fa-icon { background: var(--tdm-lime); }
.service .service-item h3 {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--tdm-navy-2);
    font-size: 17px;
    line-height: 1.4;
}
.service .service-item p {
    flex: 1;
    margin: 0 0 18px;
    color: var(--tdm-muted);
    font-size: 14px;
    line-height: 1.65;
}

/* Training */
.tdm-training-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
}
.tdm-training-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--tdm-border);
    background: #fff;
    box-shadow: var(--tdm-shadow);
}
.tdm-training-card img {
    width: 100%;
    height: auto;
    display: block;
}
.tdm-training-body {
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.tdm-training-body h3 {
    margin: 0 0 10px;
    color: var(--tdm-navy-2);
    font-size: 19px;
}
.tdm-training-body p {
    color: var(--tdm-muted);
    font-size: 14px;
    line-height: 1.65;
}
.tdm-training-body .tdm-btn { margin-top: auto; align-self: flex-start; }

/* Accreditations */
.tdm-accreditation-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px;
}
.tdm-accreditation-card {
    min-height: 190px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tdm-border);
    background: #fff;
    box-shadow: 0 10px 28px rgba(11,45,89,.06);
}
.tdm-accreditation-logo {
    width: 100%;
    height: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tdm-accreditation-logo img {
    width: 100%;
    height: 100%;
    max-width: 270px;
    object-fit: contain;
    object-position: center;
}

/* About page */
.tdm-about-page-grid {
    display: grid;
    grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
    align-items: stretch;
    border: 1px solid var(--tdm-border);
    background: #fff;
    box-shadow: var(--tdm-shadow);
}
.tdm-about-page-image {
    min-height: 520px;
    overflow: hidden;
}
.tdm-about-page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tdm-about-page-copy { padding: 46px; }
.tdm-about-page-copy h2 {
    color: var(--tdm-navy-2);
    font-size: 34px;
    line-height: 1.2;
}
.tdm-about-intro {
    color: var(--tdm-teal);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;
}
.tdm-about-page-copy p {
    color: var(--tdm-muted);
    font-size: 15px;
    line-height: 1.75;
}
.tdm-values-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
}
.tdm-value-card {
    min-height: 290px;
    padding: 30px 26px;
    border: 1px solid var(--tdm-border);
    background: #fff;
    box-shadow: 0 10px 28px rgba(11,45,89,.05);
}
.tdm-value-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    font-size: 22px;
}
.tdm-value-card:nth-child(2) .tdm-value-icon { background: var(--tdm-teal); }
.tdm-value-card:nth-child(3) .tdm-value-icon { background: var(--tdm-lime); color: var(--tdm-navy); }
.tdm-value-card h3 { color: var(--tdm-navy-2); font-size: 19px; }
.tdm-value-card p { color: var(--tdm-muted); font-size: 14px; line-height: 1.75; }

.tdm-team-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 20px;
}
.tdm-team-card {
    overflow: hidden;
    border: 1px solid var(--tdm-border);
    background: #fff;
    box-shadow: 0 10px 28px rgba(11,45,89,.05);
}
.tdm-team-photo {
    height: 300px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}
.tdm-team-photo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
.tdm-team-info {
    padding: 20px 18px;
    text-align: center;
}
.tdm-team-info h3 {
    margin: 0 0 6px;
    color: var(--tdm-navy-2);
    font-size: 17px;
}
.tdm-team-info p {
    margin: 0;
    color: var(--tdm-muted);
    font-size: 13px;
}

/* Contact + Quote */
.tdm-contact-grid,
.tdm-quote-grid {
    display: grid;
    grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
    gap: 28px;
    align-items: stretch;
}
.tdm-application-grid {
    display: grid;
    grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
    gap: 28px;
    align-items: stretch;
}
.tdm-contact-panel,
.tdm-form-panel {
    padding: 34px;
    border: 1px solid var(--tdm-border);
    background: #fff;
    box-shadow: var(--tdm-shadow);
}
.tdm-contact-panel h2,
.tdm-form-panel h2 {
    margin: 0 0 14px;
    color: var(--tdm-navy-2);
    font-size: 27px;
}
.tdm-contact-panel > p,
.tdm-form-panel > p {
    color: var(--tdm-muted);
    line-height: 1.7;
}
.tdm-contact-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--tdm-border);
}
.tdm-contact-item:last-child { border-bottom: 0; }
.tdm-contact-item-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--tdm-navy-2);
}
.tdm-contact-item h3 {
    margin: 0 0 4px;
    color: var(--tdm-navy-2);
    font-size: 15px;
}
.tdm-contact-item p,
.tdm-contact-item a {
    margin: 0;
    color: var(--tdm-muted);
    font-size: 14px;
    line-height: 1.55;
    text-decoration: none;
}
.tdm-form .form-control {
    height: 48px;
    border: 1px solid #dfe5eb;
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
}
.tdm-form textarea.form-control {
    height: 145px;
    resize: vertical;
}
.tdm-form .form-control:focus {
    border-color: var(--tdm-teal);
    box-shadow: none;
}
.tdm-honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.tdm-alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid;
    font-size: 14px;
}
.tdm-alert-success {
    color: #1d5b38;
    border-color: #a8d7bb;
    background: #eff9f3;
}
.tdm-alert-error {
    color: #842029;
    border-color: #f1aeb5;
    background: #fff1f2;
}
.tdm-map {
    margin-top: 28px;
    border: 1px solid var(--tdm-border);
    background: #fff;
    box-shadow: var(--tdm-shadow);
    overflow: hidden;
}
.tdm-map iframe {
    width: 100%;
    height: 420px;
    display: block;
    border: 0;
}

/* CTA */
.tdm-cta {
    padding: 52px 0;
    background: var(--tdm-navy);
}
.tdm-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.tdm-cta h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 28px;
}
.tdm-cta p {
    margin: 0;
    color: rgba(255,255,255,.78);
}

/* Footer */
.footer a { text-decoration: none; }
.footer .footer-contact p a { color: inherit; }
.footer-social {
    display: flex;
    gap: 7px;
}
.footer-social > span {
    border-color: rgba(255,255,255,.18);
}
.tdm-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tdm-footer-actions .btn {
    border-radius: 0;
}
.tdm-footer-secondary {
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.5) !important;
    background: transparent !important;
}
.footer .copyright .col-md-6:last-child { text-align: right; }

/* Mobile sidebar */
@media (max-width: 991.98px) {
    :root { --tdm-section: 48px; }

    .navbar,
    .navbar.bg-dark,
    .navbar.bg-dark.nav-sticky,
    .navbar.nav-sticky {
        position: relative;
        top: auto;
        background: #fff !important;
    }

    .navbar .navbar-nav .nav-link { color: #fff !important; }

    #navbarCollapse {
        position: fixed !important;
        top: 0;
        left: -100% !important;
        right: auto !important;
        bottom: 0;
        z-index: 2000;
        width: 100vw;
        height: 100vh !important;
        max-height: none !important;
        padding: 112px 28px 35px !important;
        display: block !important;
        overflow-y: auto;
        visibility: visible !important;
        background: var(--tdm-navy);
        transform: none !important;
        transition: left .28s ease !important;
    }
    #navbarCollapse.show { left: 0 !important; }
    #navbarCollapse.collapsing {
        left: -100% !important;
        height: 100vh !important;
        transition: left .28s ease !important;
    }
    #navbarCollapse .navbar-nav {
        width: 100%;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    #navbarCollapse .navbar-nav .nav-link {
        width: 100%;
        margin: 0 !important;
        padding: 15px 0 !important;
        color: #fff !important;
        border-bottom: 1px solid rgba(255,255,255,.14);
        font-size: 16px;
        text-align: left;
    }
    #navbarCollapse .navbar-nav .nav-link.active,
    #navbarCollapse .navbar-nav .nav-link:hover {
        color: var(--tdm-lime) !important;
    }
    #navbarCollapse .navbar-nav .tdm-quote-nav {
        width: 100% !important;
        margin: 22px 0 0 !important;
        padding: 14px 18px !important;
        color: var(--tdm-navy) !important;
        border: 1px solid var(--tdm-lime) !important;
        background: var(--tdm-lime) !important;
        text-align: center !important;
    }
    .tdm-mobile-menu-brand {
        position: absolute;
        top: 20px;
        left: 22px;
        right: 82px;
        height: 60px;
        display: flex !important;
        align-items: center;
    }
    .tdm-mobile-menu-brand a {
        height: 60px;
        max-width: 195px;
        padding: 5px 10px;
        display: inline-flex;
        align-items: center;
        background: #fff;
    }
    .tdm-mobile-menu-brand img {
        width: auto;
        max-width: 174px;
        height: 48px;
        object-fit: contain;
    }
    .tdm-mobile-nav-close {
        position: absolute;
        top: 28px;
        right: 22px;
        width: 44px;
        height: 44px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,.3);
        color: #fff;
        background: transparent;
        font-size: 22px;
    }
    body.tdm-nav-open { overflow: hidden; }

    .tdm-about-container,
    .tdm-why-container,
    .tdm-about-page-grid {
        grid-template-columns: 1fr;
    }
    .tdm-about-image,
    .tdm-why-image { min-height: 360px; }
    .tdm-about-page-image { min-height: 390px; max-height: 440px; }

    .tdm-values-grid,
    .tdm-team-grid,
    .tdm-training-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .tdm-accreditation-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .tdm-contact-grid,
    .tdm-quote-grid,
    .tdm-application-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .tdm-mobile-topbar { padding: 6px 0 !important; }
    .tdm-mobile-topbar .row {
        margin: 0;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .tdm-mobile-topbar .col-md-8 {
        display: block !important;
        width: auto !important;
        max-width: calc(100% - 112px) !important;
        flex: 1 1 auto !important;
        padding: 0 !important;
    }
    .tdm-mobile-topbar .top-bar-left {
        display: flex !important;
        align-items: center;
    }
    .tdm-mobile-topbar .tdm-desktop-contact { display: none !important; }
    .tdm-mobile-topbar .tdm-email-contact {
        display: flex !important;
        align-items: center;
        margin: 0 !important;
        padding: 0 !important;
    }
    .tdm-mobile-topbar .tdm-email-contact i {
        margin-right: 6px !important;
        font-size: 12px !important;
    }
    .tdm-mobile-topbar .tdm-email-contact h2 {
        margin: 0 !important;
        font-size: 11px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .tdm-mobile-topbar .col-md-4 {
        width: auto !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        padding: 0 !important;
    }
    .tdm-mobile-topbar .tdm-social-icons { gap: 4px; }
    .tdm-social-icon {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .tdm-page-hero { min-height: 145px; }
    .tdm-page-hero-content { padding: 42px 0 38px; }
    .tdm-page-hero h1 { font-size: 30px; }
    .section-header h2 { font-size: 27px !important; }

    .tdm-about-content,
    .tdm-why-content,
    .tdm-about-page-copy {
        padding: 28px 22px;
    }

    .tdm-about-points,
    .tdm-why-stats,
    .tdm-values-grid,
    .tdm-team-grid,
    .tdm-training-grid,
    .tdm-accreditation-grid {
        grid-template-columns: 1fr;
    }

    .tdm-team-photo { height: 300px; }
    .tdm-accreditation-card { min-height: 165px; }
    .tdm-accreditation-logo { height: 135px; }

    .tdm-contact-panel,
    .tdm-form-panel { padding: 26px 20px; }
    .tdm-map iframe { height: 330px; }

    .tdm-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer .copyright .col-md-6:last-child { text-align: left; }
}

@media (max-width: 360px) {
    .tdm-mobile-topbar .row { flex-wrap: wrap; row-gap: 5px; }
    .tdm-mobile-topbar .col-md-8,
    .tdm-mobile-topbar .col-md-4 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    .tdm-mobile-topbar .top-bar-left,
    .tdm-mobile-topbar .top-bar-right,
    .tdm-mobile-topbar .tdm-social-icons {
        justify-content: center !important;
    }
}

/* Final header and image-proportion overrides. Keep these rules last so the
   original template cannot restore its transparent or fixed-position navbar. */
html body .navbar.tdm-site-navbar,
html body .navbar.tdm-site-navbar.nav-sticky,
html body.page .navbar.tdm-site-navbar {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    width: 100% !important;
    z-index: 1030 !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: 0 3px 18px rgba(9,42,73,.08) !important;
}

html body .navbar.tdm-site-navbar .navbar-nav .nav-link {
    color: var(--tdm-navy-2) !important;
}

html body .navbar.tdm-site-navbar .navbar-nav .nav-link:hover,
html body .navbar.tdm-site-navbar .navbar-nav .nav-link.active {
    color: var(--tdm-teal) !important;
}

html body .navbar.tdm-site-navbar .navbar-toggler {
    border-color: rgba(9,42,73,.25) !important;
}

html body .tdm-team-photo {
    height: 300px !important;
    padding: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
}

html body .tdm-team-photo img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

html body .tdm-about-image img,
html body .tdm-why-image img,
html body .tdm-training-card > img {
    object-fit: contain !important;
    object-position: center !important;
    background: #f7f9fb !important;
}

@media (max-width: 991.98px) {
    html body .navbar.tdm-site-navbar .navbar-nav .nav-link {
        color: var(--tdm-navy-2) !important;
    }

    html body .navbar.tdm-site-navbar .navbar-nav .nav-link:hover,
    html body .navbar.tdm-site-navbar .navbar-nav .nav-link.active {
        color: var(--tdm-teal) !important;
    }
}

/* Soft corners for the shared TDM UI and the LMIS-connected forms. */
html body .tdm-btn,
html body .carousel .carousel-btn .btn,
html body .navbar .tdm-quote-nav,
html body .tdm-footer-actions .btn {
    border-radius: 8px !important;
}

html body .tdm-form .form-control,
html body .tdm-form select,
html body .tdm-form textarea {
    border-radius: 8px !important;
}

html body .tdm-contact-panel,
html body .tdm-form-panel,
html body .tdm-map,
html body .service-item,
html body .tdm-training-card,
html body .tdm-team-card,
html body .tdm-accreditation-card,
html body .tdm-value-card,
html body .tdm-about-container,
html body .tdm-why-container {
    border-radius: 14px;
}

html body .tdm-contact-panel,
html body .tdm-form-panel,
html body .tdm-map,
html body .tdm-training-card,
html body .tdm-team-card,
html body .tdm-about-container,
html body .tdm-why-container {
    overflow: hidden;
}

html body .tdm-alert {
    border-radius: 8px;
}

/* Use the same visible icon treatment in the top bar as in the footer. */
html body .tdm-social-icons i {
    display: inline-block !important;
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

html body .tdm-social-icons .tdm-x-icon {
    display: inline-block !important;
    color: #fff !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

/* Compact the legacy template spacing and keep the footer actions in flow. */
html body .footer {
    margin-top: 28px !important;
    padding-top: 52px !important;
}

html body .footer .footer-contact,
html body .footer .footer-link,
html body .footer .footer-newsletter {
    margin-bottom: 24px !important;
}

html body .footer .footer-contact h2,
html body .footer .footer-link h2,
html body .footer .footer-newsletter h2 {
    margin-bottom: 17px !important;
    padding-bottom: 7px !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
}

html body .footer .footer-link a {
    margin-bottom: 6px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

html body .footer .footer-contact p,
html body .footer .footer-newsletter p {
    margin-bottom: 9px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

html body .tdm-footer-actions {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 14px !important;
}

html body .tdm-footer-actions .btn {
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 9px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap;
    font-size: 13px !important;
    line-height: 1.2 !important;
}

html body .footer .copyright {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

html body .footer .copyright .row {
    padding-top: 17px !important;
    padding-bottom: 17px !important;
}

html body .tdm-why-section {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
}

html body .tdm-why-container {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
}

html body .tdm-why-content {
    padding: 26px 34px !important;
    max-width: 100% !important;
}

html body .tdm-why-content .section-header {
    margin-bottom: 18px !important;
}

html body .tdm-why-content .section-header h2 {
    font-size: 30px !important;
    line-height: 1.18 !important;
}

html body .tdm-why-message {
    margin-bottom: 0 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

html body .tdm-why-stats {
    gap: 10px !important;
    margin: 18px 0 20px !important;
}

html body .tdm-why-stats .tdm-stat-card {
    min-height: 100px !important;
    padding: 13px !important;
    gap: 11px !important;
}

html body .tdm-why-stats .tdm-stat-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    font-size: 17px !important;
}

html body .tdm-why-stats .tdm-stat-text h3 {
    font-size: 21px !important;
}

@media (max-width: 575.98px) {
    html body .tdm-footer-actions {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    html body .tdm-footer-actions .btn {
        width: 100% !important;
    }
}

/* Open layout: content groups align without visible card boundaries. */
html body .service .service-item,
html body .tdm-training-card,
html body .tdm-value-card,
html body .tdm-stat-card,
html body .tdm-team-card,
html body .tdm-accreditation-card,
html body .tdm-contact-panel,
html body .tdm-form-panel,
html body .tdm-about-container,
html body .tdm-why-container {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body .service .service-item::before,
html body .service .service-item::after {
    content: none !important;
    display: none !important;
}

html body .service .service-item:hover,
html body .tdm-training-card:hover,
html body .tdm-value-card:hover,
html body .tdm-stat-card:hover,
html body .tdm-team-card:hover,
html body .tdm-accreditation-card:hover,
html body .tdm-contact-panel:hover,
html body .tdm-form-panel:hover {
    transform: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body .tdm-accreditation-card {
    min-height: 170px;
    padding: 18px;
}

html body .tdm-accreditation-logo,
html body .tdm-accreditation-featured .tdm-accreditation-logo {
    height: 135px;
    padding-top: 0;
}

html body .tdm-accreditation-logo img {
    max-width: 82%;
    max-height: 105px;
}

/* Verified QCTO accreditation information. */
.tdm-accreditation-intro,
.tdm-home-accreditation-summary {
    max-width: 850px;
    margin: 0 auto 34px;
    color: var(--tdm-muted);
    font-size: 16px;
    line-height: 1.75;
    text-align: center;
}

.tdm-home-accreditation-summary p { margin: 0 0 7px; }
.tdm-home-accreditation-summary strong { color: var(--tdm-navy-2); }

.tdm-accreditation-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 34px;
    margin: 42px 0 70px;
}

.tdm-accreditation-facts > div { min-width: 0; }
.tdm-accreditation-facts span {
    display: block;
    margin-bottom: 7px;
    color: var(--tdm-teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.tdm-accreditation-facts strong,
.tdm-accreditation-facts a {
    color: var(--tdm-navy-2);
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.tdm-qualification-section { padding: 62px 0 40px; background: var(--tdm-soft); }
.tdm-qualification-section > .section-header,
.tdm-qualification-section > .tdm-qualification-list,
.tdm-qualification-section > .tdm-accreditation-note {
    width: calc(100% - 64px);
    max-width: 1040px;
    margin-left: auto !important;
    margin-right: auto !important;
}
.tdm-qualification-list { display: grid; gap: 34px; }
.tdm-qualification-list article {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: end;
}
.tdm-qualification-list article > div > span {
    color: var(--tdm-teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.tdm-qualification-list h3 { margin: 6px 0 0; color: var(--tdm-navy-2); font-size: 20px; line-height: 1.4; }
.tdm-qualification-list dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; }
.tdm-qualification-list dt { color: var(--tdm-muted); font-size: 12px; font-weight: 500; }
.tdm-qualification-list dd { margin: 4px 0 0; color: var(--tdm-navy-2); font-size: 17px; font-weight: 800; }
.tdm-accreditation-note { margin-top: 44px !important; color: var(--tdm-muted); font-size: 13px; line-height: 1.7; }
.tdm-body-logos-heading { margin-top: 70px !important; }

@media (max-width: 991.98px) {
    .tdm-accreditation-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tdm-qualification-list article { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 575.98px) {
    .tdm-accreditation-facts { grid-template-columns: 1fr; gap: 22px; margin-bottom: 48px; }
    .tdm-qualification-section { margin-left: -15px; margin-right: -15px; padding: 46px 0 30px; }
    .tdm-qualification-section > .section-header,
    .tdm-qualification-section > .tdm-qualification-list,
    .tdm-qualification-section > .tdm-accreditation-note { width: calc(100% - 36px); }
    .tdm-qualification-list dl { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .tdm-qualification-list h3 { font-size: 18px; }
}

.tdm-accreditation-label { display: none !important; }

html body .tdm-contact-item {
    border-bottom-color: rgba(9, 42, 73, .08);
}

@media (min-width: 576px) and (max-width: 991.98px) {
    html body .tdm-why-content {
        padding: 24px !important;
    }
}

/* 2026 card refresh: calm rectangular surfaces with no legacy triangles. */
html body .service .service-item,
html body .tdm-training-card,
html body .tdm-value-card,
html body .tdm-stat-card,
html body .tdm-accreditation-card {
    position: relative;
    border: 1px solid #dce6ec;
    border-radius: 18px !important;
    background: #fff;
    box-shadow: 0 12px 32px rgba(9, 42, 73, .07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

html body .service .service-item::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, var(--tdm-navy-2), var(--tdm-teal));
}

html body .service .service-item:hover,
html body .tdm-training-card:hover,
html body .tdm-accreditation-card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 141, 151, .45);
    box-shadow: 0 20px 46px rgba(9, 42, 73, .12);
}

html body .service .service-item a::after,
html body .service .service-item a::before {
    content: none !important;
    display: none !important;
}

html body .service .service-item { min-height: 350px; padding: 30px 25px 25px; }
html body .service-fa-icon { border-radius: 15px !important; box-shadow: 0 9px 22px rgba(9, 42, 73, .14); }
html body .service .service-item h3 { min-height: 0; font-size: 18px; letter-spacing: -.01em; }
html body .service .service-item p { font-size: 15px; line-height: 1.7; }
html body .tdm-training-card img { aspect-ratio: 16 / 9; object-fit: cover; }

html body .tdm-accreditation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
html body .tdm-accreditation-card { min-height: 190px; padding: 28px 22px 22px; overflow: hidden; }
html body .tdm-accreditation-featured {
    grid-column: span 2;
    border: 2px solid rgba(186, 22, 45, .22);
    background: linear-gradient(135deg, #fff 0%, #fff7f8 100%);
}
.tdm-accreditation-label {
    position: absolute;
    top: 14px;
    left: 16px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #9e1730;
    background: #fdecef;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}
html body .tdm-accreditation-featured .tdm-accreditation-logo { height: 145px; padding-top: 24px; }
html body .tdm-accreditation-logo img { max-width: 88%; max-height: 120px; object-fit: contain; }

.tdm-process-list { display: grid; gap: 12px; margin-top: 28px; }
.tdm-process-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--tdm-border);
    border-radius: 14px;
    background: #f8fbfc;
}
.tdm-process-item > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--tdm-navy-2);
    font-size: 13px;
    font-weight: 800;
}
.tdm-process-item h3 { margin: 1px 0 4px; color: var(--tdm-navy-2); font-size: 16px; }
.tdm-process-item p { margin: 0; font-size: 13px; line-height: 1.55; }

@media (max-width: 991.98px) {
    html body .tdm-accreditation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    html body .service .service-item { min-height: 0; }
    html body .tdm-accreditation-grid { grid-template-columns: 1fr; }
    html body .tdm-accreditation-featured { grid-column: auto; }
    html body .tdm-accreditation-card { min-height: 170px; }
}

/* Final clean-surface override: no visible card boundaries anywhere. */
html body .service .service-item,
html body .tdm-training-card,
html body .tdm-value-card,
html body .tdm-stat-card,
html body .tdm-team-card,
html body .tdm-accreditation-card,
html body .tdm-contact-panel,
html body .tdm-form-panel,
html body .tdm-about-container,
html body .tdm-why-container {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body .service .service-item::before,
html body .service .service-item::after,
html body .service .service-item a::before,
html body .service .service-item a::after {
    content: none !important;
    display: none !important;
}

html body .service .service-item:hover,
html body .tdm-training-card:hover,
html body .tdm-value-card:hover,
html body .tdm-stat-card:hover,
html body .tdm-team-card:hover,
html body .tdm-accreditation-card:hover,
html body .tdm-contact-panel:hover,
html body .tdm-form-panel:hover {
    transform: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body .tdm-accreditation-card {
    min-height: 170px;
    padding: 18px;
}

html body .tdm-accreditation-logo,
html body .tdm-accreditation-featured .tdm-accreditation-logo {
    height: 135px;
    padding-top: 0;
}

html body .tdm-accreditation-logo img {
    max-width: 82%;
    max-height: 105px;
}
