/* WDM LearnDash Course Cards Styles */

/* Container for all course cards */
.wdm-course-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    max-width: 1320px;
    margin: 0 auto;
}

/* Individual course card */
.wdm-course-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wdm-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Course image container */
.wdm-course-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.wdm-course-image {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -2px;
    right: -2px;
    margin: auto;
    z-index: 0;
    min-height: 100%;
    width: auto;
    min-width: 100%;
    object-fit: cover;
}

.wdm-course-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 500;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Course tags */
.wdm-course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px 0;
    margin-bottom: 12px;
}

.wdm-tag {
    display: inline-block;
    padding: 0px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 400;
}

.wdm-tag-paid {
    background-color: #1e40af;
    color: white;
}

.wdm-tag-free {
    background-color: #059669;
    color: white;
}

.wdm-tag-type,
.wdm-tag-language {
    background-color: #f3f4f6;
    color: #374151;
}

/* Course title */
.wdm-course-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    padding: 0 20px;
    line-height: 1.3;
}

.wdm-course-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wdm-course-title a:hover {
    color: #111827;
}

/* Course description */
.wdm-course-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 20px 0;
    padding: 0 20px;
    flex-grow: 1;
}

/* Course details list */
.wdm-course-details {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0 20px;
}

.wdm-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #374151;
}

.wdm-detail-item:last-child {
    margin-bottom: 0;
}

.wdm-detail-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex-shrink: 0;
}

.wdm-detail-icon svg {
	width: 24px;
	height: 24px;
}

.wdm-detail-text {
	font-family: "Poppins";
	font-size: 12px;
	color: #012D68;
    flex-grow: 1;
}

/* Learn More button */
.wdm-course-actions {
    margin: 0 20px 20px;
    padding-top: 20px;
	border-top: 1px solid #0000002e;
	text-align: center;
}

.wdm-learn-more-btn i {
	transform: rotate(45deg);
}
/* 
.wdm-learn-more-btn {
	position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: start;
    width: 45%;
    padding: 7.5px 20px;
    background-color: white;
    color: #161616;
    border: 1px solid #161616;
    border-radius: 30px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
} */

/* .wdm-arrow {
    position: absolute;
	top: -2px;
	right: 4px;
}

.wdm-arrow svg {
	height: auto;
	width: 2.5em;
} */

/* .wdm-learn-more-btn:hover .wdm-arrow {
    transform: translateX(2px);
} */

/* Error messages */
.wdm-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    .wdm-course-cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
    }
    
    .wdm-course-card {
        margin-bottom: 0;
    }
    
    .wdm-course-title {
        font-size: 18px;
    }
    
    .wdm-course-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .wdm-course-cards-container {
        padding: 12px;
    }
    
    .wdm-course-tags {
        padding: 12px 16px 0;
    }
    
    .wdm-course-title {
        padding: 0 16px;
        font-size: 16px;
    }
    
    .wdm-course-description {
        padding: 0 16px;
    }
    
    .wdm-course-details {
        padding: 0 16px;
    }
    
    .wdm-course-actions {
        padding: 0 16px 16px;
    }
}

/* Loading state */
.wdm-course-cards-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation for card appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wdm-course-card {
    animation: fadeInUp 0.6s ease-out;
}

.wdm-course-card:nth-child(2) {
    animation-delay: 0.1s;
}

.wdm-course-card:nth-child(3) {
    animation-delay: 0.2s;
}

.wdm-course-card:nth-child(4) {
    animation-delay: 0.3s;
}

.wdm-course-card:nth-child(5) {
    animation-delay: 0.4s;
}

.wdm-course-card:nth-child(6) {
    animation-delay: 0.5s;
}

@media (max-width: 1024px) {
	.wdm-course-cards-container {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
	}	
	
	.wdm-course-card {
		width: 47%;
		height: auto;
	}
	
/* 	.wdm-learn-more-btn {
		width: 43%;
		font-size: 14px;
	} */
	
	.wdm-arrow {
		top: 4px;
	}
}

@media (max-width: 767px) {
    .wdm-course-card {
        width: 100%;
        height: auto;
    }
	
	.wdm-course-cards-container {
		padding: 0px;
	}
	
/* 	.wdm-learn-more-btn {
		margin-top: 10px;
		margin-bottom: 0px;
        width: 50%;
        font-size: 14px;
    } */
	
	.wdm-course-actions {
		margin-bottom: 0px;
	}
}

.eael-entry-header-after {
	width: 90%;
}

.eael-tags-list {
	padding: 3px 12px;
	background: #012D68;
	border-radius: 30px;
	margin-left: 10px;
	font-size: 9px;
}

.eael-tags-list a {
	font-size: 10px;
	color: #FFFFFF;
}

.eael-entry-meta {
	justify-content: space-between;
	width: 100%;
}

.wdm-course-description-container {
    display: flex;
    flex-direction: column;
    /* Ensure it takes up all available height in the card */
    flex-grow: 1; 
}

