* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Skip Link */

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background-color: #00BCD4;
    color: #ffffff;
    padding: 0.75em 1.5em;
    font-weight: 600;
    font-family: sans-serif;
    text-decoration: none;
    z-index: 9999;
    border-radius: 0 0 8px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Navigation */

header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}

.header-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
    width: 95%;
    padding: 1em 0;
}
.header-logo-text-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

/* .navbar {
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    padding: 1em 0;
    flex-direction: column;
    margin: 0;
    width: 100%;
    align-items: center;
} */

.navbar {
    display: flex;
    flex: 1; 
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    align-items: center;
}

.nav-logo {
    width: 5em;
    height: auto;
    overflow: hidden;
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-text-section {
    font-family: "Caveat", sans-serif;
    font-weight: 500;
    flex-direction: column;
    margin-left: 0.5em;
    margin-bottom: 0.5em;
}

.nav-site-title {
    font-size: 2rem;
    color: #00BCD4;
}

.nav-subtitle {
    font-size: 1.33rem;
    color: #FF9A66;
}

.nav-site-title, .nav-subtitle {
    margin: 0;
}

.hamburger {
    display: flex;
    cursor: pointer;
    margin-left: auto;
    margin-right: 2em;
    padding: 0.6em 0.5em;
    border-radius: 8px;
    color: #4B5563;
    border: none;
}



.hamburger:hover, .hamburger:focus {
    background-color: #E5E7EB;
}
 
.nav-list, 
.nav-text-section {
    display: flex;
}

.nav-list {
    display: none;
    list-style: none;
    flex-direction: column;
    margin: 0;
    gap: 0.5em;
    padding: 0;
    width:  100%;
}

.nav-list.open {
    display: flex;
}

.nav-list li a {
    display: block;
    text-align: left;
    text-decoration: none;
    width: 100%;
    font-family: sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.025em;
    padding: 0.85em 1.7em;
    text-transform: uppercase;
    color: #3f3f3f;
    position: relative;
    border-bottom: none;
    transition: color 0.2s;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-list li a:hover::after, .nav-list li a:focus::after {
    width: 80%;
}

.nav-list li a:focus-visible {
    outline: none;
}

.active-page {
    color: #185FA5 !important; 
}

.nav-list li:nth-child(1) a::after { background: #FF4D4D; box-shadow: 0 0 6px rgba(255,77,77,0.9),  0 0 12px rgba(255,77,77,0.4);  } 
.nav-list li:nth-child(2) a::after { background: #FF9A00; box-shadow: 0 0 6px rgba(255,154,0,0.9),  0 0 12px rgba(255,154,0,0.4);  }
.nav-list li:nth-child(3) a::after { background: #FFE600; box-shadow: 0 0 6px rgba(255,230,0,0.9),  0 0 12px rgba(255,230,0,0.4);  }
.nav-list li:nth-child(4) a::after { background: #4CAF50; box-shadow: 0 0 6px rgba(76,175,80,0.9),  0 0 12px rgba(76,175,80,0.4);  }
.nav-list li:nth-child(5) a::after { background: #2196F3; box-shadow: 0 0 6px rgba(33,150,243,0.9), 0 0 12px rgba(33,150,243,0.4); }
.nav-list li:nth-child(6) a::after { background: #673AB7; box-shadow: 0 0 6px rgba(103,58,183,0.9), 0 0 12px rgba(103,58,183,0.4); }
.nav-list li:nth-child(7) a::after { background: #FF1493; box-shadow: 0 0 6px rgba(255,20,147,0.9), 0 0 12px rgba(255,20,147,0.4); }

/* Footer */

footer {
    background-color: #ffffff;
    text-align: center;
    padding: 0.5em 0;
    font-family: sans-serif;
    color: #4B5563;
    font-size: 0.875rem;
    box-shadow: 0 -1px 0 0 rgba(0, 0, 0, 0.1);
    margin-top: 3em;
}

footer a {
    color: #185FA5;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 1279px) {
    .nav-list li a::after {
        width: 100%;
    }
}

@media (min-width: 1280px) {
    .hamburger {
        display: none;
    }


    .header-logo-text-btn {
        width: auto;
    }

    .navbar {
        width: auto;
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
        margin-left: auto; 
        flex: unset; 
        justify-content: flex-end;
    }

    .nav-list{
        display: flex !important;
        flex-direction: row;
        gap: 0.75em;
        margin-left: auto;
        padding: 0;
        margin-top: 0;
    }

    .nav-list li a {
        font-size: 0.85rem;
        padding: 0.75em 0.75em;
        width: auto;
    }

}