/* Modern Footer Styles */
.site-footer {
    background: linear-gradient(to bottom, #2c3e50, #1a1a1a);
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    border-top: 5px solid var(--primary-color);
    box-shadow: 0 -10px 20px rgba(0,0,0,0.1);
}

/* Create a subtle pattern overlay */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: 1;
}

.footer-top {
    padding: 70px 0 50px;
    position: relative;
    z-index: 2;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.footer-widget {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.footer-logo {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo img {
    max-height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.widget-title {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    border-radius: 3px;
}

.about-widget p {
    margin-bottom: 22px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

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

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: #e0e0e0;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 18px;
    font-weight: 400;
}

.footer-links a:before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a:hover:before {
    transform: translateX(3px);
}

/* Newsletter section styling */
.newsletter-widget {
    position: relative;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    border-left: 3px solid var(--primary-color);
}

.newsletter-widget h3.widget-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.newsletter-widget h3.widget-title:after {
    width: 80px;
}

.newsletter-widget p {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #e0e0e0;
}

.newsletter-form {
    margin-top: auto;
}

.newsletter-form .form-group {
    position: relative;
    margin-bottom: 20px;
}

.newsletter-form input {
    width: 100%;
    padding: 16px 22px;
    border: none;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    font-size: 1rem;
}

.newsletter-form input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    outline: none;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1), 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}

.newsletter-form input::placeholder {
    color: #bbb;
}

.newsletter-form button {
    width: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 16px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.newsletter-form button i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.newsletter-form button:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.newsletter-form button:hover i {
    transform: translateX(4px);
}

.privacy-note {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 15px;
    text-align: center;
}

.privacy-note a {
    color: #e0e0e0;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.privacy-note a:hover {
    color: white;
}

/* Footer bottom section */
.footer-bottom {
    background-color: rgba(0,0,0,0.3);
    padding: 25px 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    margin: 0;
    color: #bbb;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.footer-nav li {
    position: relative;
}

.footer-nav li:not(:last-child):after {
    content: '';
    position: absolute;
    right: -13px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background-color: rgba(255,255,255,0.2);
}

.footer-nav a {
    color: #bbb;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-nav a:hover {
    color: white;
}

/* Responsive Footer */
@media (max-width: 991px) {
    .footer-top {
        padding: 50px 0 30px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
    
    .newsletter-widget {
        height: auto;
    }
    
    /* Ensure columns flow correctly on tablet */
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .row {
        flex-direction: column;
    }
    
    /* Ensure newsletter comes first */
    .footer-widget.newsletter-widget {
        order: 1;
    }
    
    /* Categories second */
    .footer-widget.links-widget {
        order: 2;
    }
    
    /* About widget last */
    .footer-widget.about-widget {
        order: 3;
    }
}

@media (max-width: 768px) {
    .footer-widget {
        text-align: center;
        padding: 0 15px;
        margin-bottom: 40px;
    }
    
    .widget-title:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }
    
    .footer-links a {
        padding-left: 0;
    }
    
    .footer-links a:before {
        display: none;
    }
    
    .newsletter-widget {
        max-width: 450px;
        margin: 0 auto;
        padding: 25px 30px;
        border-left: none;
        border-top: 3px solid var(--primary-color);
    }
    
    .newsletter-form button {
        padding: 14px 25px;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .footer-nav li:not(:last-child):after {
        display: none;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .row {
        margin-right: 0;
        margin-left: 0;
    }
    
    .footer-widget {
        padding: 0 10px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form input {
        padding: 14px 20px;
    }
    
    .newsletter-form button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .footer-top {
        padding: 40px 0 20px;
    }
    
    .footer-bottom {
        padding: 20px 0;
    }
}