/* --- Common Header --- */
.main-header {
    background-color: #ffffff;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
}

.main-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.main-header .logo-img {
    height: 40px;
    width: 40px;
    margin-right: 10px;
}

.main-header .logo-text {
    font-size: 1.5rem;
    font-weight: 600;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav .nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.main-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #6e8efb;
    transition: width 0.3s ease;
}

.main-nav .nav-links a:hover::after {
    width: 100%;
}

.header-cta {
    background-color: #6e8efb;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.header-cta:hover {
    background-color: #5a7aeb;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Responsive (Mobile) Header */
@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .main-nav.active {
        max-height: 500px;
        /* Adjust as needed */
        padding: 1rem 0;
    }

    .main-nav .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        gap: 1rem;
    }

    .main-nav .nav-links li {
        width: 100%;
        text-align: center;
    }

    .main-nav .header-cta {
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .hamburger-menu {
        display: flex;
    }
}