/* Category Cards Modern - Red Brand Design */

.category-cards-modern-area {
    position: relative;
    padding: 80px 0;
}

.category-cards-modern-area .section-title .title {
    font-size: 42px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.category-cards-modern-area .section-title .title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    border-radius: 2px;
}

/* Category Card */
.category-card-modern {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.category-card-modern-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
}

.category-card-modern-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.category-card-modern-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card-modern:hover .category-card-modern-image img {
    transform: scale(1.1);
}

.category-card-modern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.category-card-modern:hover .category-card-modern-overlay {
    background: linear-gradient(180deg, rgba(220, 38, 38, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* Listing Badge */
.category-card-modern-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
}

.category-card-modern:hover .category-card-modern-badge {
    background: rgba(220, 38, 38, 0.95);
    border-color: rgba(220, 38, 38, 0.4);
    transform: scale(1.05);
}

.badge-count {
    font-size: 16px;
    font-weight: 700;
    color: #dc2626;
    line-height: 1;
}

.category-card-modern:hover .badge-count {
    color: #ffffff;
}

.badge-text {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: lowercase;
}

.category-card-modern:hover .badge-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Category Label */
.category-card-modern-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    padding: 24px 20px 20px;
    z-index: 2;
    transition: all 0.3s ease;
}

.category-card-modern:hover .category-card-modern-label {
    background: linear-gradient(180deg, transparent 0%, rgba(220, 38, 38, 0.95) 100%);
    padding-bottom: 24px;
}

.category-card-modern-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.category-card-modern:hover .category-card-modern-title {
    transform: translateY(-2px);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

/* Card Hover Effects */
.category-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 12px 40px rgba(220, 38, 38, 0.25),
        0 0 0 1px rgba(220, 38, 38, 0.1);
}

/* Red Accent Border on Hover */
.category-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    border-radius: 20px 20px 0 0;
}

.category-card-modern:hover::before {
    transform: scaleX(1);
}

/* Grid Layout */
.category-cards-modern-area .row {
    display: flex;
    flex-wrap: wrap;
}

.category-cards-modern-area .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .category-card-modern-image {
        height: 260px;
    }
}

@media (max-width: 991px) {
    .category-cards-modern-area {
        padding: 60px 0;
    }
    
    .category-cards-modern-area .section-title .title {
        font-size: 36px;
    }
    
    .category-card-modern-image {
        height: 240px;
    }
    
    .category-card-modern-title {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .category-cards-modern-area {
        padding: 50px 0;
    }
    
    .category-cards-modern-area .section-title .title {
        font-size: 32px;
    }
    
    .category-card-modern-image {
        height: 220px;
    }
    
    .category-card-modern-label {
        padding: 20px 16px 16px;
    }
    
    .category-card-modern-title {
        font-size: 16px;
    }
    
    .category-card-modern-badge {
        top: 12px;
        right: 12px;
        padding: 5px 12px;
    }
    
    .badge-count {
        font-size: 14px;
    }
    
    .badge-text {
        font-size: 11px;
    }
}

@media (max-width: 575px) {
    .category-cards-modern-area .section-title .title {
        font-size: 28px;
    }
    
    .category-card-modern-image {
        height: 200px;
    }
}

