/********** Template CSS **********/
:root {
    --primary: #F3525A;
    --secondary: #F6F6F6;
    --light: #FFFFFF;
    --dark: #152440;
}

body{
    overflow-x: hidden;
}

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

.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: #64AC4C;
    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: #64AC4C !important;
}

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

.custom-tab {
    color: #000 !important;
}

.custom-tab.active {
    color: #000 !important;
    border: none !important; /* remove default border */
}

.custom-tab span {
  color: #000 !important;
}
.service-item {
    position: relative;
    overflow: hidden;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .3s;
    background-color: #64AC4C;
    color: #FFFFFF;
}

.service-item-custom {
    background-color: #64AC4C;   /* green background */
    color: white;
    border-radius: 8px;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.service-item-custom .icon-box {
    background-color: white;
    color: #64AC4C;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon styling */
.service-item-custom .icon-box i {
    color: #64AC4C;
}

.service-item-custom h3,
.service-item-custom p {
    color: white;
}

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

.service-item .bg-primary {
    background-color: #FFFFFF !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-item .bg-primary i {
    color: #063950 !important;
}

.service-page .service-box {
    background-color: #fff;   /* white background */
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #063950;           /* dark blue heading color */
    height: 100%;
}

.service-page .service-box h3 {
    color: #063950;  /* title */
}

.service-page .service-box p {
    color: #333;     /* paragraph */
}

.service-page .service-img {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem; 
}

.service-page .service-img img {
    max-height: 100%;
    width: auto;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.service-page .row {
    display: flex;
    align-items: stretch; /* both columns same height */
}

.service-section {
    margin-bottom: 60px;
}

.service-section .row {
    display: flex;
    align-items: stretch; /* make both sides same height */
}

.service-box {
    font-size: 18px;
    background-color: #4CAF50; /* green background */
    color: #fff;              /* white text */
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.service-box h3 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

.service-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-box ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.service-box ul li::before {
    content: "•";
    color: #fff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-img {
    height: 100%;
    display: flex;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* ensures image covers without distortion */
    border-radius: 8px;
}

.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;
    background-color: #063950 !important;
}

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

.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);
}

#nav {
    background-color: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none !important; 
    transition: background-color 0.3s ease;
}

.footer, .footer * {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}
.footer .row,
.footer .col-lg-3,
.footer .col-md-6 {
    margin: 0 !important;
    padding: 0 !important;
}
.footer h3,
.footer p,
.footer a {
    margin: 0 !important;
    padding: 0 !important;
}

.about-breadcrumb a,
.about-breadcrumb i {
    color: #64AC4C !important;
    transition: color 0.3s ease;
}

.about-breadcrumb a:hover,
.about-breadcrumb i:hover {
    color: #063950 !important;
}
