/**
 * Program Widget Styles
 */

/* Two-column layout container */
.epw-container {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

/* Left column - Time */
.epw-time-column {
	flex: 0 0 180px;
	min-width: 180px;
}

.epw-time {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	padding: 15px;
	background-color: #f8f9fa;
	border-radius: 4px;
	text-align: center;
	position: sticky;
	top: 20px;
}

/* Right column - Content */
.epw-content-column {
	flex: 1;
	width: 100%;
}

.epw-items {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.epw-item {
	border: 1px solid #ddd;
	border-radius: 6px;
	background-color: #fafafa;
	overflow: hidden;
}

/* Accordion styles */
.epw-item-title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #2c3e50;
	line-height: 1.3;
	padding: 15px 20px;
	cursor: pointer;
	background-color: #fff;
	transition: background-color 0.3s ease;
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.epw-title-content {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-grow: 1;
}

.epw-item-title:hover {
	background-color: #f0f8ff;
}

.epw-accordion-icon {
	font-size: 24px;
	font-weight: bold;
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.epw-item-title.active .epw-accordion-icon {
	transform: rotate(45deg);
}

.epw-accordion-content {
	padding: 0 20px;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, padding 0.3s ease;
	opacity: 0;
}

.epw-accordion-content.active {
	max-height: 1000px;
	padding: 20px;
	opacity: 1;
	transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
}

.epw-item-category {
	display: none !important;
}

.epw-item-description {
	font-size: 16px;
	line-height: 1.6;
	color: #555;
	margin: 0;
}

.epw-item-description p {
	margin: 0 0 12px 0;
}

.epw-item-description p:last-child {
	margin-bottom: 0;
}

/* Category Color Circles */
.epw-category-circle {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}

/* Session Title and Speaker Names Layout */
.epw-title-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.epw-session-title {
	display: flex;
	align-items: center;
	gap: 8px;
}

.epw-speaker-names {
	color: #666;
	font-style: italic;
	font-size: 0.9em;
	font-weight: normal;
}

/* Accordion heading with left border for category indication */
.epw-item-title.epw-accordion-trigger {
	padding-left: 16px;
	border-left: 4px solid transparent;
}

/* Theme Colors based on the provided image */
/* Theme 1 - Assessing and Evaluating Learning */
.epw-category-circle.epw-category-conference-theme-1,
.epw-legend-circle.epw-category-conference-theme-1 {
	background-color: var(--theme-1-color, #fffe05);
}

/* Theme 2 - Digital Technologies and AI */
.epw-category-circle.epw-category-conference-theme-2,
.epw-legend-circle.epw-category-conference-theme-2 {
	background-color: var(--theme-2-color, #07ffff);
}

/* Theme 3 - Indigenous knowledges in HPE */
.epw-category-circle.epw-category-conference-theme-3,
.epw-legend-circle.epw-category-conference-theme-3 {
	background-color: var(--theme-3-color, #e79138);
}

/* Theme 4 - Pedagogy */
.epw-category-circle.epw-category-conference-theme-4,
.epw-legend-circle.epw-category-conference-theme-4 {
	background-color: var(--theme-4-color, #ff02ff);
}

/* Theme 5 - Social Justice, Equity and Inclusion */
.epw-category-circle.epw-category-conference-theme-5,
.epw-legend-circle.epw-category-conference-theme-5 {
	background-color: var(--theme-5-color, #0eff01);
}

/* Theme 6 - Sustainability, Human and Planetary Wellbeing */
.epw-category-circle.epw-category-conference-theme-6,
.epw-legend-circle.epw-category-conference-theme-6 {
	background-color: var(--theme-6-color, #ff0200);
}

/* Theme 7 - Teaching Personal and Social Responsibility */
.epw-category-circle.epw-category-conference-theme-7,
.epw-legend-circle.epw-category-conference-theme-7 {
	background-color: var(--theme-7-color, #9900ff);
}

/* Theme border-left colors for accordion headings */
.epw-item-title.epw-category-conference-theme-1 {
	border-left-color: var(--theme-1-color, #fffe05);
}

.epw-item-title.epw-category-conference-theme-2 {
	border-left-color: var(--theme-2-color, #07ffff);
}

.epw-item-title.epw-category-conference-theme-3 {
	border-left-color: var(--theme-3-color, #e79138);
}

.epw-item-title.epw-category-conference-theme-4 {
	border-left-color: var(--theme-4-color, #ff02ff);
}

.epw-item-title.epw-category-conference-theme-5 {
	border-left-color: var(--theme-5-color, #0eff01);
}

.epw-item-title.epw-category-conference-theme-6 {
	border-left-color: var(--theme-6-color, #ff0200);
}

.epw-item-title.epw-category-conference-theme-7 {
	border-left-color: var(--theme-7-color, #9900ff);
}

/* Legend Widget Styles */
.epw-legend-widget {
	padding: 20px;
	background-color: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

.epw-legend-title {
	margin: 0 0 15px 0;
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
}

.epw-legend-items {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.epw-legend-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	line-height: 1.4;
	color: #555;
}

.epw-legend-circle {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex-shrink: 0;
}

.epw-legend-text {
	flex: 1;
}

.epw-legend-number {
	font-weight: 600;
}

/* Layout variants */
.epw-layout-horizontal .epw-legend-items {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 15px 20px;
}

.epw-layout-horizontal .epw-legend-item {
	flex: 0 0 auto;
	min-width: 200px;
}

.epw-layout-grid .epw-legend-items {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px 15px;
}

/* Responsive Design - Stack on mobile */
@media (max-width: 768px) {
	.epw-container {
		flex-direction: column;
		gap: 20px;
	}

	.epw-time-column {
		flex: none;
		min-width: auto;
		width: 100%;
	}

	.epw-time {
		position: static;
		font-size: 16px;
		padding: 12px;
		text-align: left;
	}

	.epw-item-title {
		font-size: 18px;
		padding: 12px 15px;
	}

	.epw-accordion-content.active {
		padding: 15px;
	}

	.epw-item-description {
		font-size: 14px;
	}

	/* Session speakers mobile responsive */
	.epw-session-speaker {
		flex-direction: column;
		gap: 12px;
		padding: 12px;
	}

	.epw-session-speaker-photo {
		flex: none;
		width: 60px;
		height: 60px;
		align-self: center;
	}

	.epw-session-speaker-name {
		font-size: 15px;
		text-align: center;
	}

	.epw-session-speaker-company,
	.epw-session-speaker-position {
		text-align: center;
		font-size: 13px;
	}

	.epw-session-speaker-bio {
		font-size: 13px;
		text-align: center;
	}

	/* Legend responsive */
	.epw-legend-widget {
		padding: 15px;
	}

	.epw-layout-horizontal .epw-legend-items {
		flex-direction: column;
		gap: 8px;
	}

	.epw-layout-horizontal .epw-legend-item {
		min-width: auto;
	}

	.epw-layout-grid .epw-legend-items {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.epw-legend-item {
		font-size: 13px;
	}

	.epw-legend-title {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.epw-container {
		gap: 15px;
	}

	.epw-items {
		gap: 10px;
	}

	.epw-item-title {
		font-size: 16px;
		padding: 10px 12px;
	}

	.epw-accordion-content.active {
		padding: 12px;
	}

	.epw-item-category {
		font-size: 12px;
		padding: 4px 8px;
	}

	.epw-item-description {
		font-size: 13px;
	}

	.epw-time {
		font-size: 14px;
		padding: 10px;
	}

	/* Legend mobile responsive */
	.epw-legend-widget {
		padding: 12px;
	}

	.epw-legend-item {
		font-size: 12px;
	}

	.epw-legend-title {
		font-size: 15px;
		margin-bottom: 12px;
	}
}

/* Session Speakers Styles - within Program Widget accordions */
.epw-session-speakers {
	margin-top: 20px;
	padding-top: 20px;
}

.epw-speakers-heading {
	margin: 0 0 15px 0;
	font-size: 16px;
	font-weight: 600;
	color: #2c3e50;
}

.epw-session-speaker {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
}

.epw-session-speaker:last-child {
	margin-bottom: 0;
}

.epw-session-speaker-photo {
	flex: 0 0 80px;
	width: 80px;
	height: 80px;
}

.epw-speaker-avatar-lazy {
	width: 100%;
	height: 100%;
	position: relative;
}

.epw-speaker-avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 1000px !important;
	border: 2px solid #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.epw-session-speaker-details {
	flex: 1;
	min-width: 0;
}

.epw-session-speaker-name {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 600;
	color: #2c3e50;
	line-height: 1.3;
}

.epw-session-speaker-company {
	font-size: 14px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 4px;
}

.epw-session-speaker-position {
	font-size: 14px;
	color: #bf1c7b;
	margin-bottom: 8px;
	font-style: normal;
}

.epw-session-speaker-bio {
	font-size: 14px;
	line-height: 1.5;
	color: #555;
	margin: 0;
}

/* Speaker Grid Widget Styles */
.epw-speaker-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}

.epw-speaker-item {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.epw-speaker-image-container {
	position: relative;
	overflow: hidden;
}

.epw-speaker-image {
	position: relative;
	width: 100%;
}

/* Aspect ratios */
.epw-aspect-square .epw-speaker-image {
	aspect-ratio: 1 / 1;
}

.epw-aspect-portrait .epw-speaker-image {
	aspect-ratio: 3 / 4;
}

.epw-aspect-landscape .epw-speaker-image {
	aspect-ratio: 4 / 3;
}

.epw-speaker-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.epw-speaker-photo picture {
	width: 100%;
}

.epw-no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #e9ecef;
}

.epw-placeholder {
	color: #6c757d;
	font-size: 14px;
	font-weight: 500;
}

/* Speaker details */
.epw-speaker-details {
	padding: 20px;
}

.epw-speaker-name {
	margin: 0 0 12px 0;
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
	line-height: 1.3;
}

.epw-speaker-info {
	font-size: 14px;
	line-height: 1.5;
	color: #555;
}

.epw-speaker-company {
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 4px;
}

.epw-speaker-position {
	color: #bf1c7b;
	margin-bottom: 8px;
	font-style: normal;
}

.epw-speaker-sessions {
	margin-bottom: 8px;
	font-size: 13px;
}

.epw-speaker-linkedin {
	margin-top: 10px;
}

.epw-speaker-linkedin:empty {
	display: none;
}

.epw-speaker-linkedin a {
	color: #0077b5;
	font-weight: 500;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* Responsive Grid */
@media (max-width: 1024px) {
	.epw-speaker-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 480px) {
	.epw-speaker-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.epw-speaker-details {
		padding: 15px;
	}

	.epw-speaker-name {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.epw-speaker-grid {
		gap: 15px;
	}

	.epw-speaker-details {
		padding: 12px;
	}

	.epw-speaker-name {
		font-size: 15px;
		margin-bottom: 8px;
	}

	.epw-speaker-info {
		font-size: 13px;
	}
}
