/********** Template CSS **********/
:root {
    --primary: #04858A;
    --secondary: #D62859;
    --light: #EEF9FF;
    --dark: #091E3E;
}

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;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.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;
}

#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;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.whatsapp-icon {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 45px;
    bottom: 105px;
    z-index: 99;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.whatsapp-icon:hover {
    background-color: #128c7e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.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: 'Jost', sans-serif;
    padding: 35px 15px;
    font-size: 18px;
    color: var(--dark);
    outline: none;
    transition: all 0.3s ease;
}

.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,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(9, 30, 62, 0.8), rgba(9, 30, 62, 0.5));
    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 h5::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 3px;
    right: -55px;
    bottom: 11px;
    background: var(--primary);
}

.section-title h5::after {
    position: absolute;
    content: "";
    width: 15px;
    height: 3px;
    right: -75px;
    bottom: 11px;
    background: var(--secondary);
}

.hero-header {
    background: linear-gradient(rgba(9, 30, 62, 0.75), rgba(9, 30, 62, 0.95)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    padding: 120px 0 !important;
    position: relative;
}

.hero-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.hero-header .display-3 {
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 5px 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
}

.hero-header .h4 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 25px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0;
}

.hero-header .h4:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(4, 133, 138, 0.4);
    color: #ffffff !important;
}

.hero-header i {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 0 5px;
    vertical-align: middle;
    color: var(--primary) !important;
}

.service-item img,
.service-item .bg-light,
.service-item .bg-light h5,
.team-item .team-text {
    transition: all 0.4s ease;
}

.service-item,
.team-item {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.service-item:hover img {
    transform: scale(1.1);
}

.service-item:hover,
.team-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.team-item .team-text::after,
.service-item .bg-light::after {
    display: none;
}

/* Blog Cards Same Height */
.team-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.team-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
}

.team-text h4 {
    min-height: 60px;
}

.team-text .btn {
    margin-top: auto;
}

/* Floating Services Sidebar */
.floating-services {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-service-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--primary);
    color: white;
    padding: 12px 15px;
    border-radius: 8px 0 0 8px;
    text-decoration: none;
    box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateX(calc(100% - 50px));
    width: 270px;
}

.floating-service-item:nth-child(2) {
    background-color: var(--secondary);
}

.floating-service-item:nth-child(3) {
    background-color: var(--dark);
}

.floating-service-item i {
    font-size: 20px;
    min-width: 35px;
}

.floating-service-item span {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

.floating-service-item:hover {
    transform: translateX(0);
    color: white;
}

/* NABL Fixed Logo */
.nabl-fixed {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 99;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nabl-fixed:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.nabl-fixed img {
    height: 60px;
    width: auto;
}