/* docs/css/custom.css */

/* The grid container */
.card-grid {
    display: flex; /* Use flexbox for alignment */
    flex-wrap: wrap; /* Allow cards to wrap to the next line */
    gap: 1rem; /* Space between cards */
    padding: 1rem;
    background-color: #f0f0f0; /* Light grey background */
}

/* Individual card styling */
.custom-card {
    background-color: #ffffff; /* White background */
    border: 1px solid #e9ecef; /* Subtle border */
    border-radius: 8px; /* Rounded corners */
    padding: 1.5rem;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Soft shadow */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    flex: 1 1 240px; /* Allow cards to grow and shrink, with a base width */
    display: flex;
    flex-direction: column;
}

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

/* Icon container */
.custom-card .icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #eef2ff; /* Light purple background */
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* SVG icon styling */
.custom-card .icon-container svg {
    width: 24px;
    height: 24px;
    stroke: #6366f1; /* Purple icon color */
}

/* Card title */
.custom-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Card text */
.custom-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.6;
    flex-grow: 1; /* Allow the paragraph to grow and fill space */
}