
/* Redya Custom Styles */

.redya-new-structure {
    padding: 20px 0 50px 0;
}

.category-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.category-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.category-card:hover .card-bg {
    transform: scale(1.1);
}

.category-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.category-card:hover .card-overlay {
    opacity: 0.75;
}

/* Colors from reference */
.category-card.purple .card-overlay { background: linear-gradient(135deg, #7b1fa2, #4a148c); }
.category-card.orange .card-overlay { background: linear-gradient(135deg, #ef6c00, #e65100); }
.category-card.blue .card-overlay { background: linear-gradient(135deg, #0288d1, #01579b); }
.category-card.green .card-overlay { background: linear-gradient(135deg, #2e7d32, #1b5e20); }

.category-card .card-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    z-index: 2;
}

.category-card .card-content h3 {
    color: #fff !important;
    font-size: 26px;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: 1px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.category-card .card-footer {
    position: absolute;
    bottom: 25px;
    left: 25px;
    display: flex;
    align-items: center;
    color: #fff;
    z-index: 2;
}

.category-card .card-footer i {
    font-size: 20px;
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.category-card .card-footer span {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .category-card .card-content h3 {
        font-size: 22px;
    }
}

@media (max-width: 991px) {
    .category-card {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 767px) {
    .category-card {
        aspect-ratio: 16/9;
    }
    .category-card .card-content h3 {
        font-size: 20px;
    }
}
