/* General container styling */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

/* Card styling */
.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; /* Ensure content stays within the card */
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #222; /* Updated title color */
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.card-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-links li {
    margin-bottom: 8px;
}

.card-links a {
    text-decoration: none;
    color: #0073e6;
    font-size: 14px;
}

.card-links a:hover {
    text-decoration: underline;
}

.toggle-links {
    color: #222; /* Updated Explore All and Show Less color */
    cursor: pointer;
    font-size: 14px;
    margin-top: 12px;
    display: inline-block;
}

/* Responsive styling */
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}