/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
}
 
/* RESET SAFE */
.p1-navbar * {
  box-sizing: border-box;
}

/* NAVBAR */
.p1-navbar {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.p1-nav-container {
  width: 800px;
  max-width: 95%;

  background: #000;
  border-radius: 50px;
  padding: 12px 25px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.p1-logo {
  height: 32px;
}

/* MENU */
.p1-nav-menu {
  display: flex;
  gap: 35px;
  list-style: none;
  margin-left: auto;
  margin-right: auto;
}

/* LINKS */
.p1-nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
    display: block;
  border-radius: 10px;
  transition: 0.2s ease;
}

.p1-nav-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ARROW */
.p1-nav-arrow {
  width: 6px;
  height: 6px;
  border-right: 2px solid #f7f7f7;
  border-bottom: 2px solid #f7f7f7;
  transform: rotate(45deg);
  transition: 0.25s;
}

.p1-nav-dropdown.active .p1-nav-arrow {
  transform: rotate(225deg);
}

/* RIGHT */
.p1-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p1-btn {
  background: #fff;
  color: #000;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
}

.p1-right-icon {
  height: 35px;
}

/* HAMBURGER */
.p1-nav-toggle-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.p1-nav-toggle-btn span {
  width: 22px;
  height: 2px;
  background: #fff;
  display: block;
}

/* DROPDOWN */
.p1-nav-item {
  position: relative;
}

.p1-nav-mega {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);

  width: 460px;
  background: #fff;
  border-radius: 16px;
  padding: 14px;

  opacity: 0;
  visibility: hidden;

  transition: all 0.25s ease;
  /* box-shadow: 0 20px 50px rgba(0,0,0,0.08); */
}

/* SHOW */
.p1-nav-dropdown:hover .p1-nav-mega,
.p1-nav-dropdown.active .p1-nav-mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* CARDS */
.p1-nav-mega-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p1-nav-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
}

.p1-nav-card img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.p1-nav-card h4 {
  font-size: 14px;
  color: #111;
}

.p1-nav-card p {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.p1-nav-card:hover {
  background: #f5f5f5;
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {

  .p1-nav-toggle-btn {
    display: flex;
  }

  .p1-nav-menu {
    position: absolute;
    top: 85px;
    left: 0;
    right: 0;
    margin: auto;

    width: calc(100% - 20px);
    max-width: 420px;

    background: #303030;
    border-radius: 18px;

    flex-direction: column;
    align-items: stretch;

    padding: 14px;
    gap: 10px;

    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);
    transition: 0.25s ease;
    z-index: 999;
    max-height: 80vh;  
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    
  }

  .p1-nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  /* FIX ALIGNMENT */
  .p1-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
  }

  .p1-nav-mega {
    position: relative;

    width: 100%;
    left: 0 !important;
    right: auto;
    transform: none !important;

    margin-top: 1px;
    padding: 12px;

    background: #ffffff;
    border-radius: 12px;

    display: none;
  }

  .p1-nav-dropdown.active .p1-nav-mega {
    display: block;
  }
   
    .p1-nav-dropdown {
    width: 100%;
  }
  .p1-nav-card {
    width: 100%;
    align-items: flex-start;
    padding: 12px;
  }

  .p1-nav-card p {
    font-size: 12px;
    line-height: 1.4;
  }
  .p1-nav-item {
    width: 100%;
  }
}