/* ========================================
   SMART GYAN COURSE CARDS
   Unique Premium Design
   ======================================== */
.smart-gyan-course-card {
    background: #fff;
    border-radius: var(--radius-lg, 15px);
    overflow: hidden;
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.1));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 2px solid transparent;
}

.smart-gyan-course-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 64, 128, 0.2),
        0 0 0 3px var(--secondary-color, #ffd700);
    border-color: var(--secondary-color, #ffd700);
}

.course-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.course-image-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 64, 128, 0.1) 0%,
        rgba(0, 64, 128, 0.6) 100%
    );
    z-index: 1;
    transition: all 0.3s ease;
}

.smart-gyan-course-card:hover .course-image-wrapper::before {
    background: linear-gradient(
        180deg,
        rgba(0, 64, 128, 0.3) 0%,
        rgba(0, 64, 128, 0.75) 100%
    );
}

.course-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.smart-gyan-course-card:hover .course-card-img {
    transform: scale(1.1);
}

.guarantee-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(
        135deg,
        var(--secondary-color, #ffd700),
        var(--secondary-dark, #e5ad3d)
    );
    color: var(--text-dark, #1a1a1a);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(255, 215, 0, 0.6);
    }
}

.course-card-content {
    padding: 1.75rem;
}

.course-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color, #004080);
    margin-bottom: 1.25rem;
    line-height: 1.3;
    min-height: 55px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-light, #f8f9fa);
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.duration-badge {
    background: var(--primary-color, #004080);
    color: #fff;
}

.cert-badge {
    background: var(--secondary-color, #ffd700);
    color: var(--text-dark, #1a1a1a);
}

.meta-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.course-details-list {
    margin-bottom: 1.5rem;
}

.course-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-light, #f8f9fa);
    border-radius: var(--radius-sm, 5px);
    transition: all 0.3s ease;
}

.course-detail-item:hover {
    background: linear-gradient(
        135deg,
        rgba(0, 64, 128, 0.05),
        rgba(255, 215, 0, 0.05)
    );
    transform: translateX(5px);
}

.detail-icon {
    width: 35px;
    height: 35px;
    min-width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--primary-color, #004080),
        var(--accent-color, #008b8b)
    );
    color: #fff;
    border-radius: 50%;
    font-size: 0.9rem;
}

.course-detail-item div {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-light, #666666);
}

.course-detail-item strong {
    display: block;
    color: var(--text-dark, #1a1a1a);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.highlight-text {
    color: var(--accent-color, #008b8b);
    font-weight: 600;
}

.course-card-footer {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--bg-light, #f8f9fa);
}

.btn-course-details {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border: 2px solid var(--primary-color, #004080);
    background: transparent;
    color: var(--primary-color, #004080);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
}

.btn-course-details:hover {
    background: var(--primary-color, #004080);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 64, 128, 0.3);
}

.btn-course-enroll {
    flex: 1;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(
        135deg,
        var(--secondary-color, #ffd700),
        var(--secondary-dark, #e5ad3d)
    );
    color: var(--text-dark, #1a1a1a);
    border: 2px solid var(--secondary-color, #ffd700);
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-course-enroll:hover {
    background: linear-gradient(
        135deg,
        var(--secondary-dark, #e5ad3d),
        #d4a136
    );
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    color: var(--text-dark, #1a1a1a);
}

/* Responsive Course Cards */
@media (max-width: 768px) {
    .course-card-content {
        padding: 1.25rem;
    }

    .course-card-title {
        font-size: 1.2rem;
        min-height: auto;
    }

    .course-meta-badges {
        flex-direction: column;
        gap: 0.5rem;
    }

    .meta-badge {
        width: 100%;
        justify-content: center;
    }

    .course-card-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-course-details,
    .btn-course-enroll {
        width: 100%;
    }

    .guarantee-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
}
