/* Custom styles that can't be achieved with Tailwind alone */


.article-grid:has(.article-card:only-child) {
    grid-template-columns: minmax(300px, 300px);
    display: grid;
    justify-content: center;
}

/* Common Title Styles */
.article-title h1 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Poppins', sans-serif;
    color: #212529;
}

.latest-articles-title h1{
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #1F3A93;
}


.article-title p {
    font-size: 1.1rem;
    color: #343a40;
    margin-top: 5px;
    font-family: 'Montserrat', sans-serif;
}

/* Card Styles */
.article-card, .latest-article-card {
    background: #0D133F;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.article-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-content h3, .latest-article-title{
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-excerpt {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    margin-top: auto;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-style: italic;
}

/* Card Content - adjusted for dark background */
.article-title {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    padding: 1rem;
    margin: 0;
}

.article-excerpt {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    padding: 0 1rem;
}

.article-date,
.article-author {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    padding: 0.5rem 1rem 1rem;
}

/* Thumbnail */
.article-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Search Section */
.articles-search {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.articles-search input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
}

.articles-search button {
    background: #4f46e5;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.articles-search button:hover {
    background: #4338ca;
}
