nav ul { display: flex; list-style: none; margin-bottom: 0px !important; } nav ul li { margin-left: 20px; } nav a { color: #fff; text-decoration: none; font-weight: 500; transition: color 0.3s ease; } nav a:hover, nav a.active { color: #3498db; } #nav-toggle { display: none; } .nav-toggle-label { display: none; cursor: pointer; padding: 10px; } .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after { display: block; background: white; height: 2px; width: 25px; border-radius: 2px; position: relative; transition: all 0.3s ease-in-out; } .nav-toggle-label span::before, .nav-toggle-label span::after { content: ''; position: absolute; } .nav-toggle-label span::before { bottom: 8px; } .nav-toggle-label span::after { top: 8px; } @media screen and (max-width: 768px) { .nav-toggle-label { display: block; } nav { position: absolute; top: 100%; left: 0; background: #2c3e50; width: 100%; height: 0; overflow: hidden; transition: height 0.3s ease-in-out; } nav ul { flex-direction: column; padding: 20px 0; text-align: center; } nav ul li { margin: 15px 0; margin-left: 0; } #nav-toggle:checked~nav { height: 250px; } #nav-toggle:checked+.nav-toggle-label span { background: transparent; } #nav-toggle:checked+.nav-toggle-label span::before { transform: rotate(45deg); top: 0; } #nav-toggle:checked+.nav-toggle-label span::after { transform: rotate(-45deg); top: 0; } } .container { width: 90%; max-width: 1100px; margin: 0 auto; } header { background: #2c3e50; color: #fff; padding: 1rem 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } header .container { display: flex; justify-content: space-between; align-items: center; } .logo { font-size: 1.5rem; font-weight: bold; text-decoration: none; color: #fff; } .logo span { color: #3498db; }