/********** Template CSS **********/
:root {
    --primary: #0B3D91;   /* deep professional blue */
    --secondary: #00A8A8; /* modern teal */
    --light: #F5F7FA;     /* soft background */
    --dark: #0A0F2C;      /* dark navy */
}

.fw-medium {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    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;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: #7ba1ea;
    border-color: #4b74bb;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #008080;
    border-color: #008080;
}

/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    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-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

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

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

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }

    /* Short viewports: keep full menu reachable (Track / Quote / Logout were below the fold) */
    #navbarCollapse.navbar-collapse,
    #navbarCollapsePayment.navbar-collapse {
        max-height: calc(100vh - 5.5rem);
        max-height: calc(100dvh - 5.5rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        align-items: stretch;
    }

    #navbarCollapse.navbar-collapse .navbar-nav,
    #navbarCollapsePayment.navbar-collapse .navbar-nav {
        width: 100%;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

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

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        top: -6px;
        left: 50%;
        background: #FFFFFF;
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .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 ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/sea.jpeg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service, Price & Team ***/
/* ===== SERVICE IMAGE FIX ===== */
.service-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
}

.service-item .overflow-hidden {
    height: 220px;
}

.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

/* Hover effect (optional but clean 🔥) */
.service-item:hover img {
    transform: scale(1.1);
}

/* Make text area equal */
.service-item p {
    flex-grow: 1;
}


.service-item,
.price-item,
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item img,
.team-item img {
    transition: .5s;
}

.service-item:hover img,
.team-item:hover img {
    transform: scale(1.1);
}

.service-item a.btn-slide,
.price-item a.btn-slide,
.team-item div.btn-slide {
    position: relative;
    display: inline-block;
    overflow: hidden;
    font-size: 0;
}

.service-item a.btn-slide i,
.service-item a.btn-slide span,
.price-item a.btn-slide i,
.price-item a.btn-slide span,
.team-item div.btn-slide i,
.team-item div.btn-slide span {
    position: relative;
    height: 40px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 0 35px 35px 0;
    transition: .5s;
    z-index: 2;
}

.team-item div.btn-slide span a i {
    padding: 0 10px;
}

.team-item div.btn-slide span a:hover i {
    background: var(--secondary);
}

.service-item a.btn-slide span,
.price-item a.btn-slide span,
.team-item div.btn-slide span {
    padding-left: 0;
    left: -100%;
    z-index: 1;
}

.service-item:hover a.btn-slide i,
.price-item:hover a.btn-slide i,
.team-item:hover div.btn-slide i {
    border-radius: 0;
}

.service-item:hover a.btn-slide span,
.price-item:hover a.btn-slide span,
.team-item:hover div.btn-slide span {
    left: 0;
}

.service-item a.btn-slide:hover i,
.service-item a.btn-slide:hover span,
.price-item a.btn-slide:hover i,
.price-item a.btn-slide:hover span {
    background: var(--secondary);
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item {
    position: relative;
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    animation: pulse 1s ease-out .5s;
}

.testimonial-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border: 5px solid var(--light);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--light);
    border-color: var(--primary);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact-page {
        max-width: 100% !important;
    }

    .contact-page .contact-form  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-page .contact-form  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-page .contact-form  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/map.png) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    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;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

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

.footer .copyright a {
    color: var(--light);
}

/* ===== FORCE BOOTSTRAP TO USE YOUR COLORS ===== */

.text-primary {
    color: #0B3D91 !important;
}

.bg-primary {
    background-color: #0B3D91 !important;
}

.border-primary {
    border-color: #0B3D91 !important;
}

.btn-primary {
    background-color: #0B3D91 !important;
    border-color: #0B3D91 !important;
}

.btn-primary:hover {
    background-color: #072c6b !important;
    border-color: #072c6b !important;
}

.navbar .border-primary {
    border-color: #0B3D91 !important;
}

/* FIX HUGE SPACE FROM CAROUSEL */
.header-carousel .owl-carousel-item {
    height: 90vh; /* or 80vh if you want smaller */
}

.header-carousel .owl-carousel-item img {
    height: 100%;
    object-fit: cover;
}

/* TEAM IMAGE FIX */
.team-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.team-item .overflow-hidden {
    height: 250px; /* same height for all images */
}

.team-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Make all cards equal height */
.team-item p {
    flex-grow: 1;
}

/* TESTIMONIAL ALIGNMENT FIX */
.testimonial-carousel .owl-stage {
    display: flex;
}

.testimonial-carousel .owl-item {
    display: flex;
    height: auto;
}

.testimonial-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 10px;
}

/* Make all testimonial cards equal height */
.testimonial-item p {
    flex-grow: 1;
}

/* Keep image consistent */
.testimonial-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.email-item {
    display: flex;
    align-items: flex-start; /* important */
    gap: 12px;
}

.email-item i {
    margin-top: 4px; /* aligns icon with first line */
    flex-shrink: 0;
}

.email-item span {
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

/*** Home hero — track card (inside banner, glass style) ***/
.hero-track-card {
    position: relative;
    z-index: 2;
    max-width: 36rem;
}

.hero-track-card__inner {
    position: relative;
    padding: 1.2rem 1.35rem 1.25rem;
    border-radius: 20px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.16) 0%,
        rgba(255, 255, 255, 0.06) 55%,
        rgba(0, 168, 168, 0.08) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        0 4px 1px rgba(255, 255, 255, 0.12) inset,
        0 28px 56px rgba(6, 3, 21, 0.45),
        0 12px 32px rgba(11, 61, 145, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}

.hero-track-card__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(
        120% 80% at 10% -20%,
        rgba(255, 255, 255, 0.18) 0%,
        transparent 55%
    );
}

.hero-track-card__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.hero-track-card__badge {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #1a5fd4 45%, var(--secondary) 100%);
    box-shadow:
        0 6px 16px rgba(11, 61, 145, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.hero-track-card__titles {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 0.1rem;
}

.hero-track-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.25;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.hero-track-card__subtitle {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.35;
}

.hero-track-card__form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.65rem;
}

.hero-track-input {
    flex: 1 1 12rem;
    min-height: 48px;
    padding: 0 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    background: rgba(10, 15, 44, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-track-input::placeholder {
    color: rgba(255, 255, 255, 0.48);
    font-weight: 400;
}

.hero-track-input:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(10, 15, 44, 0.52);
}

.hero-track-input:focus {
    outline: none;
    border-color: rgba(0, 168, 168, 0.75);
    background: rgba(10, 15, 44, 0.58);
    box-shadow:
        0 0 0 3px rgba(11, 61, 145, 0.35),
        0 0 0 1px rgba(0, 168, 168, 0.35) inset;
}

.hero-track-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0 1.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary) 0%, #0d4ab8 50%, #0a3d99 100%);
    box-shadow:
        0 8px 22px rgba(11, 61, 145, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.hero-track-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow:
        0 12px 28px rgba(11, 61, 145, 0.55),
        0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.hero-track-submit:active {
    transform: translateY(0);
}

@media (max-width: 575.98px) {
    .hero-track-card__inner {
        padding: 1rem 1.1rem 1.1rem;
    }

    .hero-track-submit {
        flex: 1 1 100%;
        width: 100%;
    }
}