/*
Theme Name: Divi Child theme of Divi
Theme URI: 
Description: Child theme of Divi theme for the Divi theme
Author: <a href="http://www.elegantthemes.com">Elegant Themes</a>
Author URI: 
Template: Divi
Version: 1.0
*/

/* Generated by Orbisius Child Theme Creator (https://orbisius.com/products/wordpress-plugins/orbisius-child-theme-creator/) on Wed, 02 Oct 2024 23:59:32 +0000 */ 
/* The plugin now uses the recommended approach for loading the css files.*/

/* * EWS blog category filter wrapper */
.ews-blog-filter-wrap {
	position: relative;
	z-index: 10;
	margin: 30px 0 30px;
	overflow: visible;
}

/* * Desktop filter layout */
.ews-blog-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
}

/* * Mobile dropdown toggle is hidden on desktop */
.ews-blog-filter-toggle {
	display: none;
}

/* * Individual desktop filter buttons */
.ews-blog-filter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 22px;
	border: 1px solid #1f2933;
	border-radius: 999px;
	background-color: transparent;
	color: #1f2933;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* * Hover state */
.ews-blog-filter:hover {
	background-color: #f76f23;
	border-color: #f76f23;
	color: #ffffff;
}

/* * Currently selected category */
.ews-blog-filter.ews-filter-active,
.ews-blog-filter[aria-current="page"] {
	background-color: #f76f23;
	border-color: #f76f23;
	color: #ffffff;
}

/* * Keyboard accessibility */
.ews-blog-filter:focus-visible,
.ews-blog-filter-toggle:focus-visible {
	outline: 3px solid rgba(247, 111, 35, 0.3);
	outline-offset: 3px;
}

/* * Prevent Divi link styling from overriding the filters */
.ews-blog-filters a.ews-blog-filter,
.ews-blog-filters a.ews-blog-filter:hover {
	text-decoration: none;
}

/* * Ensure the Divi filter module does not clip the dropdown */
.ews-blog-filter-module,
.ews-blog-filter-module .et_pb_code_inner,
.ews-blog-filter-module .et_pb_text_inner {
	position: relative;
	overflow: visible !important;
}

/* * Mobile blog filter dropdown */
@media only screen and (max-width: 980px) {

	/* * Keep the containing Divi elements visible, * but avoid relying on extreme stacking values. */
	.et_pb_section.ews-blog-filter-section,
	.et_pb_section.et_pb_section_1.et_section_regular,
	.et_pb_section.ews-blog-filter-section>.et_pb_row,
	.et_pb_column.ews-blog-filter-column,
	.ews-blog-filter-module,
	.ews-blog-filter-module .et_pb_code_inner,
	.ews-blog-filter-module .et_pb_text_inner {
		position: relative !important;
		overflow: visible !important;
	}

	.et_pb_column.ews-blog-filter-column {
		z-index: auto !important;
	}

	/* * Filter wrapper */
	.ews-blog-filter-wrap {
		position: relative;
		width: 100%;
		margin: 24px 0 24px;
		overflow: visible;
		box-sizing: border-box;
	}

	/* * Mobile dropdown button */
	.ews-blog-filter-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		min-height: 44px;
		margin: 0;
		padding: 10px 14px;
		border: 1px solid #1f2933;
		border-radius: 6px;
		background: #ffffff;
		color: #1f2933;
		font-family: inherit;
		font-size: 16px;
		font-weight: 600;
		line-height: 1.2;
		text-align: left;
		cursor: pointer;
		box-sizing: border-box;
		appearance: none;
		-webkit-appearance: none;
		-webkit-tap-highlight-color: transparent;
	}

	/* * Dropdown arrow */
	.ews-blog-filter-toggle-icon {
		display: block;
		flex: 0 0 auto;
		width: 8px;
		height: 8px;
		margin-left: 12px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg) translateY(-2px);
		transform-origin: center;
		transition: transform 0.2s ease;
	}

	.ews-blog-filter-wrap.is-open .ews-blog-filter-toggle-icon {
		transform: rotate(225deg);
	}

	/* * Closed dropdown menu */
	.ews-blog-filters {
		display: none;
		position: static;
		width: 100%;
		margin: 6px 0 0;
		padding: 6px;
		gap: 2px;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		border: 1px solid #d9d9d9;
		border-radius: 6px;
		background-color: #ffffff;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
		box-sizing: border-box;
		overflow: hidden;
	}

	/* * Open dropdown menu */
	.ews-blog-filter-wrap.is-open .ews-blog-filters {
		display: flex;
	}

	/* * Mobile dropdown options */
	.ews-blog-filter {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		width: 100%;240
		min-height: 42px;
		margin: 0;
		padding: 10px 14px;
		border: 0;
		border-radius: 4px;
		background-color: transparent;
		color: #1f2933;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.3;
		text-align: left;
		box-sizing: border-box;
		-webkit-tap-highlight-color: transparent;
	}

	.ews-blog-filter:hover,
	.ews-blog-filter:focus,
	.ews-blog-filter.ews-filter-active,
	.ews-blog-filter[aria-current="page"] {
		background-color: #f76f23;
		color: #ffffff;
	}

	/* * Prevent Divi from adding spacing beneath links. */
	.ews-blog-filters a.ews-blog-filter {
		margin-bottom: 0 !important;
		text-decoration: none !important;
	}

	/* * Remove padding around the filter section. */
	.et_pb_section.ews-blog-filter-section,
	.et_pb_section.et_pb_section_1.et_section_regular {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	.et_pb_section.ews-blog-filter-section>.et_pb_row,
	.et_pb_section.et_pb_section_1.et_section_regular>.et_pb_row {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}
}