/* Footer Component CSS for Caretrip */
/* Specific styles for footer component */

.footer {
    background-color: #000000d9;
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Exactly 3 equal columns */
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-heading {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Center only the Follow Us On section */
.footer-section:nth-child(2) .footer-heading,
.footer-section:nth-child(2) .social-links {
    text-align: center;
}

/* Keep Quick Links left-aligned */
.footer-section:nth-child(3) .footer-heading {
    text-align: left;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

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

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.footer-logo-text i {
    margin-right: 10px;
    color: #3498db;
}

.company-description {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 12px;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: #000000;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
}

.social-link i {
    font-size: 18px;
}

/* Horizontal Quick Links */
.footer-links-horizontal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 5px;
    column-gap: 10px;
}

.footer-links-horizontal a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links-horizontal a:hover {
    color: #3498db;
}

.footer-links-horizontal .separator {
    color: #a0a0a0;
    font-weight: 300;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 20px;
    text-align: center;
}

.copyright {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin: 0;
}

/* Newsletter Section in Footer */
.footer-newsletter {
    border-top: 1px solid #333333;
    padding-top: 20px;
    margin-top: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links-horizontal {
        justify-content: center;
        flex-direction: row; /* Keep horizontal on mobile */
        row-gap: 5px;
        column-gap: 10px;
        flex-wrap: wrap;
    }
    
    .footer-links-horizontal .separator {
        display: inline; /* Show separators on mobile */
    }
    
    /* Center Quick Links heading on mobile only */
    .footer-section:nth-child(3) .footer-heading {
        text-align: center;
    }
}
