/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Enthusiast, Inc.
 Author URI:     https://www.enthusiastinc.net
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

/** DESKTOP ONLY **/
@media only screen and (min-width: 768px) {
}

/* ALL MOBILE SCREENS (portrait and landscape) */
@media screen and (max-width: 767px) {
}

/* iPhone 6 and smaller portrait mode */
@media screen and (max-device-width: 667px) {
}
/* iPhone 6 & 6S in landscape */
@media only screen  and (min-device-width : 375px) and (max-device-width : 667px) and (orientation : landscape) {
}
/* iPhone 6 & 6S in portrait */
@media only screen  and (min-device-width : 375px) and (max-device-width : 667px) and (orientation : portrait) {
}
/* iPhone 6 Plus & 6S Plus in landscape */
@media only screen and (min-device-width : 414px) and (max-device-width : 736px) and (orientation : landscape) {
}
/* iPhone 6 Plus & 6S Plus in portrait */
@media only screen and (min-device-width : 414px) and (max-device-width : 736px) and (orientation : portrait) {
}

/** Mobile + Tablets **/
@media only screen and (max-width: 980px) {
}

/** Tablet Portrait Mode **/
@media only screen and (orientation: portrait) and (min-device-width: 768px) and (max-device-width: 1024px) {
}
/** Tablet Landscape Mode **/
@media only screen and (orientation: landscape) and (min-device-width: 768px) and (max-device-width: 1024px) {
}

/** All Smaller Desktop Screens **/
@media only screen and (max-width: 1024px) {
}

/* Mobile menu (header): collapsible submenus, see assets/js/mobile-menu.js */
.et-l--header .et_mobile_menu {
	max-height: calc(100vh - 73px);  /* 73px = header height on phones */
	max-height: calc(100dvh - 73px);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.et-l--header .et_mobile_menu li.menu-item-has-children {
	position: relative;
}
.et-l--header .et_mobile_menu li.menu-item-has-children > a {
	padding-right: 52px !important;
}
.et-l--header .et_mobile_menu li.menu-item-has-children > .sub-menu {
	display: block !important;
	height: 0;
	overflow: hidden;
	visibility: hidden !important; /* Divi forces visible */
	transition: height 0.3s ease, visibility 0s linear 0.3s;
}
.et-l--header .et_mobile_menu li.menu-item-has-children.mm-open > .sub-menu {
	height: auto;
	visibility: visible !important;
	transition: height 0.3s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
	.et-l--header .et_mobile_menu li.menu-item-has-children > .sub-menu,
	.et-l--header .et_mobile_menu .mm-submenu-toggle::before {
		transition: none !important;
	}
}
.et-l--header .et_mobile_menu .mm-submenu-toggle {
	position: absolute;
	top: 0;
	right: 0;
	width: 48px;
	height: 41px;       /* height of one menu row */
	padding: 0;
	border: 0;
	background: transparent;
	color: #163B1F;     /* chevron colour: menu text colour */
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.et-l--header .et_mobile_menu .mm-submenu-toggle::before {
	content: '';
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.2s ease;
}
.et-l--header .et_mobile_menu li.mm-open > .mm-submenu-toggle::before {
	transform: translateY(2px) rotate(-135deg);
}

/* Mobile menu (header): full-width dropdown under the header.
   The Divi Menu module only spans the right part of the header row, so position
   the dropdown against the header section instead of the module. */
@media (max-width: 980px) {
	.et-l--header .et_pb_section {
		position: relative;
	}
	.et-l--header .et_pb_row,
	.et-l--header .et_pb_column,
	.et-l--header .et_pb_menu,
	.et-l--header .et_pb_menu_inner_container,
	.et-l--header .et_pb_menu__wrap,
	.et-l--header .et_mobile_nav_menu,
	.et-l--header .mobile_nav {
		position: static !important;
	}
	.et-l--header .et_mobile_menu {
		top: 100%;
		left: 0;
		right: 0;
		width: auto;
		border-top: 1px solid #E2D3A4;
		box-shadow: 0 14px 28px rgba(16, 41, 26, 0.18);
	}
	.et-l--header .et_mobile_menu li a {
		font-size: 18px;
		padding-left: 24px;
		padding-right: 24px;
	}
}


/* Blurb cards with a round icon (Programs page): equal circles whatever the glyph's width.
   Add the class "sd-icon-circle" to the Blurb module (Advanced > CSS Class). */
.sd-icon-circle .et-pb-icon {
	width: 56px;
	height: 56px;
	line-height: 56px !important;
	text-align: center;
	padding: 0 !important;
	border-radius: 50%;
}

/* Small inline Blurb icons (Contact page details): same icon box width so the text lines up.
   Add the class "sd-icon-fixed" to the Blurb module (Advanced > CSS Class). */
.sd-icon-fixed .et-pb-icon {
	width: 24px;
	text-align: center;
}
