.nll-related-product-header {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px
}

.nll-swiper-navigation {
    float: left;
    display: flex;
    gap: 10px;
    align-items: center
}

.nll-related-product-title-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between
}

.nll-related-product-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #383C79;
    float: right
}

.nll-related-product-title a {
    text-decoration: none !important;
    color: inherit
}

.nll-related-product-swiper-container {
    direction: rtl;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0
}

.nll-product-related-widget {
    direction: rtl
}

.nll-product-related-widget .nll-product-related-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.nll-product-related-widget .nll-product-related-widget-content {
    display: block !important;
    width: 100% !important
}

.nll-product-related-widget-header .nll-product-related-widget-title {
    font-size: 40px;
    font-weight: 800;
    color: #383C79
}

.nll-product-related-widget-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px
}

.nll-product-related-card {
    background-color: #F2F2F7aa;
    border-radius: 24px;
    overflow: hidden;
    text-align: center;
    padding: 16px;
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative
}

.nll-product-related-image-container {
    position: relative;
    margin-bottom: 12px
}

.nll-product-related-image-container img {
    width: 100%;
    height: 200px !important;
    border-radius: 16px !important;
    object-fit: cover;
    display: block
}

.nll-product-related-card-badges {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: row;
    gap: 5px;
    z-index: 1
}

.nll-badge {
    background-color: #404040;
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    opacity: .8
}

.nll-product-related-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    text-align: right;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.nll-product-related-card h3 a {
    text-decoration: none !important;
}

.nll-product-related-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    color: #8C8C8C;
    font-size: 14px;
    font-weight: 600
}

.nll-meta-item {
    display: flex;
    align-items: center;
    gap: 5px
}

.nll-meta-item img {
    width: 25px;
    height: 25px;
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
    object-fit: contain
}

.nll-product-related-card-instructor {
    font-size: 15px;
    color: #777;
    margin-bottom: 10px;
    text-align: right;
}

.nll-instructor {
    font-size: 16px;
    color: #000;
    font-weight: 600;
    line-height: 1.5;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.nll-product-related-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px
}

.nll-product-related-card-price {
    font-size: 16px;
    color: #383C79;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.nll-product-related-card-price .regular-price {
    color: #8C8C8C;
    text-decoration: line-through;
    font-size: 14px;
    font-weight: 400;
}

.nll-product-related-card-price .sale-price {
    color: #383C79;
    font-size: 16px;
    font-weight: 700;
}

.nll-product-related-card-price .discount-badge {
    background-color: #FFD700;
    color: #000;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
}

.nll-product-related-card-button {
    display: inline-block;
    background-color: #383C79;
    color: #fff !important;
    padding: 5px 20px;
    border-radius: 12px;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: 700;
    transition: background-color .3s ease
}

.nll-product-related-card-button:hover {
    background-color: #2c2f6b
}

.nll-product-related-card a {
    text-decoration: none;
    color: inherit
}

@media screen and (max-width: 1024px) {
    .nll-product-related-card h3 {
        font-size: 18px;
    }

    .nll-related-product-title {
        font-size: 18px;
    }

    .nll-product-related-widget-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media screen and (max-width: 768px) {
    .nll-product-related-widget-grid {
        grid-template-columns: 1fr
    }

    .nll-product-related-widget-header {
        flex-direction: column;
        gap: 15px;
        text-align: center
    }

    .nll-product-related-widget-header .nll-product-related-widget-title {
        font-size: 32px
    }
}