/* =========================
   GLOBAL
========================= */

body {
  padding-top: 54px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   NAVBAR
========================= */

nav {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;

  background: rgba(91, 161, 51, 0.88);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-bottom: 1px solid rgba(255,255,255,0.28);

  box-shadow: 0 6px 18px rgba(0,0,0,0.12);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 8px 20px;

  z-index: 99999;
}

/* left side */
.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* nav menu */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

nav ul li {
  list-style: none;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;

  display: flex;
  align-items: center;
  gap: 10px;
}

nav ul li a:hover {
  color: #ff7f00;
}

/* hamburger */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.7rem;
  color: white;

  width: 42px;
  height: 42px;

  border-radius: 14px;

  background: rgba(255,255,255,0.12);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,0.18);

  align-items: center;
  justify-content: center;

  transition: 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255,255,255,0.18);
}

/* =========================
   SEARCH
========================= */

.nav-right {
  display: flex;
  align-items: center;
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-search input {
  width: 220px;

  padding: 8px 12px;

  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.18);

  background: rgba(255,255,255,0.18);

  color: white;

  outline: none;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition: 0.2s ease;
}

.nav-search input:focus {
  background: rgba(255,255,255,0.24);
}

.nav-search input::placeholder {
  color: rgba(255,255,255,0.85);
}

.nav-search button {
  border: none;

  padding: 8px 12px;

  border-radius: 12px;

  background: rgba(255,127,0,0.88);

  color: white;

  cursor: pointer;

  transition: 0.2s ease;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-search button:hover {
  transform: translateY(-1px);
  background: rgba(255,127,0,1);
}

/* =========================
   SEARCH RESULTS
========================= */

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 280px;

  background: rgba(255, 255, 255, 0.85);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,0.55);

  border-radius: 14px;

  box-shadow: 0 16px 40px rgba(0,0,0,0.18);

  z-index: 9999;

  overflow: hidden;
  display: none;
}

.search-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 14px;
  text-decoration: none;
  color: #222;
  display: block;
}

.search-item:hover {
  background: rgba(255,255,255,0.6);
}

.search-item:last-child {
  border-bottom: none;
}

.search-item small {
  display: block;
  margin-top: 3px;
  color: #777;
  font-size: 12px;
}

/* =========================
   HERO
========================= */

.hero {
  margin: 0;
  padding: 0;
}

.hero img {
  width: 100%;
  display: block;
  height: auto;
}

/* =========================
   HERO TEXT BOX
========================= */

.heros {
  background: #fff;

  padding: 40px 20px;

  margin: 20px auto;

  max-width: 1100px;

  border-radius: 22px;

  box-shadow: 0 3px 10px rgba(0,0,0,0.08);

  text-align: center;
}

.heros h1 {
  color: #2271B3;
  font-size: 2em;
  margin-bottom: 10px;
}

.heros-subtext {
  color: #555;
  font-size: 1.05em;
  line-height: 1.6;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  /* FIXED: prevents hero being hidden under navbar */
  body {
    padding-top: 54px;
  }

  nav {
    padding: 6px 9px;
  }

  .menu-toggle {
    display: flex;
  }

  /* MOBILE DROPDOWN (GLASS STYLE) */
  nav ul {

    flex-direction: column;
    align-items: stretch;

    display: none;

    position: absolute;

    top: 100%;
    left: 0;

    min-width: 190px;
    width: max-content;

    background: rgba(255, 255, 255, 0.88);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(255,255,255,0.6);

    border-radius: 0 0 18px 18px;

    box-shadow: 0 18px 45px rgba(0,0,0,0.22);

    z-index: 999;

    overflow: hidden;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  nav ul li a {
    display: block;
    padding: 12px 16px;
    color: #222;
    font-weight: 600;
  }

  nav ul li a:hover {
    background: rgba(130, 190, 33, 0.15);
    color: #2271B3;
  }

  .nav-search input {
    width: 140px;
  }

  .search-results {
    width: 100%;
    left: 0;
  }

  .heros {
    margin: 15px 10px;
    padding: 25px 15px;
  }

  .heros h1 {
    font-size: 1.5em;
  }

  .heros-subtext {
    font-size: 0.95em;
  }
}

/* =========================
   SMALL PHONES
========================= */

@media (max-width: 480px) {

  .nav-search input {
    width: 120px;
  }

  .heros h1 {
    font-size: 1.3em;
  }

  .heros-subtext {
    font-size: 0.9em;
  }
}
