/* Common CSS for Navbar and Footer */

/* Footer */
footer {
    background-color: #2d3748;
    color: #A6CDC6;
    padding: 2rem 2rem 1rem; /* Fixed: Reduced padding */
    margin-top: 2rem;      /* Fixed: Reduced margin */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

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

.footer-section a:hover {
    color: #e17055;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navbar */
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #16404D;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box; 
}

.nav-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.nav-brand img {
    margin-right: 8px;
    height: 30px;
    width: auto;
}

.nav-links {
    display: flex;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    margin: 0 10px;
    font-size: 1rem;
}

.nav-links a:hover {
    background-color: #00796b;
    border-radius: 5px;
}

#menu-btn {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

@media screen and (max-width: 1200px) {
    #navbar {
        padding: 10px 15px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 10px;
        background-color: #16404dc9;
        position: absolute;
        top: 56px;
        left: 0; /* Changed from 101px to 0 for standard common usage */
        right: 0; /* ensure full width */
        z-index: 1;
        border-radius: 7px;
        box-sizing: border-box;
    }

    .nav-links a {
        font-size: 1rem;
        font-family: Arial, sans-serif;
        padding: 10px;
        margin: 0;
        line-height: 1.5;
        box-sizing: border-box;
        display: block;
        width: 100%;
    }

    #menu-btn {
        display: block;
    }

    .nav-links.active {
        display: flex;
    }
}
