.d2-categories-section {
    padding: 80px 0;
    background-color: #ffffff;
    overflow: hidden;
}

.d2-badge-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.d2-popular-badge {
    background-color: #f1f5f9;
    color: #475569;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
}

.d2-section-title {
    font-size: 3rem !important;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 15px;
}

.d2-section-desc {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 750px;
    margin: 0 auto 50px;
}

.d2-category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    width: 100%;
}

.d2-cat-card-wrapper {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.d2-cat-card-wrapper:hover {
    transform: translateY(-8px);
}

.d2-cat-card-box {
    width: 100%;
    aspect-ratio: 1.4 / 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.d2-cat-card-wrapper:hover .d2-cat-card-box {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.d2-cat-icon-white {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.d2-cat-card-wrapper:hover .d2-cat-icon-white {
    transform: scale(1.1);
}

.d2-cat-icon-white i {
    font-size: 1.2rem;
}

.d2-cat-name {
    color: #1e293b;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    margin-top: 5px;
}

@media (max-width: 1200px) {
    .d2-category-grid { grid-template-columns: repeat(4, 1fr); }
    .d2-section-title { font-size: 2.5rem !important; }
}

@media (max-width: 991px) {
    .d2-category-grid { grid-template-columns: repeat(3, 1fr); }
    .d2-categories-section { padding: 60px 0; }
}

@media (max-width: 575px) {
    .d2-category-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px;
    }
    .d2-section-title { font-size: 2rem !important; }
    .d2-cat-card-box { border-radius: 8px; }
}