/* Foxsy Grid Card Container */
.learndash-course-grid .items-wrapper .foxsy-grid-card .post.foxsy-card {
    line-height: 1.428571429;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    display: block;
    position: relative;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

/* Thumbnail */
.learndash-course-grid .items-wrapper .foxsy-grid-card .thumbnail {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .thumbnail .image {
    width: 100%;
    padding-bottom: 66.67%;
    position: relative;
    overflow: hidden;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .thumbnail .image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .thumbnail img {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

/* Content Area */
.learndash-course-grid .items-wrapper .foxsy-grid-card .content {
    padding: 16px 20px;
    color: #333333;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .content > *:not(:last-child) {
    margin-bottom: 0;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .content .top-meta {
    margin-bottom: 8px;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .content .top-meta > * {
    margin-bottom: 8px;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .content .top-meta > *:last-child {
    margin-bottom: 0;
}

/* Reviews - Above Title */
.learndash-course-grid .items-wrapper .foxsy-grid-card .reviews {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
    order: -2;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .reviews .stars {
    color: #ffa500;
    display: flex;
    gap: 2px;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .reviews .icon {
    font-size: 14px;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .reviews .icon.dashicons-star-filled {
    color: #ffa500;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .reviews .icon.dashicons-star-half {
    color: #ffa500;
    opacity: 0.7;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .reviews .icon.dashicons-star-empty {
    color: #d0d0d0;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .reviews .label {
    color: #666;
    font-weight: 500;
}

/* Title - 2 lines max */
.learndash-course-grid .items-wrapper .foxsy-grid-card .content .entry-title {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.3;
    color: #333;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .content .entry-title a {
    text-decoration: none;
    color: #333;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .content .entry-title a:hover {
    color: #027373;
}

/* Instructor */
.learndash-course-grid .items-wrapper .foxsy-grid-card .instructor {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    white-space: normal;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .instructor-link {
    color: #027373;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .instructor-link:hover {
    color: #015555;
    text-decoration: underline;
}

/* Description */
.learndash-course-grid .items-wrapper .foxsy-grid-card .entry-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 !important;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Access Badge Wrapper */
.learndash-course-grid .items-wrapper .foxsy-grid-card .access-badge-wrapper {
    margin-top: 12px;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .access-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #027373 0%, #027373 66%, #3a2a90 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;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .badge-text {
    color: #ffffff !important;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .access-badge:hover {
    background: linear-gradient(135deg, #015555 0%, #015555 66%, #2d2070 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 115, 115, 0.3);
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .foxsy-logo {
    height: 16px;
    width: auto;
}

/* Footer */
.learndash-course-grid .items-wrapper .foxsy-grid-card .card-footer {
    padding: 0 20px 16px 20px;
    margin-top: auto;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .cta-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: #027373;
    color: white;
}

.learndash-course-grid .items-wrapper .foxsy-grid-card .cta-button:hover {
    background: #015555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 115, 115, 0.3);
}

/* Tippy.js 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;
}
