/* sticky navbar */
.fixed-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 80px;
    transition: height 0.3s ease, font-size 0.3s ease; /* Add transition */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.fixed-navbar-active main {
    margin-top: 70px;
}

.fixed-navbar .navbar-nav .nav-link {
    color: var(--secondary-color);
    transition: font-size 0.3s ease; /* Add transition */
}

.fixed-navbar .navbar-brand span,
.fixed-navbar .navbar-nav .nav-link.active,
.fixed-navbar .navbar-nav .nav-link:hover {
    color: var(--dark-color);
    font-size: var(--p-font-size);
    transition: font-size 0.3s ease; /* Add transition */
}

.fixed-navbar .navbar-brand p {
    color: var(--dark-color);
    font-size: 10px;
    transition: font-size 0.3s ease; /* Add transition */
}

.fixed-navbar,
.fixed-navbar .navbar-brand {
    padding: 0 !important;
}

.fixed-navbar .navbar-brand img {
    transform: scale(0.75);
    background-color: transparent;
    transition: transform 0.3s ease; /* Add transition */
}

.fixed-navbar .navbar-collapse {
    background-color: var(--white-color);
    transition: background-color 0.3s ease; /* Add transition */
}
.fixed-navbar #get-started-btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    border-radius: 0.2rem !important;
}
/* Add styles for the reduced state */
body.fixed-navbar-active .fixed-navbar {
    height: 70px; /* Reduced height */
}

body.fixed-navbar-active .fixed-navbar .navbar-nav .nav-link,
body.fixed-navbar-active .fixed-navbar .navbar-brand span {
    font-size: 0.9rem; /* Reduced font size */
}

body.fixed-navbar-active .fixed-navbar .navbar-brand img {
    transform: scale(0.65); /* Further reduce the scale */
}

/*---------------------------------------
  BUSINESS METRICS SECTION               
-----------------------------------------*/
.business-metrics-section {
    /* background-color: var(--white-color); */
    padding: 150px 0;
}

.metric-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: scale(1.1);
}

.metric-label {
    color: #333;
    font-size: clamp(
        14px,
        2vw,
        18px
    ); /* Responsive font size between 14px and 18px */
    font-weight: 500; /* Optional: Adjust font weight */
    text-align: center;
    white-space: nowrap; /* Prevent wrapping to the next line */
    overflow: hidden; /* Hide overflowing text */
    text-overflow: ellipsis; /* Add ellipsis for overflowed text */
    display: block; /* Ensures the styling is applied */
}

/* logo */
.category-title {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 1.5rem;
    margin: 20px 0;
    color: var(--section-bg-color);
}

.category-title::before,
.category-title::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--section-bg-color);
    margin: 0 10px;
}

/*** Spinner Start ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity 0.5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: 0.5s;
    z-index: 99;
}

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*** Testimonial & Partners Start ***/
.testimonial-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: var(--primary-color);
    min-height: 250px;
}
.testimonial-item .client-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.testimonial-item .client-info img {
    border-radius: 50%;
    width: 50px !important;
    height: 50px !important;
    object-fit: cover;
    margin-right: 15px;
}
.testimonial-item .client-info h4 {
    margin: 0;
    color: var(--white-color);
}
.testimonial-item p {
    margin: 0;
    flex-grow: 1;
    color: var(--white-color);
}
.partners-carousel .item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
.partners-carousel .item img {
    max-width: 100%;
}

.custom-nav {
    position: absolute;
    top: 55%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 99;
}
.custom-nav button {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    pointer-events: all;
}
.custom-nav button i {
    color: var(--white-color);
    font-size: 3rem; /* Adjust icon size */
}
.custom-nav #testimonial-prev {
    left: -10px;
    position: relative;
}
.custom-nav #testimonial-next {
    right: -10px;
    position: relative;
}
.testimonial-carousel {
    padding-left: 80px; /* Adjust padding to make space for navigation buttons */
    padding-right: 80px; /* Adjust padding to make space for navigation buttons */
    position: relative;
}
.partners-carousel {
    padding-top: 50px;
}

@media (max-width: 576px) {
    .custom-nav #testimonial-prev {
        left: 0px;
    }
    .custom-nav #testimonial-next {
        right: 0px;
    }
    .testimonial-carousel {
        padding-left: 60px !important; /* Adjust padding to make space for navigation buttons */
        padding-right: 60px !important; /* Adjust padding to make space for navigation buttons */
    }
}

@media (max-width: 768px) {
    .testimonial-carousel {
        padding-left: 30px; /* Adjust padding to make space for navigation buttons */
        padding-right: 30px; /* Adjust padding to make space for navigation buttons */
    }
    .testimonial-item {
        padding-left: 10px !important; /* Adjust padding for mobile */
        padding-right: 10px !important; /* Adjust padding for mobile */
    }
    .testimonial-item p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4; /* Limit to 3 lines */
        overflow: hidden; /* Ensure overflow is hidden */
        text-overflow: ellipsis; /* Add ellipsis */
    }
    .testimonial-item .client-info img {
        width: 25px !important;
        height: 25px !important;
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .custom-nav button {
        font-size: 1.8rem;
    }
    .custom-nav button i {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .custom-nav button {
        font-size: 1.6rem;
    }
    .custom-nav button i {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .custom-nav button {
        font-size: 1.4rem;
    }
    .custom-nav button i {
        font-size: 2.4rem;
    }
}

@media (max-width: 576px) {
    .custom-nav button {
        font-size: 1.2rem;
    }
    .custom-nav button i {
        font-size: 2.2rem;
    }
}

/* timeline history */
.timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    text-align: center;
    position: relative;
}

.timeline-year {
    background-color: var(--primary-color); /* Green */
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1; /* Ensure the year is above the line */
    font-size: var(--copyright-font-size);
}
@media (max-width: 768px) {
    .timeline-year {
        width: 30px;
        height: 30px;
    }
    .timeline-year {
        font-size: 10px;
    }
}

.timeline-year.active {
    background-color: var(--custom-btn-bg-color); /* Active color */
    transform: scale(1.4); /* Increase size */
}

.timeline-content {
    background-color: #f8f9fa; /* Light background */
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%; /* Full width */
    display: none; /* Initially hidden */
}

#active-description {
    display: block; /* Show the active description */
    background-color: #f8f9fa; /* Light background */
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Connecting lines */
.timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 30px; /* Adjust this value to position the line */
    left: 50%; /* Center the line */
    width: 2px; /* Line thickness */
    height: calc(100% - 20px); /* Adjust height based on the timeline item */
    background-color: #ccc; /* Line color */
    transform: translateX(-50%); /* Center the line */
    z-index: -1; /* Ensure the line is below the year */
}
/* Horizontal line connecting the years */
.timeline::before {
    content: "";
    position: absolute;
    top: 50%; /* Center the line vertically */
    left: 0;
    width: 100%;
    height: 2px; /* Line thickness */
    background-color: #ccc; /* Line color */
    z-index: 0; /* Ensure the line is below the years */
}

/* partners */

.partners {
    position: relative; /* Ensure the card is positioned relative for absolute positioning of the icon */
    overflow: hidden; /* Hide overflow for the sliding effect */
}

.partners img {
    position: relative;
    z-index: 1;
}

.partners .partners-text {
    position: relative;
    width: 100%;
    height: 100px;
    bottom: 0px;
    left: 0;
    border-bottom: 5px solid var(--primary-color);
    transition: 0.5s;
    z-index: 1;
}

.icon-link {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: bottom 0.5s ease;
    z-index: 2;
    font-size: var(--h4-font-size);
}

.partners:hover .icon-link {
    bottom: 0;
}

.grayscale {
    filter: gray; /* IE6-9 */
    -webkit-filter: grayscale(1); /* Google Chrome, Safari 6+ & Opera 15+ */
    filter: grayscale(1); /* Microsoft Edge and Firefox 35+ */
}

/* Disable grayscale on hover */
.grayscale:hover {
    -webkit-filter: grayscale(0);
    filter: none;
}
