/********** Template CSS **********/
:root {
    --primary: #0071bc;
    --secondary: #F6F6F6;
    --light: #FFFFFF;
    --dark: #005a99;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

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

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

.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

.btn {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary {
    color: #FFFFFF;
    background-color: #0071bc;
}

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

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

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

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

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

.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -17px;
    background: var(--primary);
    transform: skew(40deg);
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Barlow', sans-serif;
    padding: 35px 15px;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 15px;
}

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

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

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(21, 36, 64, .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;
}

.service-item {
    position: relative;
    overflow: hidden;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .3s;
}

.service-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50px;
    bottom: -50px;
    left: 0;
    background: var(--light);
    border-radius: 100% 100% 0 0;
    box-shadow: 0px -10px 5px #EEEEEE;
    transition: .5s;
}

.service-item:hover::after {
    bottom: -25px;
}

.service-item p {
    transition: .3s;
}

.service-item:hover p {
    margin-bottom: 25px !important;
}

.team-item img {
    transform: scale(1.15);
    margin-left: -30px;
    transition: .5s;
}

.team-item:hover img {
    margin-left: 0;
}

.team-item .team-text {
    left: -100%;
    transition: .5s;
}

.team-item .team-text::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: 50%;
    right: -60px;
    margin-top: -30px;
    border: 30px solid;
    border-color: transparent transparent transparent var(--primary);
}

.team-item:hover .team-text {
    left: 0;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.testimonial-carousel .owl-item img {
    width: 90px;
    height: 90px;
}

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

.blog-item:hover img {
    transform: scale(1.1);
}

/* Logo carousel (Affiliated with) */
.logo-carousel .logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.logo-carousel .logo-item img {
    max-height: 60px;
    opacity: 0.9;
    filter: grayscale(0%);
    transition: transform .3s ease, opacity .3s ease;
}
.logo-carousel .logo-item img:hover {
    transform: scale(1.05);
    opacity: 1;
}

@media (max-width: 991.98px) {
    .logo-carousel .logo-item img { max-height: 50px; }
}
@media (max-width: 576px) {
    .logo-carousel .logo-item img { max-height: 42px; }
}

/* Animated heading for Affiliated section */
.affiliated-heading {
    display: inline-block;
    position: relative;
    color: var(--dark);
    font-weight: 600;
    overflow: hidden;
}
.affiliated-heading::after {
    content: '';
    position: absolute;
    left: -40%;
    top: 0;
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    animation: sweep 2.2s linear infinite;
}

@keyframes sweep {
    0% { left: -60%; }
    100% { left: 120%; }
}

@media (prefers-reduced-motion: reduce) {
    .affiliated-heading::after { animation: none; }
}

/* === Primary color overrides (force blue/white) === */
.text-primary,
.text-primary a,
.text-primary i {
    color: #0071bc !important;
}

.bg-primary,
.bg-primary * {
    background-color: #0071bc !important;
    color: #ffffff !important;
}

.btn-primary {
    background-color: #0071bc !important;
    border-color: #0071bc !important;
    color: #ffffff !important;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: #005a99 !important;
    border-color: #005a99 !important;
}

/* navbar/shape accents */
.top-shape::before {
    background: #0071bc !important;
}

/* safe icon color */
.text-primary .fa,
.text-primary .fas,
.text-primary .far,
.text-primary .bi {
    color: #0071bc !important;
}

/* === Header mobile responsiveness + hero height adjustments === */

/* Reduce heavy horizontal navbar padding on smaller screens and scale logo */
.navbar {
    padding-left: 3rem;
    padding-right: 3rem;
}
@media (max-width: 991.98px) {
    .navbar {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .navbar-brand img {
        height: 55px;
        width: auto;
    }
    .navbar-toggler {
        margin-left: auto;
    }
    .navbar-nav {
        padding-top: .5rem;
        padding-bottom: .5rem;
    }
    .navbar-nav .nav-link {
        padding: .75rem 0;
        font-size: 1rem;
    }
}

/* smaller phones */
@media (max-width: 576px) {
    .navbar-brand img {
        height: 48px;
    }
    .navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        font-size: 0.95rem;
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
}

/* Increase hero (carousel) height site-wide; scale down for smaller viewports */
#header-carousel .carousel-item {
    min-height: 600px;
}
#header-carousel .carousel-item img,
.carousel-item img {
    height: 600px;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 991.98px) {
    #header-carousel .carousel-item { min-height: 480px; }
    #header-carousel .carousel-item img,
    .carousel-item img { height: 480px; }
}

@media (max-width: 576px) {
    #header-carousel .carousel-item { min-height: 360px; }
    #header-carousel .carousel-item img,
    .carousel-item img { height: 360px; }
    .carousel-caption .p-3 { padding: 1rem; max-width: 90%; }
    .display-1 { font-size: 2rem; line-height: 1.1; }
    .btn { padding-top: .6rem; padding-bottom: .6rem; }
}

/* small tweak so topbar/brand don't push carousel up on very small screens */
body > .container-fluid.p-0 { margin-top: 0; }

/* Mobile header: force single-row layout with brand left and toggler right */
@media (max-width: 576px) {
    .navbar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .navbar-brand {
        order: 1;
        padding: 0;
        margin: 0;
    }
    .navbar-brand img {
        height: 48px;
        width: auto;
    }
    .navbar-toggler {
        order: 2;
        margin: 0;
        padding: 6px 10px;
    }
    /* keep the collapsed menu below when opened */
    .navbar-collapse {
        order: 3;
        width: 100%;
    }
}