/**
 * Single Course Page Styles
 * Mimics Tutor LMS design for LearnDash courses
 * All selectors use #ld-custom-single-course for maximum specificity
 *
 * @package Families_Getting_Help
 */

/* Course Page Layout */
#ld-custom-single-course.edutim-course-single {
	padding: 60px 0;
}

#ld-custom-single-course .tutor-course-details-page {
	margin-top: 30px;
}

/* Course Thumbnail */
#ld-custom-single-course .course-thumbnail-wrapper {
	margin-bottom: 30px;
	border-radius: 8px;
	overflow: hidden;
}

#ld-custom-single-course .course-thumbnail-wrapper img {
	width: 100%;
	height: auto;
}

/* Course Lead Info */
#ld-custom-single-course .tutor-course-lead-info {
	margin-top: 30px;
}

#ld-custom-single-course .tutor-rating-stars {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 15px;
}

#ld-custom-single-course .tutor-rating-stars i {
	color: #ffa41b;
	font-size: 16px;
}

#ld-custom-single-course .tutor-rating-average {
	font-weight: 600;
	margin-left: 10px;
}

#ld-custom-single-course .tutor-rating-count {
	color: #666;
	margin-left: 5px;
}

#ld-custom-single-course .course-title {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 15px;
	line-height: 1.3;
}

#ld-custom-single-course .course-categories {
	margin-bottom: 20px;
}

#ld-custom-single-course .course-categories a {
	display: inline-block;
	background: #f0f0f0;
	padding: 5px 12px;
	border-radius: 4px;
	margin-right: 8px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
}

#ld-custom-single-course .course-categories a:hover {
	background: #e0e0e0;
}

/* Course Description */
#ld-custom-single-course .course-description {
	line-height: 1.8;
	color: #555;
}

#ld-custom-single-course .course-description p {
	line-height: 1.8;
	color: #555;
}

/* What Will You Learn */
#ld-custom-single-course .what-will-learn {
	margin-top: 40px;
}

#ld-custom-single-course .what-will-learn h4 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 20px;
}

#ld-custom-single-course .what-will-learn ul {
	list-style: none;
	padding: 0;
}

#ld-custom-single-course .what-will-learn ul li {
	padding: 10px 0;
	padding-left: 30px;
	position: relative;
}

#ld-custom-single-course .what-will-learn ul li::before {
	content: "\f00c";
	font-family: FontAwesome;
	position: absolute;
	left: 0;
	color: #1cb098;
}

/* Course Curriculum */
#ld-custom-single-course .course-curriculum {
	margin-top: 40px;
}

#ld-custom-single-course .course-curriculum h4 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 20px;
}

/* LearnDash Course Content List - Accordion Style */
#ld-custom-single-course .learndash-course-content-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Accordion Item (Lesson Section) */
#ld-custom-single-course .ld-accordion-item {
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	transition: all 0.3s ease;
}

/* Accordion Header (Lesson Title) */
#ld-custom-single-course .ld-accordion-header {
	padding: 18px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	background: #fff;
	transition: background 0.3s ease;
}

#ld-custom-single-course .ld-accordion-header:hover {
	background: #f9f9f9;
}

#ld-custom-single-course .ld-section-title {
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
}

#ld-custom-single-course .ld-accordion-icon {
	transition: transform 0.3s ease;
	color: #666;
	font-size: 14px;
}

#ld-custom-single-course .ld-accordion-item.active .ld-accordion-icon {
	transform: rotate(180deg);
}

/* Accordion Content (Topics List) */
#ld-custom-single-course .ld-accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

#ld-custom-single-course .ld-accordion-content.show {
	max-height: 2000px;
}

/* Topic Item */
#ld-custom-single-course .ld-topic-item {
	padding: 16px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid #f0f0f0;
	transition: background 0.2s ease;
}

#ld-custom-single-course .ld-topic-item:hover {
	background: #f9f9f9;
}

#ld-custom-single-course .ld-topic-left {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}

#ld-custom-single-course .ld-play-icon {
	color: #1cb098;
	font-size: 18px;
	flex-shrink: 0;
}

#ld-custom-single-course .ld-topic-title {
	color: #333;
	text-decoration: none;
	font-size: 15px;
	transition: color 0.2s ease;
}

#ld-custom-single-course .ld-topic-title:hover {
	color: #1cb098;
}

#ld-custom-single-course .ld-topic-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

#ld-custom-single-course .ld-topic-duration {
	color: #666;
	font-size: 14px;
	min-width: 45px;
	text-align: right;
}

#ld-custom-single-course .ld-lock-icon {
	color: #999;
	font-size: 16px;
}

/* Instructor Section */
#ld-custom-single-course .instructor-section {
	margin-top: 50px;
	padding-top: 50px;
	border-top: 1px solid #e0e0e0;
}

#ld-custom-single-course .instructor-section h4 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 30px;
}

#ld-custom-single-course .single-instructor-box {
	background: #f9f9f9;
	padding: 30px;
	border-radius: 8px;
}

#ld-custom-single-course .instructor-image img {
	width: 100%;
	border-radius: 8px;
}

#ld-custom-single-course .instructor-content h4 {
	font-size: 22px;
	margin-bottom: 8px;
}

#ld-custom-single-course .instructor-content h4 a {
	color: #333;
	text-decoration: none;
}

#ld-custom-single-course .instructor-content h4 a:hover {
	color: #1cb098;
}

#ld-custom-single-course .instructor-content .sub-title {
	display: block;
	color: #1cb098;
	font-weight: 500;
	margin-bottom: 15px;
}

#ld-custom-single-course .instructor-content p {
	line-height: 1.8;
	color: #555;
	margin-bottom: 20px;
}

/* Sidebar */
#ld-custom-single-course .tutor-single-course-sidebar {
	position: sticky;
	top: 100px;
}

#ld-custom-single-course .course-widget {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	padding: 30px;
}

/* Enrollment Buttons - Full Width Teal Styling */
#ld-custom-single-course .course-sidebar .course-entry-box .contact-btn,
#ld-custom-single-course .course-sidebar .course-entry-box a.contact-btn,
#ld-custom-single-course .course-sidebar .course-entry-box a.contact-btn.btn-block,
#ld-custom-single-course .course-sidebar .course-entry-box a.enroll-btn.contact-btn {
	display: block !important;
	width: 100% !important;
	padding: 18px 30px !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	text-align: center !important;
	background-color: #1cb098 !important;
	border-color: #1cb098 !important;
	color: #fff !important;
	border-radius: 8px !important;
	text-decoration: none !important;
	transition: all 0.3s ease !important;
	box-sizing: border-box !important;
}

#ld-custom-single-course .course-sidebar .course-entry-box .contact-btn:hover,
#ld-custom-single-course .course-sidebar .course-entry-box a.contact-btn:hover,
#ld-custom-single-course .course-sidebar .course-entry-box a.contact-btn.btn-block:hover,
#ld-custom-single-course .course-sidebar .course-entry-box a.enroll-btn.contact-btn:hover {
	background-color: #189882 !important;
	border-color: #189882 !important;
	color: #fff !important;
}

/* Enrollment Message Text */
#ld-custom-single-course .enroll-message {
	text-align: center;
	color: #999;
	font-size: 16px;
	margin-bottom: 15px;
}

/* Course Meta Info */
#ld-custom-single-course .course-meta-info {
	margin-top: 25px;
	padding-top: 10px;
	border-top: 1px solid #e5e5e5;
}

#ld-custom-single-course .course-meta-info ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

#ld-custom-single-course .course-meta-info ul li {
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	align-items: center;
}

#ld-custom-single-course .course-meta-info ul li:last-child {
	border-bottom: none;
}

#ld-custom-single-course .course-meta-info ul li i {
	width: 30px;
	color: #1cb098;
	font-size: 16px;
}

#ld-custom-single-course .course-meta-info ul li strong {
	min-width: 120px;
	font-weight: 600;
}

/* Sidebar Sections */
#ld-custom-single-course .course-materials,
#ld-custom-single-course .course-requirements,
#ld-custom-single-course .course-tags,
#ld-custom-single-course .course-audience {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 6px;
	margin-bottom: 20px;
}

#ld-custom-single-course .course-materials h5,
#ld-custom-single-course .course-requirements h5,
#ld-custom-single-course .course-tags h5,
#ld-custom-single-course .course-audience h5 {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 15px;
}

#ld-custom-single-course .course-materials ul,
#ld-custom-single-course .course-requirements ul,
#ld-custom-single-course .course-audience ul {
	list-style: none;
	padding: 0;
}

#ld-custom-single-course .course-materials ul li,
#ld-custom-single-course .course-requirements ul li,
#ld-custom-single-course .course-audience ul li {
	padding: 8px 0;
	padding-left: 25px;
	position: relative;
}

#ld-custom-single-course .course-materials ul li::before,
#ld-custom-single-course .course-requirements ul li::before,
#ld-custom-single-course .course-audience ul li::before {
	content: "\f00c";
	font-family: FontAwesome;
	position: absolute;
	left: 0;
	color: #1cb098;
}

#ld-custom-single-course .tag-list .badge {
	margin-right: 8px;
	margin-bottom: 8px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 500;
}

/* Responsive */
@media (max-width: 991px) {
	#ld-custom-single-course .tutor-single-course-sidebar {
		position: static;
		margin-top: 40px;
	}

	#ld-custom-single-course .course-title {
		font-size: 26px;
	}
}

@media (max-width: 767px) {
	#ld-custom-single-course .course-title {
		font-size: 22px;
	}

	#ld-custom-single-course .instructor-image {
		margin-bottom: 20px;
	}
}
