/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Future Buffalo Web Design
 Author URI:     https://www.futurebuffalowebdesign.com
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

/* vertical align within columns */
.ds-vertical-align { 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
} 

/* column stacking order tweaks */

@media all and (max-width: 980px) {
	/*** wrap row in a flex box ***/
	.custom-row {
	  display: -webkit-box;
	  display: -moz-box;
	  display: -ms-flexbox;
	  display: -webkit-flex;
	  display: flex;
	-webkit-flex-wrap: wrap; /* Safari 6.1+ */
	flex-wrap: wrap;
	}
 
	/*** custom classes that will designate the order of columns in the flex box row ***/
	.first-on-mobile {
	-webkit-order: 1;
	order: 1;
	}
	 
	.second-on-mobile {
	-webkit-order: 2;
	order: 2;
	}
	 
	.third-on-mobile {
	-webkit-order: 3;
	order: 3;
	}
	 
	.fourth-on-mobile {
	-webkit-order: 4;
	order: 4;
	}
	/*** add margin to last column 
	.custom_row:last-child .et_pb_column:last-child {
	margin-bottom: 30px;
	}***/
	
	.hidden-on-mobile {
		display: none;
	}
 
}

/* 2 Columns Mobile */
@media all and (max-width: 767px) {
	html .et-db .two-col-mob .et_pb_column {
		width:47.25% !important;
	}
	
html .et-db .two-col-mob .et_pb_column:nth-last-child(-n+2) {
		margin-bottom:0;
	}

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

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

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

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

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

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

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

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

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

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

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

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

	html .et-db .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) {
	html .et-db .one-col-tab .et_pb_column {
		margin-right:0 !important;
		width:100% !important;
	}
	
		html .et-db .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) {
	html .et-db .two-col-tab .et_pb_column {
		width:47.25% !important;
	}

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

	html .et-db .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) {
	html .et-db .three-col-tab .et_pb_column {
		width:29.6667% !important;
	}

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

	html .et-db .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) {
	html .et-db .four-col-tab .et_pb_column {
		width:20.875% !important;
	}

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

	html .et-db .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) {
	html .et-db .five-col-tab .et_pb_column {
		width:15.6% !important;
	}

.five-col-mob .et_pb_column:nth-last-child(-n+5) {
		margin-bottom:0;
	}
	
	html .et-db .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) {
	html .et-db .six-col-tab .et_pb_column {
		width:12.083% !important;
	}

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

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

/*set the Divi menu dropdown auto width*/
@media only screen and (min-width: 981px) {
	.nav li ul {
		width: fit-content !important;
		display: flex !important;
		flex-direction: column !important;
		border-top: 1px solid #3a2161 !important;
	}

	.nav li li {
		white-space: nowrap !important;
	}

	.nav li li a {
		width: auto !important;
		font-size: 16px !important;
		letter-spacing: normal !important;
	}
	
	.nav li li a:hover {
		box-shadow: none !important;
		background-color: #fff !important;
		color: #9974b3 !important;
	}	
}

@media only screen and (min-width: 981px) {
	#mobile_menu1 {
		margin-top: 8px;
	}
}

/* support side by side texts */
.et_pb_column.two-text-flex {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start; /* optional: keeps tops aligned if heights differ */
  gap: 0.4em;
  flex-wrap: wrap;
}

.two-text-flex .et_pb_module {
  flex: 0 0 auto;
}

.icon-text {
  display: inline-flex;
  align-items: center;
  gap: 0.175em;
  height: auto;
  margin-top: 3px;
}

.icon-text-icon {
  width: 1em;
  height: 1em;
  padding: 0 !important;
  margin: 0 !important;
}