/* General Reset & Base Styles */ * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; background-color: #f4f4f4; padding-top: 65px; /* Added: Space for fixed header */ } .container { max-width: 1200px; margin: 0 auto; padding: 0 15px; } a { text-decoration: none; color: inherit; } ul { list-style: none; } /* Header Styles */ .site-header { background-color: #0A2E36; color: #fff; padding: 15px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.2); position: fixed; /* Added: Make it sticky */ top: 0; /* Added: Stick to the top */ width: 100%; /* Added: Full width */ z-index: 1000; /* Added: Ensure it's above other content */ } .site-header .container { display: flex; justify-content: space-between; align-items: center; } .site-header .logo { font-size: 2.2em; font-weight: bold; color: #E0B400; text-transform: uppercase; letter-spacing: 1px; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); transition: color 0.3s ease; } .site-header .logo:hover { color: #fff; } .main-nav ul { display: flex; gap: 25px; } .main-nav a { color: #fff; font-weight: 500; padding: 5px 0; position: relative; transition: color 0.3s ease; } .main-nav a:hover, .main-nav a.active { color: #E0B400; } .main-nav a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background-color: #E0B400; transition: width 0.3s ease; } .main-nav a:hover::after, .main-nav a.active::after { width: 100%; } .hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 10px; position: relative; z-index: 1001; } .hamburger-menu span { display: block; width: 25px; height: 3px; background-color: #fff; margin-bottom: 5px; transition: all 0.3s ease; } .hamburger-menu span:last-child { margin-bottom: 0; } .hamburger-menu.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); } .hamburger-menu.is-active span:nth-child(2) { opacity: 0; } .hamburger-menu.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); } /* Added: Header Action Buttons */ .header-actions { display: flex; gap: 10px; margin-left: 20px; /* Space from nav on desktop */ } .btn { display: inline-block; padding: 8px 15px; border-radius: 5px; font-weight: bold; text-transform: uppercase; font-size: 0.9em; transition: background-color 0.3s ease, color 0.3s ease; white-space: nowrap; /* Prevent buttons from wrapping text */ } .btn-register { background-color: #E0B400; /* Yellow */ color: #0A2E36; /* Dark blue */ border: 1px solid #E0B400; } .btn-register:hover { background-color: #FFD700; /* Lighter yellow */ color: #0A2E36; } .btn-login { background-color: transparent; color: #E0B400; /* Yellow */ border: 1px solid #E0B400; } .btn-login:hover { background-color: #E0B400; color: #0A2E36; } /* Footer Styles */ .site-footer { background-color: #0A2E36; color: #eee; padding: 40px 0 20px; font-size: 0.9em; } .site-footer a { color: #eee; transition: color 0.3s ease; } .site-footer a:hover { color: #E0B400; } .footer-columns { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; margin-bottom: 30px; } .footer-col { flex: 1; min-width: 250px; } .footer-col h3 { color: #E0B400; font-size: 1.2em; margin-bottom: 15px; } .footer-col p { margin-bottom: 10px; } .footer-nav ul li { margin-bottom: 8px; } .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; } .copyright { color: #aaa; } /* Responsive Styles */ @media (max-width: 768px) { .site-header .container { /* Changed to grid for better control over mobile layout */ display: grid; grid-template-columns: auto 1fr auto; /* Hamburger | Logo (centered) | Empty slot */ grid-template-rows: auto auto; /* Top row (hamburger, logo), Bottom row (buttons) */ gap: 0 10px; /* No row gap, 10px column gap */ align-items: center; padding: 0 15px; /* Ensure padding is applied */ } .site-header .logo { grid-column: 2 / 3; /* Center column */ grid-row: 1 / 2; /* Top row */ text-align: center; /* Center the logo text */ font-size: 2em; /* Slightly smaller logo on mobile */ margin: 0; /* Reset flex-grow and auto margins from desktop */ } .hamburger-menu { display: block; /* Already there */ grid-column: 1 / 2; /* Left column */ grid-row: 1 / 2; /* Top row */ margin: 0; /* Reset any margin */ } .header-actions { grid-column: 1 / -1; /* Span all columns */ grid-row: 2 / 3; /* Second row */ display: flex; /* Keep buttons flexible */ justify-content: center; /* Center buttons */ gap: 10px; margin-top: 15px; /* Space from the logo row */ margin-left: 0; /* Reset desktop margin */ padding-bottom: 10px; /* Add some padding below buttons */ } .main-nav { position: fixed; top: 0; left: -100%; width: 70%; height: 100%; background-color: #0A2E36; padding-top: 115px; /* Adjusted: Account for taller mobile header */ transition: left 0.3s ease-in-out; z-index: 1000; box-shadow: 2px 0 5px rgba(0,0,0,0.5); overflow-y: auto; } .main-nav.nav-open { left: 0; } .main-nav ul { flex-direction: column; align-items: flex-start; padding: 20px; } .main-nav ul li { margin-bottom: 15px; width: 100%; } .main-nav a { display: block; padding: 10px 0; width: 100%; font-size: 1.1em; } .main-nav a::after { bottom: 0; } .footer-columns { flex-direction: column; align-items: center; text-align: center; } .footer-col { min-width: unset; width: 100%; } .footer-col h3 { margin-top: 20px; } .footer-col:first-child h3 { margin-top: 0; } }