/*
 * Custom Footer Styles
 */

.custom-footer-wrapper {
    /* The background image is applied to the entire wrapper.
       A semi-transparent linear-gradient overlay is added to ensure text is readable.
    */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.footer-top-section {
    color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 5; /* Stacking order */
}

.footer-top-section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-top-section p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1rem;
    line-height: 1.6;
}

.footer-query-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.footer-query-form input[type="text"] {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ffffff;
    border-radius: 8px;
    background-color: #ffffff;
    color: #333;
    font-size: 1rem;
}

.footer-query-form input[type="text"]::placeholder {
    color: #888;
}

.footer-query-form button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    background-color: #333; /* A contrasting color for the button */
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.footer-query-form button:hover {
    background-color: #555;
}

.footer-main-section {
    /* This section remains semi-transparent, showing the wrapper's background image. */
    background-color: rgba(5, 115, 104, 0.85); 
    color: #ffffff;
    padding: 4rem 2rem;
    border-top-left-radius: 70px;
    border-top-right-radius: 70px;
    margin-top: -60px; /* This pulls the section up to create the overlap effect */
    position: relative;
    z-index: 10; /* Ensures this section is stacked on top */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column .logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
}

.footer-column h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-column .recognition-logo {
    max-width: 120px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.footer-socials a {
    color: #ffffff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: #dddddd;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #dddddd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-top-section h2 {
        font-size: 2.2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column .logo, .footer-column .recognition-logo {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-socials {
        justify-content: center;
    }
    .footer-query-form {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-query-form button {
        width: 100%;
    }
    .footer-main-section {
         border-top-left-radius: 40px;
         border-top-right-radius: 40px;
    }
}
