.tl-nav-wrap {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
}

.tl-navbar {
  max-width: 1320px;
  width: calc(100% - 48px);

  margin: 24px auto;

  background: #fff;

  border-radius: 4px;

  box-shadow: 0 12px 40px rgba(0,0,0,.12);

  padding: 0.5rem 0.6rem 0.5rem 1rem;
}

.tl-container {
  max-width: none;
  margin: auto 24px auto 24px;
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tl-logo img {
  height: 4.3rem;
  width: auto;
  display: block;
}

/* mega menu */
.tl-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 24px;
  position: relative;
  z-index: 1000;
}

/* mega menu main headers/buttons - "li" refers to individual, "a" refers to the interlink in the text */
.tl-menu > ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-menu > ul > li {
  position: relative;
  isolation: isolate;
}

.tl-menu > ul > li > a {
  display: inline-flex;
  align-items: center;
  padding: 12px 10px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #006480;
  position: relative;
  white-space: nowrap;
}

/* decorative line underneath mega menu main items - styled and positioned, not showing yet */
.tl-menu > ul > li > a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: currentColor;
  color: #006480;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

/* decorative line underneath mega menu main items - transforms to show on hover */
.tl-menu > ul > li:hover > a::after {
  transform: scaleX(1);
  color: #006480;
}

/* BEGIN mega menu dropdown logic and styling */

/* designates whether mega menu main item has a dropdown */
.tl-has-dropdown {
  display: flex;
  align-items: center;
}

/* styling for dropdown container - invisible until hovered */
.tl-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.15s ease, visibility 0.15s ease;

  z-index: 999;
}

/* mega menu dropdown elements only visible on hover */
.tl-has-dropdown:hover .tl-dropdown-panel {
  opacity: 1;
  visibility: visible;
}

/* styling for actual ul of dropdown items - li == individual dropdown item */
.tl-dropdown-menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;

  list-style: none;

  width: 100%;
  margin: 0;
  padding: 8px 0;

  background: #ffffff;
  border-radius: 1rem;

  gap: 0;
}

.tl-dropdown-menu li {
  position: relative;
  width: 100%;
}

/* first/last of type targets specific styling to make dropdown look cleaner without affecting whole list */
.tl-dropdown-menu li:first-of-type a {
  padding-top: 8px;
}

.tl-dropdown-menu li:last-of-type a {
  padding-bottom: 8px;
}

.tl-dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  text-decoration: none;

  width:100%;
  box-sizing:border-box;

  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;

  color: #006480;
  border-left: 2px solid transparent;

  transition: all 0.15s ease;
}

.tl-dropdown-menu li a:hover {
  background-color: #006480;
  color: #ffffff;
}

/* END dropdown styling section */

/* "Request Consultation" button in mega menu */
.tl-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;

  padding: 10px 16px;
  border-radius: 1rem;
  background: #006480;
  color: #ffffff;
  border: 1px solid #006480;
  font-weight: 600;
}

/* "i" here and elsewhere targets Font Awesome icon used */
.tl-cta-btn i {
  margin-left: 8px;
}

.content i {
  margin-left: 8px;
}

.category-list i {
  margin-right: 8px;
}

.post-meta i {
  margin-right: 8px;
}

.tl-cta-btn:hover {
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

/* toggle logic is for mobile use, since desktop hovering handles dropdown otherwise */
.tl-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.tl-menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #006480;
  margin: 5px 0;
}

.tl-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  border: none;
  padding: 0 0 0 6px;

  color: #006480;
  cursor: pointer;
}

/* hero banner for in-post (when single post is displayed) */
.post-hero {
  height: clamp(450px, 70vh, 700px);
  padding: 140px 0 24px 0;

  background-size: cover;
  background-position: 50% 10%;
  background-repeat: no-repeat;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

/* dark overlay for post hero bg img */
.post-hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.48);

  z-index: 1;
}

/* hero banner for in-front (when homepage is displayed) */
.post-hero.home-hero {
  background-image: url('../images/hero-home.webp');
  background-size: cover;
  background-position: 10% 35%;
  background-repeat: no-repeat;
}

/* organization of text content on hero banners */
.post-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;

  position: relative;
  z-index: 2;

  width: 100%;
}

.post-hero-content h1 {
  font-family: "main-bold", sans-serif;
}

.post-hero h1 {
  color: white;

  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1.05;

  max-width: 900px;
  margin-bottom: 24px;

  overflow-wrap: break-word;
}

.post-summary {
  max-width: 1200px;

  font-size: 2rem;
  line-height: 1.7;

  margin-bottom: 36px;

  color: white;
}

/* "Follow us...to keep up with our news" text */
.social-tagline {
  margin: 0 0 18px 0;

  font-size: 1.5rem;
  line-height: 1.4;

  color: white;
}

/* e.g., "Pest Notes" atop post title on hero */
.post-series {
  display: inline-flex;
  align-items: center;

  padding: 8px 12px;

  background: #006480;
  border-radius: 1rem;

  color: white;

  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.post-series a {
  color: white;
  text-decoration: none;
}

.post-series a:hover {
  text-decoration: underline;
  color: white;
}

/* stats about the post itself, such as date, author, read time */
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;

  font-size: 1.5rem;
  font-weight: 500;

  color: white;
}

/* social media buttons for home hero only */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.social-btn-container {
  width: 64px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #006480;
  border-radius: 50%;
  border: none;
}

.social-btn-container:hover {
  background-color: white;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-size: 2.5rem;
  text-decoration: none;
}

/* re-implement this when a THIRD social media button is added */
/*.social-btn-container:nth-child(2) {
  margin: 0 44px;
}*/

.social-btn-container:hover .social-btn {
  color: #006480;
}

.social-btn:hover {
  text-decoration: none;
}

.social-btn i {
  line-height: 1;
  font-size: 3rem;
}

/* styling for the Facebook Font Awesome icon specifically */
.social-btn .fa-facebook-f {
  transform: scaleY(0.85);
}
.separator {
  opacity: .45;
}

@media (max-width: 900px) {
  .tl-menu-toggle {
    display: block;
  }

  .tl-container {
    flex-wrap: wrap;
  }

  .tl-menu {
    display: none;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
  }

  .tl-menu.active {
    display: flex;
  }

  .tl-menu ul {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 767px) {

  .tl-has-dropdown {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    position: relative;
  }

  .tl-has-dropdown.open {
      margin-bottom: 90px;
    }

  .tl-has-dropdown > a {
    display: inline-flex;
    width: auto;
  }

  .tl-menu > ul {
    width: 100%;
  }

  .tl-menu > ul > li {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  .tl-dropdown-menu {
    width: 100%;
    text-align: center;
  }

  .tl-dropdown-menu li a {
    text-align: center;
  }

  .tl-dropdown-toggle {
    display: inline-flex;
  }

  .tl-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    min-width: 200px;

    display: none;

    opacity: 1;
    visibility: visible;
  }

  .tl-has-dropdown.open .tl-dropdown-panel {
    display: block;
  }

  .tl-logo img {
    height: 4rem;
    align-self: center;
    margin: 16px 0 8px 0;
  }

  .post-hero.home-hero {
    background-position: 68% 50%;
  }
}