﻿

.price-discount {
    color: #0094B1;
    font-weight: 900;
    font-size: 2.35rem;
}
.description{
    text-align:justify
}
.title{
    margin-bottom :30px !important; 
}
.price-original {
    font-size: 18px;
    font-weight: 900;
    text-decoration: line-through;
    padding: 10px;

}
.price-badge {
    background-color: red;
    color: #ffffff;
    padding: 10px;
    font-size: 20px;
    font-weight: bolder;
    border-radius: 50%;
}

.purchased-msg {
    background: #f0fff4;
    border: 1px dashed #16a34a;
    color: #065f46;
    border-radius: 10px;
    padding: 10px;
    font-weight: 800;
    margin: 0 0 12px;
    text-align: center;
}

.course-register-card .meta .icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f4f6f8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #6b7280;
    flex: 0 0 28px;
}

.course-register-card .meta .key {
    color: #6b7280;
}

.course-register-card .meta .val {
    font-weight: 700;
}

.course-register-card .note {
    color: #6c757d;
    font-size: .9rem;
}

.course-register-card .btn-register {
    width: 100%;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 800;
    background: #2d2e32;
    color: #fff;
    border: 0;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .course-register-card .btn-register:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(0,0,0,.12);
    }


.course-tabbox {
    margin-top: 40px;
}

.course-tabbox-nav {
    display: inline-flex;
    gap: 10px;
    border-radius: 999px;
    padding: 4px;
    margin-top: 40px;
    background: rgba(0,0,0,.03);
}

    .course-tabbox-nav button {
        border: 0;
        border-radius: 999px;
        padding: 8px 16px;
        font-size: .95rem;
        font-weight: 600;
        background: transparent;
        color: #555;
        cursor: pointer;
        transition: background .15s ease, color .15s ease, box-shadow .15s ease;
        font-size: 18px;
        padding: 20px;
    }

        .course-tabbox-nav button.is-active {
            background: #111827;
            color: #fff;
            box-shadow: 0 6px 16px rgba(0,0,0,.18);
        }


.course-tabbox-content {
    position: relative;
}


.course-tab-pane {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: none;
}


    .course-tab-pane.is-active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

.course-tabbox-nav button {
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 18px;
    font-weight: 600;
    background: transparent;
    color: #555;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    padding: 20px;
}

    .course-tabbox-nav button:hover {
        transform: translateY(-1px);
    }

    .course-tabbox-nav button.is-active {
        background: #111827;
        color: #fff;
        box-shadow: 0 6px 16px rgba(0,0,0,.18);
    }


.btn-buy {
    background-color: #0094B1;
    color: #ffffff;
    font-size: 20px;
    font-weight: bolder;
    padding: 20px;
    margin-top: 40px;
    border-radius: 30px;
    border: groove 4px #ffffff;
    display: inline-block; /* for proper transform */
    transition: transform 0.25s ease, box-shadow 0.25s ease; /* smooth animation */
}

    .btn-buy:hover {
        transform: scale(1.06); /* slightly bigger */
        box-shadow: 0 10px 20px rgba(0,0,0,0.18);
    }

    .btn-buy:active {
        transform: scale(0.98); /* small press effect */
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

.course-tabbox-content {
    margin-top: 24px;
    border-radius: 16px;
    padding: 20px 22px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.04);
}

.course-tab-pane {
    display: none;
}

    .course-tab-pane.is-active {
        display: block;
    }

.course-spec-list li + li {
    margin-top: 4px;
}

.course-spec-list strong {
    min-width: 110px;
    display: inline-block;
}

@media (max-width: 767.98px) {
    .course-tabbox-content {
        padding: 16px;
    }
}

.continer-video {
    max-width: 900px;
    margin: 30px auto; 
    padding: 0 15px; 
    text-align: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 16px;
}

 
    .video-wrapper video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
    }

@media (max-width: 767.98px) {
    .continer-video {
        margin: 20px auto;
        padding: 0 10px;
    }
}
/* --- قیمت در کارت‌های لیست دوره‌ها / محصولات --- */

/* حالت پیش‌فرض: مخفی */
.product-card-price {
    margin-top: 10px;
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
  
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* وقتی روی کارت رفتی (هاور روی آیتم) قیمت ظاهر بشه */
.projects-list .work-item-box:hover .product-card-price,
.projects-list .work-item-box:focus-within .product-card-price {
    opacity: 1;
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.55);
}


    /* قیمت اصلی / نهایی داخل کارت کوچیک‌تر از هدر صفحه جزئیات */
    .product-card-price .price-discount {
        color: #0094B1; /* همون رنگ اصلی دکمه‌ات */
        font-weight: 900;
        font-size: 1.25rem;
        line-height: 1.1;
    }

    .product-card-price .price-original {
        font-size: 0.9rem;
        font-weight: 800;
        text-decoration: line-through;
        padding: 0;
        margin-inline-start: 4px;
        color: #f9fafb; /* سفید متمایل */
        opacity: 0.85;
    }

    .product-card-price .price-badge {
        background-color: #dc2626; /* قرمز پررنگ‌تر از red معمولی */
        color: #ffffff;
        padding: 2px 10px;
        font-size: 0.8rem;
        font-weight: 800;
        border-radius: 999px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

/* متن "جزئیات بیشتر" زیر قیمت کمی ظریف‌تر */
.product-card-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #e5e7eb;
    opacity: 0.85;
}

/* افکت ظاهر شدن محتوا روی کارت (اگر تم DSN اجازه بده) */
.work-item .item-info {
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.work-item:hover .item-info {
    transform: translateY(-6px);
}

/* اطمینان از این‌که قیمت تو حالت موبایل هم خواناست */
@media (max-width: 767.98px) {
    .product-card-price {
        width: 100%;
        justify-content: center;
        text-align: center;
        border-radius: 12px;
        padding: 6px 12px;
    }

        .product-card-price .price-discount {
            font-size: 1.1rem;
        }
}
/* لینک روی کارت محصول */
.product-thumb-link {
    position: relative;
    display: block;
    overflow: hidden;
}

/* قیمت روی خود تصویر – همیشه دیده میشه */
.product-thumb-price {
    position: absolute;
    inset-inline-end: 14px; /* راست در RTL، چپ در LTR خود مرورگر هندل می‌کنه */
    inset-block-start: 14px; /* بالا */
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    color: #fff;
    z-index: 3;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* روی هاور کارت، قیمت بالای عکس مخفی بشه */
.work-item-box:hover .product-thumb-price,
.work-item-box:focus-within .product-thumb-price {
    opacity: 0;
    transform: translateY(-6px);
}

/* نسخه کوچیک‌تر استایل قیمت مخصوص روی تصویر،
   تا با استایل بزرگ صفحه‌ی جزئیات قاطی نشه */
/* قیمت روی کارت – نسخه کمی درشت‌تر */
.product-thumb-price .price-discount {
    font-size: 1.25rem; /* قبلاً 1rem بود */
    font-weight: 900;
}

.product-thumb-price .price-original {
    font-size: 1rem; /* قبلاً 0.85rem بود */
    padding: 0;
    text-decoration: line-through;
    opacity: 0.95;
}

.product-thumb-price .price-badge {
    font-size: 0.9rem; /* قبلاً 0.75rem بود */
    padding: 3px 10px;
    border-radius: 999px;
}
@media (max-width: 768px) {
    .product-thumb-price .price-discount {
        font-size: 1.05rem;
    }

    .product-thumb-price .price-original {
        font-size: 0.9rem;
    }

    .product-thumb-price .price-badge {
        font-size: 0.8rem;
    }
}
.pagination-wrapper {
    margin-top: 60px;
}

.pagination {
    display: flex;
    gap: 8px;
}

    .pagination .page-item {
        list-style: none;
    }

    .pagination .page-link {
        padding: 12px 18px;
        border: 1px solid #00B4D7;
        border-radius: 8px;
        color: #00B4D7;
        text-decoration: none;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 6px;
        font-weight: 500;
    }

        .pagination .page-link:hover {
            background-color: var(--theme-color, #00B4D7);
            color: white;
            border-color: var(--theme-color, #00B4D7);
            transform: translateY(-2px);
        }

    .pagination .page-item.active .page-link {
        background-color: var(--theme-color, #00B4D7);
        color: white;
        border-color: var(--theme-color, #00B4D7);
    }

    .pagination .page-item.disabled .page-link {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

.pagination-info {
    font-size: 14px;
    color: #ffffff;
}

[dir="rtl"] .pagination {
    direction: rtl;
}

.alert-success{
    font-size:25px;
    color:greenyellow;
    font-weight: 900;
   margin-top:30px;
}