/* ─── Reset ─────────────────────────────────────────── */
a {
    text-decoration: none;
}

/* ─── Nav shell ──────────────────────────────────────── */
nav {
    position: fixed;
    z-index: 1000;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.admin-nav {
    background-color: rgba(0, 0, 0, 1);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
}

nav a {
    color: white;
}

/* ─── Top bar ────────────────────────────────────────── */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

.top-nav-title img {
    max-height: 50px;
    max-width: 171px;
    display: block;
}

.top-nav-title a,
.top-nav-links a {
    font-weight: normal;
    font-size: 15px;
}

/* ─── Desktop links ──────────────────────────────────── */
.top-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 18px;
}

.top-nav-links-admin {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 18px;
}

.top-nav-links a {
    margin: 0 24px;
}

.top-nav-links a:hover {
    color: rgb(0, 123, 255);
}

/* ─── CTA button ─────────────────────────────────────── */
nav button {
    font-weight: bold;
    color: white;
    background: rgb(0, 123, 255);
    border: none;
    border-radius: 35px;
    font-size: 15px;
    padding: 0.6rem 1.6rem;
    margin-left: 24px;
    cursor: pointer;
    box-shadow: rgba(0, 102, 255, 0.25) 0px 14px 30px;
    transition: background-color 0.2s ease;
}

nav button:hover {
    background-color: #0052CC;
}

/* ─── Hamburger icon ─────────────────────────────────── */
.mobile-top-nav-links {
    cursor: pointer;
    padding: 4px;
}

.bar1, .bar2, .bar3 {
    width: 28px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s ease;
}

.change .bar1 { transform: translate(0, 8px) rotate(-45deg); }
.change .bar2 { opacity: 0; }
.change .bar3 { transform: translate(0, -8px) rotate(45deg); }

/* ─── Mobile expanded menu ───────────────────────────── */
#expandedNavLinks {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.expanded-nav-links {
    width: 100%;
    padding: 0.5rem 0 1.5rem;
    text-align: center; /* was justify-items: center */

}

.expanded-nav-link {
    text-align: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.expanded-nav-link:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.expanded-nav-links a {
    font-size: 18px;
    font-weight: normal;
    letter-spacing: 0.02em;
}

.expanded-nav-links a:hover {
    color: rgb(0, 123, 255);
}

/* Contact Us in mobile menu — matches the desktop button style */
.expanded-nav-link:last-child a {
    display: inline-block;
    background: rgb(0, 123, 255);
    color: white;
    border-radius: 35px;
    padding: 0.6rem 1.8rem;
    font-size: 16px;
    margin-top: 0.5rem;
}

.expanded-nav-link:last-child a:hover {
    background-color: #0052CC;
}

/* ─── Responsive breakpoints ─────────────────────────── */
@media (max-width: 768px) {
    nav { background-color: rgba(0, 0, 0, 0.92); }
    .top-nav-links { display: none; }
    .top-nav-title { width: 160px; }
    .top-nav { padding: 1rem 1.5rem; }
    .footer-element { display: block; }
    .footer-logo { justify-items: center; }
    .footer-logo a { display: block; }
    .footer { padding: 8% 4%; }
    .sidebar-admin { display: none; }
    .admin .container { 
        width: 100%;
        margin-left: 0;
    }
}

@media (min-width: 769px) {
    .mobile-top-nav-links { display: none; }
    .footer-element { display: flex; justify-content: space-between; }
    .footer { padding: 2% 8%; }
    .admin .container {
        margin-left: 15%;
        width: 85%;
    }
    .expanded-nav-links {
        display: none;
    }
}

/* ─── Footer ─────────────────────────────────────────── */
.footer {
    background-color: black;
    color: white;
}

.footer-element {
    margin: 2% 0;
    font-weight: bold;
    align-items: center;
    font-size: 1.8rem;
}

.footer-links {
    display: flex;
    justify-content: center;
}

.footer-links-col {
    margin: 0 10%;
}

.footer-links-col a {
    color: white;
    font-weight: lighter;
}

.sidebar-admin {
    align-items: center;
    padding-top: 150px;
    position: fixed;
    z-index: -1;
    width: 15%;
    height: 100%;
    background-color: #0C1E39;
}

.sidebar-link {
    margin-bottom: 50px;
    padding-left: 10%;
    padding-right: 10%;
    text-align: center;
    width: 100%;
    font-weight: bold;
    font-size: 20px;
    color: white
}

.sidebar-link a {
    color: rgb(193, 238, 255);
}