body { margin: 0; font-family: Arial, sans-serif; line-height: 1.6; color: #333; direction: ltr; } a { text-decoration: none; color: inherit; } ul { list-style: none; padding: 0; margin: 0; } .site-header { background-color: #003366; color: #fff; padding: 15px 0; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); position: sticky; top: 0; z-index: 1000; } .header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; } .site-header .logo { font-size: 28px; font-weight: bold; color: #FFCC00; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s ease; } .site-header .logo:hover { color: #fff; } .main-nav .nav-list { display: flex; gap: 25px; } .main-nav .nav-list li a { color: #fff; font-size: 16px; font-weight: 500; padding: 5px 0; position: relative; transition: color 0.3s ease; } .main-nav .nav-list li a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background-color: #FFCC00; transition: width 0.3s ease; } .main-nav .nav-list li a:hover::after, .main-nav .nav-list li a.active::after { width: 100%; } .main-nav .nav-list li a:hover, .main-nav .nav-list li a.active { color: #FFCC00; } .hamburger-menu { display: none; /* Hidden by default on desktop */ cursor: pointer; flex-direction: column; justify-content: space-between; width: 30px; height: 20px; } .hamburger-menu .bar { width: 100%; height: 3px; background-color: #fff; transition: all 0.3s ease; } .header-buttons { display: flex; gap: 10px; align-items: center; } .header-buttons .btn { display: inline-block; padding: 8px 15px; border-radius: 5px; font-size: 15px; font-weight: bold; text-align: center; transition: background-color 0.3s ease, color 0.3s ease; } .btn-register { background-color: #FFCC00; color: #003366; } .btn-register:hover { background-color: #e6b800; color: #001a33; } .btn-login { background-color: transparent; color: #FFCC00; border: 2px solid #FFCC00; } .btn-login:hover { background-color: #FFCC00; color: #003366; } .site-footer { background-color: #003366; color: #fff; padding: 40px 0 20px; font-size: 14px; } .footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; padding: 0 20px; gap: 30px; } .footer-column { flex: 1; min-width: 250px; } .footer-column h3 { color: #FFCC00; font-size: 18px; margin-bottom: 20px; position: relative; } .footer-column h3::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 40px; height: 2px; background-color: #FFCC00; } .footer-column p, .footer-column li { margin-bottom: 10px; color: #ccc; } .footer-column a { color: #ccc; transition: color 0.3s ease; } .footer-column a:hover { color: #FFCC00; } .footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); } .footer-bottom .copyright { color: #ccc; margin: 0; } @media (max-width: 768px) { .header-container { display: grid; grid-template-columns: auto 1fr auto; /* Hamburger | Logo | Right-Spacer */ grid-template-rows: auto auto; /* Row 1: Hamburger/Logo, Row 2: Buttons */ grid-template-areas: "hamburger logo ." "buttons buttons buttons"; /* Buttons span full width */ align-items: center; padding: 0 15px; gap: 10px 0; /* Vertical gap between rows */ } .hamburger-menu { display: flex; /* Show on mobile */ grid-area: hamburger; justify-self: start; margin: 0; } .site-header .logo { grid-area: logo; justify-self: center; text-align: center; margin: 0; } .main-nav { display: none; /* Hidden by default on mobile */ position: absolute; top: 70px; /* Position below header */ left: 0; width: 100%; background-color: #003366; box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3); padding: 10px 0; z-index: 999; } .main-nav.active { display: flex; /* Show when active */ flex-direction: column; /* Stack its contents (the ul) */ align-items: center; /* Center the ul */ } .main-nav .nav-list { display: flex; /* Always flex inside the main-nav when it's active */ flex-direction: column; /* Stack list items */ width: 100%; /* Take full width of main-nav */ gap: 0; } .main-nav .nav-list li { text-align: center; margin: 10px 0; width: 100%; } .main-nav .nav-list li a { padding: 10px 20px; display: block; color: #fff; width: 100%; } .main-nav .nav-list li a::after { display: none; } .header-buttons { grid-area: buttons; display: flex; justify-content: center; gap: 15px; width: 100%; margin-top: 10px; } .hamburger-menu.open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); } .hamburger-menu.open .bar:nth-child(2) { opacity: 0; } .hamburger-menu.open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); } .footer-container { flex-direction: column; align-items: center; text-align: center; } .footer-column { min-width: unset; width: 100%; margin-bottom: 30px; } .footer-column h3::after { left: 50%; transform: translateX(-50%); } .footer-column:last-child { margin-bottom: 0; } }