/**
 * Modern Courses Shortcode Styles
 */

.reign-modern-courses-container {
	position: relative;
	margin: 20px 0;
}

/* Controls */
.reign-courses-controls {
	margin-bottom: 30px;
}

.reign-controls-top {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
	padding: 12px 20px;
	background: var(--reign-site-sections-bg-color);
	border: 1px solid var(--reign-site-border-color);
	border-radius: var(--reign-global-border-radius);
	box-shadow: var(--reign-more-options-box-shadow);
	gap: 20px;
}

.controls-left {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	gap: 20px;
}

.controls-right {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-ms-flex-flow: wrap;
	    flex-flow: wrap;
	gap: 15px;
	-webkit-box-flex: 1;
	    -ms-flex: 1;
	        flex: 1;
	-webkit-box-pack: end;
	    -ms-flex-pack: end;
	        justify-content: flex-end;
}

/* View Switcher */
.reign-view-switcher {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 2px;
	background: var(--reign-site-secondary-bg-color);
	padding: 3px;
	border-radius: 8px;
}

.reign-view-switcher .view-btn {
	padding: 6px 10px;
	background: transparent;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	-webkit-transition: all 0.3s;
	        transition: all 0.3s;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	color: var(--reign-site-alternate-text-color);
}

.reign-view-switcher .view-btn:hover {
	background: var(--reign-site-sections-bg-color);
}

.reign-view-switcher .view-btn.active {
	background: var(--reign-site-sections-bg-color);
	color: var(--reign-colors-theme);
	box-shadow: var(--reign-more-options-box-shadow);
}

/* Course Count */
.reign-course-count {
	font-size: 14px;
	color: var(--reign-site-alternate-text-color);
}

.reign-course-count span {
	font-weight: 700;
	color: var(--reign-colors-theme);
	font-size: 16px;
}

/* Search Box */
.reign-course-search-box {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	position: relative;
	min-width: 200px;
}

.reign-course-search {
	width: 100%;
	padding: 8px 35px 8px 12px;
	border: 1px solid var(--reign-site-border-color);
	border-radius: 8px;
	outline: none;
	font-size: 14px;
	-webkit-transition: all 0.3s;
	        transition: all 0.3s;
}

.reign-course-search:focus {
	border-color: var(--reign-colors-theme);
	box-shadow: 0 0 0 3px var(--reign-site-secondary-bg-color);
}

.reign-course-search-box .search-btn {
	position: absolute;
	right: 5px;
	top: 50%;
	-webkit-transform: translateY(-50%);
	    -ms-transform: translateY(-50%);
	        transform: translateY(-50%);
	background: transparent;
	border: none;
	padding: 5px 8px;
	cursor: pointer;
	color: var(--reign-site-alternate-text-color);
}

/* Quick Filters & Sorting */
/* .reign-quick-filters select,
.reign-course-sorting select,
.reign-popular-tags select,
.reign-instructor-filter select {
	padding: 8px 12px;
	border: 1px solid var(--reign-site-border-color);
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	min-width: 120px;
	-webkit-transition: all 0.3s;
	        transition: all 0.3s;
}

.reign-quick-filters select:focus,
.reign-course-sorting select:focus,
.reign-popular-tags select:focus,
.reign-instructor-filter select:focus {
	outline: none;
	border-color: var(--reign-colors-theme);
	box-shadow: 0 0 0 3px var(--reign-site-secondary-bg-color);
} */

/* Instructor Filter Specific */
.reign-instructor-filter select {
	min-width: 150px;
}

/* Popular Tags Dropdown */
.reign-popular-tags select option[value="__more__"] {
	border-top: 1px solid var(--reign-site-border-color);
	font-weight: 600;
	color: var(--reign-colors-theme);
}

/* Advanced Filters Button */
.toggle-advanced-filters-btn {
	padding: 8px 12px;
	background: var(--reign-colors-theme);
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	-webkit-transition: all 0.3s;
	        transition: all 0.3s;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
}

.toggle-advanced-filters-btn:hover {
	-webkit-transform: translateY(-2px);
	    -ms-transform: translateY(-2px);
	        transform: translateY(-2px);
	box-shadow: var(--reign-more-options-box-shadow);
}

/* Filters Toggle */
.reign-filters-toggle {
	margin-top: 15px;
}

.toggle-filters-btn {
	padding: 10px 20px;
	background: var(--reign-site-sections-bg-color);
	border: 1px solid var(--reign-site-border-color);
	border-radius: 4px;
	cursor: pointer;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	gap: 8px;
}

.toggle-filters-btn:hover {
	background: var(--reign-site-secondary-bg-color);
}

/* Advanced Filters */
.reign-advanced-filters {
	margin-top: 15px;
	padding: 0;
	background: var(--reign-site-sections-bg-color);
	border: 1px solid var(--reign-site-border-color);
	border-radius: 12px;
	box-shadow: var(--reign-more-options-box-shadow);
	-webkit-animation: slideDown 0.3s ease;
	        animation: slideDown 0.3s ease;
}

@-webkit-keyframes slideDown {
	from {
		opacity: 0;
		-webkit-transform: translateY(-10px);
		        transform: translateY(-10px);
	}
	to {
		opacity: 1;
		-webkit-transform: translateY(0);
		        transform: translateY(0);
	}
}

@keyframes slideDown {
	from {
		opacity: 0;
		-webkit-transform: translateY(-10px);
		        transform: translateY(-10px);
	}
	to {
		opacity: 1;
		-webkit-transform: translateY(0);
		        transform: translateY(0);
	}
}

.advanced-filters-header {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	padding: 15px 20px;
	border-bottom: 1px solid var(--reign-site-border-color);
}

.advanced-filters-header h4 {
	margin: 0;
	font-size: 16px;
	color: var(--reign-site-headings-color);
}

.close-filters-btn {
	background: none;
	border: none;
	font-size: 24px;
	color: var(--reign-site-alternate-text-color);
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
}

.close-filters-btn:hover {
	color: var(--reign-site-headings-color);
}

/* Tag Cloud */
.tags-cloud-section {
	padding: 20px;
}

.tags-cloud {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.tag-cloud-item {
	display: inline-block;
	padding: 6px 12px;
	background: var(--reign-site-secondary-bg-color);
	border: 1px solid var(--reign-site-border-color);
	border-radius: 20px;
	cursor: pointer;
	-webkit-transition: all 0.3s;
	        transition: all 0.3s;
	font-size: 13px;
	color: var(--reign-site-alternate-text-color);
	position: relative;
}

.tag-cloud-item:hover {
	background: #e3f2fd;
	border-color: #2196f3;
	color: #1976d2;
}

.tag-cloud-item.selected {
	background: #2196f3;
	border-color: #2196f3;
	color: white;
}

.tag-cloud-item .tag-count {
	font-size: 11px;
	opacity: 0.7;
	margin-left: 2px;
}

/* Tag sizes based on popularity */
.tag-cloud-item.tag-size-1 { font-size: 12px; }
.tag-cloud-item.tag-size-2 { font-size: 14px; }
.tag-cloud-item.tag-size-3 { font-size: 16px; font-weight: 600; }
.tag-cloud-item.tag-size-4 { font-size: 18px; font-weight: 700; }

/* Selected Tags */
.selected-tags {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--reign-site-border-color);
}

.selected-tags h5 {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--reign-site-alternate-text-color);
}

.selected-tags-list {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	gap: 8px;
	min-height: 40px;
	padding: 10px;
	background: #f8f9fa;
	border-radius: 8px;
}

.selected-tags-list .selected-tag {
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	gap: 5px;
	padding: 5px 10px;
	background: #2196f3;
	color: white;
	border-radius: 15px;
	font-size: 13px;
}

.selected-tag .remove-tag {
	cursor: pointer;
	font-weight: bold;
	opacity: 0.8;
}

.selected-tag .remove-tag:hover {
	opacity: 1;
}

.filters-inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.filter-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: var(--reign-site-headings-color);
}

.filter-group select {
	width: 100%;
	padding: 8px;
	border: 1px solid var(--reign-site-border-color);
	border-radius: 4px;
}

.filter-actions {
	grid-column: 1 / -1;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

/* Pagination Styles */
.reign-courses-pagination {
	margin-top: 40px;
	text-align: center;
}

.reign-courses-pagination ul {
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 8px;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-ms-flex-flow: wrap;
        flex-flow: wrap;
			
}

.reign-courses-pagination li {
	display: inline-block;
}

.reign-courses-pagination a,
.reign-courses-pagination span {
	display: inline-block;
	padding: 10px 15px;
	background: var(--reign-site-sections-bg-color);
	border: 1px solid var(--reign-site-border-color);
	border-radius: 8px;
	color: var(--reign-site-alternate-text-color);
	text-decoration: none;
	-webkit-transition: all 0.3s;
	        transition: all 0.3s;
	min-width: 40px;
	text-align: center;
	font-weight: 500;
}

.reign-courses-pagination a.page-numbers:hover {
	background: var(--reign-colors-theme, #2c5aa0) !important;
	border-color: var(--reign-colors-theme, #2c5aa0) !important;
	color: white !important;
}

.reign-courses-pagination .current {
	background: var(--reign-colors-theme);
	border-color: transparent;
	color: white;
	font-weight: 600;
}

.reign-courses-pagination .dots {
	border: none;
	background: transparent;
	padding: 10px 5px;
}

.reign-courses-pagination .prev,
.reign-courses-pagination .next {
	font-weight: 600;
}

/* Load More Button */
.reign-load-more-wrapper {
	text-align: center;
	margin-top: 40px;
	padding: 20px 0;
}

.reign-load-more-btn {
	display: inline-block;
	padding: 14px 40px;
	background: var(--reign-colors-theme);
	color: white;
	border: none;
	border-radius: 30px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	-webkit-transition: all 0.3s;
	        transition: all 0.3s;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.reign-load-more-btn:hover {
	-webkit-transform: translateY(-2px);
	    -ms-transform: translateY(-2px);
	        transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.reign-load-more-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	-webkit-transform: none;
	    -ms-transform: none;
	        transform: none;
}

.reign-load-more-btn .btn-loader {
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	gap: 8px;
}

/* Infinite Scroll Loader */
.infinite-scroll-loader {
	text-align: center;
	padding: 30px;
	display: none;
}

.infinite-scroll-loader.active {
	display: block;
}

.infinite-scroll-loader .spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f0f0f0;
	border-top: 4px solid #667eea;
	border-radius: 50%;
	-webkit-animation: spin 1s linear infinite;
	        animation: spin 1s linear infinite;
	margin: 0 auto;
}

@-webkit-keyframes spin {
	0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
	100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes spin {
	0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
	100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

.apply-filters-btn,
.clear-filters-btn {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	-webkit-transition: all 0.3s;
	        transition: all 0.3s;
}

.apply-filters-btn {
	background-color: var(--reign-site-button-bg-color, #3b82f6);
	color: var(--reign-site-button-text-color, #fff);
	border-color: var(--reign-site-button-bg-color, #3b82f6);
}

.apply-filters-btn:hover {
	background-color: var(--reign-site-button-bg-hover-color, transparent);
	color: var(--reign-site-button-text-hover-color, #3b82f6);
	border-color: var(--reign-site-button-bg-hover-color, #3b82f6);
}

.clear-filters-btn {
	background: var(--reign-site-secondary-bg-color);
	color: var(--reign-site-headings-color);
}

.clear-filters-btn:hover {
	background: #ccc;
}

/* Courses Grid */
.reign-courses-wrapper {
	display: grid;
	gap: 30px;
	margin-bottom: 30px;
}

.reign-courses-wrapper.reign-view-grid {
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.reign-courses-wrapper.reign-view-grid.reign-cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.reign-courses-wrapper.reign-view-grid.reign-cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.reign-courses-wrapper.reign-view-grid.reign-cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

.reign-courses-wrapper.reign-view-list,
.reign-courses-wrapper.reign-view-list.reign-cols-2,
.reign-courses-wrapper.reign-view-list.reign-cols-3,
.reign-courses-wrapper.reign-view-list.reign-cols-4,
.reign-courses-wrapper.reign-view-list.reign-template-premium,
.reign-courses-wrapper.reign-view-list.reign-template-detailed,
.reign-courses-wrapper.reign-view-list.reign-template-creative,
.reign-courses-wrapper.reign-view-list.reign-template-compact {
	grid-template-columns: 1fr !important;
}

/* Course Card */
.reign-course-card {
	background: var(--reign-site-sections-bg-color);
	border-radius: 8px;
	overflow: hidden; /* Changed to prevent badge clipping */
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	-webkit-transition: all 0.3s;
	        transition: all 0.3s;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	position: relative;
}

.reign-course-card:hover {
	-webkit-transform: translateY(-5px);
	    -ms-transform: translateY(-5px);
	        transform: translateY(-5px);
	box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.course-thumb {
	position: relative;
	overflow: hidden; /* Keep hidden for image cropping */
	background: #f5f5f5;
	height: 200px; /* Fixed height instead of padding-bottom */
	border-radius: 8px 8px 0 0; /* Round top corners */
}

.course-thumb img,
.course-thumb .default-course-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Ensure no inline styles override our rules */
.course-thumb img[style*="object-fit"] {
	object-fit: cover !important;
}

/* Fallback for no image */
.course-thumb > div {
	height: 100%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	background: #f5f5f5;
}

.course-content {
	padding: 20px;
	-webkit-box-flex: 1;
	    -ms-flex: 1;
	        flex: 1;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
}

.course-title {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.4;
}

.course-title a {
	color: var(--reign-site-headings-color);
	text-decoration: none;
}

.course-title a:hover {
	color: var(--reign-colors-theme);
}

.course-excerpt {
	color: var(--reign-site-alternate-text-color);
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 15px;
	-webkit-box-flex: 1;
	    -ms-flex: 1;
	        flex: 1;
}

/* Course Ribbon/Badge */
.ld_course_grid_price {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #ff6b6b;
	color: white;
	padding: 6px 14px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	z-index: 1; /* Increased z-index to stay above all content */
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
	line-height: 1.2;
	height: auto;
	min-height: 26px;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	white-space: nowrap;
	width: auto;
}

.ld_course_grid_price.free {
	background: #4caf50;
}

.ld_course_grid_price.enrolled {
	background: #2196f3;
}

.ld_course_grid_price.completed {
	background: #9c27b0;
}

.ld_course_grid_price.closed {
	background: #f44336;
}

.ld_course_grid_price.custom {
	background: #ff9800;
}

.ld_course_grid_price span {
	display: block;
	line-height: 1;
	font-size: inherit;
	font-weight: inherit;
}

/* Course Progress */
.course-progress {
	margin: 15px 0;
}

.progress-bar-wrapper {
	background: var(--reign-site-secondary-bg-color);
	border-radius: 10px;
	height: 8px;
	overflow: hidden;
	margin-bottom: 5px;
}

.progress-bar {
	background: -webkit-linear-gradient(0deg, #4caf50, #8bc34a);
	background: linear-gradient(90deg, #4caf50, #8bc34a);
	height: 100%;
	border-radius: 10px;
	-webkit-transition: width 0.3s ease;
	        transition: width 0.3s ease;
	min-width: 2px; /* Ensure bar is visible even at 0% */
}

.progress-text {
	font-size: 12px;
	color: var(--reign-site-alternate-text-color);
	font-weight: 600;
}

/* Course Taxonomies */
.course-taxonomies {
	margin: 10px 0;
	padding-right: 60px; /* Prevent overlap with badge */
}

.course-categories,
.course-tags {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 5px;
}

.course-categories-premium {
    margin-bottom: 10px;
}

.category-badge {
	background: #e3f2fd;
	color: #1976d2;
	padding: 3px 10px;
	border-radius: 15px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	height: 24px;
	max-height: 24px;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
}

.tag-badge {
	background: #f3e5f5;
	color: #7b1fa2;
	padding: 3px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-style: italic;
	height: 22px;
	max-height: 22px;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	position: relative;
	z-index: 1;
}

/* Course Stats */
.course-stats {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	gap: 15px;
	margin: 10px 0;
	font-size: 13px;
	color: var(--reign-site-alternate-text-color);
}

.stat-item {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	gap: 5px;
}

.stat-item i {
	font-size: 16px;
	color: var(--reign-site-alternate-text-color);
}

/* Course Meta */
.course-meta {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	padding-top: 15px;
	border-top: 1px solid var(--reign-site-border-color);
	margin-top: auto;
}

.course-price {
	font-size: 18px;
	font-weight: 700;
	color: var(--reign-colors-theme);
}

.course-link {
	color: var(--reign-colors-theme);
	text-decoration: none;
	font-weight: 500;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	gap: 5px;
}

.course-link:hover {
	color: #1e3a6f;
}

/* List View Base Structure - Simplified & Unified */
/* All templates inherit these rules in list view */

/* Only course thumbnail images use absolute positioning */
.reign-view-list .course-thumb img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Pagination */
.reign-courses-pagination {
	text-align: center;
	margin-top: 30px;
	padding: 20px 0;
}

/* Remove list styling if pagination returns a list */
.reign-courses-pagination ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.reign-courses-pagination ul li {
	display: inline-block;
	margin: 0 2px;
}

/* Production-level Image Handling Enhancements */
/* Aspect Ratio Support for Modern Browsers */
.course-thumb {
	aspect-ratio: 2/1; /* 2:1 aspect ratio for grid view */
}

/* List View Specific Aspect Ratios */
.reign-view-list .course-thumb {
	aspect-ratio: 1/1; /* Square in list view */
}

/* Ensure images always fill containers without white space */
.course-thumb a {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
}

/* Handle WordPress default image classes */
.course-thumb .attachment-post-thumbnail,
.creative-thumb .attachment-post-thumbnail,
.compact-thumb .attachment-post-thumbnail,
.course-thumb .wp-post-image,
.creative-thumb .wp-post-image,
.compact-thumb .wp-post-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Complete pagination hover reset to prevent theme conflicts */
.reign-courses-pagination * {
	box-sizing: border-box;
}

.reign-courses-pagination .dots {
	background: transparent !important;
	border: none !important;
	color: #666 !important;
	cursor: default !important;
}

/* Universal Badge Consistency - Higher specificity for group pages */
.reign-modern-courses-container .reign-course-card .ld_course_grid_price,
.reign-course-card .ld_course_grid_price,
.reign-modern-courses-container .reign-course-card .status-badge,
.reign-course-card .status-badge,
.reign-modern-courses-container .reign-course-card [class*="badge"],
.reign-course-card [class*="badge"],
.reign-modern-courses-container .reign-course-card [class*="ribbon"],
.reign-course-card [class*="ribbon"] {
	height: auto !important;
	min-height: 26px !important;
	max-height: none !important;
	width: auto !important;
	max-width: none !important;
	display: -webkit-inline-box !important;
	display: -ms-inline-flexbox !important;
	display: inline-flex !important;
	-webkit-box-align: center !important;
	    -ms-flex-align: center !important;
	        align-items: center !important;
	-webkit-box-pack: center !important;
	    -ms-flex-pack: center !important;
	        justify-content: center !important;
	padding: 6px 14px !important;
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	left: auto !important;
	white-space: nowrap !important;
	line-height: 1.2 !important;
}

.reign-courses-wrapper.reign-template-classic [class*=badge] {
	position: static !important;
}

/* Specific override for group pages */
body.single-groups .ld_course_grid_price,
body.groups-template-default .ld_course_grid_price,
.groups .ld_course_grid_price {
	width: auto !important;
	max-width: none !important;
	left: auto !important;
	right: 12px !important;
	display: -webkit-inline-box !important;
	display: -ms-inline-flexbox !important;
	display: inline-flex !important;
}

/* Load More */
.reign-load-more-wrapper {
	text-align: center;
	margin-top: 30px;
}

.reign-load-more-btn {
	padding: 12px 30px;
	background-color: var(--reign-site-button-bg-color, #3b82f6);
	color: var(--reign-site-button-text-color, #fff);
	border-color: var(--reign-site-button-bg-color, #3b82f6);
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	-webkit-transition: all 0.3s;
	        transition: all 0.3s;
}

.reign-load-more-btn:hover {
	background-color: var(--reign-site-button-bg-hover-color, transparent);
	color: var(--reign-site-button-text-hover-color, #3b82f6);
	border-color: var(--reign-site-button-bg-hover-color, #3b82f6);
}

.reign-load-more-btn.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* No Courses */
.no-courses-found {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	background: #f8f9fa;
	border-radius: 8px;
}

/* ===================================
   TEMPLATE STYLES
   =================================== */

/* Minimal Template - Enhanced Modern Design */
.reign-course-card.minimal-template {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.08);
	-webkit-transition: all 0.3s ease;
	        transition: all 0.3s ease;
	background: var(--reign-site-sections-bg-color);
	position: relative;
}

.reign-course-card.minimal-template:hover {
	-webkit-transform: translateY(-3px);
	    -ms-transform: translateY(-3px);
	        transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.minimal-template .course-thumb {
	height: 200px;
	position: relative;
	overflow: hidden;
	background: #f5f5f5;
}

/* Minimal Ribbon */
.minimal-template .minimal-ribbon {
	position: absolute;
	top: 15px;
	left: 15px;
	background: var(--reign-colors-theme);
	color: white;
	padding: 5px 15px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	z-index: 2;
	text-transform: uppercase;
}

/* Quick View Overlay */
.minimal-template .minimal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.7);
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	opacity: 0;
	-webkit-transition: opacity 0.3s;
	        transition: opacity 0.3s;
}

.minimal-template:hover .minimal-overlay {
	opacity: 1;
}

.minimal-template .minimal-quick-view {
	background: var(--reign-site-sections-bg-color);
	color: var(--reign-site-headings-color);
	font-size: 14px;
	padding: 10px 20px;
	border-radius: 25px;
	text-decoration: none;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	gap: 8px;
	-webkit-transform: scale(0.9);
	    -ms-transform: scale(0.9);
	        transform: scale(0.9);
	-webkit-transition: -webkit-transform 0.3s;
	        transition: transform 0.3s;
	height: auto;
	max-width: 150px;
}

.minimal-template:hover .minimal-quick-view {
	-webkit-transform: scale(1);
	    -ms-transform: scale(1);
	        transform: scale(1);
}

.minimal-template .minimal-quick-view:hover {
	background: #667eea;
	color: white;
}

/* Content Area */
.minimal-template .minimal-content {
	padding: 25px;
}

/* Category Label */
.minimal-template .minimal-category {
	margin-bottom: 10px;
}

.minimal-template .category-label {
	display: inline-block;
	background: #f0f4ff;
	color: var(--reign-colors-theme);
	padding: 4px 12px;
	border-radius: 15px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Title */
.minimal-template .minimal-title {
	margin: 0 0 12px;
	font-size: 18px;
	line-height: 1.4;
	font-weight: 600;
}

.minimal-template .minimal-title a {
	color: var(--reign-site-headings-color);
	text-decoration: none;
	-webkit-transition: color 0.3s;
	        transition: color 0.3s;
}

.minimal-template .minimal-title a:hover {
	color: var(--reign-colors-theme);
}

/* Excerpt */
.minimal-template .minimal-excerpt {
	color: var(--reign-site-alternate-text-color);
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 15px;
	min-height: 40px;
}

/* Meta Info */
.minimal-template .minimal-meta {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 20px;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--reign-site-border-color);
}

.minimal-template .meta-item {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	gap: 5px;
	color: var(--reign-site-alternate-text-color);
	font-size: 13px;
}

.minimal-template .meta-item i {
	color: var(--reign-colors-theme);
	font-size: 16px;
}

/* Course Reviews Display - Unified for All Templates and Single Course */
.reign-course-reviews {
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	gap: 8px;
	margin: 10px 0;
}

.reign-course-reviews .reign-star-rating {
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	gap: 2px;
	cursor: help;
}

.reign-course-reviews .reign-star-rating .star {
	color: #b0b0b0;
	font-size: 16px;
	line-height: 1;
	position: relative;
	display: inline-block;
}

.reign-course-reviews .reign-star-rating .star.filled {
	color: #ffc107 !important;
}

.reign-course-reviews .reign-star-rating .star.half-filled {
	background: -webkit-linear-gradient(0deg, #ffc107 50%, #b0b0b0 50%);
	background: linear-gradient(90deg, #ffc107 50%, #b0b0b0 50%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.reign-course-reviews .rating-value {
	font-weight: 600;
	color: var(--reign-site-headings-color);
	font-size: 14px;
}

.reign-course-reviews .review-count {
	color: var(--reign-site-alternate-text-color);
	font-size: 14px;
	white-space: nowrap;
}

/* Progress Bar */
.minimal-template .minimal-progress {
	margin-bottom: 15px;
}

.minimal-template .progress-header {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
	margin-bottom: 8px;
	font-size: 13px;
}

.minimal-template .progress-label {
	color: var(--reign-site-alternate-text-color);
}

.minimal-template .progress-percent {
	color: var(--reign-colors-theme);
	font-weight: 600;
}

.minimal-template .progress-bar-wrapper {
	height: 6px;
	background: #e9ecef;
	border-radius: 10px;
	overflow: hidden;
}

.minimal-template .progress-bar {
	height: 100%;
	background: -webkit-linear-gradient(0deg, #667eea 0%, #764ba2 100%);
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
	border-radius: 10px;
	-webkit-transition: width 0.5s ease;
	        transition: width 0.5s ease;
}

/* Footer */
.minimal-template .minimal-footer {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	margin-top: auto;
}

.minimal-template .price-tag {
	font-size: 20px;
	font-weight: 700;
	color: var(--reign-site-headings-color);
}

.minimal-template .price-tag.free {
	color: #28a745;
}

/* Button */
.minimal-template .minimal-btn {
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	gap: 6px;
	padding: 10px 20px;
	background-color: var(--reign-site-button-bg-color, #3b82f6);
	color: var(--reign-site-button-text-color, #fff);
	border-color: var(--reign-site-button-bg-color, #3b82f6);
	border-radius: 25px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	-webkit-transition: all 0.3s;
	        transition: all 0.3s;
}

.minimal-template .minimal-btn:hover {
	-webkit-transform: translateY(-2px);
	    -ms-transform: translateY(-2px);
	        transform: translateY(-2px);
	background-color: var(--reign-site-button-bg-hover-color, transparent);
	color: var(--reign-site-button-text-hover-color, #3b82f6);
	border-color: var(--reign-site-button-bg-hover-color, #3b82f6);
	box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.minimal-template .minimal-btn i {
	font-size: 16px;
}

/* Premium Template */
.reign-course-card.premium-template {
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,0.12);
	-webkit-transition: all 0.4s ease;
	        transition: all 0.4s ease;
	background: var(--reign-site-sections-bg-color);
	position: relative;
}

.reign-course-card.premium-template:hover {
	-webkit-transform: translateY(-5px);
	    -ms-transform: translateY(-5px);
	        transform: translateY(-5px);
	box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.premium-template .course-thumb {
	height: 200px;
	position: relative;
	overflow: hidden;
	background: #f5f5f5;
}

.premium-template .course-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: -webkit-gradient(linear, left top, left bottom, color-stop(60%, transparent), to(rgba(0,0,0,0.8)));
	background: -webkit-linear-gradient(top, transparent 60%, rgba(0,0,0,0.8));
	background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.8));
	opacity: 0;
	-webkit-transition: all 0.3s;
	        transition: all 0.3s;
}

.premium-template:hover .course-overlay {
	opacity: 1;
}

.premium-template .course-stats-overlay {
	position: absolute;
	bottom: 15px;
	left: 15px;
	color: white;
	font-size: 12px;
	font-weight: 600;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -ms-flex-flow: wrap;
        flex-flow: wrap;
    gap: 10px;
}

.premium-template .course-stats-overlay span {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -ms-flex-flow: wrap;
        flex-flow: wrap;
    gap: 5px;
}

.premium-template .course-content {
	padding: 25px;
}

.premium-template .instructor-info {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	margin-bottom: 15px;
	font-size: 13px;
	color: var(--reign-site-alternate-text-color);
}

.premium-template .instructor-info img {
	margin-right: 8px;
	border-radius: 50%;
}

.premium-template .course-title {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
}

.premium-template .course-title a {
	color: var(--reign-site-headings-color);
	text-decoration: none;
}

.premium-template .course-title a:hover {
	color: var(--reign-colors-theme);
}

.premium-template .course-excerpt {
	color: var(--reign-site-body-text-color);
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 20px;
}

.premium-template .course-footer {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	padding-top: 20px;
	border-top: 1px solid var(--reign-site-border-color);
}

.premium-template .price-free {
	color: #48bb78;
	font-weight: 700;
	font-size: 16px;
}

.premium-template .price-paid {
	color: var(--reign-colors-theme);
	font-weight: 700;
	font-size: 18px;
}

.premium-template .course-btn-premium {
	padding: 10px 24px;
	background-color: var(--reign-site-button-bg-color, #3b82f6);
	color: var(--reign-site-button-text-color, #fff);
	border-color: var(--reign-site-button-bg-color, #3b82f6);
	border-radius: 25px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	-webkit-transition: all 0.3s;
	        transition: all 0.3s;
	box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.premium-template .course-btn-premium:hover {
	-webkit-transform: translateY(-2px);
	    -ms-transform: translateY(-2px);
	        transform: translateY(-2px);
	background-color: var(--reign-site-button-bg-hover-color, transparent);
	color: var(--reign-site-button-text-hover-color, #3b82f6);
	border-color: var(--reign-site-button-bg-hover-color, #3b82f6);
	box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.reign-course-card.detailed-template {
	border-radius: 12px;
	overflow: hidden;
	background: var(--reign-site-sections-bg-color);
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	-webkit-transition: all 0.3s;
	        transition: all 0.3s;
}

.reign-course-card.detailed-template:hover {
	-webkit-transform: translateY(-3px);
	    -ms-transform: translateY(-3px);
	        transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.detailed-template .course-thumb {
	height: 200px;
	position: relative;
	overflow: hidden;
	background: #f5f5f5;
}

.detailed-template .status-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 12px;
	border-radius: 15px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: white;
	height: 30px;
	max-height: 30px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
}

.detailed-template .status-badge.enrolled {
	background: #3182ce;
}

.detailed-template .status-badge.completed {
	background: #38a169;
}

.detailed-template .detailed-content {
	padding: 24px;
}

.detailed-template .course-categories {
	margin-bottom: 12px;
}

.detailed-template .instructor-detailed {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	margin: 15px 0;
	border-radius: 8px;
}

.detailed-template .instructor-detailed img {
	margin-right: 12px;
	border-radius: 50%;
}

.detailed-template .instructor-info {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
}

.detailed-template .instructor-name {
	font-weight: 600;
	color: var(--reign-site-headings-color);
	font-size: 14px;
}

.detailed-template .instructor-role {
	font-size: 12px;
	color: var(--reign-site-body-text-color);
}

.detailed-template .course-title {
	margin: 0 0 15px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
}

.detailed-template .course-title a {
	color: var(--reign-site-headings-color);
	text-decoration: none;
}

.detailed-template .course-title a:hover {
	color: var(--reign-colors-theme);
}

.detailed-template .course-excerpt {
	color: var(--reign-site-body-text-color);
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 20px;
}

.detailed-template .course-stats-detailed {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	gap: 15px;
	margin: 15px 0;
	border-radius: 8px;
}

.detailed-template .course-stats-detailed .stat-item {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--reign-site-body-text-color);
	font-weight: 500;
}

.detailed-template .course-stats-detailed .stat-item i {
	color: var(--reign-colors-theme);
	font-size: 16px;
}

.detailed-template .course-tags-detailed {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	gap: 6px;
	margin: 15px 0;
}

.detailed-template .course-footer-detailed {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	padding-top: 20px;
	border-top: 1px solid var(--reign-site-border-color);
	margin-top: 20px;
	gap: 10px;
}

.detailed-template .price-free-detailed {
	color: #48bb78;
	font-weight: 700;
	font-size: 18px;
}

.detailed-template .price-paid-detailed {
	color: var(--reign-site-headings-color);
	font-weight: 700;
	font-size: 20px;
}

.detailed-template .btn-detailed {
	padding: 12px 24px;
	background-color: var(--reign-site-button-bg-color, #3b82f6);
	color: var(--reign-site-button-text-color, #fff);
	border-color: var(--reign-site-button-bg-color, #3b82f6);
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	text-align: center;
	-webkit-transition: all 0.3s;
	        transition: all 0.3s;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.detailed-template .btn-detailed:hover {
	-webkit-transform: translateY(-2px);
	    -ms-transform: translateY(-2px);
	        transform: translateY(-2px);
	background-color: var(--reign-site-button-bg-hover-color, transparent);
	color: var(--reign-site-button-text-hover-color, #3b82f6);
	border-color: var(--reign-site-button-bg-hover-color, #3b82f6);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Template-specific Grid Adjustments */
.reign-courses-wrapper.reign-template-compact {
	grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.reign-courses-wrapper.reign-template-detailed {
	grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
}

.reign-courses-wrapper.reign-template-creative {
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.reign-courses-wrapper.reign-template-premium {
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* ========================================
   UNIFIED LIST VIEW - PRODUCTION READY
   All templates use consistent layout in list view
   ======================================== */

/* Base card structure for ALL templates in list view */
.reign-view-list .reign-course-card {
	display: -webkit-box !important;
	display: -ms-flexbox !important;
	display: flex !important;
	-webkit-box-orient: horizontal !important;
	-webkit-box-direction: normal !important;
	    -ms-flex-direction: row !important;
	        flex-direction: row !important;
	min-height: 200px !important;
	height: auto !important;
	-webkit-box-align: stretch !important;
	    -ms-flex-align: stretch !important;
	        align-items: stretch !important;
	margin-bottom: 20px !important;
	background: var(--reign-site-sections-bg-color) !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* Remove template-specific heights in list view */
.reign-view-list .minimal-template,
.reign-view-list .premium-template,
.reign-view-list .creative-template,
.reign-view-list .compact-template,
.reign-view-list .detailed-template {
	height: auto !important;
}

/* Wrapper elements */
.reign-view-list .course-wrapper,
.reign-view-list .compact-wrapper {
	display: -webkit-box !important;
	display: -ms-flexbox !important;
	display: flex !important;
	width: 100% !important;
	-webkit-box-align: stretch !important;
	    -ms-flex-align: stretch !important;
	        align-items: stretch !important;
	height: 100% !important;
	-webkit-box-orient: horizontal !important;
	-webkit-box-direction: normal !important;
	    -ms-flex-direction: row !important;
	        flex-direction: row !important;
}

/* Standardize ALL image containers */
.reign-view-list .course-thumb {
	width: 300px !important;
	min-height: 200px !important;
	height: 100% !important;
	-ms-flex-negative: 0 !important;
	    flex-shrink: 0 !important;
	position: relative !important;
	overflow: hidden !important;
	background: #f5f5f5 !important;
	border-radius: 8px 0 0 8px;
}

/* Images fill containers */
.reign-view-list .course-thumb img,
.reign-view-list img.default-course-image {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
}

/* Content areas */
.reign-view-list .course-content,
.reign-view-list .minimal-content,
.reign-view-list .detailed-content,
.reign-view-list .compact-content,
.reign-view-list .creative-overlay {
	-webkit-box-flex: 1 !important;
	    -ms-flex: 1 !important;
	        flex: 1 !important;
	padding: 20px !important;
	display: -webkit-box !important;
	display: -ms-flexbox !important;
	display: flex !important;
	-webkit-box-orient: vertical !important;
	-webkit-box-direction: normal !important;
	    -ms-flex-direction: column !important;
	        flex-direction: column !important;
	position: static !important;
	background: transparent !important;
	opacity: 1 !important;
}

/* Hide overlays in list view */
.reign-view-list .course-overlay,
.reign-view-list .minimal-overlay,
.reign-view-list .premium-template .course-overlay {
	display: none !important;
}

/* Show stats inline */
.reign-view-list .course-stats-overlay {
	position: static !important;
	display: -webkit-box !important;
	display: -ms-flexbox !important;
	display: flex !important;
	-ms-flex-wrap: wrap !important;
	    flex-wrap: wrap !important;
	gap: 15px !important;
	margin: 10px 0 !important;
	background: transparent !important;
	padding: 0 !important;
}

/* Ribbons in list view */
.reign-view-list .course-ribbon,
.reign-view-list .minimal-ribbon,
.reign-view-list .premium-ribbon {
	position: absolute !important;
	top: 10px !important;
	left: 10px !important;
	z-index: 2 !important;
}

/* Progress bars in list view */
.reign-view-list .course-progress,
.reign-view-list .minimal-progress {
	margin: 10px 0 !important;
}

/* Footers in list view */
.reign-view-list .course-footer,
.reign-view-list .minimal-footer,
.reign-view-list .course-footer-detailed {
	margin-top: auto !important;
	padding-top: 15px !important;
	display: -webkit-box !important;
	display: -ms-flexbox !important;
	display: flex !important;
	-webkit-box-pack: justify !important;
	    -ms-flex-pack: justify !important;
	        justify-content: space-between !important;
	-webkit-box-align: center !important;
	    -ms-flex-align: center !important;
	        align-items: center !important;
}

/* Ensure titles are consistent */
.reign-view-list .course-title,
.reign-view-list .minimal-title {
	font-size: 18px !important;
	margin-bottom: 10px !important;
	line-height: 1.4 !important;
}

/* Hide hover effects in list view */
.reign-view-list .reign-course-card:hover {
	-webkit-transform: none !important;
	    -ms-transform: none !important;
	        transform: none !important;
}

/* Widget Area */
.widget-area .reign-controls-top {
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
		-ms-flex-direction: column;
			flex-direction: column;
	-webkit-box-align: stretch;
		-ms-flex-align: stretch;
			align-items: stretch;
}

.widget-area .reign-course-search-box {
	max-width: 100%;
}

.widget-area .reign-courses-wrapper.reign-template-compact {
	grid-template-columns: 1fr;
}

.widget-area .reign-courses-wrapper.reign-view-grid.reign-view-grid {
	grid-template-columns: 1fr;
}

.widget-area .reign-view-list .reign-course-card {
	-webkit-box-orient: vertical !important;
	-webkit-box-direction: normal !important;
		-ms-flex-direction: column !important;
			flex-direction: column !important;
}

.widget-area .reign-view-list .course-thumb,
.widget-area .reign-view-list .creative-thumb {
	width: 100% !important;
	height: 200px !important;
}

.widget-area .compact-template .compact-wrapper {
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
		-ms-flex-direction: column;
			flex-direction: column;
	height: auto;
}

.widget-area .compact-template .compact-thumb {
	width: 100%;
	height: 150px;
}

.widget-area .controls-right>div {
	-webkit-box-flex: 0;
		-ms-flex: 0 0 100%;
			flex: 0 0 100%;
}

.widget-area .controls-right>div select {
	width: 100%;
}

/* Responsive */
@media (max-width: 991px) {
	.reign-controls-top {
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		    -ms-flex-direction: column;
		        flex-direction: column;
		-webkit-box-align: stretch;
		    -ms-flex-align: stretch;
		        align-items: stretch;
	}
	
	.reign-course-search-box {
		max-width: 100%;
	}
	
	.reign-courses-wrapper.reign-view-grid.reign-view-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.reign-courses-wrapper.reign-template-compact {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 576px) {
	.reign-courses-wrapper.reign-view-grid.reign-view-grid {
		grid-template-columns: 1fr;
	}
	
	.reign-view-list .reign-course-card {
		-webkit-box-orient: vertical !important;
		-webkit-box-direction: normal !important;
		    -ms-flex-direction: column !important;
		        flex-direction: column !important;
	}
	
	.reign-view-list .course-thumb,
	.reign-view-list .creative-thumb {
		width: 100% !important;
		height: 200px !important;
	}
	
	.compact-template .compact-wrapper {
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		    -ms-flex-direction: column;
		        flex-direction: column;
		height: auto;
	}
	
	.compact-template .compact-thumb {
		width: 100%;
		height: 150px;
	}

	.controls-right>div {
		-webkit-box-flex: 0;
		    -ms-flex: 0 0 100%;
		        flex: 0 0 100%;
	}

	.controls-right>div select {
		width: 100%;
	}
}

/* Default Course Image Styling - Grid View Only */
.reign-view-grid img.default-course-image {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}

.compact-template img.default-course-image {
	height: 120px !important;
	border-radius: 8px;
}

.detailed-template img.default-course-image {
	height: 250px !important;
}

/* Admin Tab Icon Styling */
.reign-nav-tab-wrapper a.modern-courses.nav-tab:before,
.reign-nav-tab-wrapper a.modern.courses.nav-tab:before {
	content: "\f118";
}
/* Fix for single course header rating display */
.learndash-single-course-header .learndash-course-info {
    margin: 15px 0;
}

.learndash-single-course-header .reign-course-reviews {
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.learndash-single-course-header .reign-star-rating {
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 2px;
}

.learndash-single-course-header .reign-star-rating .star {
    color: #b0b0b0;
    font-size: 18px;
    line-height: 1;
    display: inline-block;
    font-style: normal;
}

.learndash-single-course-header .reign-star-rating .star.filled {
    color: #ffc107 !important;
    opacity: 1 !important;
}

.learndash-single-course-header .reign-star-rating .star.half-filled {
    background: -webkit-linear-gradient(0deg, #ffc107 50%, #b0b0b0 50%);
    background: linear-gradient(90deg, #ffc107 50%, #b0b0b0 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.learndash-single-course-header .rating-value {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.learndash-single-course-header .review-count {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}


/* Fix text colors for rating display on dark course header background */
.learndash-single-course-header .learndash-course-info .reign-course-reviews,
.learndash-single-course-header .learndash-course-info .reign-course-reviews .rating-value,
.learndash-single-course-header .learndash-course-info .reign-course-reviews .review-count {
    color: #fff !important;
}

.learndash-single-course-header .learndash-course-info .reign-star-rating .star {
    color: rgba(255, 255, 255, 0.5) !important; /* Unfilled stars - semi-transparent white */
}

.learndash-single-course-header .learndash-course-info .reign-star-rating .star.filled {
    color: #ffc107 !important; /* Keep filled stars yellow/gold */
}

.learndash-single-course-header .learndash-course-info .reign-star-rating .star.half-filled {
    background: -webkit-linear-gradient(0deg, #ffc107 50%, rgba(255, 255, 255, 0.5) 50%);
    background: linear-gradient(90deg, #ffc107 50%, rgba(255, 255, 255, 0.5) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

