/* ========================================
   ENHANCED SMART GYAN COURSE CARDS V2
   Single CTA + Ratings + Urgency
   ======================================== */

.smart-gyan-course-card-v2 {
    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;
    position: relative;
}

.smart-gyan-course-card-v2:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 107, 125, 0.25),
        0 0 0 3px var(--primary-color);
    border-color: var(--primary-color);
}

/* Course Image with Badges */
.course-image-wrapper-v2 {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

.smart-gyan-course-card-v2:hover .course-image-wrapper-v2::before {
    background: linear-gradient(
        180deg,
        rgba(0, 107, 125, 0.3) 0%,
        rgba(0, 107, 125, 0.7) 100%
    );
}

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

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

/* Trending Badge - Top Left */
.trending-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient-purple);
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 4px 12px rgba(91, 44, 111, 0.4);
    animation: pulse 2s infinite;
}

.trending-badge i {
    font-size: 0.9rem;
}

/* Interview Guarantee Badge - Top Right */
.guarantee-badge-v2 {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient-gold);
    color: var(--text-dark);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Course Content Area */
.course-card-content-v2 {
    padding: 1.5rem;
}

/* Title */
.course-card-title-v2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rating & Enrollment Row */
.course-rating-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.course-stars {
    display: flex;
    gap: 0.15rem;
    color: #ffa500;
    font-size: 0.95rem;
}

.course-rating-text {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.course-enrollment {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-left: auto;
}

.course-enrollment i {
    color: var(--primary-color);
}

/* Highlights Section */
.course-highlights {
    margin-bottom: 1.25rem;
}

.highlights-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.highlights-title i {
    color: var(--primary-color);
}

.highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.highlight-item i {
    color: var(--success-color);
    font-size: 0.75rem;
}

/* Batch Urgency Section */
.course-urgency {
    background: linear-gradient(
        135deg,
        rgba(0, 107, 125, 0.08),
        rgba(91, 44, 111, 0.08)
    );
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--primary-color);
}

.urgency-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.urgency-row:last-child {
    margin-bottom: 0;
}

.urgency-label {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.urgency-label i {
    color: var(--primary-color);
}

.urgency-value {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.urgency-value.limited {
    color: #dc2626;
}

/* Single Premium CTA Button */
.course-cta-single {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-teal);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 4px 16px rgba(0, 107, 125, 0.3);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.course-cta-single::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.course-cta-single:hover::before {
    width: 300px;
    height: 300px;
}

.course-cta-single:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 107, 125, 0.5);
    color: #fff;
}

.course-cta-single i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.course-cta-single:hover i {
    transform: translateX(5px);
}

/* Secondary Info Link */
.course-info-link {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    color: var(--text-light);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-info-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

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

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

    .course-rating-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .course-enrollment {
        margin-left: 0;
    }

    .trending-badge,
    .guarantee-badge-v2 {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }

    .course-cta-single {
        font-size: 0.95rem;
        padding: 0.9rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .smart-gyan-course-card-v2:hover {
        transform: none;
    }

    .trending-badge {
        animation: none;
    }
}
