/**
 * Live Workshops Listing Styles
 *
 * @package HTA\LiveEvent\Public\Components\LiveWorkshops
 */

/* Achievement Badges Section (separate from hero) - Hidden */
.hta-achievement-badges-section {
	display: none !important;
}

/* Hero section is now handled by lw-hero-wrap from hero component */
@media (max-width: 768px) {
	.lw-hero-wrap,
	.lw-hero-wrap--live-event {
		margin-bottom: 18px;
	}
	.lw-hero-wrap.lw-hero-wrap--live-event.lw-hero-wrap--ssc-two-col {
		padding: 18px 0;
		border-radius: 0;
	}
	.lw-hero-wrap.lw-hero-wrap--live-event.lw-hero-wrap--ssc-two-col .lw-hero,
	.lw-hero-wrap.lw-hero-wrap--live-event.lw-hero-wrap--ssc-two-col .lw-hero__left,
	.lw-hero-wrap.lw-hero-wrap--live-event.lw-hero-wrap--ssc-two-col .lw-hero__right {
		border-radius: 0 !important;
	}
	/* Remove border-radius from hero block and columns on mobile (all hero layouts) */
	.lw-hero-wrap .lw-hero,
	.lw-hero-wrap .lw-hero__left,
	.lw-hero-wrap .lw-hero__right {
		border-radius: 0 !important;
	}
	.lw-hero {
		margin-bottom: 0;
		padding-bottom: 0;
	}
}

/* Beta Access Marketing Banner */
.hta-beta-access-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #FEF3C7;
	border: 1px solid #F59E0B;
	border-radius: 8px;
	padding: 12px 16px;
	margin: 24px 0;
	gap: 16px;
}

.hta-beta-access-banner__content {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	flex: 1;
}

.hta-beta-access-banner__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #F59E0B;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.hta-beta-access-banner__badge svg {
	flex-shrink: 0;
}

.hta-beta-access-banner__text {
	font-size: 14px;
	font-weight: 500;
	color: #92400E;
	line-height: 1.5;
}

.hta-beta-access-banner__heart {
	display: inline;
}

.hta-beta-access-banner__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.hta-beta-access-banner__feedback,
.hta-beta-access-banner__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: transparent;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	color: #92400E;
	transition: all 0.2s ease;
	padding: 0;
}

.hta-beta-access-banner__feedback:hover,
.hta-beta-access-banner__close:hover {
	background: rgba(146, 64, 14, 0.1);
}

.hta-beta-access-banner--hidden {
	display: none;
}

/* Announcement Banner */
.hta-announcement-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 24px;
	background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
	border: 1px solid #F59E0B;
	border-radius: 12px;
	margin: 20px 0;
}

.hta-announcement-banner__content {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}

.hta-announcement-banner__text {
	font-size: 14px;
	color: #78350F;
	line-height: 1.5;
}

.hta-announcement-banner__actions {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.hta-announcement-banner__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	background: #FFFFFF;
	border: 1px solid #D1D5DB;
	border-radius: 8px;
	color: #374151;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.hta-announcement-banner__button:hover {
	background: #F9FAFB;
	border-color: #9CA3AF;
	color: #111827;
}

@media (max-width: 768px) {
	.hta-announcement-banner {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	
	.hta-announcement-banner__actions {
		width: 100%;
	}
	
	.hta-announcement-banner__button {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.hta-beta-access-banner {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	
	.hta-beta-access-banner__actions {
		align-self: flex-end;
	}
}

/* Title and Description Section */
.hta-workshops-title-section {
	margin: 40px 0 30px;
	padding: 0;
}

.hta-workshops-title-section__title {
	font-size: 32px;
	font-weight: 700;
	color: #2A3242;
	margin: 0 0 12px 0;
	padding: 0;
	line-height: 1.3;
}

.hta-workshops-title-section__description {
	font-size: 16px;
	font-weight: 400;
	color: #64748b;
	margin: 0;
	padding: 0;
	line-height: 1.6;
}

/* Filter Section */
.hta-workshops-filters {
	background: white;
	border: 1px solid #D9D9D9;
	border-radius: 14px;
	padding: 20px;
	margin-bottom: 40px;
	margin-top:40px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hta-workshops-filters__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap; /* allow description to move to its own row */
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #D9D9D9;
}

/* Description text under Filter Workshops / Filter Courses header */
.hta-workshops-filters__header .hta-workshops-title-section__description {
	flex-basis: 100%;
	margin-top: 8px;
	font-size: 14px;
	font-weight: 400;
	color: #64748b;
}

.hta-workshops-filters__label {
	font-size: 18px;
	font-weight: 600;
	color: #2A3242;
}

.hta-workshops-filters__reset {
	background: transparent;
	border: 1px solid #D9D9D9;
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #2A3242;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.hta-workshops-filters__reset:hover {
	background: #f0f0f0;
	border-color: #D9D9D9;
	color: #2A3242;
}

.hta-reset-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.hta-filter-group {
	margin-bottom: 20px;
}

.hta-filter-group__label {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: #2A3242;
	margin-bottom: 15px;
}

.hta-filter-group__options {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.hta-filter-button {
	background: white;
	border: 1px solid #D9D9D9;
	border-radius: 8px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #2A3242;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
	outline: none;
	box-shadow: none;
}

.hta-filter-button:hover {
	background: #FBBF59;
	border-color: #FBBF59;
	color: #2A3242;
}

.hta-filter-button.active {
	background: #FBBF59;
	border-color: #FBBF59;
	color: white;
}

.hta-filter-button.active:hover {
	background: #FBBF59;
	border-color: #FBBF59;
	color: white;
}

.hta-filter-row {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	margin-bottom: 20px;
}

@media (max-width: 1200px) {
	.hta-filter-row {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.hta-filter-row {
		grid-template-columns: 1fr;
	}
}

.hta-filter-dropdown {
	display: flex;
	flex-direction: column;
	gap: 8px;
	position: relative;
}

.hta-filter-dropdown .hta-filter-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px 12px;
	padding-right: 36px;
}

/* Remove dropdown arrow for Favorites button which uses .hta-filter-select styles */
#filter-favorites.hta-filter-button-select,
#ssc-filter-favorites.hta-filter-button-select {
	background-image: none !important;
	padding-right: 12px; /* align content when no arrow */
}

.hta-filter-dropdown label {
	font-size: 14px;
	font-weight: 600;
	color: #2A3242;
}

.hta-filter-select,
.hta-filter-input[type="text"],
.hta-filter-input[type="date"] {
	width: 100%;
	border: 1px solid #D9D9D9;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	color: #333;
	min-height: 40px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	-ms-appearance: none;
	-o-appearance: none;
	cursor: pointer;
	outline: none;
	box-shadow: none;
	transition: all 0.2s ease;
	background-color: white;
	padding: 10px 12px;
}

.hta-filter-select:hover,
.hta-filter-input[type="text"]:hover,
.hta-filter-input[type="date"]:hover {
	background-color: #FBBF59;
}

.hta-filter-select:active,
.hta-filter-input[type="text"]:active,
.hta-filter-input[type="date"]:active {
	background-color: #FBBF59;
}

.hta-filter-select:focus,
.hta-filter-input[type="text"]:focus,
.hta-filter-input[type="date"]:focus {
	outline: none;
	box-shadow: none;
	border-color: #D9D9D9;
	background-color: #FBBF59;
}

/* Remove browser default dropdown arrow and styles */
.hta-filter-select::-ms-expand {
	display: none;
}

.hta-filter-select::-webkit-outer-spin-button,
.hta-filter-select::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Remove date picker default styles */
.hta-filter-input[type="date"]::-webkit-calendar-picker-indicator {
	opacity: 0;
	position: absolute;
	right: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.hta-filter-input[type="date"]::-webkit-inner-spin-button,
.hta-filter-input[type="date"]::-webkit-clear-button {
	display: none;
	-webkit-appearance: none;
}

.hta-filter-input[type="date"]::-moz-calendar-picker-indicator {
	opacity: 0;
	position: absolute;
	right: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.hta-filter-select option {
	background: #FBBF59;
	color: #333;
	padding: 8px 12px;
}

.hta-filter-input[type="text"]::placeholder,
.hta-filter-input[type="date"]::placeholder {
	color: #000000;
	opacity: 1;
}

.hta-filter-input[type="text"]::-webkit-input-placeholder,
.hta-filter-input[type="date"]::-webkit-input-placeholder {
	color: #000000;
}

.hta-filter-input[type="text"]::-moz-placeholder,
.hta-filter-input[type="date"]::-moz-placeholder {
	color: #000000;
}

.hta-filter-input[type="text"]:-ms-input-placeholder,
.hta-filter-input[type="date"]:-ms-input-placeholder {
	color: #000000;
}

.hta-filter-input[type="text"]:-moz-placeholder,
.hta-filter-input[type="date"]:-moz-placeholder {
	color: #000000;
}

.hta-filter-button-select {
	width: 100%;
	padding: 10px 36px 10px 12px;
	border: 1px solid #D9D9D9;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	color: #333;
	min-height: 40px;
	cursor: pointer;
	text-align: left;
	transition: all 0.2s ease;
	position: relative; 
	display: flex;
	align-items: center;
	justify-content: space-between;
	outline: none;
	box-shadow: none;
}

.hta-filter-button-select:hover {
	border-color: #c9c9c9;
}

.hta-filter-button-select:focus {
	outline: none;
	box-shadow: none;
	border-color: #D9D9D9;
}

.hta-filter-button-select.active {
	background: #FBBF59;
	border-color: #FBBF59;
	color: #ffffff;
}

.hta-filter-button-select.active:hover {
	background: #FBBF59;
	border-color: #FBBF59;
}

.hta-filter-button-select__content {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.hta-filter-button-select__text {
	flex: 1;
}

.hta-favorites-icon {
	width: 16px;
	height: 16px;
	display: inline-block;
	object-fit: contain;
	flex-shrink: 0;
}

/* Active Filters */
.hta-active-filters {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding-top: 15px;
	border-top: 1px solid #D9D9D9;
}

.hta-active-filters__label {
	font-size: 14px;
	font-weight: 600;
	color: #2A3242;
}

.hta-active-filters__pills {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.hta-filter-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #e76e3c;
	color: white;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	transition: all 0.2s ease;
}

.hta-filter-pill:hover {
	background: #2A3242;
}

.hta-filter-pill__remove {
	background: none;
	border: none;
	color: white;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	padding: 0;
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hta-filter-pill__remove:hover {
	opacity: 0.8;
}

/* Content Section */
.hta-workshops-content {
	margin: 0 auto;
}

.hta-workshops-content__main {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin-bottom: 50px;
}

.hta-workshops-content__main--no-free {
	/* No change needed, already single column */
}

@media (max-width: 968px) {
	.hta-workshops-content__main {
		/* Already single column with flex-direction: column */
	}

	.hta-free-session-wrapper {
		order: -1; /* Free session first on mobile */
	}
}

.hta-free-session-wrapper {
	width: 100%;
	display: flex;
	flex-direction: column;
}

.hta-free-session-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.hta-free-session-title,
.hta-single-workshops-title {
	font-size: 28px;
	font-weight: 700;
	color: #2A3242;
	margin: 0;
	font-family: 'Montserrat','Inter',sans-serif;
}

.hta-free-session-nav {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.hta-free-session-nav .hta-free-prev,
.hta-free-session-nav .hta-free-next {
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.hta-free-session-nav img {
	width: 28px;
	height: 28px;
	display: block;
}

.hta-single-workshops-wrapper {
	width: 100%;
	display: flex;
	flex-direction: column;
}

/* Single Workshops header/nav */
.hta-single-workshops-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}
.hta-single-workshops-nav {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.hta-single-workshops-nav .hta-single-prev,
.hta-single-workshops-nav .hta-single-next {
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.hta-single-workshops-nav img {
	width: 28px;
	height: 28px;
	display: block;
}

/* Single Workshops carousel */
.hta-single-workshops-carousel {
	position: relative;
	min-height: 340px;
	flex: 1 1 auto;
	min-height: 0;
}
.hta-single-page {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
	z-index: 1;
}
.hta-single-page.active {
	position: relative;
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.hta-single-page__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.hta-single-page__grid > * {
	height: 100%;
}

.hta-single-workshops-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	align-items: stretch;
}

.hta-single-workshops-grid > * {
	height: 100%;
}

@media (max-width: 968px) {
	.hta-single-page__grid,
	.hta-single-workshops-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.hta-single-page__grid,
	.hta-single-workshops-grid {
		grid-template-columns: 1fr;
	}
}

/* Live Courses header/nav */
.hta-live-courses-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}
.hta-live-courses-nav {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.hta-live-courses-nav .hta-courses-prev,
.hta-live-courses-nav .hta-courses-next {
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.hta-live-courses-nav img {
	width: 28px;
	height: 28px;
	display: block;
}

/* Unified Grid Layout (for filtered content) */
.hta-workshops-unified-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 36px;
}

.hta-workshops-unified-grid > * {
	height: 100%; /* Cards stretch to fill grid cell */
}

@media (max-width: 968px) {
	.hta-workshops-unified-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.hta-workshops-unified-grid {
		grid-template-columns: 1fr;
	}
}

/* Free Session Carousel */
.hta-free-session-carousel {
	position: relative;
	min-height: 340px;
	flex: 1 1 auto;
	min-height: 0;
}

/* Make carousels span full available width inside listing container */
.hta-live-workshops-listing .hta-free-session-carousel,
.hta-live-workshops-listing .hta-single-workshops-carousel {
	width: 100%;
	max-width: 100%;
}

.hta-free-session-page {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
	z-index: 1;
}

.hta-free-session-page.active {
	position: relative;
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.hta-free-session-page__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.hta-free-session-page__grid > * {
	height: 100%;
}

.hta-free-session-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.hta-free-session-grid > * {
	height: 100%;
}

@media (max-width: 968px) {
	.hta-free-session-page__grid,
	.hta-free-session-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.hta-free-session-page__grid,
	.hta-free-session-grid {
		grid-template-columns: 1fr;
	}
}

.hta-course-page__grid > * {
	height: 100%;
}

.hta-workshop-card--free {
	border: 2px solid #8FD8B5;
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	position: relative;
}

.hta-workshop-card--free::before {
	content: 'FREE';
	position: absolute;
	top: 15px;
	right: 15px;
	background: #8FD8B5;
	color: white;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	z-index: 10;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hta-free-session-wrapper:empty,
.hta-free-session-empty {
	display: none !important;
}

.hta-carousel-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 15px;
}

.hta-carousel-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: #ccc;
	cursor: pointer;
	transition: background 0.3s ease;
	padding: 0;
}

.hta-carousel-dot.active {
	background: #4F46E5;
}

.hta-carousel-dot:hover {
	background: #8FD8B5;
}

/* Workshop Cards - styles moved to above section */

/* Workshop Card base styles are in workshop-card.css */
/* Only listing-specific overrides below if needed */

.hta-workshop-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.hta-workshop-badge.badge-new {
	background: #10b981;
	color: white;
}

.hta-workshop-badge.badge-waitlist {
	background: #f59e0b;
	color: white;
}

.hta-workshop-badge.badge-past {
	background: #9ca3af;
	color: #ffffff;
}

/* Live Courses Section */
.hta-live-courses-section {
	margin-top: 50px;
}

.hta-section-title {
	font-size: 28px;
	font-weight: 700;
	color: #2A3242;
	margin: 0 0 30px 0;
	font-family: 'Montserrat', 'Inter', sans-serif;
}

.hta-live-courses-container {
	position: relative;
	width: 100%;
	max-width: 100%;
}

.hta-live-courses-carousel {
	position: relative;
	min-height: 400px;
	width: 100%;
	max-width: 100%;
}

.hta-course-page {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
	z-index: 1;
}

.hta-course-page.active {
	position: relative;
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.hta-course-page__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	width: 100%;
	max-width: 100%;
}

@media (max-width: 968px) {
	.hta-single-workshops-grid {
		grid-template-columns: 1fr;
	}

	.hta-course-page__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.hta-course-page__grid {
		grid-template-columns: 1fr;
	}

	.hta-workshops-content__main {
		gap: 20px;
	}

	.hta-workshops-hero {
		padding: 40px 20px;
	}

	.hta-workshops-title-section {
		margin: 30px 0 20px;
	}

	.hta-workshops-title-section__title {
		font-size: 24px;
	}

	.hta-workshops-title-section__description {
		font-size: 14px;
	}
}

/* Loading State */
.hta-workshops-loading {
	text-align: center;
	padding: 40px;
	color: #666;
}

.hta-workshops-loading::after {
	content: '';
	display: inline-block;
	width: 40px;
	height: 40px;
	border: 3px solid #e0e0e0;
	border-top-color: #4F46E5;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-left: 10px;
	vertical-align: middle;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Empty State */
.hta-workshops-empty {
	text-align: center;
	padding: 60px 20px;
	color: #666;
}

.hta-workshops-empty__message {
	font-size: 18px;
	margin-bottom: 10px;
}

