.hestia-clients-bar {
    padding: 70px 0;
    background: #ffffff;
    color: #333333;
    overflow: hidden;
}
.hestia-clients-bar .hestia-title,
.hestia-clients-bar .description {
    color: #333333;
}
.hestia-clients-bar .row {
    position: relative;
}
.hestia-clients-bar .clients-bar-wrapper {
    list-style-type: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: visible;
    text-align: center;
    width: auto;
    display: inline-block;
}
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
            /* Correct for two lists */
    }
}

.hestia-clients-bar .col-md-12 {
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}

/* Create a container for the scrolling content */
.hestia-clients-bar .scrolling-wrapper {
    display: inline-block;
        /* Reverted back */
    white-space: nowrap;
    animation: scroll 20s linear infinite;
    }
    
    .hestia-clients-bar .scrolling-wrapper-reverse {
        display: inline-block;
        /* Reverted back */
        white-space: nowrap;
        animation: scroll 20s linear infinite reverse;
}

.hestia-clients-bar .scrolling-wrapper:hover {
    animation-play-state: paused;
}
.hestia-clients-bar .scrolling-wrapper-reverse:hover {
    animation-play-state: paused;
}

.hestia-clients-bar .clients-bar-wrapper li {
    display: inline-block;
    margin: 25px;
    vertical-align: middle;
}
.hestia-clients-bar .clients-bar-wrapper li a {
    display: block;
    padding: 5px;
}
.hestia-clients-bar .clients-bar-wrapper li img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    filter: brightness(1.2);
}

.hestia-clients-bar .row > div {
    padding: 30px;
}

/* Partners Section Styles */
.hestia-partners {
    padding: 70px 0; /* Consistent padding */
    background-color: #f8f9fa; /* Light background */
    color: #333333;
}

.hestia-partners .hestia-title,
.hestia-partners .description {
    color: #333333;
    margin-bottom: 15px; /* Add some space below titles */
}

.hestia-partners .description {
     margin-bottom: 40px; /* More space below description */
}

.hestia-partners .partner-slide {
    margin-bottom: 30px; /* Space between rows/slides */
    display: flex; /* Use flexbox for alignment within the row */
    flex-wrap: wrap; /* Allow wrapping on smaller screens if needed */
    align-items: center; /* Vertically center items in the row */
    justify-content: center; /* Center logos horizontally within the row */
}

.hestia-partners .partner-logo {
    /* Keep column sizing from Bootstrap (col-xs-4 col-sm-2) */
    /* Remove direct flex rules from here, apply to wrapper */
     padding: 5px; /* Minimal padding on the column itself */
     margin-bottom: 10px; /* Add space below each logo column */
}

.hestia-partners .partner-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px; /* Ensure consistent height */
    padding: 15px; /* Padding inside the wrapper */
    background-color: #ffffff; /* Explicit white background */
    border: 1px solid #eee; /* Subtle border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* Refined shadow */
    border-radius: 4px; /* Slight rounding */
    transition: box-shadow 0.3s ease, transform 0.3s ease; /* Smooth transition */
    width: 100%; /* Ensure wrapper takes full column width */
    box-sizing: border-box; /* Include padding/border in width */
}

.hestia-partners .partner-logo-wrapper:hover {
     box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Enhance shadow on hover */
     transform: translateY(-2px); /* Slight lift effect */
}


.hestia-partners .partner-logo img {
    max-height: 80px; /* Increased size by ~33% */
    max-width: 100%;
    vertical-align: middle; /* Still useful */
    opacity: 0.8; /* Slight fade effect */
    transition: opacity 0.3s ease; /* Smooth transition */
}

.hestia-partners .partner-logo img:hover {
    opacity: 1; /* Full opacity on hover */
}

/* Solutions/Features Section Adjustments */
.hestia-features {
    background-color: #ffffff !important; /* Ensure white background */
    padding-top: 70px; /* Maintain padding */
    padding-bottom: 70px;
}

/* Increase icon size by 50% */
.hestia-features .feature-box .hestia-info .icon {
    font-size: 3.75em; /* 2.5em * 1.5 */
    width: 120px;      /* 80px * 1.5 */
    height: 120px;     /* 80px * 1.5 */
    line-height: 120px;/* Match new height */
    margin-left: auto; /* Center the icon container */
    margin-right: auto;/* Center the icon container */
    margin-bottom: 20px; /* Adjusted space below icon */
    /* Retain existing styles like background, border-radius, box-shadow */
}

/* Ensure the i tag itself inherits the font size if needed */
.hestia-features .feature-box .hestia-info .icon i {
    font-size: inherit; /* Explicitly inherit font size */
    vertical-align: middle;
}
