/* General submenu appearance */
/* Base (hidden) state of submenu */
.dl-menu.et_pb_module.et_pb_menu .et-menu-nav ul.sub-menu {
    width: 300px; /* wider to accommodate long item names */
    /* max-width: 800px; optional max for balance */
    padding: 0;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    box-shadow: none;
    z-index: 1000;
    transform: translate(calc(-50% - 35px), -10px) !important; /* subtle left shift */
    left: 50%;
    transition: 
        transform 0.4s ease-out, 
        opacity 0.4s ease-out, 
        visibility 0.4s ease-out;
    white-space: normal; /* allow line breaks */
	pointer-events: auto;
}

.dl-menu.et_pb_module.et_pb_menu .et-menu-nav > ul.nav > li:hover > ul.sub-menu {
    transform: translate(calc(-50% - 15px), -10px) !important;
    opacity: 1;
    pointer-events: auto;
}

/* Animate submenu on hover */
.dl-menu ul.nav > li:hover > ul.sub-menu {
    transform: translate(calc(-50% - 15px), 10px) !important;
    opacity: 1;
    pointer-events: auto;  /* Enable interaction when visible */
}



/* Triangle arrow refined */
.dl-menu ul.nav > li > ul.sub-menu:before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 8px;
    border-color: transparent transparent #ccc transparent;
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
}

/* Submenu links */
.dl-menu.et_pb_module.et_pb_menu .nav li li a {
    display: inline-block;
    width: 240px; /* Adjust this to fit comfortably within your dropdown's width */
    padding: 12px 20px;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 14px !important;
    font-weight: 400;
    color: #333;
    line-height: 1.4;
    transition: all 0.3s ease-in-out;
    white-space: normal;
    word-break: break-word;
    vertical-align: top;
}




/* Hover effect */
.dl-menu.et_pb_module.et_pb_menu .nav li li a:hover {
    background-color: #e6e6e6;
    color: #000;
    padding-left: 25px;
    text-decoration: underline;
}

/* Reveal on Scroll */
/* Initial State (Frontend) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Active State */
.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Override for Divi Visual Builder */
body.et-fb .reveal-on-scroll {
  opacity: 1 !important;
  transform: translateY(0) !important;
}


/* Zoom only on desktops */
@media screen and (min-width: 981px) {
  .scroll-zoom-bg {
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    transition: background-size 0.6s ease;
    overflow: visible;
  }

  .scroll-zoom-bg.zoomed {
    background-size: 110%;
    overflow: hidden;
  }
}

/* On mobile/tablet, reset to default */
@media screen and (max-width: 980px) {
  .scroll-zoom-bg {
    background-size: cover !important;
    overflow: visible !important;
  }
}

/* Wrapper alignment control */
.clever-button-wrapper {
  display: flex;
  margin: 1rem 0;
}
.clever-button-wrapper.align-center {
  justify-content: center;
}
.clever-button-wrapper.align-left {
  justify-content: flex-start;
}

/* Button Styles */
.clever-button {
  text-decoration: none;
  isolation: isolate;
  color: #000;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 48px;
  border-radius: 9999rem;
  background: transparent;
  position: relative;
  border: none;
  cursor: pointer;
  transition: all 200ms ease-out;
}

.clever-button .back {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid black;
  border-radius: inherit;
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  transition: all 200ms ease-out;
}

.clever-button .back::before {
  content: "";
  width: 0;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: black;
  position: absolute;
  transition: all 200ms ease-out;
}

.clever-button:hover {
  color: white;
}

.clever-button:hover .back {
  transform: scale(0.95);
}

.clever-button:hover .back::before {
  width: 120%;
}

.clever-button:active .back {
  transform: scale(0.9);
}

