
ul.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.nav-links li ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
}

/* ==========================================
   DESKTOP STYLES
   ========================================== */
.navbar {
  /* background-color: #ffffff; */
  /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
  /* position: relative; */
  z-index: 100;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.menu-toggle-checkbox, 
.mega-toggle-checkbox,
.hamburger-btn {
  display: none;
}

/* Desktop Flex Row Link Alignment */
.nav-links {
  display: flex;
}

ul.nav-links li {
  padding: 25px 0 25px 50px;
}

ul.nav-links li ul li {
  padding: 0;
}

ul.normal-dropdown li {
  padding: 7px 0 0 0;
}

.menu-drop-link {
  display: flex;
  align-items: center;
}
.nav-links > li > a,
.menu-drop-link .main-link {
  display: block;
  padding: 0 7px 0 0; /* Adjusted padding for separate arrow layout */
  font-family: "alwyn-new-web", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: #FFF;
  text-decoration: none;
}
.arrow-trigger {
  padding: 0 0 3px 0;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.has-mega-menu:hover .arrow-trigger,
.has-normal-dropdown:hover .arrow-trigger {
  padding: 5px 0 0 0;
}

/* Hover highlights the entire block area */
.nav-links > li:hover > a,
.nav-links > li:hover .menu-drop-link {
  /* background-color: #f9f9f9; */
  color: #FFF;
  text-decoration: underline;
}
.nav-links > li:hover .main-link {
  /* color: #0A183E; */
  text-decoration: underline;
}

/* Desktop CSS Triangle Base Setup */
.accordion-arrow {
  /* width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #FFF; */
  
  border-left: 0.1rem solid #fff;
  border-bottom: 0.1rem solid #fff;
  width: 0.4rem;
  height: 0.4rem;

  display: inline-block;
  transform: rotate(-45deg);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-top-color 0.25s ease;
}
.has-mega-menu:hover .accordion-arrow,
.has-normal-dropdown:hover .accordion-arrow {
  transform: rotate(135deg);
  border-top-color: #FFF;;
}

/* Desktop Standard Dropdown */
.has-normal-dropdown {
  position: relative;
}
.normal-dropdown {
  position: absolute;
  top: 50px;
  left: 0;
  width: 200px;
  background-color: #F2F0F0;
  /* box-shadow: 0 8px 16px rgba(0,0,0,0.1); */
  border-top: 1px solid #eee;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.normal-dropdown li a {
  display: block;
  padding: 12px 20px 12px 18px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #0A183E;
  transition: all 0.2s ease;
  text-decoration: none;
}
.normal-dropdown li a:hover {
  background-color: #f5f5f5;
  color: #0A183E;
  padding-left: 25px;
}

/* Desktop Hover Menu Triggers */
.has-mega-menu:hover .mega-menu,
.has-normal-dropdown:hover .normal-dropdown {
  opacity: 1;
  visibility: visible;
}

/* Desktop Mega Menu Layout Grid */
.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #F2F0F0;
  border-top: 1px solid #eee;
  /* box-shadow: 0 8px 16px rgba(0,0,0,0.1); */
  top: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.mega-menu-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.mega-column {
  flex: 1;
}
.mega-column h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  color: #0A183E;
  margin-bottom: 15px;
  border-bottom: 2px solid #0A183E;
  padding-bottom: 5px;
}
.mega-column ul li a {
  display: block;
  padding: 8px 0;
  color: #0A183E;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  /* line-height: 28px; */
  transition: padding 0.2s ease;
  text-decoration: none;
}
.mega-column ul li a:hover {
  color: #0A183E;
  padding-left: 5px;
}

.sci-mega-link-container{
  display: flex;
  flex-direction: row;
  align-items: center;
}

.sci-mega-link-bullet{
  padding: 0 10px 0 0;
}

.sci-mega-link{
  padding: 0;
}

.featured-module {
  flex: 1.2;
  background: #F2F0F0;
  /* border: 1px solid #eee; */
  /* border-radius: 6px; */
  overflow: hidden;
}
.featured-module h3 {
  border: none;
  padding: 0;
  margin-bottom: 5px;
}

.featured-module p {
  color: #0A183E;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  line-height: 22px;
  padding-bottom: 0;
  margin-bottom: 0;
}

.featured-module form .hs-richtext,
.featured-module form .hs-richtext p {
  color: #0A183E;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  line-height: 22px;
}

body [data-hsfc-id=Renderer] .hsfc-Step .hsfc-Step__Content {
  padding: 0;
}

body [data-hsfc-id=Renderer] .hsfc-FieldLabel,
body [data-hsfc-id=Renderer] .hsfc-RichText p{
  color: #0A183E;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  line-height: 22px;
  padding-bottom: 0;
  margin-bottom: 0;
}

body [data-hsfc-id=Renderer] .hsfc-TextInput{
  font-size: 16px;
  line-height: 22px;
}

body .mega-menu [data-hsfc-id=Renderer] .hsfc-Step .hsfc-Step__Content {
  padding: 0;
}

body .mega-menu [data-hsfc-id=Renderer] .hsfc-FieldLabel,
body .mega-menu [data-hsfc-id=Renderer] .hsfc-RichText p{
  color: #0A183E;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  line-height: 22px;
  padding-bottom: 0;
  margin-bottom: 0;
}

body .mega-menu [data-hsfc-id=Renderer] .hsfc-TextInput{
  font-size: 16px;
  line-height: 22px;
}

body .mega-menu [data-hsfc-id=Renderer] .hsfc-Button{
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  line-height: 28px;
  font-weight: 300;
  background-color: #EA6927
  color: #FFF;
}

body .sci-box-100-full-color-box [data-hsfc-id=Renderer] .hsfc-Button{
  /* font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  line-height: 28px;
  background-color: #C49636;
  color: #0A183E; */
  background-color: rgba(234,105,39,0.0);
  border: 2px solid #fff;
  border-radius: 0px;
  font-size: 20px;
  font-weight: bold;
  padding-top: 8px;
  padding-right: 18px;
  padding-bottom: 8px;
  padding-left: 18px;
  margin-top: 50px;
  font-family: 'Source Sans 3', sans-serif;
  font-style: normal;
  text-decoration: none;
  color: #FFFFFF;
  text-transform: none;
}

h3.sci-newsletter-signup-header{
  color: #0A183E;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  border-bottom: 2px solid #0a183e;
  margin-bottom: 15px;
  padding-bottom: 5px;
}

.card-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.card-body {
  padding: 15px;
}
.card-body p {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 12px;
}
.btn-shop {
  font-size: 13px;
  font-weight: bold;
  color: #0A183E;
}

/* 4. The Indicator Arrow (Aligned perfectly with the root item) */
.has-normal-dropdown:hover::after,
.has-mega-menu:hover::after {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 0;          /* Aligns to the very bottom edge of the root item link */
  /* left: 50%; */          /* Moves to the exact horizontal center of the root item */
  /* transform: translateX(-70%); */ /* Perfectly centers the triangle width */
  
  /* Creates a crisp upward-pointing CSS triangle */
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #F2F0F0; /* Matches your mega menu background color */
  
  z-index: 1001;      /* Ensures the arrow sits safely on top of the menu border */
}

/* ==========================================
   MOBILE STYLES (Under 768px Viewports)
   ========================================== */
@media (max-width: 768px) {
  .nav-container {
    padding: 15px 20px;
  }
  
  ul.nav-links li {
    padding: 0 0 0 0;
  }

  /* Reveal Hamburger Layout Rules */
  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    cursor: pointer;
    position: relative;
  }
  .hamburger-btn .bar {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    transform-origin: center;
  }

  /* Hamburger to 'X' Transition */
  .menu-toggle-checkbox:checked ~ .hamburger-btn .top-bar {
    transform: translateY(8.5px) rotate(45deg);
  }
  .menu-toggle-checkbox:checked ~ .hamburger-btn .mid-bar {
    opacity: 0;
    transform: scaleX(0);
  }
  .menu-toggle-checkbox:checked ~ .hamburger-btn .bot-bar {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  /* Main Dropdown Panel Navigation Drawer Frame */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.1); */
    border-top: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Mobile list element spacing constraints */
  .nav-links > li > a {
    padding: 18px 20px;
    border-bottom: 1px solid #f5f5f5;
  }
  .menu-drop-link {
    justify-content: space-between; /* Spreads link text left, arrow hitbox right */
    border-bottom: 1px solid #f5f5f5;
  } 
  .menu-drop-link .main-link {
    padding: 18px 20px;
    flex-grow: 1; /* Ensures the text takes up maximum clicking width */
  }

  .arrow-trigger {
    padding: 18px 25px; /* Large touch target for the accordion trigger arrow */
    border-left: 1px solid #f5f5f5; /* Visually splits link action from arrow toggle */
    background-color: #fafafa;
  }

  .has-mega-menu:hover .arrow-trigger,
  .has-normal-dropdown:hover .arrow-trigger {
    padding: 18px 25px;
  }

  .nav-links > li > a,
  .menu-drop-link .main-link {
    color: #0A183E;
  }

  .nav-links > li:hover > a,
  .nav-links > li:hover .menu-drop-link {
    /* background-color: #f9f9f9; */
    color: #060d23;
    text-decoration: underline;
  }

  /* Desktop CSS Triangle Base Setup */
  .accordion-arrow {
    border-top: 5px solid #0A183E;
  }

  .has-mega-menu:hover .accordion-arrow,
  .has-normal-dropdown:hover .accordion-arrow {
    border-top-color: #0A183E;;
  }

  .arrow-trigger {
    padding: 18px 25px; /* Large touch target for the accordion trigger arrow */
    border-left: 1px solid #f5f5f5; /* Visually splits link action from arrow toggle */
    background-color: #fafafa;
  }

  /* Main drawer visibility trigger rules */
  .menu-toggle-checkbox:checked ~ .nav-links {
    max-height: 100vh;
    overflow-y: auto;
  }

  /* Clear desktop hover logic loops from intersecting mobile workflows */
  .has-mega-menu:hover .accordion-arrow,
  .has-normal-dropdown:hover .accordion-arrow {
    transform: none;
  }

  /* Mobile Shared Accordion Framework Reset definitions */
  .mega-menu, 
  .normal-dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    background-color: #fcfcfc;
    padding: 0;
    opacity: 1;
    visibility: visible;
    max-height: 0; /* Closed by default */
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* CLICK ACCORDION OPEN SIGNALS */
  .mega-toggle-checkbox:checked ~ .mega-menu,
  .mega-toggle-checkbox:checked ~ .normal-dropdown {
    max-height: 1100px;
  }
  
  /* Fixed Dynamic Bi-directional Arrow Control rules */
  .nav-links > li > .menu-drop-link .accordion-arrow {
    transform: rotate(-45deg);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-top-color 0.25s ease;
  }
  .mega-toggle-checkbox:checked ~ .menu-drop-link .arrow-trigger .accordion-arrow {
    transform: rotate(135deg);
    border-top-color: #007bff;
  }

  /* Specific internal alignment settings cleanup inside the standard dropdown accordion frame */
  .mega-toggle-checkbox:checked ~ .normal-dropdown {
    padding: 10px 0;
  }
  .normal-dropdown li a {
    padding: 12px 35px;
    border-bottom: none;
  }

  /* Responsive interior elements layout positioning blocks */
  .mega-menu-content {
    flex-direction: column;
    padding: 20px;
    gap: 25px;
  }
  .mega-column h3 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 28px;
    line-height: 34px;
    font-weight: 700;
    margin-bottom: 8px;
  }
  .featured-module {
    display: flex;
    /* align-items: center; */
    background-color: #fcfcfc;
    flex-direction: column;
  }

  .card-image {
    width: 35%;
  }
  
  .card-image img {
    height: 100px;
  }
  .card-body {
    width: 65%;
    padding: 10px 15px;
  }

  /* ==========================================
     STAGGERED LINK FADE-IN TIMES
     ========================================== */
  .nav-links > li {
    opacity: 0;
    transform: translateY(15px);
  }
  .menu-toggle-checkbox:checked ~ .nav-links > li {
    animation: linkFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  .nav-links > .nav-item-1 { animation-delay: 0.08s; }
  .nav-links > .nav-item-2 { animation-delay: 0.14s; }
  .nav-links > .nav-item-3 { animation-delay: 0.20s; }
  .nav-links > .nav-item-4 { animation-delay: 0.26s; }

  @keyframes linkFadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}