/* =================================== */
/* Styles for Course/Unit Cards       */
/* =================================== */

.course-card {
    border-radius: 15px;
    background: linear-gradient(to top, #D4EDF1, #FFFFFF);
    padding: 20px;
    width: 100%;
    margin: auto;
    text-align: center;
    position: relative;
    /* Added for responsiveness and consistent height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.course-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.discount-badge {
    margin-top: -40px;
    left: 34px;
    position: absolute;
    background: #FFB1A5;
    color: #0A4045;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #C5402C;
}

.offer-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #EB634E;
    color: white;
    padding: 10px 16px;
    border-radius: 0 8px 0 20px;
    font-weight: bold;
}

.course-title {
    color: #26848C;
    font-size: 17px;
    margin: 25px 0;
    font-weight: bold;
    text-align: right;
}

.course-description {
    color: #0A4045;
    text-align: right;
    font-size: 15px;
    /* Ensures the description doesn't push the button down too far */
    flex-grow: 1;
}

.teacher-section {
    text-align: right;
}

.icon-text {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

.icon-text img {
    width: 16px;
    height: 16px;
    margin-left: 5px;
}

.price-section {
    margin: 15px 0;
    font-size: 16px;
}

.price-section s {
    color: gray;
    margin-right: 10px;
    margin-top: 10px;
}

.current-price-section {
    background-color: #D4EDF1;
    padding: 10px;
    border-radius: 8px;
}

.price-section .current-price {
    color: #0A4045;
    font-weight: bold;
    margin-right: 10px;
}

.btn-purchase {
    background: #EB634E;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 20px 0;
    font-size: 18px;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
}

.btn-purchase:hover {
    background: #d95a41;
    color: white; /* Ensure text color remains white on hover */
}


/* =================================== */
/* Styles for V2 Price Story Block    */
/* =================================== */

.price-story-v2 {
    background-color: #eef7f9; /* یک پس‌زمینه بسیار ملایم برای تمایز */
    border-radius: 10px;
    padding: 10px 15px;
    margin-top: 20px;
    margin-bottom: 15px;
    border: 1px solid #cce3e7;
}

.price-step-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

/* جداکننده خط‌چین بین مراحل */
.price-step-v2:not(:last-child) {
    border-bottom: 1px dashed #b8d5da;
}

.step-label-v2 {
    font-size: 14px;
    color: #5b8a8e; /* رنگ متن لیبل‌ها */
    font-weight: 500;
}

.price-and-badge-v2 {
    display: flex;
    align-items: center;
    gap: 8px; /* فاصله بین قیمت و بج تخفیف */
}

.step-value-v2 {
    font-size: 16px;
    font-weight: 600;
    color: #0A4045;
}

/* استایل قیمت خط خورده */
.step-value-v2.strikethrough {
    color: #90a4ae;
    text-decoration: line-through;
    text-decoration-color: #ff7e6b;
    text-decoration-thickness: 1.5px;
    font-size: 15px;
}

/* استایل قیمت نهایی */
.step-value-v2.final {
    color: #d95a41; /* هماهنگ با رنگ دکمه خرید */
    font-size: 20px;
    font-weight: 800; /* بسیار برجسته */
}

/* استایل بج‌های تخفیف */
.badge-v2 {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.badge-v2.discount {
    background-color: #26848C; /* رنگ اصلی تم */
}

.badge-v2.special {
    background-color: #c5402c; /* رنگ ویژه و متمایز */
}
