/*
Theme Name: Knighthead
Theme URI: 
Description: Custom theme for Knighthead Annuity & Life Assurance Company 
Author: Indee
Author URI: https://helloindee.com/

Version: 1.0

Tags: 

Template: Divi

Text Domain: knighthead
Requires at least: 5.4
Requires PHP: 5.6
*/

/* Menu Color */
#main-header a,
#main-header .sub-menu li a {
  color: #11132a !important;
}

#main-header a:hover,
#main-header .sub-menu li a:hover,
#top-menu li.current-menu-ancestor > a,
#top-menu li.current-menu-item > a,
#top-menu li.current_page_item > a {
  color: #1c57a6 !important;
}

/* KH logo size position */
.et_header_style_left .logo_container {
  height: 125%;
  top: -16px;
}

.et-fixed-header .logo_container {
  height: 125% !important;
  top: -16px;
}
@media all and (min-width: 1200px) {
  .et-fixed-header .logo_container {
    height: 155% !important;
    top: -16px;
  }
}

#top-menu-nav {
  margin-top: 5px;
}

/* Hamburger position */
.et_header_style_left #et-top-navigation .mobile_menu_bar {
  padding: 10px 0 14px;
}

/* Confetti */
/* .confetti {
  position: relative;
  left: -108%;
  top: 130px;
}

@media all and (max-width: 767px) {
  .confetti {
    opacity: 0;
  }
} */

/* LOGIN BUTTON - REACTIVATED 1/15/25 */

.loginbtn {
	height:40px !important;
	border-radius: 5px;
	background-color:#e3f0f8;
	padding: 12px 20px 12px 20px;
}

.loginbtn a,
.loginbtn a:active,
.loginbtn a:hover {
	color:white !important;
	font-weight:bold !important;
}

.loginbtn a::after {
  display: none;
}

.et-fixed-header {
	padding:0px 0px 16px 0px;
}

.loginbtn ul.sub-menu {
  right: 0;
}

@media all and (max-width: 981px) {
  .loginbtn {
    height: auto !important;
    background-color:white !important;
    padding: 0;
  }

  .loginbtn a,
  .menu-button a:hover,
  .menu-button a:active {
    background-color:white !important;
  }

  .loginbtn a::after {
    display: inline-block;
  }

  .et_mobile_menu li a {
    line-height: 1em !important;
  }
}

/* Mobile menu horizontal positioning */
.et_mobile_menu {
  margin-left: -25vw !important;
}

/* Remove gray bar on FFP mobile menu item */
.mobile_nav.opened a {
  background: none !important;
}
.mobile_nav.opened a:hover {
  background: #f4f4f4 !important;
}


/* show X on hamburger open */
span.mobile_menu_bar:before {
  color: #50a3d5;
}
span.mobile_menu_bar:before {
  content: "a";
  display: block;
  overflow: hidden;
  width: 32px;
  height: 32px;
}
.mobile_nav.opened span.mobile_menu_bar:before {
  content: "\4d;";
}

/* Mobile menu nav elements */
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle, 
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle {
  width: 32px !important;
  height: 32px !important;
  top: 16px !important;
  left: 50% !important;
  transform: translateX(35vw);
}
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after, 
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after {
  display: block;
  overflow: hidden;
  padding: 0 !important;
  width: 32px;
  height: 32px;
  font-size: 32px;
  line-height: 32px;
  color: #50a3d5 !important;
  top: 0 !important;
  transition: transform 0.5s;
  text-indent: -1px;
}
ul.et_mobile_menu li.menu-item-has-children.dt-open .mobile-toggle::after, 
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children.dt-open .mobile-toggle::after {
  transform: rotate(180deg);
}

/* remove menu top bar */
.et_mobile_menu {
  border-top: 0;
}

/* Center-align moble menu items */
.et_mobile_menu li {
  text-align: center !important;
}

.et_mobile_menu li li,
.et_mobile_menu li ul {
  padding-left: 0 !important;
}

/* Make mobile menu fullwidth */
.et_mobile_menu {
  min-width: 120vw;
  margin-left: -95vw;
  box-shadow: none;
}

/* Make the mobile menu full height */
.et_mobile_menu {
  min-height: 110vh !important;
  min-height: -webkit-fill-available;
  padding-top: 20px !important;
  padding-bottom: 2500px !important;
}
html {
  height: -webkit-fill-available;
}

/* menu button/text styles */
.et_mobile_menu li a {
  padding: 20px 40px 20px 70px;
  border-bottom: 0;
  font-size: 24px;
  line-height: 1.2em;
}

.et_mobile_menu li a:hover {
  text-decoration: none;
}

@media (min-width: 980px) and (max-width: 1180px) {
  #logo {
    max-width: 180px;
  }
  #et-top-navigation {
    padding-left: 180px !important;
  }
  #et-top-navigation nav > ul > li {
    padding-right: 12px;
  }
  #et-top-navigation nav > ul > li > a {
    font-size: 12px;
  }
}

/* Remove the animation to avoid delay */
.mobile_nav.opened .et_mobile_menu {
  display: block !important;
}


/* 2024 Knighthead Fonts */
h1,
h2,
h3,
h4 {
  font-family: BentonSansProBook !important;
}

h5,
h6 {
  font-family: "commuters-sans", sans-serif !important;
  font-weight: 700 !important;
}

a {
  font-family: BentonSansProBook !important;
}

.et_pb_module a {
  font-family: BentonSansProBook !important;
}

.foot_info_block {
	font-family: BentonSansProBook !important;
}


/* KH Button */
.et_pb_button_module_wrapper a.et_pb_button {
  font-family: "commuters-sans", sans-serif !important;
  font-size: 17px;
  padding: 13px 30px 10px 30px;
}


/* _____  1:1 ICONS  _____ */

.icon_square .et_pb_image_wrap {
  padding-top: 100%;
  display: block;
}

.icon_square .et_pb_image_wrap img {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: contain;
}


/* _____  CUSTOM COLUMNS  _____ */

/*** Change Mobile Columns By DiviMundo.com ***/

/* 2 Columns Mobile */
@media all and (max-width: 767px) {
  .two-col-mob .et_pb_column {
    width: 47.25% !important;
  }

  .two-col-mob .et_pb_column:nth-last-child(-n + 2) {
    margin-bottom: 0;
  }

  .two-col-mob .et_pb_column:not(:nth-child(2n)) {
    margin-right: 5.5% !important;
  }
}

/* 3 Columns Mobile */
@media all and (max-width: 767px) {
  .three-col-mob .et_pb_column {
    width: 29.6667% !important;
  }

  .three-col-mob .et_pb_column:nth-last-child(-n + 3) {
    margin-bottom: 0;
  }

  .three-col-mob .et_pb_column:not(:nth-child(3n)) {
    margin-right: 5.5% !important;
  }
}

/* 4 Columns Mobile */
@media all and (max-width: 767px) {
  .four-col-mob .et_pb_column {
    width: 20.875% !important;
  }

  .four-col-mob .et_pb_column:nth-last-child(-n + 4) {
    margin-bottom: 0;
  }

  .four-col-mob .et_pb_column:not(:nth-child(4n)) {
    margin-right: 5.5% !important;
  }
}

/* 5 Columns Mobile */
@media all and (max-width: 767px) {
  .five-col-mob .et_pb_column {
    width: 15.6% !important;
  }

  .five-col-mob .et_pb_column:nth-last-child(-n + 5) {
    margin-bottom: 0;
  }

  .five-col-mob .et_pb_column:not(:nth-child(5n)) {
    margin-right: 5.5% !important;
  }
}

/* 6 Columns Mobile */
@media all and (max-width: 767px) {
  .six-col-mob .et_pb_column {
    width: 12.083% !important;
  }

  .six-col-mob .et_pb_column:nth-last-child(-n + 6) {
    margin-bottom: 0;
  }

  .six-col-mob .et_pb_column:not(:nth-child(6n)) {
    margin-right: 5.5% !important;
  }
}

/*** Change Tablet Columns By DiviMundo.com ***/

/* 1 Column Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
  .one-col-tab .et_pb_column {
    margin-right: 0 !important;
    width: 100% !important;
  }

  .one-col-tab .et_pb_column:not(:last-child) {
    margin-bottom: 30px !important;
  }
}

/* 2 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
  .two-col-tab .et_pb_column {
    width: 47.25% !important;
  }

  .two-col-tab .et_pb_column:nth-last-child(-n + 2) {
    margin-bottom: 0;
  }

  .two-col-tab .et_pb_column:not(:nth-child(2n)) {
    margin-right: 5.5% !important;
  }
}

/* 3 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
  .three-col-tab .et_pb_column {
    width: 29.6667% !important;
  }

  .three-col-tab .et_pb_column:nth-last-child(-n + 3) {
    margin-bottom: 0;
  }

  .three-col-tab .et_pb_column:not(:nth-child(3n)) {
    margin-right: 5.5% !important;
  }
}

/* 4 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
  .four-col-tab .et_pb_column {
    width: 20.875% !important;
  }

  .four-col-tab .et_pb_column:nth-last-child(-n + 4) {
    margin-bottom: 0;
  }

  .four-col-tab .et_pb_column:not(:nth-child(4n)) {
    margin-right: 5.5% !important;
  }
}

/* 5 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
  .five-col-tab .et_pb_column {
    width: 15.6% !important;
  }

  .five-col-mob .et_pb_column:nth-last-child(-n + 5) {
    margin-bottom: 0;
  }

  .five-col-tab .et_pb_column:not(:nth-child(5n)) {
    margin-right: 5.5% !important;
  }
}

/* 6 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
  .six-col-tab .et_pb_column {
    width: 12.083% !important;
  }

  .six-col-tab .et_pb_column:nth-last-child(-n + 6) {
    margin-bottom: 0;
  }

  .six-col-tab .et_pb_column:not(:nth-child(6n)) {
    margin-right: 5.5% !important;
  }
}


/* Fixed mobile header */

@media (max-width: 980px) {
  .et_non_fixed_nav.et_transparent_nav #main-header,
  .et_non_fixed_nav.et_transparent_nav #top-header,
  .et_fixed_nav #main-header,
  .et_fixed_nav #top-header {
    position: fixed;
  }
}

.et_mobile_menu {
  overflow: scroll !important;
  max-height: 84vh;
}


/* CUSTOM MOBILE MENU COLLAPSER */

/*adjust the new toggle element which is added via jQuery*/
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
ul.et_mobile_menu li.page_item_has_children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.page_item_has_children .mobile-toggle {
  width: 44px;
  height: 100%;
  padding: 0px !important;
  max-height: 44px;
  border: none;
  position: absolute;
  right: 0px;
  top: 0px;
  z-index: 999;
  background-color: transparent;
}
/*some code to keep everyting positioned properly*/
ul.et_mobile_menu > li.menu-item-has-children,
ul.et_mobile_menu > li.page_item_has_children,
ul.et_mobile_menu > li.menu-item-has-children .sub-menu li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu > li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu > li.page_item_has_children,
.et-db #et-boc .et-l ul.et_mobile_menu > li.menu-item-has-children .sub-menu li.menu-item-has-children {
  position: relative;
}
/*remove default background color from menu items that have children*/
.et_mobile_menu .menu-item-has-children > a,
.et-db #et-boc .et-l .et_mobile_menu .menu-item-has-children > a {
  background-color: transparent;
}
/*hide the submenu by default*/
ul.et_mobile_menu .menu-item-has-children .sub-menu,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu {
  display: none !important;
  visibility: hidden !important;
}
/*show the submenu when toggled open*/
ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible {
  display: block !important;
  visibility: visible !important;
}
/*adjust the toggle icon position and transparency*/
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle {
  text-align: center;
  opacity: 1;
  position: absolute;
  top: 10px;
  left: 320px;
  background: none !important;
}
/*submenu toggle icon when closed*/
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after {
  top: 10px;
  position: relative;
  font-family: "ETModules";
  content: "33";
  color: #00917e;
  background: #f0f3f6;
  border-radius: 50%;
  overflow: none;
  padding: 3px;
}
/*submenu toggle icon when open*/
ul.et_mobile_menu li.menu-item-has-children.dt-open > .mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children.dt-open > .mobile-toggle::after {
  content: "32";
  border-radius: 50%;
}
/*add point on top of the menu submenu dropdown*/
.et_pb_menu_0.et_pb_menu .et_mobile_menu:after {
  position: absolute;
  right: 5%;
  margin-left: -20px;
  top: -14px;
  width: 0;
  height: 0;
  content: "";
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 20px solid #ffffff;
}
/*adjust the position of the hamburger menu*/
.mobile_menu_bar {
  position: relative;
  display: block;
  bottom: 10px;
  line-height: 0;
}
/*force the background color and add a rounded border*/
.et_pb_menu_0.et_pb_menu .et_mobile_menu,
.et_pb_menu_0.et_pb_menu .et_mobile_menu ul {
  background-color: #ffffff !important;
  border-radius: 10px;
}


/* Misc global styles? */
.et_pb_button_module_wrapper a.et_pb_button:hover {
  padding: 13px 30px 10px 30px;
}

a:hover {
  text-decoration: underline;
}

a.et_pb_button:hover {
  text-decoration: none;
}

::selection {
  color: white;
  background: #11132a;
}

footer ::selection {
  color: #11132a;
  background: white;
}

sup {
  font-size: 0.5em;
  top: -0.7em;
}