* {
  box-sizing: border-box;
}

/* ================= TOPBAR ================= */
.topbar {
  width: 100%;
  height: 85px;
  background-color: #cdcdcd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 80px;
}

/* ================= NAVBAR ================= */
.navbar {
  width: 100%;
  min-height: 67px;
  background-color: #ffffff;
  border: 0.5px solid #9b9b9b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 80px;
  position: relative;
}

/* Hamburger hidden on desktop */
.navbar .menu-hamburger {
  visibility: hidden;
}

/* Main menu */
.cta-links {
  display: flex;
  gap: 16px;
  color: #000000;
  transition: max-height 0.4s ease;
}

/* Category list */
.category-links {
  display: flex;
  gap: 16px;
}

/* ================= LATEST UPDATES ================= */
.latest-updates > div::-webkit-scrollbar {
  display: none;
}

/* ================= FOOTER ================= */
.footer {
  padding: 20px 80px;
}

.footer .section {
  padding: 20px;
  border-top: 1px solid black;
  width: 300px;
}

/* ================= TABLET ================= */
@media (max-width: 920px) {
  .navbar {
    padding: 4px 20px;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  /* Topbar */
  .topbar .space-filler {
    display: none;
  }

  /* Navbar layout */
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 20px;
  }

  /* Hamburger visible */
  .navbar .menu-hamburger {
    visibility: visible;
    cursor: pointer;
    margin-bottom: 8px;
  }

  /* MENU CLOSED BY DEFAULT */
  .navbar .cta-links {
    width: 100%;
    max-height: 0;              /* 🔑 CLOSED */
    overflow: hidden;
    flex-direction: column;
    background: #ffffff;        /* ✅ clean background */
    padding: 0 16px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    gap: 0;
  }

  /* Menu items */
  .cta-links > div {
    padding: 12px 8px;
    font-size: 16px;
    border-bottom: 1px solid #eeeeee;
  }

  .cta-links > div:last-child {
    border-bottom: none;
  }

  /* Category items */
  .category-links {
    flex-direction: column;
    gap: 0;
  }

  .category-links > div {
    padding: 12px 8px;
    font-size: 16px;
    border-bottom: 1px solid #eeeeee;
  }

  .category-links > div:last-child {
    border-bottom: none;
  }

  /* Hide date on mobile */
  .navbar .text-1-2-7 {
    display: none;
  }

  /* Footer */
  .footer .section {
    width: 100%;
    padding: 10px 0;
  }
}

/* ================= SMALL MOBILE ================= */
@media (max-width: 524px) {
  .topbar {
    padding: 4px 20px;
  }

  .navbar {
    padding: 8px 20px;
  }
}
