﻿/* ==========================================================
   The Morgan Group Daytona — site styles (Bootstrap 4)
   ========================================================== */

:root {
    --tmg-navy: #022d46;
    --tmg-navy-dark: #011f31;
    --tmg-yellow: #ffc107;
    --tmg-red: #c82333;
    --tmg-text: #1f2a33;
    --tmg-muted: #4a5863;
    --tmg-border: #e3e8ec;
    --tmg-gray: #f4f6f8;
}

/* Never allow sideways scrolling on phones */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

/* Guaranteed side margins on phones and tablets */
@media (max-width: 991.98px) {
    main .container,
    main .container-fluid,
    .tmg-topbar .container,
    .tmg-footer .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .tmg-header .container {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
}

body {
    font-family: Cabin, sans-serif;
    overflow-wrap: break-word;
    color: var(--tmg-text);
    font-size: 17px;
    line-height: 1.6;
}

a {
    color: var(--tmg-navy);
}

    a:hover {
        color: #0b4a70;
    }

/* ---------- Kept from the original stylesheet ---------- */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

.myIframe {
    position: relative;
    padding-bottom: 65.25%;
    padding-top: 30px;
    height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: solid black 1px;
}

    .myIframe iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

/* Form inputs on other pages (Contact, etc.) */
input, select, textarea {
    max-width: 280px;
}

.navbar-darkblue {
    background-color: var(--tmg-navy);
}

.jumbotron-lightblue {
    background-color: #34648c;
}

.shadow {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,.2), 0 6px 20px 0 rgba(0,0,0,.19);
}

/* ---------- Top bar ---------- */
.tmg-topbar {
    background: var(--tmg-navy);
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
}

.tmg-topbar-note {
    color: #c9d6df;
}

.tmg-topbar a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
}

    .tmg-topbar a:hover {
        color: var(--tmg-yellow);
    }

    .tmg-topbar a i {
        margin-right: 6px;
    }

/* ---------- Header ---------- */
.tmg-header {
    border-bottom: 1px solid var(--tmg-border);
    box-shadow: 0 2px 8px rgba(2,45,70,.06);
    padding-top: 12px;
    padding-bottom: 12px;
}

.tmg-logo {
    height: 62px;
    width: auto;
}

.tmg-header .nav-link {
    color: var(--tmg-text) !important;
    font-size: 16px;
    padding: 10px 12px !important;
}

    .tmg-header .nav-link:hover {
        color: var(--tmg-navy) !important;
    }

.tmg-header .dropdown-menu {
    border: 1px solid var(--tmg-border);
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(2,45,70,.10);
    font-size: 15px;
}

.tmg-header .dropdown-item {
    padding: 8px 18px;
}

    .tmg-header .dropdown-item:active {
        background: var(--tmg-navy);
    }

.tmg-nav-cta {
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .tmg-logo {
        height: 48px;
    }

    .tmg-nav-cta {
        margin: 8px 0 4px;
        display: inline-block;
    }
}

/* ---------- Buttons ---------- */
.btn-tmg-yellow,
.btn-tmg-outline-light,
.btn-tmg-navy,
.btn-tmg-outline-navy,
.btn-tmg-red {
    font-weight: 600;
    border-radius: 4px;
    padding: 12px 26px;
    margin: 0 10px 10px 0;
}

.btn-tmg-yellow {
    background: var(--tmg-yellow);
    color: #1a1a1a;
    border: 1px solid var(--tmg-yellow);
}

    .btn-tmg-yellow:hover {
        background: #e0a800;
        border-color: #e0a800;
        color: #1a1a1a;
    }

.btn-tmg-outline-light {
    border: 1px solid #fff;
    color: #fff;
}

    .btn-tmg-outline-light:hover {
        background: #fff;
        color: var(--tmg-navy);
    }

.btn-tmg-navy {
    background: var(--tmg-navy);
    color: #fff;
    border: 1px solid var(--tmg-navy);
}

    .btn-tmg-navy:hover {
        background: var(--tmg-navy-dark);
        color: #fff;
    }

.btn-tmg-outline-navy {
    border: 1px solid var(--tmg-navy);
    color: var(--tmg-navy);
}

    .btn-tmg-outline-navy:hover {
        background: var(--tmg-navy);
        color: #fff;
    }

.btn-tmg-red {
    border: 1px solid var(--tmg-red);
    color: var(--tmg-red);
    padding: 10px 20px;
    margin: 0;
}

    .btn-tmg-red:hover {
        background: var(--tmg-red);
        color: #fff;
    }

.tmg-header .btn-tmg-navy {
    padding: 10px 20px;
    margin-bottom: 0;
}

/* ---------- Hero slider ---------- */
.tmg-hero {
    position: relative;
    background: #0d1b24;
}

    .tmg-hero .carousel-item {
        height: 480px;
        position: relative;
    }

    .tmg-hero .tmg-hero-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        min-width: 0;
        object-fit: cover;
    }

.tmg-hero-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(2,20,32,.85) 0%, rgba(2,20,32,.55) 50%, rgba(2,20,32,.15) 100%);
}

.tmg-hero-text {
    max-width: 600px;
    color: #fff;
}

.tmg-kicker {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tmg-yellow);
}

.tmg-hero h1 {
    font-size: 50px;
    font-weight: 600;
    line-height: 1.1;
    margin: 12px 0 16px;
}

.tmg-hero p {
    font-size: 18px;
    color: #e1e8ed;
    margin-bottom: 28px;
}

.tmg-hero .carousel-indicators li {
    width: 32px;
    height: 4px;
    background: rgba(255,255,255,.55);
    border: 0;
    margin: 0 4px;
}

.tmg-hero .carousel-indicators .active {
    background: var(--tmg-yellow);
}

.tmg-hero .carousel-control-prev,
.tmg-hero .carousel-control-next {
    width: 80px;
    opacity: 1;
}

.tmg-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.5);
    background: rgba(0,0,0,.2);
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

.tmg-hero .carousel-control-prev:hover .tmg-arrow,
.tmg-hero .carousel-control-next:hover .tmg-arrow {
    background: rgba(0,0,0,.45);
}

@media (max-width: 767.98px) {
    .tmg-hero .carousel-item {
        height: 440px;
    }

    .tmg-hero h1 {
        font-size: 34px;
    }

    .tmg-hero p {
        font-size: 16px;
    }

    .tmg-hero-text {
        padding: 0 36px;
    }

    .tmg-hero .carousel-control-prev,
    .tmg-hero .carousel-control-next {
        width: 40px;
    }

    .tmg-arrow {
        width: 32px;
        height: 32px;
        font-size: 22px;
    }
}

/* ---------- Sections ---------- */
.tmg-section {
    padding: 72px 0;
}

.tmg-section-gray {
    background: var(--tmg-gray);
    border-top: 1px solid var(--tmg-border);
    border-bottom: 1px solid var(--tmg-border);
}

.tmg-heading {
    font-size: 32px;
    font-weight: 600;
    color: var(--tmg-navy);
    margin-bottom: 12px;
}

.tmg-subheading {
    color: var(--tmg-muted);
    margin-bottom: 40px;
}

.tmg-intro {
    max-width: 860px;
    margin: 0 auto 48px;
}

.tmg-lead {
    font-size: 18px;
    color: var(--tmg-muted);
}

@media (max-width: 767.98px) {
    .tmg-section {
        padding: 52px 0;
    }

    .tmg-heading {
        font-size: 26px;
    }
}

/* Credential badges */
.tmg-badge {
    border: 1px solid var(--tmg-border);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    height: 100%;
}

    .tmg-badge strong {
        display: block;
        color: var(--tmg-navy);
    }

    .tmg-badge span {
        font-size: 14px;
        color: #5b6872;
    }

/* Service cards */
.tmg-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(2,45,70,.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}

    .tmg-card:hover {
        box-shadow: 0 8px 24px rgba(2,45,70,.14);
        transform: translateY(-2px);
    }

.tmg-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.tmg-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

    .tmg-card-body h3 {
        font-size: 22px;
        font-weight: 600;
        color: var(--tmg-navy);
        margin-bottom: 10px;
    }

    .tmg-card-body p {
        color: var(--tmg-muted);
    }

    .tmg-card-body a {
        margin-top: auto;
        font-weight: 600;
        text-decoration: none;
    }

/* Training courses */
.tmg-course {
    border: 1px solid var(--tmg-border);
    border-top: 4px solid var(--tmg-navy);
    border-radius: 6px;
    padding: 32px;
    height: 100%;
}

.tmg-course-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

    .tmg-course-head h3 {
        font-size: 24px;
        font-weight: 600;
        color: var(--tmg-navy);
        margin: 0 12px 6px 0;
    }

.tmg-pill {
    background: #eef2f5;
    color: var(--tmg-navy);
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
}

.tmg-course p {
    color: var(--tmg-muted);
}

.tmg-statute {
    font-size: 14px;
    color: #5b6872 !important;
    font-style: italic;
}

.tmg-more-courses {
    margin-top: 16px;
}

    .tmg-more-courses a {
        display: inline-block;
        font-weight: 600;
        text-decoration: none;
        margin: 6px 14px;
    }

/* Call band */
.tmg-callband {
    background: var(--tmg-gray);
    border-top: 1px solid var(--tmg-border);
    padding: 48px 0;
}

    .tmg-callband h2 {
        font-size: 26px;
        font-weight: 600;
        color: var(--tmg-navy);
        margin-bottom: 4px;
    }

    .tmg-callband p {
        color: var(--tmg-muted);
        margin: 0;
    }

    .tmg-callband .btn {
        margin-bottom: 0;
    }

/* ---------- Footer ---------- */
.tmg-footer {
    background: var(--tmg-navy);
    color: #c9d6df;
    font-size: 15px;
    padding: 56px 0 0;
}

.tmg-footer-title {
    color: #fff;
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 8px;
}

.tmg-footer a,
.tmg-footer span {
    display: block;
    color: #c9d6df;
    text-decoration: none;
    margin-bottom: 4px;
}

    .tmg-footer a:hover {
        color: #fff;
    }

.tmg-vob {
    max-width: 140px;
    height: auto;
}

.tmg-footer-bottom {
    border-top: 1px solid #1c4a66;
    padding: 20px 0 24px;
    font-size: 14px;
}

    .tmg-footer-bottom span {
        margin: 0;
    }

.tmg-social a {
    display: inline-block;
    color: #fff;
    font-size: 22px;
    margin-left: 16px;
}

/* ==========================================================
   Inner pages
   ========================================================== */

/* Page header */
.tmg-page-hero {
    position: relative;
    background: var(--tmg-navy);
    color: #fff;
    padding: 76px 0 68px;
    overflow: hidden;
}

.tmg-page-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmg-page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(2,20,32,.88) 0%, rgba(2,20,32,.65) 55%, rgba(2,20,32,.35) 100%);
}

.tmg-page-hero .container {
    position: relative;
}

.tmg-breadcrumb {
    font-size: 14px;
    color: #c9d6df;
}

    .tmg-breadcrumb a {
        color: #fff;
        text-decoration: none;
    }

        .tmg-breadcrumb a:hover {
            color: var(--tmg-yellow);
        }

.tmg-page-hero h1 {
    font-size: 44px;
    font-weight: 600;
    line-height: 1.15;
    margin: 10px 0 12px;
}

.tmg-page-hero .tmg-kicker {
    margin-top: 4px;
}

.tmg-page-sub {
    font-size: 18px;
    color: #e1e8ed;
    max-width: 680px;
    margin: 0;
}

@media (max-width: 767.98px) {
    .tmg-page-hero {
        padding: 52px 0 48px;
    }

        .tmg-page-hero h1 {
            font-size: 32px;
        }
}

/* Body copy */
.tmg-prose p {
    color: #33414c;
    font-size: 17px;
    margin-bottom: 18px;
}

.tmg-prose h2 {
    font-size: 26px;
    font-weight: 600;
    color: var(--tmg-navy);
    margin: 36px 0 18px;
}

/* Check list */
.tmg-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

    .tmg-checklist li {
        position: relative;
        padding: 10px 0 10px 34px;
        border-bottom: 1px solid var(--tmg-border);
        color: #33414c;
    }

        .tmg-checklist li:last-child {
            border-bottom: 0;
        }

        .tmg-checklist li::before {
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            content: "\f00c";
            position: absolute;
            left: 0;
            top: 10px;
            color: var(--tmg-navy);
        }

/* Feature tiles */
.tmg-feature {
    border: 1px solid var(--tmg-border);
    border-radius: 6px;
    padding: 22px;
    height: 100%;
}

    .tmg-feature i {
        color: var(--tmg-navy);
        font-size: 22px;
        margin-bottom: 10px;
        display: block;
    }

    .tmg-feature strong {
        display: block;
        color: var(--tmg-navy);
        margin-bottom: 4px;
    }

    .tmg-feature span {
        font-size: 15px;
        color: var(--tmg-muted);
    }

/* Sidebar */
.tmg-sidebar-card {
    border: 1px solid var(--tmg-border);
    border-top: 4px solid var(--tmg-navy);
    border-radius: 6px;
    padding: 28px;
    margin-bottom: 24px;
    background: #fff;
}

    .tmg-sidebar-card h3 {
        font-size: 20px;
        font-weight: 600;
        color: var(--tmg-navy);
        margin-bottom: 10px;
    }

    .tmg-sidebar-card p {
        color: var(--tmg-muted);
        font-size: 15px;
    }

.tmg-sidebar-phone {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--tmg-navy);
    text-decoration: none;
}

    .tmg-sidebar-phone small {
        display: block;
        font-size: 14px;
        font-weight: 400;
        color: var(--tmg-muted);
    }

.tmg-sidebar-card .btn {
    margin: 16px 0 0;
    width: 100%;
}

.tmg-sidebar-links a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--tmg-border);
    font-weight: 600;
    text-decoration: none;
}

    .tmg-sidebar-links a:last-child {
        border-bottom: 0;
    }

@media (min-width: 992px) {
    .tmg-sticky {
        position: sticky;
        top: 24px;
    }
}

/* Team */
.tmg-person {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(2,45,70,.08);
    padding: 36px;
    height: 100%;
}

.tmg-person-head {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.tmg-avatar {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--tmg-navy);
    color: #fff;
    font-size: 26px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    overflow: hidden;
}

    .tmg-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.tmg-person h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--tmg-navy);
    margin: 0;
}

.tmg-person-role {
    color: var(--tmg-muted);
    font-size: 15px;
}

.tmg-person p {
    color: #33414c;
    font-size: 16px;
}

.tmg-tags {
    margin-bottom: 18px;
}

    .tmg-tags span {
        display: inline-block;
        background: #eef2f5;
        color: var(--tmg-navy);
        font-size: 13px;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 4px;
        margin: 0 6px 6px 0;
    }

/* Contact */
.tmg-contact-card {
    border: 1px solid var(--tmg-border);
    border-radius: 6px;
    padding: 26px;
    height: 100%;
}

    .tmg-contact-card h3 {
        font-size: 20px;
        font-weight: 600;
        color: var(--tmg-navy);
        margin-bottom: 8px;
    }

    .tmg-contact-card p {
        color: var(--tmg-muted);
        font-size: 15px;
    }

    .tmg-contact-card a.tmg-phone {
        font-weight: 700;
        font-size: 18px;
        text-decoration: none;
    }

.tmg-office-img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(2,45,70,.12);
    margin-bottom: 20px;
}

/* Class pages */
.tmg-facts {
    margin: 0 0 4px;
}

    .tmg-facts div {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid var(--tmg-border);
        font-size: 15px;
    }

    .tmg-facts dt {
        font-weight: 400;
        color: var(--tmg-muted);
    }

    .tmg-facts dd {
        margin: 0;
        font-weight: 600;
        color: var(--tmg-navy);
        text-align: right;
    }

.tmg-note {
    background: var(--tmg-gray);
    border: 1px solid var(--tmg-border);
    border-radius: 6px;
    padding: 18px 20px;
    font-size: 15px;
    color: #33414c;
    margin-bottom: 18px;
}

    .tmg-note i {
        color: var(--tmg-navy);
        margin-right: 8px;
    }

.tmg-sidebar-card .btn-tmg-yellow {
    margin: 16px 0 0;
    width: 100%;
}

/* Partners */
.tmg-partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

    .tmg-partner-logos img {
        max-height: 90px;
        max-width: 220px;
        width: auto;
        height: auto;
        margin: 16px 28px;
    }
