/* Footer Mobile 2-Column Layout */

/* Mobile Layout (2 columns) */
@media (max-width: 767.98px) {
    .main-footer {
        padding: 2rem 0 !important;
    }

    .main-footer .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Mobile: Company info takes full width first */
    .footer-left-col {
        order: 1;
        margin-bottom: 2rem !important;
    }

    /* Mobile: Right column content in 2 sub-columns */
    .footer-right-col {
        order: 2;
    }

    .footer-right-col .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .footer-right-col .row > div {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Quick Links & Services in 2 columns on mobile */
    .footer-right-col .col-6 {
        margin-bottom: 1.5rem;
    }

    /* Newsletter section full width on mobile */
    .footer-right-col .col-12 {
        margin-top: 1rem;
    }

    /* Compact widget titles on mobile */
    .footer-widget h5.widget-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        font-weight: 600;
    }

    .footer-widget h6.widget-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    /* Compact links */
    .footer-widget ul li {
        margin-bottom: 0.25rem;
    }

    .footer-widget ul li a {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Newsletter form adjustments */
    .footer-newsletter-desc {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }

    .newsletter-form .input-group {
        flex-direction: column;
    }

    .newsletter-form .form-control {
        border-radius: 0.375rem;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .newsletter-form .btn {
        border-radius: 0.375rem;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    /* Social links compact */
    .social-links {
        gap: 1rem;
    }

    .social-links a {
        font-size: 1.1rem !important;
    }

    /* Visitor counter compact */
    .visitor-counter-compact {
        font-size: 0.8rem;
    }

    .visitor-counter-compact i {
        font-size: 0.9rem;
    }

    /* Company info section adjustments */
    .footer-left-col .footer-logo {
        width: 80px !important;
    }

    .footer-left-col p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .footer-left-col p strong {
        font-size: 0.85rem;
    }
}

/* Tablet Layout */
@media (min-width: 768px) and (max-width: 991.98px) {
    .footer-right-col .col-md-6:first-child,
    .footer-right-col .col-md-6:nth-child(2) {
        margin-bottom: 1.5rem;
    }
}

/* Desktop Layout Improvements */
@media (min-width: 992px) {
    .main-footer {
        padding: 3rem 0;
    }

    .footer-widget h5.widget-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        font-weight: 600;
        color: #fff;
    }

    .footer-widget h6.widget-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        color: #fff;
    }

    .footer-widget ul li a {
        color: #d1d5db;
        transition: color 0.3s ease;
    }

    .footer-widget ul li a:hover {
        color: #fff;
        transform: translateX(3px);
    }

    .social-links a {
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .social-links a:hover {
        transform: scale(1.1);
        color: #007bff !important;
    }
}

/* General improvements */
.main-footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    border-top: 3px solid #007bff;
}

.footer-widget ul li {
    padding: 0.1rem 0;
}

.widget-title {
    position: relative;
    padding-bottom: 0.5rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #007bff;
}

/* Newsletter form styling */
.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    color: #fff;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Copyright section */
.main-footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

.main-footer .text-center p {
    font-size: 0.9rem;
    color: #9ca3af;
}

.main-footer .text-center a {
    color: #007bff;
    font-weight: 500;
}

.main-footer .text-center a:hover {
    color: #0056b3;
}
