/* Base Card Styles */
.card {
    max-width: none !important;
}
.news-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    padding: 2rem; /* Added padding to the main container */
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Image styles */
.news-card-image-container {
    float: left;
    width: 45%;
    margin: 0 2rem 1rem 0;
}
.news-card-image {
    width: 100%;
    margin: 0 !important;
}
.news-card-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Content styles */
.news-card-content {
    overflow: hidden; /* Creates new block formatting context */
}
.news-card-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

/* Hide overlay elements */
.overlay-text,
.wp-element-caption {
    display: none !important;
}

/* Button and Footer Styles */
.news-card-footer {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    clear: both; /* Ensures footer appears below the floated image */
}
.news-card-footer p { 
    text-align: right;
    padding-right: 1rem;
}
.read-more-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #ac1219;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}
.read-more-button:hover {
    background: #ac1219;
    text-decoration: none;
    color: #ffffff;
}
.news-card-notice {
    background: #ac1219;
    color: #fff;
    padding: 0.5rem;
    margin: 1rem 0;
    border-left: 3px solid #000;
    font-style: italic;
    font-weight: 700;
    font-size: 22px;
}
.news-card-attribution {
    background: #ac1219;
    font-style: italic;
    color: #fff;
    margin: 1rem 0;
    padding: 0.5rem;
    border-left: 15px solid #333;
    font-size: 1rem;
    border-top: 1px solid #eee;
}

/* Tags styles */
.news-tags {
    margin-top: 0rem;
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.news-tag {
    display: inline-block;
    background: #ac1219;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.news-tag:hover {
    background: #9e1e9b;
    color: #fff;
    text-decoration: none;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .news-card {
        padding: 1rem;
    }
    .news-card-image-container {
        float: none;
        width: 100%;
        margin: 0 0 1rem 0;
    }
    .news-card-image img {
        max-height: 250px;
        object-fit: cover;
    }
}