/* Container takes full width with some horizontal padding */
.articles-container {
    width: 100%;
    margin: 0;
    padding: 20px;
    margin-top:1rem;
}

/* Card layout: two columns for text and image */
.article-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Left side: text container, centered vertically and with text centered */
.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.article-content h2 {
    font-size: 1.75rem;
    margin-bottom: 10px;
    color: #333;
}

.article-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

/* Read More button styling */
.read-more {
    background: #337ab7;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #286090;
}

/* Right side: image container with fixed width and padding */
.article-image {
    flex: 0 0 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Ensure the image fills its container nicely */
.article-image picture,
.article-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

/* Optional: Responsive stacking on narrow screens */
@media (max-width: 768px) {
    .article-card {
        flex-direction: column;
    }

    .article-image {
        flex: none;
        padding: 15px;
    }
}









/* Container takes full width with some horizontal padding */
.categories-container {
    width: 100%;
    margin: 0;
    padding: 20px;
    margin-top: 1rem;
}

/* Card layout: two columns for text and image */
.category-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Left side: text container, centered vertically and with text centered */
.category-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.category-content h2 {
    font-size: 1.75rem;
    margin-bottom: 10px;
    color: #333;
}

.category-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

/* Read More button styling */
.read-more {
    background: #337ab7;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #286090;
}

/* Right side: image container with fixed width and padding */
.category-image {
    flex: 0 0 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Ensure the image fills its container nicely */
.category-image picture,
.category-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

/* Optional: Responsive stacking on narrow screens */
@media (max-width: 768px) {
    .category-card {
        flex-direction: column;
    }

    .category-image {
        flex: none;
        padding: 15px;
    }
}