/* Footer Styling */
.footer {
    background-color: #eeeeee;
    color: #333;
    padding: 50px 0;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer .row {
    display: flex;
    flex-wrap: wrap; /* Ensures wrapping for better responsiveness */
    gap: 260px;
}

.footer h4 {
    font-size: 25px;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #007bff;
    position: relative;
    font-weight: bold;
}

.footer h4:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #007bff;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #555;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: #007bff;
}

.footer .subscribe {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    text-align: center; /* Center text */
    margin-top: 20px;
}

.footer .subscribe__input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
}

.footer .subscribe__btn {
    background-color: #007bff;
    color: #fff;
    padding: 12px 18px;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer .subscribe__btn:hover {
    background-color: #0056b3;
}

.footer .social_profile ul {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 20px;
}

.footer .social_profile ul li {
    list-style: none;
}

.footer .social_profile ul li a {
    color: #555;
    font-size: 20px;
    transition: color 0.3s ease;
}

.footer .social_profile ul li a:hover {
    color: #007bff;
}

.footer .copyright {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #666;
}

.footer .copyright a {
    color: #007bff;
    text-decoration: none;
}

.footer .copyright a:hover {
    color: #0056b3;
}

/* Responsive Design */
@media (max-width: 992px) { /* Tablet View */
    .footer .row {
        flex-wrap: wrap;
        gap: 35px;
    }

    .footer .col-lg-4,
    .footer .col-md-4 {
        max-width: 50%;
        flex: 0 0 50%;
    }

    .footer .subscribe {
        max-width: 70%; /* Centered and reduced width */
        margin: 0 auto; /* Center align */
        flex-direction: column;
    }

    .footer h4 {
        font-size: 22px;
    }

    .footer h4:after {
        width: 40px; /* Slightly smaller for tablet */
        height: 2px; /* Thinner line */
        margin-top: 6px;
    }
}

@media (max-width: 768px) { /* Mobile View */
    .footer .col-lg-4,
    .footer .col-md-4,
    .footer .col-sm-4,
    .footer .col-xs-12 {
        max-width: 100%;
        flex: 0 0 100%;
        text-align: center;
    }

    .footer h4 {
        font-size: 20px;
    }

    .footer h4:after {
        width: 30px; /* Smaller line for mobile */
        height: 2px;
        margin-top: 5px;
        margin-left: auto;
        margin-right: auto; /* Centered line for mobile view */
    }

    .footer .subscribe {
        max-width: 80%; /* Full width for small screens */
    }

    .footer .social_profile ul {
        justify-content: center;
    }
}

@media (max-width: 576px) { /* Smaller Mobile View */
    .footer h4 {
        font-size: 18px;
    }

    .footer .subscribe__input {
        font-size: 13px;
        padding: 10px;
    }

    .footer .subscribe__btn {
        font-size: 14px;
        padding: 10px;
    }

    .footer ul li a {
        font-size: 13px;
    }

    .footer .social_profile ul li a {
        font-size: 18px;
    }

    .footer h4:after {
        width: 25px; /* Adjusted line width for small screens */
    }
}
