/********** Template CSS **********/
:root {
    --primary: #1e3a8a;
    --secondary: #F6F6F6;
    --light: #FFFFFF;
    --dark: #152440;
}

/* Base font size - 16px default, adjust for responsiveness */
html {
    font-size: 16px;
}

body {
    font-size: 0.9375rem;
    /* 15px */
    line-height: 1.6;
}

/* Responsive typography */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    body {
        font-size: 0.875rem;
        /* 14px on mobile */
    }
}

h1 {
    font-size: 2.5rem;
    /* 40px */
    font-weight: 700 !important;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    /* 32px */
    font-weight: 700 !important;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    /* 24px */
    font-weight: 600 !important;
    line-height: 1.4;
}

h4 {
    font-size: 1.25rem;
    /* 20px */
    font-weight: 600 !important;
    line-height: 1.4;
}

h5 {
    font-size: 1.125rem;
    /* 18px */
    font-weight: 500 !important;
    line-height: 1.5;
}

h6 {
    font-size: 1rem;
    /* 16px */
    font-weight: 500 !important;
    line-height: 1.5;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.font-weight-semi-bold {
    font-weight: 600 !important;
}

.font-weight-medium {
    font-weight: 500 !important;
}

/* Responsive headings for mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 1.875rem;
        /* 30px on mobile */
    }

    h2 {
        font-size: 1.5rem;
        /* 24px on mobile */
    }

    h3 {
        font-size: 1.25rem;
        /* 20px on mobile */
    }
}

.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    /* 15px */
    transition: .5s;
}

.btn-primary {
    color: #FFFFFF;
}

.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: 'Inter', sans-serif;
    padding: 35px 15px;
    font-size: 0.9375rem;
    /* 15px - reduced from 18px */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    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;
}

.blog-item img {
    transition: .5s;
}

.blog-item:hover img {
    transform: scale(1.1);
}