.home-boxes {
    font-family: Arial, sans-serif;
    margin: 20px;
    background: #f5f5f5;
}

.home-boxes .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.home-boxes .card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 400px;
}

.home-boxes .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.home-boxes .card h2 {
    background: #4CAF50;
    color: white;
    margin: 0;
    padding: 15px;
    text-align: center;
    font-size: 1.4em;
}

.home-boxes .card ul {
    list-style-type: none;
    margin: 0;
    padding: 10px 20px;
    flex: 1 1 auto;
}

.home-boxes .card ul li {
    padding: 10px 5px;
    border-bottom: 1px solid #ddd;
    transition: background 0.2s;
    cursor: pointer;
}

.home-boxes .card ul li:last-child {
    border-bottom: none;
}

.home-boxes .card ul li:hover {
    background: #e0f7fa;
}

.home-boxes .view-all {
    display: block;
    text-align: center;
    padding: 12px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border-top: 1px solid #ddd;
    transition: background 0.2s, color 0.2s;
	flex: 0 0 auto;
}

.home-boxes .view-all:hover {
    background: #4CAF50;
    color: white;
}

/* Responsive: stack columns on small screens */
@media (max-width: 600px) {
    .home-boxes .card h2 {
        font-size: 1.2em;
    }
}