/*
 Theme Name:     Kali
 Author:         Mark Hendriksen
 Author URI:     https://markhendriksen.com
 Template:       Divi
 Version:        1.0
 Description:    A Divi Child Theme 
*/

/* ----------- PUT YOUR CUSTOM CSS BELOW THIS LINE -- DO NOT EDIT ABOVE THIS LINE --------------------------- */

/* -------------------------------------------------- */
/*               GUNG HO PALETTE VARIABLES            */
/* -------------------------------------------------- */
:root {
  --gh-red:      #b5292b;    /* Explorer Red */
  --gh-gold:     #f2a541;    /* Golden Lantern */
  --gh-jade:     #6cbba9;    /* Silk Jade */
  --gh-white:    #fdf6ee;    /* Rice White */
  --gh-indigo:   #38598b;    /* Sky Indigo */
  --gh-black-10: rgba(56,89,139,0.1); /* Indigo at 10% */
}  /* ← closing brace for :root */



/* ########################### */
/* ###### CHANGE COLORS ###### */
/* ########################### */
.line-before-sub-text:before {
background: #b5292b !important;
}
/* ### Dropdown menu ### */
.nav li li a { 
  border-bottom: 1px solid var(--gh-black-10); /* Dropdown border bottom */ 
  font-weight: 500 !important; 
  font-size: 14px !important; 
}
.et-menu > .menu-item-has-children > .sub-menu:before {
  border-bottom: 12px var(--gh-red) solid; /* Dropdown arrow color */
}

/* #### Collapsing mobile menu #### 
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle-icon::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle-icon::after {
  color: var(--gh-white);    /* Icon color
  background: var(--gh-red);  /* Icon background color 
}
*/
/* ### Line before text ### */
.line-before-sub-text:before {
  background: var(--gh-red);   /* Line color */
}

/* ### Titles gradient ### */
.title-gradient h1,
.title-gradient h2,
.title-gradient h3 {
  background: var(--gh-indigo);  
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ### Team members social bg ### */
.custom-teammember .et_pb_member_social_links {
  background-color: var(--gh-red); /* Background color */
}

/* ### Contact form checkbox ### */
.kavi-contact-form .et_pb_contact p input[type=checkbox]:checked+label i:before {
  color: #000000 !important; /* Check color */
}

/* ### Services blurbs page 2 ### */
.service-blurb-v2:before {
  background: linear-gradient(
    135deg,
    var(--gh-white) 0%,
    var(--gh-white) 50%,
    var(--gh-gold) 50%,
    var(--gh-red) 100%
  ); /* Background hover color */
}

/* ### Style scroll bar ###*/
#style-scrollbar::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  background-color: var(--gh-white);
}
#style-scrollbar::-webkit-scrollbar {
  background-color: var(--gh-white);
}
#style-scrollbar::-webkit-scrollbar-thumb {
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
  background-color: var(--gh-red);
}


/* ### Blog button ### */
.more-link {
  background-color: var(--gh-red); /* Button background color */
  color: #ffffff;                 /* Button text color */
}

/* ### Single project list ### */
.job-list ul li::marker {
  color: var(--gh-red); /* list icon color */
}

/* ### END COLORS ### */

/* ### General ### */
body {
  font-weight: 400!important;
}
#page-container {
  overflow-x: hidden;
}
.line-before-sub-text:before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  width: 45px;
  height: 2px;
}

/* ### Header & menu ### */
.custom-menu-v1-row {
  display: flex;
  align-items: center;
}
.custom-menu-v1-row .custom-menu-v1.et_pb_menu .et-menu>li {
  padding-left: 20px !important;
  padding-right: 20px !important;
}
.align-button-hamburger {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
@media screen and (min-width: 981px) {
  .custom-menu-v1-column {
    display: flex;
    align-items: center;
  }
}
.header-v1-menu.et_pb_menu .et-menu>li {
  padding-left: 20px !important;
  padding-right: 20px !important;  
}
@media screen and (min-width: 981px) {
  .header-v1-menu {
    flex: 2 1 auto;
  }
}

/* ### Header & menu v3 ### */
.top-bar-row {
  display: flex;
  align-items: center;
}
.top-bar-row .top-bar-second-column .et_pb_blurb_container {
  padding-left: 0px!important;
}
.top-bar-second-column {
  display: flex;
  justify-content: flex-end;
}
.top-bar-second-column h4.et_pb_module_header {
  padding-bottom: 0px !important;
}
.top-bar-row .et_pb_social_media_follow li {
  margin-bottom: 0px!important;
}
.blurb-top-bar {
  display: flex;
  align-self: center;
}

/* ### logo row ### */
.logos-row {
  display: flex;
  align-items: center;  
}

/* ### Team members ### */
.custom-teammember .et_pb_member_social_links {
  margin: 0 0 27px;
  list-style: none;
  position: absolute;
  width: 49px;
  border-radius: 3px;
  bottom: 100px;
  right: 0px;
  padding: 12px 0;
  text-align: center;
  z-index: 100;
  transition: all .25s cubic-bezier(.645,.045,.355,1);
  opacity: 0;
}
.custom-teammember:hover .et_pb_member_social_links {
  right: 25px;
  opacity:1;
}
.custom-teammember .et_pb_member_social_links li {
  width: 100%;
  padding: 5px 0px;
}
@media (max-width: 980px) and (min-width: 768px) {
  .et_pb_column .custom-teammember .et_pb_team_member_description {
    display: block;
  }
}
.custom-teammember .et_pb_team_member_image img {
  border-radius: 12px;
}

/* ### Blog ### */
.custom-blog-full-v1 article {
  margin-bottom: 0px;
}
.kali-blog-list .entry-featured-image-url {
  width: 100px;
  float: left;
  margin-bottom: 0!important;
}
.kali-blog-list .entry-title,
.kali-blog-list .post-meta {
  width: calc(100% - 100px);
  float: left;
  padding-left: 20px;
}
.kali-blog-list .entry-featured-image-url {
  padding-top: 100px;
  display: block;
}
.kali-blog-list .entry-featured-image-url img {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.kali-blog-list .et_pb_post:not(:last-child) {
  border-bottom: 1px solid #dddddd!important;
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.kali-blog-list article:last-child {
  margin-bottom: 0px;
}
.kali-blog-list h2.entry-title {
  margin-top: 25px;
}
.kali-blog-list img {
  border-radius: 10px;
}
.featured-post .et_pb_post .post-meta {
  position: absolute;
  left: 10px;
  top: 10px;
}
.featured-post .et_pb_post .post-meta a {
  display: inline-block;
  padding: 0px 12px;
  border-radius: 5px;
  font-weight: 700;
  background-color: #f1f3f4;
}
.featured-post-overlay:after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  left:0;
  top:0;
  background-color: rgba(0,0,0,0.3);
  opacity: 0;
  transition: all 0.2s ease-in-out;
  z-index: -1;
}
.featured-post-overlay:hover:after {
  opacity: 1;
}

/* #### Dropdown Menu #### */
.nav li ul.sub-menu {
  padding: 0px !important;
  border-radius: 5px;
  box-shadow: 0 5px 17px 0px rgba(0,0,0,0.25);
}
.nav li li {
  padding: 0 0px !important;
  width: 100%;
}
.et-menu li li a {
  padding: 10px 20px;
  width: 100% !important;
}
.et-menu > .menu-item-has-children > .sub-menu:before {
  content: '';
  display: block;
  position: absolute;
  left: 35px;
  top: -20px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-right: 12px solid transparent;
  border-left: 12px solid transparent;
  z-index: 1;
}
.custom-menu-v1.et_pb_menu--without-logo .et_pb_menu__menu>nav>ul>li>a {
  padding-bottom: 20px;
  padding-top: 20px;
}
.custom-menu-v1 .et-menu .menu-item-has-children>a:first-child:after {
  top: 36%;
}
.nav li li ul {
  top: -3px !important;
}
.custom-menu-v1.et_pb_menu--without-logo .et_pb_menu__menu>nav>ul>li {
  margin-top: 0px;
}

/* #### Collapsing Mobile Menu #### 
ul.et_mobile_menu li.menu-item-has-children .mobile-toggle-icon::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle-icon::after {
  top: 10px;
  position: relative;
  font-family: "ETModules";
  content: '\33';
  border-radius: 50%;
  padding: 3px;
}*/
/*
ul.et_mobile_menu li.menu-item-has-children.mobile-toggle-open>.mobile-toggle-icon::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children.mobile-toggle-open>.mobile-toggle-icon::after {
  content: '\32';
}
.et_mobile_menu .menu-item-has-children>a {
  background-color: transparent;
}
ul.et_mobile_menu .menu-item-has-children,
ul.et_mobile_menu .page_item_has_children,
ul.et_mobile_menu .menu-item-has-children .sub-menu li.menu-item-has-children {
  position: relative;
}
.et_mobile_menu .menu-item-has-children>a {
  font-weight: 600 !important;
}
*/
ul.et_mobile_menu .menu-item-has-children .sub-menu,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu {
  display: unset !important;
  visibility: visible !important;
}
/*
ul.et_mobile_menu .menu-item-has-children .mobile-toggle-icon,
#main-header ul.et_mobile_menu li.menu-item-has-children .mobile-toggle-icon {
  text-align: center;
  opacity: 1;
}

/* #### Slide-in #### */
.slide-in-row ul {
  flex-direction: column;
}
.slide-in-row {
  overflow: hidden;
  transform: translateX(104%);
  transition: all .3s ease;
  opacity:1;
  display: flex;
}
.slide-in-row.active-menu-v1 {
  transform: translateX(-3%);
}
.et_pb_sticky .slide-in-row .et_pb_blurb:hover {
  box-shadow: 0px 2px 25px 0px rgba(0,0,0,0.1) !important;
}

/* #### Blurb V2 #### */
.service-blurb-v2 .et_pb_blurb_content {
  z-index:9;
}
.service-blurb-v2:before {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -20px;
  height: 100px;
  width: 100px;
  transform-origin: 100% 100%;
  transition: transform 0.4s ease;
}
.service-blurb-v2:hover:before,
.service-blurb-v2:hover:after {
  transform: scale(21);
  transition: transform 1s ease;
}

/* ### Post ### */
.single-post .custom-post-content h2,
.single-post .custom-post-content h3 {
  padding: 1.3em 0 0.8em !important;
}

/* ### Optin form layout ### */
@media only screen and (min-width: 479px) {
  .kali-custom-optin .et_pb_newsletter_fields {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .kali-custom-optin .et_pb_newsletter_button_wrap {
    display: flex;
  }
  .kali-custom-optin .et_pb_newsletter_form p.et_pb_newsletter_field {
    padding-bottom: 0em !important;
  }
  .kali-custom-optin .et_pb_newsletter_button_text {
    vertical-align: sub;
  }
}

/* ### Layout constraints ### */
@media screen and (min-width: 981px) and (max-width: 1300px) {
  .et_pb_section .custom-row-1300.et_pb_row {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
}
@media screen and (min-width: 981px) and (max-width: 1450px) {
  .custom-row-width-981.et_pb_row {
    width: 90% !important;
    max-width: 90% !important;  
  }
}

/* ### Blog equal height tweaks ### */
.kali-blog-equal-height .kali-auto-height {
  height: auto !important;
}
.kali-blog-equal-height .kali-auto-margin {
  margin-top: 20px !important;
}
.more-link {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 6px;
}
.job-list ul li {
  padding-bottom: 20px;
}

/* ### Contact form home page ### */
.kavi-contact-form {
  border-radius: 12px;  
}
@media only screen and (min-width: 981px) {
  .kavi-contact-form .et_pb_contact_field_options_list {
    display: flex !important;
    flex-wrap: wrap;
  }
  .kavi-contact-form .et_pb_contact_field_checkbox {
    flex: 0 0 33.333333%;
    padding-bottom: 5px;
  }
  .kavi-contact-form .et_pb_contact_field_checkbox label {
    display: flex !important;
    align-items: center;  
  }
}
.kavi-contact-form .et_pb_contact_field_options_title {
  color: rgba(0,0,0,1) !important;
  font-size: 16px !important;
  padding-top: 10px;
}

/* Hide slide-in for visual builder */
.et-fb .slide-in-row {
  display: none;
} 
