/**
 * LearnDash Course Accordion — Frontend Styles
 *
 * @package LD_Course_Accordion
 * @version 1.0.9
 */

/* ======================================================================
   Section Wrapper
   ====================================================================== */

.ldca-section {
	margin-bottom: 0;
}

/* ======================================================================
   Trigger (Section Heading)
   ====================================================================== */

.ldca-trigger {
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	position: relative;
	display: flex;
	align-items: center;
}

.ldca-trigger:hover {
	opacity: 0.85;
}

.ldca-trigger:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
	border-radius: 2px;
}

/* ======================================================================
   Content (Collapsible Area)
   ====================================================================== */

.ldca-content {
	overflow: hidden;
}

.ldca-collapsed .ldca-content {
	max-height: 0;
	overflow: hidden;
}

.ldca-expanded .ldca-content {
	overflow: visible;
}

/* ======================================================================
   Icons
   ====================================================================== */

.ldca-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding-top: 10px;
	margin-right: 8px;
	flex-shrink: 0;
	transition: transform 0.25s ease;
	font-style: normal;
	line-height: 1;
}

/* -- Chevron Icon -- */

.ldca-icon-chevron::before {
	content: '';
	display: block;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate( -45deg );
	transition: transform 0.25s ease;
}

.ldca-collapsed .ldca-icon-chevron::before {
	transform: rotate( -45deg );
}

.ldca-expanded .ldca-icon-chevron::before {
	transform: rotate( 45deg );
}

/* -- Plus / Minus Icon -- */

.ldca-icon-plus::before {
	content: '+';
	font-size: 18px;
	font-weight: 700;
	transition: transform 0.25s ease;
}

.ldca-expanded .ldca-icon-plus::before {
	content: '−';
}

/* -- Arrow Icon -- */

.ldca-icon-arrow::before {
	content: '';
	display: block;
	width: 0;
	height: 0;
	border-left: 6px solid currentColor;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	transition: transform 0.25s ease;
}

.ldca-collapsed .ldca-icon-arrow::before {
	transform: rotate( 0deg );
}

.ldca-expanded .ldca-icon-arrow::before {
	transform: rotate( 90deg );
}

/* ======================================================================
   LearnDash 3.0+ (Focus / Active Theme) Overrides
   ====================================================================== */

.ldca-section .ld-item-list-section-heading.ldca-trigger {
	padding-right: 40px;
}

.ldca-section .ld-item-list-section-heading.ldca-trigger .ld-section-heading {
	display: flex;
	align-items: center;
}

/* ======================================================================
   LearnDash Legacy Theme Overrides
   ====================================================================== */

.ldca-section .section-heading.ldca-trigger {
	padding: 12px 15px;
}

/* ======================================================================
   LearnDash Focus Mode Sidebar
   ====================================================================== */

.ld-focus-sidebar .ldca-section {
	margin-bottom: 0;
}

.ld-focus-sidebar .ldca-trigger.ld-lesson-item-section-heading {
	padding-right: 15px;
	cursor: pointer;
}

.ld-focus-sidebar .ldca-trigger.ld-lesson-item-section-heading:hover {
	opacity: 0.85;
}

.ld-focus-sidebar .ldca-icon {
	padding-top: 0;
}

.ld-focus-sidebar .ldca-content .ld-lesson-item {
	visibility: inherit;
}

/* ======================================================================
   Print Styles — expand everything when printing
   ====================================================================== */

@media print {
	.ldca-content {
		max-height: none !important;
		overflow: visible !important;
	}

	.ldca-icon {
		display: none;
	}
}
