/* Categories Page Specific Styles */
.categories-header {
    background-color: #457aff;
    padding: 30px 0;
    color: white;
    margin-bottom: 30px;
}

.categories-header-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

.categories-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
}

.categories-description {
    font-size: 16px;
    margin-bottom: 20px;
    max-width: 700px;
    line-height: 1.5;
}

.categories-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
}

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

.category-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: #f5f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #457aff;
    font-size: 24px;
}

.category-name {
    font-size: 18px;
    font-weight: bold;
}

.category-count {
    font-size: 14px;
    color: #777;
}

.subcategories-list {
    margin-top: 10px;
}

.subcategory {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #4558ff;
    display: flex;
    justify-content: space-between;
}

.subcategory:last-child {
    border-bottom: none;
}

.subcategory-count {
    color: #777;
    font-size: 13px;
}

.all-subcategories {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #4558ff;
    font-size: 14px;
    font-weight: 500;
}

.all-subcategories:hover {
    text-decoration: underline;
}

.popular-categories-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.popular-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-category {
    background-color: #f5f7ff;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    color: #4558ff;
    transition: background-color 0.3s ease;
}

.popular-category:hover {
    background-color: #e0e6ff;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .categories-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .categories-title {
        font-size: 24px;
    }

    .category-card-header {
        flex-direction: column;
        text-align: center;
    }

    .category-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
