.header {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    position: sticky;
    background-color: white;
    top: 0;
    z-index: 50;
}

.top-bar {
    background-color: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #4b5563;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info, .social-links, .info-item {
    display:flex;
    align-items: center;
    gap: 1.5rem;
}

.info-item i {
    color: #0d76b7;
}

.social-links a:hover {
    color: #0d76b7;
}

/* To hide the mail on the top bar on mobile */
.info-item.hidden-sm {
    display: none;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 45px;
    width: auto;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: #4b5563;
    font-weight: 600;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.nav-links a:hover {
    color: #0d76b7;
    border-bottom: 2px solid #0d76b7;
}

.contact-button, .homepage-btn {
    display: inline-block;
    background-color: #8c1f81;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: background-color 0.3s ease;
}

.contact-button:hover, .homepage-btn:hover {
    background-color: #701967;
}

.contact-button {
    display: none;
}

.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1rem;
    border-top: 1px solid #e5e7eb;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding 0.4s ease-in-out;
}
/* this is for the menu to appear (view explanation in js part) */
.mobile-menu.active {
    max-height: 20rem;
    opacity: 1;
    padding: 0.5rem 1rem 1rem 1rem;
}

.mobile-menu a {
    display: block;
    padding: 0.5rem 0;
    font-weight: 600;
    color: #4b5563;
}

.mobile-menu a:hover {
    color: #0d76b7;
}