/*
Theme Name: Divi Child
Theme URI: https://ameritaswealth.com
Description: Divi Child Theme for Ameritas Wealth 
Author: Sharif Uddin
Author URI: mailto:sharifwds@gmail.com
Template: Divi
Version: 1.0.0
Text Domain: ameritaswealth
*/

/* Ameritas Wealth global styles */
:root {
  --aw-admin-header:32px;
  --aw-header-top-height: 40px;
  --aw-header-height:106px;
 
  --aw-color-red: #d5272d;
  --aw-color-red-light: #e65153;
  --aw-color-grey: #f9f9f9;
  --aw-color-blue: #377dd0;
  --aw-color-blue-light: #5c90d1;
  --aw-color-dark: #333333;
  --aw-color-text: #000;
}
@media screen and (max-width: 1100px) {
	--aw-header-top-height: 0px;
	--aw-header-height:74px;
}
@media screen and (max-width: 782px) {
  :root {
   --aw-admin-header:45px;
  }
}


.aw-text-normal,
.aw-text-normal h2,
.aw-text-normal h3,
.aw-text-normal p {
  text-transform: inherit;
}
.aw-text-cap,
.aw-text-cap h2,
.aw-text-cap p,
.aw-text-cap h1 {
  text-transform: capitalize;
}
.aw-align-center {
  align-items: center;
}
a.white {
  color: #fff !important;
}
.aw-object-cover img {
  object-fit: cover;
}
.aw-flex {
  display: flex !important;
}

/* Header */

.aw-header-btn.underline-btn,
.aw-underline-btn {
  text-decoration: none;
}
.aw-header-btn.underline-btn:hover,
.aw-underline-btn:hover {
  text-decoration: underline;
}

body .et_pb_button.aw-header-btn {
  text-transform: capitalize;
}
.et_pb_image_0_tb_header.et_pb_module.aw-top-header-img-btn {
  margin-right: 0 !important;
}
.et_pb_blurb.aw-services_blurb {
  height: 100%;
}
@media (max-width: 767px) {
  .et_pb_blurb.aw-services_blurb .et_pb_main_blurb_image {
    margin-left: auto;
    margin-right: auto;
  }
	.aw-slider-content .et_pb_button.et_pb_button_one{
	   margin-left: auto;
   	   margin-right: auto;

      display: block !important;
      max-width: 180px;
      text-align: center;
	}
	
}
.aw-header-top{
	top:0;
	z-index:999;
}
body.logged-in.admin-bar .aw-header-top{
	top: calc(var(--aw-admin-header) + 0px) !important;
}
.et_pb_section_1_tb_header.aw-fixed-header{
	top: calc(var(--aw-header-top-height) + 0px);
}
body.logged-in.admin-bar .aw-fixed-header{
	top: calc(var(--aw-admin-header) + var(--aw-header-top-height) + 0px);
}
/* Hero Section */

.aw-hero-section {
  margin-top: calc(var(--aw-header-top-height) + var(--aw-header-height));
}

/* body.logged-in.admin-bar .aw-hero-section {
  margin-top: calc(var(--aw-admin-header) + var(--aw-header-top-height) + var(--aw-header-height)) !important;
} */

/* Half Image + Half Content Section */

.aw-half-content-hero {
  max-width: 600px;
  margin-left: auto;
  padding-inline: 25px;
}
.aw-hero-section .et_pb_module.et_pb_image .et_pb_image_wrap,
.aw-hero-section .et_pb_module.et_pb_image {
  height: 100%;
}
.aw-hero-section .et_pb_module.et_pb_image .et_pb_image_wrap img {
  object-fit: cover;
}

@media (max-width: 1200px) {
  .aw-half-content-hero .et_pb_heading_0 .et_pb_heading_container h1 {
    font-size: 46px;
  }
}

@media (max-width: 1100px) {
	.aw-hero-section {
    	margin-top: calc(var(--aw-header-top-height) + var(--aw-header-height) - 74px);
	}
}
@media (max-width: 980px) {
  .aw-half-content-hero {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding-inline: 25px;
  }
  .aw-hero-section .et_pb_module.et_pb_image .et_pb_image_wrap img,
  .aw-hero-section .et_pb_module.et_pb_image .et_pb_image_wrap {
    max-height: 350px;
  }
}
@media (max-width: 767px) {
  .aw-hero-section .et_pb_module.et_pb_image .et_pb_image_wrap img,
  .aw-hero-section .et_pb_module.et_pb_image .et_pb_image_wrap {
    max-height: 250px;
  }
}


/* Slider */
.aw-slider-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.aw-slider-content.et_pb_fullwidth_header
  .et_pb_fullwidth_header_container.left
  .header-content-container {
  max-width: 790px;
}

.aw-slider-content.et_pb_fullwidth_header.prof-page
  .et_pb_fullwidth_header_container.left
  .header-content-container {
  max-width: 100%;
}
.aw-slider-wrapper h1.et_pb_module_header {
  text-transform: capitalize !important;
  margin-bottom: 15px;
}
.aw-slider-wrapper .et_pb_header_content_wrapper {
  margin-bottom: 5px;
}


/* Families and Business Card Section */

.aw-finances-card {
  position: relative;
  overflow: hidden;
}
.aw-finances-card .et_pb_module {
  margin-bottom: 0;
}
.aw-finances-card .et_pb_image.aw-finances-card_img {
  height: 100%;
  transform: scale(1);
  transition: all 0.3s ease-in-out;
}
.et_pb_image.aw-finances-card_img .et_pb_image_wrap {
  height: 100%;
}
.et_pb_image.aw-finances-card_img .et_pb_image_wrap img {
  object-fit: cover !important;
}
.aw-finances-card_img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
}
.aw-finances-card:hover .aw-finances-card_img {
  transform: scale(1.1);
}

@media (max-width: 767px) {
  .aw-slider-wrapper
    .et_pb_fullwidth_header
    .et_pb_fullwidth_header_container.left
    .header-content {
    margin: 0 !important;
    padding: 0 !important;
  }
}
/* ===== What to Expect list (2 columns always) ===== */
.aw-benefits_list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  grid-template-columns: 1fr 1fr !important;
  column-gap: 80px;
  row-gap: 16px;
  margin-left: 20px;
}

.aw-benefits_list li {
  list-style: none;
  position: relative;
  padding-left: 2px;
}

/* red circle */
.aw-benefits_list li::before {
  content: "";
  position: absolute;
  left: -35px;
  top: -2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--aw-color-red);
}
/* Divi white check icon */
.aw-benefits_list li::after {
  content: "\4e"; /* Replace if your Divi check glyph differs */
  position: absolute;
  left: -35px;
  top: -2px;
  width: 22px;
  height: 22px;

  font-family: "ETmodules";
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  color: #ffffff;
}

.aw-services_blurb:hover {
  box-shadow: rgb(0 0 0 / 25%) 0 3px 11px 0 !important;
  -moz-box-shadow: rgba(0, 0, 0, 0.25) 0 3px 11px 0 !important;
  -webkit-box-shadow: rgb(0 0 0 / 25%) 0 3px 11px 0 !important;
  transition: all 0.45s !important;
}

/* Jump To Button Section */

.aw-jumpto-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.aw-jumpto-wrapper > .et_pb_module {
  max-height: 67px;
}
body #page-container .et_pb_section .aw-jumpto-wrapper .et_pb_button:before {
  left: 57px !important;
  font-size: 28px !important;
}

/* About Page -> Mission */

.aw-our-mission_stats {
  max-width: 500px;
  display: flex;
  flex-direction: row;
  gap: 160px;
}

.aw-our-mission_stats > .et_pb_code,
.aw-our-mission_stats > .et_pb_code_inner {
  display: none !important;
}

@media (max-width: 767px) {
  .aw-benefits_list {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .aw-our-mission_stats {
     gap: 30px;
     flex-direction: column;
  }
	
	.aw-our-mission_stats .et_pb_blurb{
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

/* Footer */

.aw-footer-menu-wrap {
  display: flex;
  flex-direction: column;
}
.aw-menu-item {
  font-size: 14px;
  line-height: 28px;
  font-weight: 400;
  padding-left: 15px;
  color: var(--aw-color-text);
}
.aw-menu-item.main-items {
  font-size: 16px;
  line-height: 32px;
  font-weight: 400;
  padding-left: 0px;
  margin-bottom: 0px;
  padding-bottom: 0;
  line-height: 1.8;
}

.aw-menu-item a {
  position: relative;
  display: inline-block;
  color: var(--aw-color-text);
  width: 100%;
  text-decoration: none;
  overflow: hidden;
}

/* Duplicate text layer */
.aw-menu-item a::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--aw-color-red);
  transition: width 0.35s ease-in-out;
}

.aw-menu-item a {
  position: relative;
  display: inline-block;
  color: var(--aw-color-text);
  text-decoration: none;
}

/* Red overlay text */
.aw-menu-item a::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--aw-color-red);
  transition: width 600ms ease-in-out;
}

/* Hover fill effect */
.aw-menu-item a:hover::before {
  width: 100%;
}

/* ==============================================
 *  		HEADER
 * =============================================*/

.aw-header-button-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.aw-header-btn {
  height: 40px;
}
.aw-header-btn.underlined-btn {
  text-decoration: none;
}
.aw-header-btn.underlined-btn:hover {
  text-decoration: underline;
}

/* Menu */
.aw-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 25px;
  justify-content: flex-end;
}

/*====================================================================
 *  						Desktop Menu 
 * ==================================================================*/

.desktop-menu .et-menu > li.menu-item a {
  position: relavive;
  padding-bottom: 12px;
  font-weight: 400;
}

.et_pb_menu.desktop-menu .et-menu-nav > ul ul {
  padding: 0;
  border-top: 0;
}
.desktop-menu .nav li ul {
  width: 300px;
}
.et_pb_menu.desktop-menu .et-menu-nav > ul ul li {
  padding: 0;
  width: 100%;
}
.et_pb_menu.desktop-menu .et-menu > li {
  padding-left: 15px;
  padding-right: 15px;
}
.et_pb_menu.desktop-menu .et-menu-nav > ul ul li a {
  display: block;
  width: 100%;
  font-size: 16px;
  line-height: 24px;
  font-weight: bold;
  padding: 15px 15px;
  background: var(--aw-color-grey);
  color: var(--aw-color-dark);
  transition: all 0.3s ease-in-out;
}

.et_pb_menu.desktop-menu .et-menu-nav > ul ul li a:hover {
  background: #fff;
  color: var(--aw-color-red);
}

.desktop-menu .et-menu .menu-item-has-children > a:first-child:after {
  transform: rotate(0deg);
  transition: transform 0.3s ease-in-out;
}
.desktop-menu .et-menu .menu-item-has-children:hover > a:first-child:after {
  transform: rotate(180deg);
}

@media (min-width: 1101px) {
  .et_pb_section_2_tb_header.aw-mobile-overlay {
    display: none !important;
  }
}

@media (max-width: 1200px) {
  .et_pb_menu.desktop-menu .et-menu > li {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 1100px) {
  .aw-header-top,
  .aw-fixed-header .aw-desktop-header {
    display: none !important;
  }

  .aw-fixed-header .aw-header-mobile {
    display: flex !important;
  }
  .et_pb_section_1_tb_header.aw-fixed-header,
  .et_pb_section_1_tb_header,
  .aw-fixed-header {
    top: 0 !important;
  }

  body.logged-in.admin-bar .aw-fixed-header,
  body.logged-in.admin-bar .et_pb_section_1_tb_header {
    top: calc(var(--aw-admin-header) + 0px) !important;
  }
}
/*====================================================================
 *  						Mobile Menu 
 * ==================================================================*/

.aw-header-mobile {
  align-items: center;
  justify-content: space-between;
}

/* =========================================================
   1) Hamburger (3 lines -> X)
========================================================= */
.aw-hamburger {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;

  width: 44px;
  height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  position: relative;
  z-index: 1000000; /* above overlay */
}

.aw-hamburger_line {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--aw-color-dark);
  border-radius: 2px;
  transition:
    transform 220ms ease,
    opacity 180ms ease,
    top 220ms ease;
}

.aw-hamburger .line-1 {
  top: 14px;
}
.aw-hamburger .line-2 {
  top: 21px;
}
.aw-hamburger .line-3 {
  top: 28px;
}

.aw-hamburger.is-open .line-1 {
  top: 21px;
  transform: rotate(45deg);
}
.aw-hamburger.is-open .line-2 {
  opacity: 0;
}
.aw-hamburger.is-open .line-3 {
  top: 21px;
  transform: rotate(-45deg);
}

/* =========================================================
   Mobile Overlay (Divi SECTION with class .aw-mobile-overlay)
========================================================= */

.aw-mobile-overlay {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: calc(var(--aw-header-height) + 40px) !important;
  bottom: 0 !important;

  width: 100vw !important;
  height: calc(100vh - var(--aw-header-height)) !important;

  background: #fff !important;
  z-index: 999999 !important;

  opacity: 0;
  pointer-events: none;
  transition:
    top 300ms ease,
    opacity 300ms ease;

  overflow: scroll !important;
}

body.aw-menu-open .aw-mobile-overlay {
  opacity: 1;
  pointer-events: auto;
  top: calc(var(--aw-header-height) + 1px) !important;
}

body.logged-in.admin-bar.aw-menu-open .aw-mobile-overlay {
    top: calc(var(--aw-header-height) + 1px ) !important;
}


body.aw-menu-open {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
}

body.aw-menu-open #page-container {
  overflow: hidden;
}

/* the scroll container */
.aw-mobile-overlay .aw-mobile-nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 782px) {
	
body.logged-in.admin-bar.aw-menu-open .aw-mobile-overlay {
     top: calc(var(--aw-header-height) + 14px ) !important;
	}
}
/* =========================================================
    Custom Nav (shortcode markup)
========================================================= */
.aw-mobile-nav {
  text-align: center;

  /* scroll area */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
}

/* UL reset */
.et-l--header ul.aw-nav-list,
.aw-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: max-content;
  margin-inline: auto;
}

/* LI */
ul.aw-nav-list > .aw-nav-item {
  position: relative;
  padding: 3px 0;
}

/* Link */
.aw-nav-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-size: 16px;
  line-height: 16px;
  font-weight: 400;

  color: var(--aw-color-text);
  padding: 15px 25px;
}

/* Underline animation */
.desktop-menu .et-menu .menu-item-has-children>a:first-child:before,
.desktop-menu .et-menu > li.menu-item a::before, /* Desktop */
.aw-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  background: var(--aw-color-red);
  top: unset;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms ease;
}
/* desktop */
.desktop-menu .et-menu .menu-item-has-children > a:first-child:before,
.desktop-menu .et-menu > li.menu-item a::before {
  height: 2px;
}
.desktop-menu .et-menu > li.menu-item.current-menu-item > a::before,
.desktop-menu .et-menu > li.menu-item:hover > a::before,
.aw-nav-item.is-active > .aw-nav-link::after,
.aw-nav-item.current-menu-item > .aw-nav-link::after,
.aw-nav-link:hover::after {
  transform: scaleX(1);
}

/* Caret button */
.aw-submenu-caret {
  position: absolute;
  right: 70px;
  top: 15px;

  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  z-index: 2;
}

/* Chevron */
.aw-submenu-caret::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1px solid #111;
  border-bottom: 1px solid #111;
  transform: rotate(45deg);
  transition: transform 220ms ease;
}

.aw-nav-item.is-sub-open > .aw-submenu-caret::before {
  transform: rotate(-135deg);
}

/* Submenu closed */
.et-l--header ul.aw-submenu,
.aw-submenu {
  list-style: none;
  margin: 0;
  padding: 0;

  max-height: 0;
  overflow: hidden;
  opacity: 0;

  transition:
    max-height 260ms ease,
    opacity 200ms ease;
}

/* Submenu open */
.aw-nav-item.is-sub-open > .aw-submenu {
  max-height: 300px;
  opacity: 1;
}

/* Submenu items */
.aw-submenu .aw-nav-item {
  padding: 0;
}

.aw-submenu .aw-nav-link {
  font-size: 15px;
  opacity: 0.8;
}

/* Buttons */

body
  #page-container
  .et_pb_section
  .aw-mobile-menu-button-wrapper
  .et_pb_button_5_tb_header {
  min-width: 320px;
}

/* Customer Links */

.aw-customer-link-wrapper {
  padding: 20px;
  background: #eee;
}

.aw-customer-link-wrapper .aw-nav-link {
  font-size: 12px;
  line-height: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 12px 15px;
}

/*==============================================
 *  Footer 
 * ============================================*/

/* Copyright Text */

.aw-copyright-text {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  line-height: 26px;
  gap: 20px;
}
.aw-copyright_left {
  display: flex;
}
.aw-copyright_left p span {
  border-right: 1px solid var(--aw-color-dark);
  display: inline-flex;
  padding-right: 8px;
  line-height: 1rem;
}
.aw-copyright_left p span:nth-child(2) {
  padding-right: 8px;
  padding-left: 8px;
}
.aw-copyright_left {
  gap: 8px;
}

#aw-footer-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
#aw-footer-wrap .et_pb_column {
  width: 100%;
}
#aw-footer-wrap.et_pb_gutters4.et_pb_row .et_pb_column_1_4 .et_pb_module,
#aw-footer-wrap.et_pb_gutters4 .et_pb_column_1_4 .et_pb_module {
  margin-bottom: 0;
}
.aw-copyright-row .aw-copyrigh-empty-col {
  display: none !important;
  width: 0;
}
.aw-copyright-row .et_pb_column_3_4.aw-copyright-content-col {
  width: 100% !important;
}
@media (min-width: 1201px) {
  .aw-copyright-row .aw-copyrigh-empty-col {
    width: 20.875%;
  }
  .aw-copyright-row .et_pb_column_3_4.aw-copyright-content-col {
    width: 73.625% !important;
  }
}
@media (max-width: 1200px) {
  #aw-footer-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 980px) {
  #aw-footer-wrap .aw-footer-mobile-contect-wrapper {
    width: 100%;
    margin-top: 0;
    margin-right: 0;
  }

  #aw-footer-wrap {
    grid-template-columns: repeat(1, 1fr);
  }
  .et-l--footer #aw-footer-wrap ul.aw-submenu {
    padding: 0;
  }
  #aw-footer-wrap .aw-footer-btn {
    min-width: 320px;
  }
  /* Copyright Text */
  .aw-copyright_left,
  .aw-copyright-text {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .aw-copyright_left p span:nth-child(2) {
    border-right: 0;
  }
}

/* Blog */
body #page-container .et_pb_section .aw-blog-wrapper .et_pb_button {
  text-transform: capitalize !important;
}
body #page-container .et_pb_section .aw-blog-wrapper .et_pb_button:after {
  display: inline-block !important;
}
