/* Article Cards */
.article-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

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

.article-card-content {
    display: flex;
    flex-direction: row;
}

.article-image-container {
    width: 40%;
    position: relative;
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-text-content {
    width: 60%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.article-meta {
    margin-bottom: 1rem;
}

.article-date {
    color: var(--aa-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.article-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--aa-navy);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-description {
    color: var(--aa-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-footer {
    margin-top: auto;
}

/* Categories Page Styles */
.categories-container {
    margin: 4rem 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--aa-navy);
    margin-bottom: 2rem;
    text-align: center;
}

.categories-container .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-more {
    margin-top: 1.5rem;
    text-align: right;
}

/* Updated responsive breakpoint */
@media screen and (max-width: 1023px) {  /* Changed from 768px to 1023px */
    .article-card-content {
        flex-direction: column;
    }

    .article-image-container,
    .article-text-content {
        width: 100%;
    }

    .article-image-container {
        height: 300px;  /* Increased height for better image display */
    }

    .article-text-content {
        padding: 1.5rem;
    }

    /* Update the Bulma columns to be full width */
    .column.is-half {
        width: 100% !important;
    }
    
    .categories-container .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 2rem;
    }
}