/* Footer Recent Posts Shortcode */
.ct-footer-recent-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ct-footer-post-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ct-footer-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ct-footer-post-item a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
}

.ct-footer-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
}

.ct-footer-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ct-footer-post-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ct-footer-post-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #ccc;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ct-footer-post-item a:hover .ct-footer-post-title {
    color: #F59B38;
}

.ct-footer-post-date {
    font-size: 11px;
    color: #999;
}

/* Footer Links Widget */
.ct-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ct-footer-links li {
    margin-bottom: 5px;
    line-height: 1.4;
}

.ct-footer-links li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.ct-footer-links li a:hover {
    color: #F59B38;
}

/* Force 4-column footer layout on all non-mobile screens.
   Uses block+float to match the theme's default grid system without flexbox issues
   like pseudo-elements acting as flex items. Allows 4 columns even on <992px zoom levels. */
@media (min-width: 768px) {
    #footer .footer-widget-area > .tie-row {
        display: block !important;
    }
    
    /* Clearfix for the floated row */
    #footer .footer-widget-area > .tie-row::after {
        content: "";
        display: table;
        clear: both;
    }

    /* Target the column divs directly as children of the row. */
    #footer .footer-widget-area > .tie-row > div {
        float: left !important;
        width: 25% !important;
        max-width: 25% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        clear: none !important;
    }
}

/* Mobile: center first footer column */
@media (max-width: 768px) {
    #footer .footer-widget-area .tie-col-md-3:first-child .widget {
        text-align: center;
    }
    #footer .footer-widget-area .tie-col-md-3:first-child .widget img {
        display: inline-block;
    }
}

/* Footer Categories Widget */
.ct-footer-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ct-footer-categories li a {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 3px;
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.ct-footer-categories li a:hover {
    background: #F59B38;
    border-color: #F59B38;
    color: #fff;
}
