/********** Template CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #34AD54;
    --light: #EEF9FF;
    --dark: #091E3E;
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#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;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

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


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Navbar ***/
.navbar-dark {
    background: linear-gradient(90deg, #06A3DA 60%, #091E3E 100%);
    box-shadow: 0 4px 24px rgba(6,163,218,0.10);
    border-bottom: 0;
    padding: 0 18px;
}

.navbar-dark .navbar-brand h1 {
    color: #fff;
    font-size: 2.2em;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 2px 12px rgba(6,163,218,0.10);
}

.navbar-dark .navbar-nav {
    gap: 0.5em;
}

.navbar-dark .navbar-nav .nav-link {
    color: #fff !important;
    font-size: 1.15em;
    font-weight: 600;
    padding: 0.7em 1.4em;
    border-radius: 12px;
    margin-left: 0;
    margin-right: 0.5em;
    transition: background 0.2s, color 0.2s;
    position: relative;
    letter-spacing: 1px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    background: #fff;
    color: #06A3DA !important;
    box-shadow: 0 2px 12px rgba(6,163,218,0.10);
}

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

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark);
}

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

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--dark);
    }

    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    
    .sticky-top.navbar-dark {
        position: fixed;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

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

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

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}


/* Make hamburger always visible and float at top right */
.navbar-toggler {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1052;
    background: #fff;
    border: 2px solid #06A3DA;
    box-shadow: 0 2px 12px rgba(6,163,218,0.10);
    border-radius: 50%;
    padding: 0.7em 1em;
    transition: background 0.2s, box-shadow 0.2s, opacity 0.3s;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Optional: Hide hamburger on desktop */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

/* Modern hamburger menu content design */
.navbar-collapse.collapse.show {
    position: fixed;
    top: 65px;
    right: 0;
    left: 0;
    width: 100vw;
    background: linear-gradient(120deg, #06A3DA 60%, #091E3E 100%);
    z-index: 1051;
    box-shadow: 0 8px 32px rgba(6,163,218,0.16);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    padding: 2em 0 1em 0;
    animation: menuDrop 0.4s cubic-bezier(.77,0,.18,1) both;
}

@keyframes menuDrop {
    0% { opacity: 0; transform: translateY(-40px);}
    100% { opacity: 1; transform: translateY(0);}
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2em;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-size: 1.25em;
    font-weight: 500;
    padding: 0.8em 2em;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
    text-align: center;
    letter-spacing: 1px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: #fff;
    color: #06A3DA !important;
    box-shadow: 0 2px 12px rgba(6,163,218,0.10);
}

.navbar-collapse .navbar-nav .nav-item {
    width: 100%;
    text-align: center;
}

/* Optional: Add a close button for mobile menu */
.navbar-collapse .close-menu {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 2em;
    color: #fff;
    background: none;
    border: none;
    z-index: 1060;
    cursor: pointer;
    transition: color 0.2s;
}
.navbar-collapse .close-menu:hover {
    color: #FACC15;
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

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

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


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@-webkit-keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}


/* --- Service Section Customization --- */
.service-item {
    position: relative;
    min-height: 320px;
    padding: 32px 24px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(6,163,218,0.10);
    border: 1px solid #EEF9FF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: box-shadow 0.3s, transform 0.3s;
    margin-bottom: 32px;
}

.service-item .service-icon {
    margin-bottom: 24px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(6,163,218,0.10);
    font-size: 2em;
    color: #fff;
    transform: none;
}

.service-item .service-icon i {
    transform: none;
    font-size: 2em;
}

.service-item h4 {
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
}

.service-item p {
    font-size: 1em;
    color: #091E3E;
    margin-bottom: 18px;
}

.service-item a.btn {
    position: static;
    width: auto;
    margin-top: auto;
    opacity: 1;
    font-size: 1em;
    padding: 0.5em 1.2em;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 12px rgba(6,163,218,0.10);
    transition: background 0.2s, color 0.2s;
}

.service-item a.btn:hover {
    background: var(--secondary);
    color: #fff;
}

.service-item:hover {
    box-shadow: 0 8px 32px rgba(6,163,218,0.16);
    transform: translateY(-4px) scale(1.03);
}

/* Responsive adjustments for service boxes */
@media (max-width: 991px) {
    .service-item {
        min-height: 260px;
        padding: 18px 8px;
        margin-bottom: 20px;
    }
    .service-item h4 {
        font-size: 1.1em;
    }
    .service-item .service-icon {
        width: 54px;
        height: 54px;
        font-size: 1.4em;
    }
}

/* --- End Service Section Customization --- */


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

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

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.bg-header {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}

/* Content box designs for service, testimonial, team, etc. */
.service-item,
.testimonial-item,
.team-item,
.office-item,
.training-item,
.feature-item,
.country-item {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(6,163,218,0.08);
    transition: box-shadow 0.3s, transform 0.3s;
    padding: 24px 18px;
    margin-bottom: 32px;
    position: relative;
}

.service-item:hover,
.testimonial-item:hover,
.team-item:hover,
.office-item:hover,
.training-item:hover,
.feature-item:hover,
.country-item:hover {
    box-shadow: 0 8px 32px rgba(6,163,218,0.16);
    transform: translateY(-4px) scale(1.02);
}

/* Add a subtle border for visual separation */
.service-item,
.testimonial-item,
.team-item,
.office-item,
.training-item,
.feature-item,
.country-item {
    border: 1px solid #EEF9FF;
}

/* Hide content boxes when scrolling down */
.hide-content-on-scroll {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

/* Responsive adjustments for content boxes */
@media (max-width: 991px) {
    .service-item,
    .testimonial-item,
    .team-item,
    .office-item,
    .training-item,
    .feature-item,
    .country-item {
        padding: 16px 8px;
        margin-bottom: 20px;
    }
}