/* styles.css */
body {
    font-family: 'Open Sans', sans-serif;
    /* font-family: 'Libre Baskerville', serif; */
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    /* font-family: 'Libre Baskerville', serif; */
}


/* News article card styles */
.news-article {
    margin-bottom: 20px;
    margin-right: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.headline {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.details {
    font-size: 16px;
    color: #555;
}

/* Smaller and greyer details */
.details .smaller-grey {
    font-size: 14px;
    color: #888; 
}

/* Form styles */
form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Card image styles */
.card img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    /* margin: 0 auto; */
}

/* .card-image {
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto !important;
} */

/* Additional styles for card appearance */
.card {
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: scale(1.05);
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-text {
    font-size: 1rem;
    color: #555;
}

.smaller-grey {
    font-size: 0.9rem;
    color: #888;
}

/* Center the card title and description */
.card-body {
    display: flex;
    flex-direction: column;
}

/* Make the "Read more" link more prominent */
.card-text a {
    color: #007bff;
    font-weight: bold;
}

.card-text a:hover {
    text-decoration: underline;
}

/* Add a subtle background color for odd/even cards */
.card:nth-child(even) {
    background-color: #f9f9f9;
}

/* Remove the default list-style for the "No news articles available" message */
#news-container p {
    list-style: none;
}

