.special-category-section .special-category-wrapper {
    display: grid;
    grid-auto-rows: 282px;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (max-width: 768px) {
    .special-category-section .special-category-wrapper {
        grid-template-columns: repeat(1, 1fr);
        grid-auto-rows: 236px;
        gap: 8px;
    }
}

@media (min-width: 768px) {
    .special-category-section .special-category-wrapper {
        gap: 16px;
    }
}

@media (min-width: 992px) {
    .special-category-section .special-category-wrapper {
        gap: 24px;
    }
}

.special-category-section .special-category-item {
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .special-category-section .special-category-item-large {
        grid-row: span 2;
    }
}

.special-category-section .special-category-link {
    display: flex;
    align-items: flex-end;
    height: 100%;
    width: 100%;
    position: relative;
    text-decoration: none;
    padding: 20px;
}

@media (min-width: 768px) {
    .special-category-section .special-category-link {
        padding: 24px;
    }
}

.special-category-section .special-category-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.special-category-section .special-category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.special-category-section .special-category-arrow {
    width: 60px;
    height: 48px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 24px;
    bottom: 24px;
    transition: 0.3s ease;
}

.special-category-section .special-category-arrow i {
    font-size: 24px;
    color: var(--primary-color, #007bff);
    display: block;
}

@media (max-width: 768px) {
    .special-category-section .special-category-arrow {
        width: 50px;
        height: 40px;
        left: 20px;
        bottom: 20px;
    }
}

@media (min-width: 768px) {
    .special-category-section .special-category-arrow {
        left: 24px;
        bottom: 24px;
    }
}

/* RTL Support */
[dir="ltr"] .special-category-section .special-category-arrow {
    left: auto;
    right: 20px;
}

@media (min-width: 768px) {
    [dir="ltr"] .special-category-section .special-category-arrow {
        right: 24px;
    }

    [dir="ltr"] .special-category-section .special-category-item:hover .special-category-arrow {
        right: 0;
        left: auto;
        transform: translateX(100%);
    }
}

.special-category-section .special-category-content {
    color: var(--text-color);
}

body.dark .special-category-section .special-category-content {
    color: var(--text-color-dark);
}

.special-category-section .special-category-content h3 {
    font-weight: bold;
    font-size: 20px;
    margin: 0;
}

@media (min-width: 768px) {
    .special-category-section .special-category-content h3 {
        font-size: 24px;
    }
}

.special-category-section .special-category-content p {
    font-size: 16px;
    margin-top: 8px;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .special-category-section .special-category-content p {
        font-size: 20px;
    }
}

@media (min-width: 768px) {
    .special-category-section .special-category-item:hover .special-category-arrow {
        left: 0;
        transform: translateX(-100%);
    }

    .special-category-section .special-category-item:hover .special-category-image-wrapper .special-category-image {
        transform: scale(1.15);
    }
}

