/* Simple Card Styles */
.simple-card {
    border-radius: 20px;
    height: 450px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.simple-card img {
    transition: 0.3s;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.simple-card:hover img {
    transform: scale(1.08);
}

.h-2-lines {
    height: 60px;
}

.teacher-price-h {
    height: 52px;
}

/* Text Item with Blur Effect */
.text-item {
    position: absolute;
    bottom: 10px;
    right: 10px;
    left: 10px;
    padding: 10px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: #333;
}

.text-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.text-item p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Custom Button Style */
.btn-link-custom {
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-link-custom:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #4dabf7;
    color: #fff !important;
    border-color: #4dabf7;
}

/* Price Tag Style */
.price-tag {
    margin: 0;
    font-weight: bold;
    color: #333;
}

.teacher {
    /* جلوگیری از فشرده شدن بیش از حد */
    flex-shrink: 0;
    min-width: 90px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.teacher span {
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    /* جلوگیری از شکستن اسم مدرس */
}

.teacher img {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover;
    border: 1px solid #eee;
    margin-bottom: 0 !important;
}

.product-type {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #c52a2a;
    color: #fff;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 5;
}

.product-type-class {
    background: #2a6eff;
}

.grate {
    background: #c52a2a !important;
    color: #fff;
}

.tag-list {
    height: 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    font-size: 9px !important;
    background: #f1f3f7;
    padding: 2px 4px;
    border-radius: 20px;
    margin: 2px;
}

@media (max-width: 600px) {
    .simple-card {
        width: 80vw !important;
        margin: auto;
    }
}