.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #fff;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.course-img-wrapper {
    position: relative;
    padding-top: 56.25%;
    background: #f8f9fa;
}

.course-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: -5px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px 0 0 20px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: -2px 4px 10px rgba(255, 75, 43, 0.4);
    letter-spacing: 0.5px;
}

.instructor-text {
    font-size: 0.85rem;
    color: #6c757d;
}

.actual-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.95rem;
    margin-right: 8px;
}

.final-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1f2937;
}

.save-text {
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 700;
}

.save-badge {
    font-size: 0.7rem;
}

.course-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.course-desc {
    font-size: 0.9rem;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.offers-section {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    margin-bottom: 5rem;
    padding: 2rem;
}

.section-title {
    color: #0f172a;
    letter-spacing: -0.5px;
}

.main-heading {
    font-size: 2.8rem;
    color: #1e293b;
    letter-spacing: -1px;
    font-weight: 800;
}

.heading-underline {
    width: 80px;
    height: 4px;
    background: #ea580c;
    margin: 15px auto;
    border-radius: 2px;
}

.sub-heading {
    font-size: 1.15rem;
    color: #6c757d;
}

.offers-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.coupon-ticket {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    flex: 1 1 380px;
    max-width: 480px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.coupon-ticket:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.12);
}

.pulse-anim {
    animation: glowPulse 2.5s infinite;
}

@keyframes glowPulse {
    0% { box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1); }
    50% { box-shadow: 0 4px 25px rgba(79, 70, 229, 0.4); }
    100% { box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1); }
}

.coupon-ticket::before,
.coupon-ticket::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: #f8f9fa;
    border-radius: 50%;
    z-index: 10;
}

.coupon-ticket::before {
    top: 50%;
    left: -12px;
    transform: translateY(-50%);
    box-shadow: inset -1px 0 3px rgba(0, 0, 0, 0.05);
}

.coupon-ticket::after {
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    box-shadow: inset 1px 0 3px rgba(0, 0, 0, 0.05);
}

.coupon-left {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
    color: white;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 130px;
    border-right: 3px dashed rgba(255, 255, 255, 0.3);
    text-align: center;
    position: relative;
}

.limited-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 0;
    letter-spacing: 1px;
}

.coupon-left .discount-value {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    margin-top: 10px;
}

.coupon-left .discount-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-top: 4px;
}

.coupon-right {
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    position: relative;
}

.coupon-right .offer-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.coupon-right .offer-desc {
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.code-wrap {
    display: inline-flex;
    align-items: center;
    background: #eef2ff;
    border: 2px dashed #4f46e5;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 900;
    font-size: 1.15rem;
    color: #4f46e5;
    user-select: all;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.code-wrap i {
    margin-right: 8px;
    font-size: 1rem;
}

.coupon-ticket.auto-offer .coupon-left {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.coupon-ticket.auto-offer .code-wrap {
    background: #f0f9ff;
    border-color: #0284c7;
    color: #0369a1;
    font-family: inherit;
    user-select: none;
}

.countdown-timer {
    font-size: 0.9rem;
    font-weight: 700;
    color: #4b5563;
    margin-top: 1rem;
    display: flex;
    align-items: center;
}

.countdown-timer i.fa-clock {
    color: #ef4444;
    margin-right: 8px;
    font-size: 1.1rem;
    animation: tick 1s infinite alternate;
}

@keyframes tick {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.time-box {
    background: #fee2e2;
    color: #b91c1c;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Consolas, monospace;
    font-weight: 900;
    font-size: 0.95rem;
    margin: 0 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #fca5a5;
    letter-spacing: 0.5px;
    transition: transform 0.2s;
    display: inline-block;
}

.time-box:hover {
    transform: translateY(-2px);
    background: #fecaca;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-enroll {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.2);
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-enroll:hover {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(234, 88, 12, 0.3);
    color: white;
}

.mega-banner {
    background: linear-gradient(90deg, #1e1b4b, #4338ca, #1e1b4b);
    color: white;
    text-align: center;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 1rem;
    letter-spacing: 1px;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3);
    animation: pulse-banner 3s infinite;
}

.mega-banner span {
    color: #fbbf24;
    font-weight: 900;
}

@keyframes pulse-banner {
    0% { box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(67, 56, 202, 0.6); }
    100% { box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3); }
}

@media (max-width: 768px) {
    .main-heading {
        font-size: 2rem;
    }
    
    .sub-heading {
        font-size: 1rem;
    }
    
    .offers-section {
        padding: 1rem;
    }
    
    .coupon-left {
        min-width: 100px;
        padding: 1rem 0.5rem;
    }
    
    .coupon-left .discount-value {
        font-size: 1.5rem;
    }
    
    .coupon-right {
        padding: 1rem;
    }
    
    .coupon-right .offer-title {
        font-size: 1rem;
    }
    
    .code-wrap {
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
    }
    
    .course-title {
        font-size: 1rem;
    }
    
    .final-price {
        font-size: 1.2rem;
    }
}