/********** Template CSS **********/
:root {
    --primary: #1e5c9b;
    --secondary: #777777;
    --light: #F8F8F8;
    --dark: #252525;
}

/* Global Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--secondary);
}

.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 {
    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 .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 10px 0; /* ADJUST THIS VALUE TO CHANGE NAVBAR HEIGHT */
    color: #FFFFFF;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--dark);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid rgba(256, 256, 256, .1);
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/*** Header Carousel ***/
#header-carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    z-index: 1;
}

#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
    width: 10%;
}

#header-carousel .carousel-control-prev-icon,
#header-carousel .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

#header-carousel .carousel-indicators [data-bs-target] {
    width: 60px;
    height: 60px;
    text-indent: 0;
    margin-bottom: 15px;
    border: 2px solid #FFFFFF;
    border-radius: 60px;
    overflow: hidden;
}

/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before, .section-title::after {
    position: absolute;
    content: "";
    background: var(--primary);
    z-index: -1;
}

.section-title::before {
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
}

.section-title::after {
    width: calc(100% + 120px);
    height: 2px;
    bottom: 4px;
    left: -60px;
}

/*** Facts & Hover Effects ***/
.fact-item {
    transition: .5s;
}

.fact-item:hover {
    margin-top: -10px;
    background: #FFFFFF !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.img-border {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.img-border::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 3rem;
    bottom: 3rem;
    border: 5px solid var(--primary);
    border-radius: 6px;
}

.img-border img {
    position: absolute;
    top: 3rem;
    left: 3rem;
    width: calc(100% - 3rem);
    height: calc(100% - 3rem);
    object-fit: cover;
    border-radius: 6px;
}

/*** Footer ***/
.footer {
    background: var(--dark);
    color: #A7A7A7;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #A7A7A7;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
    text-decoration: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

    .equipment-item {
        position: relative;
        height: 220px; /* Set a uniform height for all boxes */
        overflow: hidden;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #fff;
        transition: .3s;
    }

    .equipment-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* This crops the image to fill the box perfectly */
        display: block;
    }

    .equipment-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-color: var(--primary);
    }

    /* Adjust height for smaller mobile screens */
    @media (max-width: 576px) {
        .equipment-item {
            height: 160px;
        }
    }

.fleet-list {
        list-style: none;
        padding: 0;
        margin-top: 20px;
    }

    .fleet-list li {
        padding: 12px 15px;
        margin-bottom: 8px;
        background: #f8f9fa; /* Light grey background */
        border-left: 4px solid var(--primary); /* Blue accent on the left */
        border-radius: 4px;
        font-weight: 500;
        color: #444;
        transition: 0.3s;
        display: flex;
        align-items: center;
    }

    .fleet-list li:hover {
        background: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
        transform: translateX(5px); /* Moves slightly right on hover */
    }

    /* Replacing bullets with Font Awesome icons */
    .fleet-list li i {
        color: var(--primary);
        margin-right: 15px;
        font-size: 1.1rem;
    }
    .equipment-card {
        border: 2px solid #333; /* Matches your black frames */
        border-radius: 4px;
        overflow: hidden;
        background: #fff;
        height: 180px; /* Adjust this number to make the boxes taller or shorter */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .equipment-card img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* This is the "magic" that makes them all align perfectly */
    }

    /* Adds a nice gap between the list and the photos */
    .row.g-5 {
        column-gap: 4rem;
    }
     .client-list {
            list-style: none;
            padding-left: 0;
        }
        .client-list li {
            padding: 8px 0;
            border-bottom: 1px solid #eee;
            font-weight: 500;
            display: flex;
            align-items: center;
        }
        .client-list li::before {
            content: "\f058"; /* Check-circle icon */
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            color: var(--primary);
            margin-right: 12px;
        }
        .logo-item {
            background: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 15px;
            height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: .3s;
        }
        .logo-item:hover {
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transform: translateY(-5px);
            border-color: var(--primary);
        }
        .logo-item img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            filter: grayscale(100%); /* Optional: makes logos uniform until hover */
            transition: .3s;
        }
        .logo-item:hover img {
            filter: grayscale(0%);
        }
           /* Global Brand System Variables */
        :root {
            --primary: #1e5c9b;
            --secondary: #777777;
            --dark: #111111;
            --light: #f8f9fa;
        }

        /* Structured License List Item Layout */
        .license-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .license-item-block {
            background: var(--light);
            border-left: 5px solid var(--primary);
            padding: 15px 20px;
            margin-bottom: 12px;
            border-radius: 0 6px 6px 0;
            transition: all 0.2s ease;
        }

        .license-item-block:hover {
            transform: translateX(5px);
            background: #ffffff;
            box-shadow: 0 4px 15px rgba(0,0,0,0.06);
        }

        .license-title-text {
            font-size: 1rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 4px;
            text-transform: uppercase;
        }

        .license-meta-text {
            font-size: 0.9rem;
            color: #555555;
            margin: 0;
        }

        /* Certificate Document Grid Sizing */
        .cert-card-container {
            border: 2px solid var(--dark) !important;
            border-radius: 6px;
            overflow: hidden;
            background: #ffffff;
            height: 180px; /* Rigid constraint prevents vertical shifting */
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 5px;
            transition: all 0.3s ease;
        }

        .cert-card-container:hover {
            box-shadow: 0 8px 25px rgba(0,0,0,0.12);
            transform: translateY(-4px);
            border-color: var(--primary) !important;
        }

        .cert-card-container img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain; /* Prevents text warping inside images */
        }
 /* ==========================================================================
   ISOLATED SUBMENU FLYOUT LOGIC (DESKTOP MODE >= 992px)
   ========================================================================== */
@media (min-width: 992px) {
    /* Set the parent coordinate center point */
    .dropdown-submenu {
        position: relative !important;
    }
    
    /* Hide the custom menu box by default */
    .dropdown-submenu .flyout-menu {
        display: none !important;
        position: absolute !important;
        list-style: none !important;
        min-width: 10rem !important;
        top: 0 !important;              /* Flush with the top line of "Our Policy" */
        left: 100% !important;          /* Pushes the window completely out to the right */
        z-index: 2000 !important;       /* Keeps it rendering above page components */
    }
    
    /* Reveal and perfectly position the flyout menu on hover */
    .dropdown-submenu:hover > .flyout-menu {
        display: block !important;
    }
}

/* ==========================================================================
   MOBILE UTILITY OVERRIDE (COLLAPSED VIEWPORTS < 992px)
   ========================================================================== */
@media (max-width: 991.98px) {
    .dropdown-submenu .flyout-menu {
        display: none !important;
        position: static !important;
        margin-left: 15px !important;
        border-left: 1px solid rgba(0, 0, 0, .1) !important;
        list-style: none !important;
        padding-left: 0 !important;
    }
    
    .dropdown-submenu .flyout-menu.show {
        display: block !important;
    }
}

