/* =========================================
   UPDATED FOOTER STYLES (Fixed Tablet 1-Row)
   ========================================= */

.site-footer {
    background-color: var(--footer-bg);
    color: #b0b0b0;
    padding: 0;
    margin-top: 50px;
    width: 100%;
    font-size: 15px;
}

.footer-main {
    padding: 60px 0;
}

/* DEFAULT GRID (Desktop): 4 Columns */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr; 
    gap: 30px;
    align-items: start;
}

/* Headings */
.footer-column .widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    text-transform: capitalize;
}

/* Section 1 Text */
.footer-text {
    font-size: 15px;
    line-height: 1.6;
    color: #b0b0b0;
}
.footer-text a:hover { color: var(--primary-color); }


/* Lists */
.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-list li {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 12px;
}

.footer-menu-list li:last-child {
    border-bottom: none;
}

.footer-menu-list li a {
    color: #b0b0b0;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: 0.3s;
    font-size: 15px;
}

.footer-menu-list li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Chevron Icon */
.footer-menu-list li a::before {
    content: "\f105"; /* FA Chevron Right */
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900;
    margin-right: 8px;
    font-size: 12px;
    color: #ffffff;
}

/* Social Icons */
.footer-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-socials .social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.footer-socials .social-icon:hover {
    transform: translateY(-3px);
}

/* Social Colors */
.footer-socials .social-icon.facebook { background-color: #3b5998; }
.footer-socials .social-icon.twitter, 
.footer-socials .social-icon.x-twitter { background-color: #000000; border: 1px solid #333; }
.footer-socials .social-icon.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.footer-socials .social-icon.linkedin { background-color: #0077b5; }
.footer-socials .social-icon.youtube { background-color: #ff0000; }
.footer-socials .social-icon.whatsapp { background-color: #25d366; }
.footer-socials .social-icon.telegram { background-color: #0088cc; }

/* Copyright */
.site-info {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 20px 0;
    font-size: 14px;
    background-color: #141a1f;
}

/* --- RESPONSIVE LOGIC --- */

/* TABLET (min-width: 768px AND max-width: 1024px) 
   FORCE 1 Row, 4 Columns. We use !important to overwrite any flexible stacking.
*/
@media screen and (max-width: 1024px) and (min-width: 768px) {
    .footer-grid {
        /* Force 4 columns on one row */
        grid-template-columns: 1.4fr 0.9fr 0.9fr 0.8fr !important;
        gap: 15px !important;
    }
    
    /* Make text smaller to fit in 1 row */
    .footer-column .widget-title {
        font-size: 17px; 
        margin-bottom: 15px;
    }

    .footer-text {
        font-size: 13px;
        line-height: 1.5;
    }

    .footer-menu-list li a {
        font-size: 13px;
    }
    
    .footer-socials .social-icon {
        width: 32px; 
        height: 32px;
        font-size: 14px;
    }
}

/* MOBILE LAYOUT (max-width 767px)
   This remains the stacked/custom layout you liked.
*/
@media screen and (max-width: 767px) {
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 2 Columns grid basis */
        gap: 20px;
        text-align: left;
    }

    /* Section 1 (About/Logo): Spans Full Width at Top */
    .footer-section-1 {
        grid-column: 1 / -1; 
        margin-bottom: 10px;
        text-align: center;
    }

    /* Section 2 (Categories): Left Column */
    .footer-section-2 {
        grid-column: 1;
    }

    /* Section 3 (Quick Links): Right Column */
    .footer-section-3 {
        grid-column: 2;
    }

    /* Section 4 (Follow Us): Spans Full Width at Bottom */
    .footer-section-4 {
        grid-column: 1 / -1;
        margin-top: 10px;
    }

    /* Center Social Icons on Mobile */
    .footer-section-4 .widget-title {
        text-align: center;
    }
    
    .footer-section-4 .footer-socials {
        justify-content: center;
    }
    
    .footer-column .widget-title {
        margin-bottom: 15px;
        font-size: 25px;
    }
}

/* =========================================
   END FOOTER STYLES
   ========================================= */