/* Foxsy Grid Card Styles */
.foxsy-grid-card {
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100%;
	box-sizing: border-box;
}

.foxsy-grid-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Thumbnail - 3:2 aspect ratio */
.foxsy-card-thumbnail {
	width: 100%;
	padding-bottom: 66.67%;
	position: relative;
	overflow: hidden;
	background: #f0f0f0;
	box-sizing: border-box;
}

.foxsy-card-thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
}

.foxsy-grid-card:hover .foxsy-card-thumbnail img {
	transform: scale(1.05);
}

/* Content area */
.foxsy-card-content {
	padding: 16px 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-sizing: border-box;
}

/* REVIEWS - Displayed first, above title */
.foxsy-card-reviews {
	display: flex;
	align-items: center;
	gap: 8px;
	order: -10;
	margin-bottom: 4px;
}

.foxsy-rating-stars {
	display: flex;
	gap: 2px;
	color: #ffa500;
	font-size: 16px;
	letter-spacing: 1px;
}

.foxsy-rating-stars .star.filled {
	color: #ffa500;
}

.foxsy-rating-stars .star.half {
	color: #ffa500;
	opacity: 0.5;
}

.foxsy-rating-stars .star.empty {
	color: #d0d0d0;
}

.foxsy-rating-text {
	font-size: 13px;
	color: #999;
	font-weight: 500;
}

/* TITLE - Exactly 2 lines */
.foxsy-card-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	color: #1a1a1a;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 47px;
	order: -9;
}

.foxsy-card-title a {
	color: inherit;
	text-decoration: none;
}

.foxsy-card-title a:hover {
	color: #027373;
}

/* BYLINE - Single line, no wrapping */
.foxsy-card-byline {
	font-size: 13px;
	color: #999;
	margin: 0;
	line-height: 1.4;
	white-space: normal;
	overflow: hidden;
	text-overflow: ellipsis;
	order: -8;
}

.foxsy-instructor-link {
	color: #027373;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.foxsy-instructor-link:hover {
	color: #015555;
	text-decoration: underline;
}

/* DESCRIPTION - 3 lines max, flexible space */
.foxsy-card-description {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
	margin: 0;
	padding: 0;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
	order: -7;
	min-height: 72px;
}

/* ACCESS BADGE */
.foxsy-access-badge-wrapper {
	margin-top: auto;
	padding-top: 12px;
	order: -6;
}

.foxsy-access-badge {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #027373 0%, #8faa7e 100%) !important;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
	border: none;
	box-sizing: border-box;
}

.foxsy-badge-text {
	color: #ffffff !important;
}

.foxsy-access-badge:hover {
	background: linear-gradient(135deg, #015555 0%, #7a9369 100%) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(2, 115, 115, 0.3);
}

.foxsy-logo {
	height: 16px;
	width: auto;
}

/* Fix the Footer Cutoff */
.foxsy-grid-card .foxsy-card-footer {
	padding: 16px 20px 24px 20px !important;
	margin-top: auto;
	box-sizing: border-box;
	flex-shrink: 0 !important;
	min-height: max-content !important; 
}

.foxsy-cta-button {
	display: block;
	width: 100%;
	padding: 12px 20px;
	text-align: center;
	text-decoration: none;
	font-weight: 700;
	font-size: 16px;
	border-radius: 6px;
	transition: all 0.3s ease;
	border: 2px solid #027373;
	cursor: pointer;
	background: transparent;
	color: #027373;
	box-sizing: border-box;
}

/* View Class - Outlined/Bordered Style */
.foxsy-cta-button.foxsy-view-class {
	background: transparent;
	color: #027373;
	border: 2px solid #027373;
}

.foxsy-cta-button.foxsy-view-class:hover {
	background: #027373;
	color: white;
	transform: translateY(2px);
	box-shadow: 0 4px 12px rgba(2, 115, 115, 0.3);
}

/* Force the Purple Button for Non-Members */
.foxsy-grid-card .foxsy-cta-button.foxsy-get-pass {
	background-color: #6220a8 !important;
	border-color: #6220a8 !important;
	color: #ffffff !important;
}

/* Force Teal Hover State */
.foxsy-grid-card .foxsy-cta-button.foxsy-get-pass:hover {
	background-color: #027373 !important;
	border-color: #027373 !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(2, 115, 115, 0.3);
}

/* LOAD MORE BUTTON - Always #027373 */
.learndash-course-grid .load-more-button,
.learndash-course-grid button.load-more {
	background-color: #027373 !important;
	color: white !important;
	border: none !important;
	font-weight: 700 !important;
	padding: 12px 32px !important;
	border-radius: 6px !important;
	box-sizing: border-box;
}

.learndash-course-grid .load-more-button:hover,
.learndash-course-grid button.load-more:hover {
	background-color: #015555 !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(2, 115, 115, 0.3) !important;
}

/* TIPPY TOOLTIPS */
.tippy-box[data-theme~='foxsy'] {
	background-color: #ffffff;
	color: #000000;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	border: 2px solid #f2916d;
	max-width: 280px;
}

.tippy-box[data-theme~='foxsy'] .tippy-content {
	padding: 0;
}

.tippy-box[data-theme~='foxsy'][data-placement^='top'] > .tippy-arrow::before {
	border-top-color: #f2916d;
}

.tippy-box[data-theme~='foxsy'][data-placement^='bottom'] > .tippy-arrow::before {
	border-bottom-color: #f2916d;
}

.tippy-box[data-theme~='foxsy'][data-placement^='left'] > .tippy-arrow::before {
	border-left-color: #f2916d;
}

.tippy-box[data-theme~='foxsy'][data-placement^='right'] > .tippy-arrow::before {
	border-right-color: #f2916d;
}

.tippy-box[data-theme~='foxsy'] .tippy-arrow {
	width: 16px;
	height: 16px;
}