@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* === NAVBAR BASE === */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* === WRAPPER === */
.wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 30px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* === LOGO === */
.logo a {
  color: #222;
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
}

/* === NAV LINKS === */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  position: relative;
  color: #171616;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0%;
  height: 2px;
  background: #3A3B3C; /* underline color */
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #3A3B3C;
}

.nav-links a:hover::after {
  width: 100%;
}


/* === NAVBAR INITIAL STYLE (with margins) === */
#navbar {
  width: calc(100% - 80px);
  margin: 40px 40px 0;
  background: #f3f3f3;
  border-radius: 12px;
  padding: 10px 0;
  box-shadow: none;
}

/* === ON SCROLL === */
#navbar.scrolled {
  width: 100%;
  margin: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* === MEGA MENU === */
.mega-box {
  position: absolute;
  left: 0;
  width: 100%;
  top: 85px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
}

.has-mega.active .mega-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-box .content {
  display: flex;
  justify-content: space-between;
  background: #242526;
  padding: 25px 40px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.mega-box .row {
  flex: 1;
  padding: 0 20px;
}

.mega-box img {
  width: 100%;
  border-radius: 10px;
}

.mega-box header {
  color: #f9b233;
  font-size: 18px;
  margin-bottom: 10px;
}

.mega-links {
  list-style: none;
}

.mega-links li a {
  display: block;
  color: #d9d9d9;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.3s;
}

.mega-links li a:hover {
  color: #fff;
}

/* === BUTTONS === */
.btn {
  display: none;
  font-size: 22px;
  color: #000;
  cursor: pointer;
}

/* === MOBILE MENU === */
@media (max-width: 970px) {
  .btn {
    display: flex;
  }
#navbar {
  width: calc(100% );
  margin: 0px 0px 20px 0px;
  background: #e68303;
  border-radius: 0px;
  padding: 0px 0;
}
  

.nav-links {
    position: fixed;
    background: #353738;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;  /* Align items to the left */
    padding-top: 10px;
    padding-left: 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    transition: 0.3s;
}

.nav-links a {
    color: #fff;  
    font-weight: 800;
    padding-left: 20px; 
}


  #menu-btn:checked ~ .nav-links {
    left: 0;
  }

  .nav-links .mega-box {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
  }

  .mega-box .content {
    flex-direction: column;
    background: transparent;
    padding: 0;
  }



  .mega-box img {
    display: none;
  }
}

/* Hide radio inputs */
nav input {
  display: none;
}

