/********** Template CSS **********/
:root {
    --primary: #dc3545;
    --secondary: #FDBE33;
    --light: #F4F6F8;
    --dark: #040F28;
}

/* Default padding for larger screens */
section.container {
    padding: 1.5rem 3.5rem 0;  /* Adjust based on your design */
}

/* Padding for tablets (max-width: 768px) */
@media (max-width: 768px) {
    section.container {
        padding: 1rem 3rem 0;  /* Adjust as needed for tablets */
    }
}

/* Padding for mobile devices (max-width: 576px) */
@media (max-width: 576px) {
    section.container {
        padding: 0.5rem 2.5rem 0;  /* Adjust as needed for mobile */
    }
}

.position-relative {
        position: relative;
    }

    .image-hover {
        transition: filter 0.3s ease; /* Smooth transition for darkening effect */
    }

    .image-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-weight: bold;
        font-size: 2rem; /* Adjust size as needed */
        color: white; /* Change text color as needed */
        opacity: 0; /* Initially hidden */
        transition: opacity 0.3s ease; /* Smooth transition for text visibility */
    }

    /* Hover effect for desktop */
    .position-relative:hover .image-text {
        opacity: 1; /* Text becomes visible on hover */
    }

    .position-relative:hover .image-hover {
        filter: brightness(50%); /* Darken image on hover */
    }

    /* Mobile and tablet styles */
    @media (max-width: 991px) {
        /* Hover effect for tablets */
        .position-relative:hover .image-text {
            opacity: 1; /* Text becomes visible on hover */
        }

        .position-relative:hover .image-hover {
            filter: brightness(50%); /* Darken image on hover */
        }

        /* Fix text visibility without hover on tablet */
        .position-relative:hover .image-text {
            opacity: 1; /* Always visible */
        }
    }

    /* Mobile-specific adjustments */
    @media (max-width: 767px) {
        .image-text {
            font-size: 1.5rem; /* Adjust font size for mobile */
        }

        /* Force text to always be visible on mobile */
        .position-relative .image-text {
            opacity: 1 !important;
        }

        .position-relative:hover .image-text {
            opacity: 1 !important; /* Always visible on mobile */
        }

        .position-relative:hover .image-hover {
            filter: brightness(50%) !important; /* Force image darkening */
        }
        .position-relative img {
    margin-bottom: 20px; /* Adjust the value as needed */
}
    }


.small-font {
    font-size: 1.2rem; /* Adjust this value as needed */
}


.pt-6 {
    padding-top: 90px;
}

.pb-6 {
    padding-bottom: 90px;
}

.py-6 {
    padding-top: 90px;
    padding-bottom: 90px;
}

.btn {
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    transition: .5s;
}

.btn::after {
    position: absolute;
    content: "";
    width: 0;
    height: 5px;
    bottom: -1px;
    left: 50%;
    background: var(--primary);
    transition: .5s;
}

.btn.btn-primary::after {
    background: var(--dark);
}

.btn:hover::after,
.btn.active::after {
    width: 50%;
    left: 25%;
}

.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;
    left: 50%;
    bottom: 0;
    margin-left: -22px;
    border-radius: 0;
    z-index: 99;
}

.bg-dark-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.bg-light-radial {
    background-image: -webkit-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -moz-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -ms-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: -o-repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-image: repeating-radial-gradient(center center, rgba(256, 256, 256, 0.2), rgba(256, 256, 256, 0.2) 1px, transparent 1px, transparent 100%);
    background-size: 3px 3px;
}

.navbar-dark .navbar-nav .nav-link {
    position: relative;
    padding: 35px 15px;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--light);
    outline: none;
    transition: .5s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 15, 40, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h4 {
        font-size: 18px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

/* .page-header {
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* background: linear-gradient(rgba(17, 32, 66, 0.7), rgba(4, 15, 40, .7)), url(../img/carousel-1.jpg) center center no-repeat; */
    /* background-size: cover; */
/* } */

.text-center{
    text-align: center;
}

.service-item .service-icon {
    margin-top: -50px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
}

.service-item .service-icon i {
    transition: .2s;
}

.service-item:hover .service-icon i {
    font-size: 60px;
}



@media (min-width: 992px) {
    .testimonial,
    .contact-form {
        margin-left: -90px;
    }
}

@media (min-width: 992px) {
    /* .footer::after {
        position: absolute;
        content: "";
        width: 1px;
        height: 100%;
        top: 0;
        left: 40%;
        background: var(--light)
    } */
}

/* .footer-shape::before {
    position: absolute;
    content: "";
    width: 80px;
    height: 100%;
    top: 0;
    left: -40px;
    background: var(--light);
    transform: skew(40deg);
} */