/* Reusable Article Card Styles */
.article-card-reusable {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
}
.article-card-reusable:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.article-card-image-wrapper {
    position: relative; /* This is the anchor for the absolute positioned tag */
}

.category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(29, 53, 87, 0.85); /* Primary color with transparency */
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 999px; /* Pill shape */
    font-size: 0.8rem;
    font-weight: 700;
    -webkit-backdrop-filter: blur(2px); /* Safari support */
    backdrop-filter: blur(2px); /* Frosted glass effect */
}
.article-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block; /* Removes potential whitespace below the image */
}
.article-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

p.excerpt-content {
    flex-grow: 1; 
    margin-bottom: 1rem;
    color: var(--text-main-charcoal);
}

/* Ensure any paragraphs inside the excerpt are styled correctly */
.article-card-content .excerpt-content p {
    margin: 0;
}
.article-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}
.article-title a {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    color: var(--text-headings-blue);
    text-decoration: none;
}
.article-excerpt {
    flex-grow: 1;
    margin-bottom: 1rem;
}
.read-more-link {
    color: var(--primary-deep-blue);
    font-weight: 700;
    text-decoration: none;
    align-self: flex-start;
}
.read-more-link:hover {
    color: var(--accent-matte-gold);
}