.editorial-services-widget {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.editorial-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #EAEFF5;
    box-shadow: 0 4px 20px rgba(9, 37, 74, 0.03);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.editorial-card-link {
    color: inherit;
    text-decoration: none;
    display: block;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.media-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #E2E8F0;
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.media-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f1f5f9;
}

.glass-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(9, 37, 74, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.card-meta {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    flex-grow: 1;
}

.meta-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.meta-city {
    color: #94A3B8;
    font-size: 0.75rem;
    font-weight: 600;
}

.meta-title {
    color: #09254A;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.arrow-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #09254A;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: rotate(180deg);
}

.editorial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(9, 37, 74, 0.15);
    box-shadow: 0 16px 32px rgba(9, 37, 74, 0.08);
}

.editorial-card:hover .media-frame img {
    transform: scale(1.05);
}

.editorial-card:hover .arrow-btn {
    background: #BAFF00;
    color: #09254A;
    transform: rotate(180deg) scale(1.08);
}

.editorial-services-empty {
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border: 1px dashed #ccc;
    color: #666;
}

@media (max-width: 991px) {
    .editorial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .editorial-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .editorial-card,
    .editorial-card img,
    .arrow-btn,
    .meta-title {
        transition: none !important;
    }
    .editorial-card:hover {
        transform: none !important;
    }
    .editorial-card:hover .media-frame img {
        transform: none !important;
    }
    .editorial-card:hover .arrow-btn {
        transform: rotate(180deg) !important;
    }
}
