/********** Template CSS **********/
:root {
    --primary: #1868D6;   /* DC Metro Practical Training accent (matches RJ mockup) */
    --primary-dark: #0F4FA8;
    --gold: #F3BD00;      /* retained for small accents / parent tie */
    --secondary: #757575;
    --light: #F3F6F8;
    --dark: #0C2B4B;      /* navy */
}

/*** Rebrand accent override — navy + blue.
     style.css loads AFTER the customized bootstrap.min.css, so these win site-wide. ***/
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.btn.btn-primary,
.btn-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; color:#fff !important; }
.btn.btn-primary:hover,
.btn-primary:hover { background-color: var(--primary-dark) !important; border-color: var(--primary-dark) !important; }
.btn.btn-outline-primary { color: var(--primary) !important; border-color: var(--primary) !important; }
.btn.btn-outline-primary:hover { background-color: var(--primary) !important; color:#fff !important; }

/*** New Home-page components (Practical Training) ***/
.hero-img-wrap { position:relative; min-height:460px; background:var(--dark); }
.hero-img-wrap img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
@media (min-width:992px){ .hero-img-wrap{ clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); } }
.facts-bar { background:var(--dark); }
.facts-bar .fact-ico { font-size:2rem; color:var(--primary); }
.facts-bar .fact-sep { border-left:1px solid rgba(255,255,255,.15); }
.lab-photo { width:100%; height:240px; object-fit:cover; }
.lab-tag { position:absolute; top:0; left:0; background:var(--primary); color:#fff; font-size:.8rem; font-weight:600; padding:.35rem .9rem; }
.step-badge { width:56px; height:56px; border-radius:50%; background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1.35rem; }
.door-card { transition:.4s; } .door-card:hover { transform:translateY(-6px); box-shadow:0 1rem 2rem rgba(12,43,75,.15)!important; }

/*** DC Metro Practical Training brand type & tweaks ***/
body {
    font-family: 'Work Sans', sans-serif;
    color: #4A4A4A;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.navbar-brand h2 {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

.text-primary { color: var(--primary) !important; }

/* keep the sticky mobile call bar from hiding the footer */
@media (max-width: 991.98px) {
    body { padding-bottom: 56px; }
}

/* subtle lift on program cards */
.courses-item { transition: .4s; }
.courses-item:hover { transform: translateY(-6px); box-shadow: 0 1rem 2rem rgba(12,43,75,.12) !important; }

/* normalize program-card photos to a consistent height */
.courses-item .position-relative img { width: 100%; height: 220px; object-fit: cover; }

/* prevent horizontal overflow / edge clipping on mobile */
html, body { overflow-x: hidden; }

/* flex children must be allowed to shrink or their text overflows the card */
.facts .d-flex > .ps-4,
.courses-item .text-center { min-width: 0; }
.facts span, .courses-item p, .courses-item h5 { overflow-wrap: break-word; }

/* Floating-label forms: Bootstrap's default resting label is too faint on the
   white inputs (looked like the placeholders weren't rendering). Force a strong,
   clearly legible dark colour and keep it visible once floated. !important guards
   against any cached/overriding theme rule. */
.form-floating > label { color: #243447 !important; opacity: 1 !important; font-weight: 600 !important; }
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label { color: #5a6b80 !important; opacity: 1 !important; }

@media (max-width: 575.98px) {
    #header-carousel .display-3 { font-size: 1.9rem; line-height: 1.15; }
    #header-carousel .carousel-caption { padding-left: 12px; padding-right: 12px; }
    /* stack hero buttons full-width so they never overflow */
    #header-carousel .carousel-caption .btn { display: block; width: 100%; margin: .6rem 0 0 0 !important; }
    .carousel-control-prev, .carousel-control-next { width: 10%; }
    .display-6 { font-size: 1.6rem; }
    .navbar-brand h2 { font-size: 1.25rem; }
    .navbar-brand { padding-left: 1rem !important; padding-right: 1rem !important; }
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, .75);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: calc(100vh - 76px);
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Full-screen hero: the carousel fills the viewport height MINUS the header, so
   on load you see only the hero and the facts bar sits just below the fold.
   object-fit keeps the 1.5-ratio photos from distorting. Header = navbar (~80px);
   the dark topbar only shows at >=992px, so subtract a bit more there. */
@media (min-width: 769px) {
    #header-carousel .carousel-item {
        position: relative;
        height: calc(100vh - 80px);
        min-height: 520px;
    }
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
@media (min-width: 992px) {
    #header-carousel .carousel-item { height: calc(100vh - 118px); }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Facts ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}


/*** Courses ***/
.courses {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), url(../img/carousel-1.jpg) center center no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.courses-item .courses-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.courses-item:hover .courses-overlay {
    height: 100%;
    opacity: 1;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .75);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    height: 100%;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    height: 40px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--light);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #092139;
}

.copyright a {
    color: var(--primary);
}

.copyright a:hover {
    color: var(--light);
}