:root {
    --purple: #6f42c1;
    --orange: #fd7e14;
}
.hero-image,
.category-btn,
.stats-card {
    border-radius: 1.25rem !important;
}
.category-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: flex-start !important;
    text-decoration: none;
    position: relative;
    height: 120px;
    border: none;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    color: #212529;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    text-align: center;
    padding: 0.75rem 1rem 1.5rem 1rem;
    gap: 0.375rem;
}
.category-btn .icon {
    font-size: 2.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    line-height: 1;
    margin: 0;
    flex-shrink: 0;
}
.category-btn .name {
    font-size: 0.88rem;
    line-height: 1.25;
    font-weight: 600;
    color: #212529 !important;
    margin: 0;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    padding: 0 0.25rem;
    flex: 1;
}
.category-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.15);
    background: linear-gradient(145deg, #fff, #ffffff);
    text-decoration: none;
}
.category-btn:hover .icon {
    transform: scale(1.05);
}
.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transition: left 0.7s;
}
.category-btn:hover::before {
    left: 100%;
}
.stats-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    text-align: center;
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    position: relative;
    color: inherit;
}
.stats-card .icon {
    font-size: 4.2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    flex-shrink: 0;
}
.stats-card .number {
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1;
    margin: 0 0 0.25rem 0;
}
.stats-card .label {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    opacity: 0.85;
}
.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    background: linear-gradient(145deg, #fff, #ffffff);
}
.stats-card:hover .icon {
    transform: scale(1.08);
}
.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transition: left 0.7s;
}
.stats-card:hover::before {
    left: 100%;
}
@media (max-width: 991.98px) {
    .category-btn {
        height: 115px;
        padding: 0.625rem 0.875rem 1.375rem 0.875rem;
        gap: 0.375rem;
    }
    .category-btn .icon {
        font-size: 2.6rem;
        width: 76px;
        height: 76px;
    }
    .category-btn .name {
        font-size: 0.86rem;
    }
    .stats-card {
        padding: 1.25rem 1.25rem 1.75rem 1.25rem;
        gap: 0.375rem;
    }
    .stats-card .icon {
        font-size: 3.8rem;
        width: 95px;
        height: 95px;
    }
    .stats-card .number {
        font-size: clamp(2rem, 6.5vw, 3.75rem);
    }
}
@media (max-width: 767.98px) {
    .category-btn {
        height: 110px;
        padding: 0.5rem 0.75rem 1.25rem 0.75rem;
        gap: 0.25rem;
    }
    .category-btn .icon {
        font-size: 2.4rem;
        width: 72px;
        height: 72px;
    }
    .category-btn .name {
        font-size: 0.84rem;
    }
    .stats-card {
        padding: 1rem 1rem 1.5rem 1rem;
        gap: 0.375rem;
    }
    .stats-card .icon {
        font-size: 3.5rem;
        width: 90px;
        height: 90px;
    }
    .stats-card .number {
        font-size: clamp(1.875rem, 7vw, 3.5rem);
    }
}
@media (max-width: 575.98px) {
    .category-btn {
        height: 105px;
        padding: 0.375rem 0.625rem 1.125rem 0.625rem;
        gap: 0.25rem;
    }
    .category-btn .icon {
        font-size: 2.2rem;
        width: 68px;
        height: 68px;
    }
    .category-btn .name {
        font-size: 0.82rem;
        max-height: 2.6em;
        padding: 0 0.2rem;
    }
    .stats-card {
        padding: 0.875rem 0.875rem 1.375rem 0.875rem;
        gap: 0.25rem;
    }
    .stats-card .icon {
        font-size: 3.2rem;
        width: 85px;
        height: 85px;
    }
    .stats-card .number {
        font-size: clamp(1.75rem, 8vw, 3.25rem);
    }
}
.btn-purple { 
    background-color: var(--purple); 
    border-color: var(--purple); 
    color: white; 
}
.btn-purple:hover { 
    background-color: #5a32a3; 
    border-color: #5a32a3; 
    color: white; 
}
.btn-orange { 
    background-color: var(--orange); 
    border-color: var(--orange); 
    color: white; 
}
.btn-orange:hover { 
    background-color: #e36209; 
    border-color: #e36209; 
    color: white; 
}