/* Footer styling */
:root {
    --primary-color: #1E293B;
    --secondary-color: #0F172A;
    --accent-color: #3B82F6;
    --text-color: #1E293B;
    --light-text: #64748B;
    --light-bg: #F8FAFC;
    --border-color: #E2E8F0;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* ======= Footer ======= */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 80px 0 40px;
}

/* Footer Content Layout */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
    align-items: start;
}

/* General logo styles */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Navbar logo styles */
.navbar .logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    margin-top: -10px;
    margin-bottom: -10px;
}

/* For mobile nav logo */
.mobile-nav-header .logo {
    display: flex;
    align-items: center;
}

.mobile-nav-header .logo img {
    max-height: 30px;
    width: auto;
    margin-right: 10px;
}

/* Brand Section */
.footer-brand {
    padding-right: 20px;
}

.footer-brand .logo {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
}

.footer-brand .logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-description {
    margin-top: 20px;
    clear: both;
}

.footer-brand .footer-description p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    line-height: 1.6;
    margin-top: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Footer Links Section */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    font-weight: 600;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-section ul {
    padding: 0;
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 15px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 2px 0;
}

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

/* Newsletter Section */
.footer-newsletter {
    padding-left: 20px;
}

.footer-newsletter h3 {
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    font-weight: 600;
}

.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form input {
    padding: 12px 15px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    width: 100%;
}

.newsletter-form button {
    padding: 12px 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.newsletter-form button:hover {
    background-color: #2563eb;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ======= Media Queries for Footer ======= */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        text-align: center;
        padding-right: 0;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-newsletter {
        grid-column: auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}