:root {
  --white-color: #fff;
  --black-color: #000;
  --golden-color: #D8B270;
  --bg-color-black-light: #333;
  --bg-color-black: #000;
  --bg-color-grey: #202020;

  
  --bg-color-white: #fff;
   --header-height: 101px; 
   /* Default value, will be overwritten by JS */
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Figtree", sans-serif;
}

/* Township Header styles */
#TheFutureMaking, 
#press-media-section,
#about-section,
#cddmo-section,
#our-projects,
#dellaNews,
#upcoming-townships-section {
scroll-margin-top: var(--header-height);
}
.township-topbar {
  background-color: var(--bg-color-black-light);
  color: var(--white-color);
  font-size: 12px;
  padding: 5px 0;
  text-align: right;
  min-height: 30px;
}

.township-header, 
.township-header-wrap, 
body, 
html {
  overflow: visible !important;
  height: auto !important;
}
.township-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 9999;
  background-color: var(--bg-color-black);
  color: var(--white-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Wrap content inside header */
.township-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
.township-logo-panel {
  display: flex;
  align-items: center;
  padding: 0;
}
.township-logo-panel .township-logo{ 
  max-width: 220px;
  max-height: 70px;
}
.township-menu-list {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.township-menu-list .township-menu-list-item {
  position: relative;
  list-style: none;
}
.township-menu-list .township-menu-list-item a {
  color: var(--white-color);
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
}
.township-menu-arrow {
  cursor: pointer;
  transition: rotate 0.5s ease;
}
.township-menu-list .township-menu-list-item:hover .township-menu-list li a {
  color: var(--golden-color);
  cursor: pointer;
}

.township-submenu-list {
  /* display: none; */
  position: absolute;
  top: 100px;
  left: 50%;
  background-color: var(--bg-color-grey);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 150px;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
}
.township-submenu-list .township-submenu-list-item {
  padding: 0 15px;
}
.township-submenu-list .township-submenu-list-item a {
      color: var(--white-color);
  display: flex;
  font-size: 13px;
  text-transform: none;
  position: relative;
  white-space: nowrap;
  padding: 10px 0;
    letter-spacing: 1px;
    border-bottom: solid 1px rgba(255, 255, 255, 0.15);
}
.township-submenu-list .township-submenu-list-item:last-child a {
    border-bottom: none;
}
.township-submenu-list .township-submenu-list-item a::before {
    content: "";
    position: absolute;
    right: 10px;
    top: 0;
    z-index: 2;
    bottom: 0;
    margin: auto;
    background-image: url(/wp-content/themes/dellastore/newhome/images/nav-dropdown-arrow.svg);
    background-repeat: no-repeat;
    background-position: center;
    width: 10px;
    height: 10px;
    opacity: 0;
    transition: 0.5s;
}
.township-submenu-list .township-submenu-list-item:hover a::before {
    right: 0;
    opacity: 1;
}
.township-submenu-list .township-submenu-list-item:hover > a {
      color: var(--golden-color);
}

.township-menu-list .township-menu-list-item:hover > a {
  color: var(--golden-color);
}
.township-topbar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}
.township-topbar-menu li a {
  color: var(--white-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
.township-topbar-menu li a:hover {
  color: var(--golden-color);
}

.township-header-wrap .mobile-menu-trigger {
  position: relative;

}

.township-header-wrap  .outer-circle-tw {
  width: 60px;
  height: 60px;
  background-image: url(/wp-content/themes/dellastore/assets/images/menu-text-1.svg);
  background-repeat: no-repeat;
  background-position: 0px 0px;
  animation: rotate-right-animation 10s infinite linear;
  background-size: 100%;
}

.township-header-wrap  .inner-circle-tw {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 15px;
  left: 15px;
  background-image: url(/wp-content/themes/dellastore/assets/images/menu-text-2.svg);
  background-repeat: no-repeat;
  background-position: 0px 0px;
  animation: rotate-right-animation 10s infinite linear;
  background-size: contain;
  background-size: 100%;
}

.township-header-wrap .mobile-menu-trigger .outer-circle-tw,
.township-header-wrap .mobile-menu-trigger .inner-circle-tw {
  animation: rotate-right-animation 10s infinite linear;
}

@keyframes rotate-right-animation {
    100% {
        transform: rotate(360deg);
    }
}

@media (min-width: 993px) {

  .mobile-menu-trigger {
    display: none;
  }
  .township-menu-list .township-menu-list-item:hover .township-submenu-list {
    display: block;
    top: 100%;
    visibility: visible;
    opacity: 1;
  }
  .township-menu-list .township-menu-list-item:hover .menu-item-link {
    color: var(--golden-color);
  }
  .township-menu-list .township-menu-list-item:hover .township-menu-arrow {
    transform: rotate(180deg);
    color: var(--golden-color);

  }

}

@media (max-width: 992px) {
  .township-header-wrap  .outer-circle-tw {
    width: 50px;
    height: 50px;
  }
  .township-header-wrap  .inner-circle-tw {
    width: 25px;
    height: 25px;
    top: 12px;
    left: 12px;
  }

  #TheFutureMaking, 
  #press-media-section,
  #about-section,
  #cddmo-section,
  #our-projects {
    scroll-margin-top: 100px; 
    /* adjust based on header height */
  }

  .township-topbar {
    display: none;
  }
  .mobile-menu-close-tw {
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 1;
    display: flex;
    justify-content: end;
  }
  .township-header-wrap {
    align-items: center;
    padding: 10px 0;
  }
  .township-menu-list {
    flex-direction: column;
    gap: 0;
    width: 80%;
    position: fixed;
    top:0;
    left: 0;
    /* background-color: var(--bg-color-grey); */
    background-color: rgba(0, 0, 0, .98);
    z-index: 1;
    padding: 10px;
    height: 100vh;

  }
  .township-menu-list > .township-menu-list-item {
    width: 100%;
    border-bottom: solid 1px rgba(255, 255, 255, 0.15);
  }
  .township-menu-list > .township-menu-list-item:last-child {
    border-bottom: none;
  }
  .township-menu-list > .township-menu-list-item a {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: none;
  }
.township-menu-link-wrap {
  display: flex;
  align-items: center;
}
  .township-submenu-list {
    position: static;
    box-shadow: none;
    padding: 0;
    min-width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background-color: rgba(0, 0, 0, .98);
  }
.township-submenu-list .township-submenu-list-item {
  padding: 0 15px;
}

  .township-menu-list {
    transform: translateX(-100%);
    transition: all 0.5s ease-in-out;
    opacity: 0;
  }
  .township-menu-list.activeMenu {
    transform: translateX(0);
    opacity: 1;
  }
  .township-menu-list .township-menu-arrow.rotated {
    transform: rotate(180deg);
  }
 
}







