/* Client-Specific colors */
:root {
    --primary-color: #195080;
    --primary-light: #002660;
    --border-radius: 12px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}
h1 {
    color: #195080;
}
.blog-date {
    text-align: right;
    font-size: 11px;
    padding: 12px 0;
    display: block;
}
/* Card Layouts */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    padding-bottom: 80px; /* Space for the absolute-positioned action */
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-top: 5px solid var(--primary-color);
    position: relative; /* CRITICAL: makes absolute positioning relative to card */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card-icon {
    background-color: var(--primary-light);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.card .card-action {
    background-color: inherit;
    border-top: 1px solid rgba(160, 160, 160, 0.2);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    text-align: right;
    font-weight: 700;
}

.card .card-action a:not(.btn):not(.btn-small):not(.btn-large):not(.btn-large):not(.btn-floating) {
    margin-right: 24px;
    transition: color 0.3s ease;
    text-decoration: none;
    color: var(--primary-color);
}

.card .card-action a:not(.btn):not(.btn-small):not(.btn-large):not(.btn-large):not(.btn-floating):hover {
    text-decoration: underline;
}

.image-frame {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    border: 8px solid white;
    background-color: white;
    align-self: start;
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .card-container {
        grid-template-columns: 1fr;
    }
    .image-frame {
        max-width: 100%;
        justify-self: center;
    }
}
