/* CARD */
.featured__item {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    position: relative;
}

.featured__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* IMAGE */
.featured__item__pic {
    position: relative;
    height: 240px;
    background-size: cover;
    background-position: center;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
}

/* OVERLAY */
.featured__item__pic::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.25));
}

/* FAVORITE */
.in-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 5;
}

.in-favorite i {
    font-size: 18px;
    color: #ff4d4f;
}

/* PREMIUM ICON */
.specific-item-type {
    position: absolute;
    bottom: 14px;
    left: 12px;
    background: rgba(0,0,0,0.65);
    padding: 6px 10px;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    z-index: 5;
}

/* =========================
   RIBBON (FIXED DESIGN)
========================= */
.featured__item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 140px;
    background: #28a745;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 4;
}

.featured__item::after {
    content: "Yeni\A Təcili satılır";
    white-space: pre;
    position: absolute;
    top: 18px;
    left: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transform: rotate(-45deg);
    transform-origin: left top;
    line-height: 1.2;
    z-index: 5;
}

/* =========================
   CAROUSEL DOTS
========================= */
.images-position-mark {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 4;
}

.images-position-mark .caption {
    display: flex;
    gap: 4px;
    width: 80%;
}

.images-position-mark span {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.images-position-mark span.active {
    background: #ff4d4f;
}

/* hide if empty */
.images-position-mark:empty {
    display: none;
}

/* TEXT */
.featured__item__text {
    padding: 14px 14px 16px;
}

.featured__item__text h5 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #000;
}

.featured__item__text h6 {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    height: 36px;
    overflow: hidden;
}

.inform-date {
    font-size: 12px;
    color: #9aa0a6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .featured__item__pic {
        height: 200px;
    }
}