/*

[Custom Stylesheet]

Project     : CloudSky - Multipurpose Domain, Hosting and WHMCS Template
Version     : 1.5
Author      : ThemeLooks
Author URI  : https://themeforest.net/user/themelooks

You can write your custom css styles in this file...

*/

 /* Footer Layout Fix - Complete Solution */
.footer--widgets .row.AdjustRow {
    display: block;
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
}

.footer--widgets .row.AdjustRow:after {
    content: "";
    display: table;
    clear: both;
}

/* Remove Bootstrap column padding that creates gaps */
.footer--widgets .row.AdjustRow > [class*="col-"] {
    float: left;
    clear: none;
    min-height: 1px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 30px !important; /* Reduced from pb--60 class */
}

/* Remove widget margin that adds space between columns */
.footer--widgets .row.AdjustRow .widget + .widget {
    margin-top: 0 !important;
}

/* Add some internal padding to content */
.footer--widgets .row.AdjustRow .widget {
    padding: 0 15px;
    box-sizing: border-box;
}

/* Ensure consistent height for footer columns */
.footer--widgets .row.AdjustRow > .col-md-3 {
    min-height: 200px;
}

/* Features Section Layout Fix - Override JavaScript Positioning */
.features--section .row.AdjustRow {
    display: block !important;
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
    position: static !important;
    height: auto !important;
}

.features--section .row.AdjustRow:after {
    content: "";
    display: table;
    clear: both;
}

/* Force static positioning to override JavaScript masonry */
.features--section .row.AdjustRow > .col-md-4 {
    position: static !important;
    float: left !important;
    clear: none !important;
    width: 33.333333% !important;
    left: auto !important;
    top: auto !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 20px !important;
    box-sizing: border-box !important;
    transform: none !important;
    -webkit-transform: none !important;
}

/* Reset nth-child clear for proper 3-column layout */
.features--section .row.AdjustRow > .col-md-4:nth-child(3n+1) {
    clear: left !important;
}

/* Disable any JavaScript animations on features */
.features--section .row.AdjustRow > .col-md-4[data-sr-id] {
    visibility: visible !important;
    opacity: 1 !important;
    transition: none !important;
    -webkit-transition: none !important;
}

/* Ensure feature items have proper spacing */
.features--section .feature--item {
    margin: 0;
    padding: 20px;
}

/* Mobile responsive adjustments */
@media (max-width: 991px) {
    .features--section .row.AdjustRow > .col-md-4 {
        width: 50%; /* 2 columns on tablets */
    }
    
    .features--section .row.AdjustRow > .col-md-4:nth-child(3n+1) {
        clear: none;
    }
    
    .features--section .row.AdjustRow > .col-md-4:nth-child(2n+1) {
        clear: left;
    }
}

@media (max-width: 767px) {
    .features--section .row.AdjustRow > .col-md-4 {
        width: 100%; /* 1 column on mobile */
        clear: both;
    }
    
    .features--section .row.AdjustRow > .col-md-4:nth-child(n) {
        clear: both;
    }
}
