/* ------------------ General CSS ------------------ */
body {
    color: #656565;
    font-family: 'Montserrat', sans-serif;
    background: #ffffff;
}

a {
    color: #011d58;
    transition: 0.3s;
}

a:hover,
a:active,
a:focus {
    color: #050505;
    outline: none;
    text-decoration: none;
}

p {
    color: #000000;
    padding: 0;
    margin: 0 0 15px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: #000000;
    margin: 0 0 15px 0;
    padding: 0;
}

h4,
h5,
h6 {
    font-weight: 400;
}


/* ------------------ Back to Top ------------------ */
.back-to-top {
    position: fixed;
    display: none;
    background: #1d5ebf;
    color: #ffffff;
    width: 45px;
    height: 45px;
    text-align: center;
    line-height: 1;
    font-size: 44px;
    right: 15px;
    bottom: 15px;
    transition: background 0.3s;
    z-index: 9;
}

.back-to-top i {
    color: #ffffff;
}


/* ------------------ Header CSS ------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 20px;
    background: rgb(247, 245, 245); /* Dark background for visibility */
    z-index: 1000; /* Ensures it stays above other elements */
    overflow: hidden; /* Prevents elements from spilling out */
    transition: height 0.3s ease, background-color 0.3s ease; /* Smooth transition */
}

.container-fluid {
    padding: 0; /* Removes padding */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 100px; /* Adjust logo height */
    width: auto; /* Maintains aspect ratio */
    max-width: 100%; /* Prevents excessive resizing */
    transition: height 0.3s ease; /* Smooth transition on scroll */
}

.header.header-scrolled {
    height: 60px; /* Smaller height when scrolled */
    background: rgb(235, 238, 245); /* Darken background on scroll */
}

.header.header-scrolled .logo-img {
    height: 95px; /* Smaller logo height when scrolled */
}

/* ----------------- Intro Section ----------------- */
/* ================================================= */

.slider {
    display: table;
    width: 100%;
    height: 100vh;
    background: #000;
}

.slider .carousel-item {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider .carousel-item::before {
    content: '';
    background-color: rgba(0, 0, 0, 0.7);
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}

.slider .carousel-container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    position: absolute;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
}

.slider .carousel-background img {
    max-width: 100%;
}

.slider .carousel-content {
    text-align: center;
}

.slider h2 {
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 64px;
    font-weight: 800;
    letter-spacing: 1px;
}

.slider p {
    width: 80%;
    margin: 0 auto 30px auto;
    color: #ffffff;
}

.slider .carousel-fade {
    overflow: hidden;
}

.slider .btn-get-started {
    display: inline-block;
    padding: 10px 30px;
    transition: 0.3s;
    background: #1d76bf;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ------------------ Menu Style ------------------- */
#nav-menu-container {
    display: flex;
    align-items: center; /* Aligns menu with the logo */
    justify-content: flex-end; /* Pushes the menu items to the right */
    margin-left: auto; /* Pushes menu to the right */
}

.nav-menu {
    display: flex;
    align-items: center; /* Aligns navigation items vertically */
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%; /* Makes sure it stays aligned */
}

.nav-menu * {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu ul {
    position: absolute;
    display: none;
    top: 100%;
    left: 0;
    z-index: 99;
}

.nav-menu li {
    position: relative;
    white-space: nowrap;
}

.nav-menu > li {
    float: left;
}

.nav-menu li:hover > ul,
.nav-menu li.sfHover > ul {
    display: block;
}

.nav-menu ul ul {
    top: 0;
    left: 100%;
}

.nav-menu ul li {
    min-width: 180px;
}

.nav-menu a {
    display: block;
    padding: 5px 10px;
    color: #011d58;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
}

.nav-menu li:hover > a,
.nav-menu > .menu-active > a {
    color: #05b8ff;
}

.nav-menu > li {
    margin-left: 10px;
}

.nav-menu ul {
    margin: 4px 0 0 0;
    padding: 10px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.25);
    background: #ffffff;
}

.nav-menu ul li {
    transition: 0.3s;
}

.nav-menu ul li a {
    padding: 5px 10px;
    color: #353535;
    transition: 0.3s;
    display: block;
    font-size: 14px;
    text-transform: none;
}

.nav-menu ul li:hover > a {
    color: #a1bf1d;
}

.nav-menu ul ul {
    margin: 0;
}

#mobile-nav-toggle {
    position: fixed;
    right: 0;
    top: 0;
    z-index: 999;
    margin: 20px 20px 0 0;
    border: 0;
    background: none;
    font-size: 24px;
    display: none;
    transition: all 0.4s;
    outline: none;
    cursor: pointer;
}

#mobile-nav-toggle i {
    color: #ffffff;
}

#mobile-nav {
    position: fixed;
    top: 0;
    padding-top: 18px;
    bottom: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.8);
    left: -260px;
    width: 260px;
    overflow-y: auto;
    transition: 0.4s;
}

#mobile-nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

#mobile-nav ul li {
    position: relative;
}

#mobile-nav ul li a {
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    overflow: hidden;
    padding: 10px 22px 10px 15px;
    position: relative;
    text-decoration: none;
    width: 100%;
    display: block;
    outline: none;
}

#mobile-nav ul li a:hover {
    color: #1dbf73;
}

#mobile-nav ul li li {
    padding-left: 30px;
}

#mobile-nav ul li.menu-active a {
    color: #1dbf73;
}

#mobile-nav ul .menu-has-children i {
    position: absolute;
    top: -5px;
    right: 0;
    z-index: 99;
    padding: 15px;
    cursor: pointer;
    color: #ffffff;
}

#mobile-nav ul .menu-has-children i.ion-md-arrow-dropup {
    color: #1dbf73;
}

#mobile-nav ul .menu-has-children i.dicon {
    display: none;
}

#mobile-nav ul .menu-has-children li a {
    text-transform: none;
}

#mobile-nav ul .menu-item-active {
    color: #1dbf73;
}

#mobile-body-overly {
    width: 100%;
    height: 100%;
    z-index: 997;
    top: 0;
    left: 0;
    position: fixed;
    background: rgba(0, 0, 0, 0.7);
    display: none;
}

body.mobile-nav-active {
    overflow: hidden;
}

body.mobile-nav-active #mobile-nav {
    left: 0;
}

body.mobile-nav-active #mobile-nav-toggle {
    color: #ffffff;
}



/* ---------------- Banner Section ----------------- */
.banner {
    background: url("../img/banner.jpg") center top no-repeat;
    background-size: cover;
    padding: 150px 0 60px 0;
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(000, 000, 000, 0.6);
    z-index: 9;
}

.banner .container {
    position: relative;
    z-index: 10;
}

.banner .banner-nav {
    text-align: center;
}

.banner .banner-box {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #ffffff;
}

.banner .banner-box a {
    color: #ffffff;
}

.banner .banner-box a:hover {
    color: #1dbf73;
}

.banner .banner-box a:first-child {
    padding-right: 15px;
    border-right: 1px solid #ffffff;
}

.banner .banner-box a:last-child {
    padding-left: 15px;
}


/* ------------- Section Header Style -------------- */
.section-header {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.section-header h3 {
    font-size: 32px;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-header h3::before {
    content: '';
    position: absolute;
    display: block;
    width: 100px;
    height: 0;
    border-bottom: 4px dashed #353535;
    bottom: 0;
    left: calc(50% - 50px);
}

.section-header p {
    text-align: center;
    padding-bottom: 30px;
}


/* ---------------- About Us Style ----------------- */
.about {
    position: relative;
    padding: 60px 0 40px 0;
    background: #f2f2f2;
}

.about .about-row {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.about .about-col {
    background: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.about .about-col:hover {
    box-shadow: 0px 2px 10px #dddddd;
}

.about .about-col .img {
    position: relative;
}

.about .about-col .icon {
    width: 64px;
    height: 64px;
    padding-top: 10px;
    padding-left: 1px;
    text-align: center;
    position: absolute;
    background-color: #030e70;
    border-radius: 50%;
    text-align: center;
    border: 4px solid #fbfcfc;
    left: calc( 50% - 32px);
    bottom: -30px;
    transition: 0.3s;
}

.about .about-col i {
    font-size: 36px;
    line-height: 1;
    color: #ffffff;
    transition: 0.3s;
}

.about .about-col:hover .icon {
    background-color: #ffffff;
}

.about .about-col:hover i {
    color: #5090f1;
}

.about .about-col h2 {
    color: #000000;
    text-align: center;
    font-weight: 700;
    font-size: 20px;
    margin: 40px 0 12px 0;
}

.about .about-col h2 a {
    color: #000000;
}

.about .about-col h2 a:hover {
    color: #000000;
}

.about .about-col p {
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
    margin-bottom: 0;
    padding: 0 30px;
    text-align: justify;
}



/* ---------------- Services Style ----------------- */
.services {
    background: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.services .section-header p {
    margin: 0;
    padding: 0;
}

/* Home Page Services Style */
.home-services .single-service {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 250px; /* Fixed width */
    padding: 20px;
    border-radius: 10px;
    background: #f8f8f8;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #cff9ff; /* Light grey border to define the box */
    overflow: hidden; /* Prevents text overflow */
    /* Remove fixed height */
}

.home-services .single-service i {
    font-size: 50px;
    color: #0d36ec;
}

.home-services .single-service h4 a {
    font-size: 16px;
    font-weight: 700;
    text-transform: capitalize;
}

.home-services .single-service p {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limits text to 3 lines */
    -webkit-box-orient: vertical;
    line-clamp: 3; /* Standard property for better compatibility */
    box-orient: vertical;
}

.home-services .single-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Services Page Style */
.services-page .single-service {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #ffffff;
    padding: 30px;
    border: 2px solid #dfeffa;
    border-radius: 12px;
    text-align: center;
    min-height: 350px;  /* Ensures a minimum height for the box */
    transition: 0.4s;
    overflow: hidden; /* Prevents text overflow from overflowing outside the box */
}

.services-page .single-service:hover {
    border-color: #b9bdf8;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.services-page .single-service i {
    font-size: 30px;
    color: #0d36ec;
}

.services-page .single-service h4 {
    font-size: 20px;
    font-weight: bold;
}

.services-page .single-service p {
    font-size: 14px;
    line-height: 1.5; /* Adjust line height for better readability */
    flex-grow: 1; /* Ensures the paragraph takes available space */
    overflow: hidden; /* Prevents text overflow within the box */
    text-overflow: ellipsis; /* Optional: Truncates text with "..." if necessary */
    display: block; /* Allow text to wrap naturally */
}

/* Toggle Description Arrow */
.toggle-arrow {
    font-size: 20px;
    cursor: pointer;
    margin-top: 10px;
    color: #010fd6;
    transition: transform 0.3s;
}

.toggle-arrow.active {
    transform: rotate(180deg);
}


/* ----------------- Products Style --------------- */
.product {
    position: relative;
    padding: 60px 0 45px 0;
    background: #f2f2f2;
}

.product #product-flters {
    padding: 0;
    margin: 0 0 16px 0;
    list-style: none;
    text-align: center;
    font-size: 0;
}

.product #product-flters li {
    display: inline-block;
    margin: 0;
    padding: 10px 20px;
    font-size: 12px;
    line-height: 20px;
    color: #ffffff;
    text-transform: uppercase;
    background: #353535;
    margin-bottom: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.product #product-flters li:hover,
.product #product-flters li.filter-active {
    background: #1dbf73;
    color: #ffffff;
}

.product #product-flters li:last-child {
    margin-right: 0;
}

.product .product-wrap {
    margin-top: 10px;
}

.product .product-wrap:hover {
    box-shadow: 0px 0px 10px #666666;
}

.product .product-item {
    height: auto;
}

.product .product-wrap figure {
    height: 135px; /* Adjust as needed */
    overflow: hidden; /* Hide the part of the image that overflows */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product .product-wrap figure img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Makes the image cover the container while keeping aspect ratio */
    transition: transform 0.3s ease; /* Smooth transition for hover effect */
}

/* Optional: Add hover effect to zoom images */
.product .product-wrap:hover figure img {
    transform: scale(1.05); /* Slight zoom effect */
}

.special-image {
    object-fit: contain !important; /* Ensures the whole image is visible without cropping */
}

.products-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.products-container .col-lg-3, .products-container .col-md-4, .products-container .col-sm-6 {
    display: flex;
    justify-content: center;
    flex: 1 1 calc(25% - 20px); /* 4 items per row */
    box-sizing: border-box;
}

.contact-form {
    padding: 60px 0;
    background: #f8f8f8;
    text-align: center;
}

.contact-form .section-header {
    margin-bottom: 30px;
}

.contact-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form button {
    background: #1d76bf;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #1d76bf;
}

/* --------------- Testimonials Style -------------- */
.testimonials {
    position: relative;
    padding: 60px 0;
    background: #cbd3d4d8;
}

.testimonials .container {
    max-width: 900px;
}

.testimonials .section-header {
    margin-bottom: 20px;
}

.circle {
    width: 120px;  /* Adjust as needed */
    height: 120px;
    border-radius: 50%;
    background-color: #f5ecec;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ensures images stay within the circular boundary */
}

.circle img {
    width: 100%; /* Ensures images take full width of the circle */
    height: 100%; /* Ensures images take full height of the circle */
    object-fit: cover; /* Ensures the image fills the circle properly without distortion */
    border-radius: 80%; /* Ensures the image itself is also circular */
}


@media (max-width: 575px) {
    .testimonials .testimonial-text {
        padding: 25px;
    }
}

/* ----------------- Contact Style ----------------- */
.contact {
    position: relative;
    padding: 60px 0;
    background: #f2f2f2;
}

.contact .container {
    max-width: 900px;
}

.contact .contact-info {
    margin-bottom: 30px;
    text-align: center;
}

.contact .contact-address,
.contact .contact-phone,
.contact .contact-email {
    background: #f2f2f2;
    padding: 15px 30px 25px 30px;
    text-align: center;
    color: #353535;
}

.contact .contact-address:hover,
.contact .contact-phone:hover,
.contact .contact-email:hover {
    box-shadow: 0 0 10px #dddddd;
}

.contact .contact-info i {
    font-size: 48px;
    display: inline-block;
    color: #010fd6;
}

.contact .contact-info address,
.contact .contact-info p {
    margin-bottom: 0;
    font-size: 14px;
    color: #353535;
}

.contact .contact-info h3 {
    font-size: 14px;
    margin-bottom: 5px;
    text-transform: uppercase;
    color: #353535;
}

.contact .contact-info a {
    color: #353535;
}

.contact .contact-info a:hover {
    color: #1d76bf;
}

.contact .map {
    position: relative;
    background: #ffffff;
}

.contact .map:hover {
    box-shadow: 0 0 10px #cccccc;
}

.contact .map iframe {
    width: 100%;
    height: 380px;
    margin-bottom: -7px;
}

.contact .form {
    background: #ffffff;
    padding: 40px;
    color: #353535;
    border-radius: 8px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

.contact .form:hover {
    box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.15);
}

.contact .form label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
    color: #555;
}

.contact .form input,
.contact .form textarea {
    padding: 12px;
    border-radius: 6px;
    box-shadow: none;
    font-size: 16px;
    border: 1px solid #ccc;
    width: 100%;
    transition: border-color 0.3s ease-in-out;
}
.contact .form input:focus,
.contact .form textarea:focus {
    border-color: #1d76bf;
    outline: none;
    box-shadow: 0px 0px 5px rgba(29, 191, 115, 0.3);
}

.contact .btn-custom {
    background: #1d76bf;
    border: none;
    padding: 12px 24px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
}

.contact .btn-custom:hover {
    background: #1d76bf;
    box-shadow: 0px 4px 10px rgba(29, 191, 115, 0.3);
}

.contact .form button[type="submit"] {
    background: #1d76bf;
    border: 0;
    padding: 10px 30px;
    color: #ffffff;
    transition: 0.4s;
    cursor: pointer;
}

.contact .form button[type="submit"]:hover {
    background: #353535;
}

/* ----------------- Footer Style ------------------ */
.footer {
    position: relative;
    padding: 0 0 30px 0;
    background: #000000;
}

.footer .footer-top {
    background: #77a0fa60;
    padding: 60px 0 30px 0;
}

.footer .footer-top .footer-info,
.footer .footer-top .footer-links,
.footer .footer-top .footer-contact,
.footer .footer-top .footer-newsletter {
    margin-bottom: 30px;
}

.footer .footer-top .footer-info h3 {
    font-size: 35px;
    padding: 2px 0 2px 0px;
    line-height: 1;
    color: #ffffff;
}

.footer .footer-top .footer-info p {
    font-size: 20px;
    line-height: 24px;
    color: #ffffff;
}

.footer .footer-top .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer .footer-top .footer-info {
    text-align: left;
}

.footer .footer-top .footer-contact {
    text-align: right;
    text-align: justify;
}

.footer .footer-top .social-links a {
    font-size: 18px;
    display: inline-block;
    background: #ffffff;
    color: #1dbf73;
    line-height: 1;
    padding: 9px 0;
    margin-right: 4px;
    border-radius: 50%;
    text-align: center;
    width: 36px;
    height: 36px;
    transition: 0.3s;
}

.footer .footer-top .social-links a:hover {
    background: #353535;
    color: #ffffff;
}

.footer .footer-top h4 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer .footer-top h4::before {
    content: '';
    position: absolute;
    left: 1;
    bottom: 0;
    height: 0;
    width: 100px;
    border-bottom: 5px dashed #ffffff;
}

.footer .footer-top .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-top .footer-links ul i {
    padding-right: 8px;
    color: #ffffff;
    font-size: 16px;
}

.footer .footer-top .footer-links ul li {
    border-bottom: 1px solid #ffffff;
    padding: 7px 0;
}

.footer .footer-top .footer-links ul li:first-child {
    padding-top: 0;
}

.footer .footer-top .footer-links ul a {
    font-size: 14px;
    color: #ffffff;
}

.footer .footer-top .footer-links ul a:hover {
    color: #353535;
}

.footer .footer-top .footer-contact p {
    color: #ffffff;
    line-height: 26px;
}

.footer .footer-top .footer-newsletter input[type="email"] {
    border: 0;
    padding: 6px 8px;
    width: 60%;
}

.footer .footer-top .footer-newsletter input[type="submit"] {
    border: 0;
    width: 40%;
    padding: 6px 0;
    text-align: center;
    color: #ffffff;
    background: #353535;
    transition: 0.3s;
    cursor: pointer;
}

.footer .footer-top .footer-newsletter input[type="submit"]:hover {
    background: #000000;
}

.footer .footer-top .footer-newsletter p {
    color: #ffffff;
    font-size: 14px;
}

.footer .copyright {
    text-align: center;
    padding-top: 30px;
}


/* ---------------- Responsive Design -------------- */
@media (min-width: 1024px) {
    .header .logo {
        padding-left: 60px;
    }

    .slider p {
        width: 60%;
    }

    .slider .carousel-control-prev,
    .slider .carousel-control-next {
        width: 5%;
    }

    #nav-menu-container {
        padding-right: 60px;
    }
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 15px;
    }

    .header .logo h1 {
        font-size: 28px;
    }

    .header .logo img {
        max-height: 40px;
    }

    .slider h2 {
        font-size: 28px;
    }

    #nav-menu-container {
        display: none;
    }

    #mobile-nav-toggle {
        display: inline;
    }
}

@media (max-width: 61.9em) {
    .team .team-over {
        padding-top: 20px;
    }
    .team .card .social-nav {
        margin-bottom: 15px;
        padding: 0;
    }
}