body {
    font-family: 'Arial', sans-serif;
    background-color: #F1F1F1;
    color: #1F1E1D;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.articles {
    max-width: 1200px; /* Adjust based on your design needs */
    margin: 20px auto; /* This centers the articles section */
    min-height: 70%;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Card container styles for campaign articles */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Creates as many columns as can fit, with a minimum width of 250px for each card */
    gap: 20px;
    justify-content: center; /* Centers the grid items (cards) if they don't fill the entire width */
}

/* Card styles */
.card {
    background-color: #FFF;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ensures the content fits within the rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for transform and box-shadow */
}

.card:hover {
    transform: scale(1.03); /* Slightly enlarges the card */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Enhances the shadow for depth */
}

.card-image {
    width: 100%; /* Ensures the image takes the full width of the card */
    height: 200px; /* Fixed height for all images */
    object-fit: cover; /* Ensures the image covers the area, and is clipped to fit */
}

.card-content {
    padding: 15px;
    text-align: left;
}

.card-title {
    font-family: 'TT Hoves Pro Trial', sans-serif;
    font-size: 1em;
    margin: 0;
    color: #333;
}

.card-category-date {
    font-size: 0.8em;
    color: #777;
    margin-bottom: 15px;
}

.card-link {
    display: block;
    text-decoration: none; /* Removes underline from all anchor tags */
    color: inherit; /* Inherits the text color from the parent element */
}

.no-results-message {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
    color: #666;
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's above everything else */
}

.loader {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Specific media query for larger screens */
@media (min-width: 1200px) {
    .card-container {
        grid-template-columns: repeat(4, 1fr); /* Ensures 4 cards per row on larger screens */
    }
}

