/* General Link Styles */
.article-link {
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit color from parent elements */
}

/* Articles Title Style */
.articles-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    margin-top: 50px;
}

/* Articles Categories Styles */
.articles-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.articles-category-button {
    padding: 10px 20px;
    border: 2px solid #7cb138;
    border-radius: 20px;
    background-color: #fff;
    color: #7cb138;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.articles-category-button:hover,
.articles-category-button--active {
    background-color: #7cb138;
    color: #fff;
}

/* Articles Section Styles */
.articles-section {
    padding: 100px 0;
    text-align: center;
    z-index: 9999;
}

.articles-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1160px;
    margin: 0 auto;
}

.article-container {
    width: 334px;
    height: 290px;
    background: #f8f8f8;
    border-radius: 10px;
    border: 2px solid #7cb138;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 10px;
    position: relative; /* Ensure positioning for internal elements */
    cursor: pointer;
}

.article-container:hover {
    transform: translateY(-5px);
    border-color: #66a72d; /* Slightly darker green for hover effect */
}

.article-image-container {
    width: 100%;
    height: 160px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.article-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

[dir="rtl"] .article-content {
    display: flex;
    flex-direction: column;
}

.article-category {
    font-size: 0.9em;
    color: #7cb138;
    margin-bottom: 5px;
    display: inline-block;
    border-radius: 10px;
    padding: 3px 8px;
    background-color: #e8f5e9;
}
[dir="rtl"] .article-category {
    display: inline-block;
    text-align: right;
    margin-right: 0;
    margin-left: auto;
    padding: 3px 8px;
    background-color: #e8f5e9;
}

.article-title {
    font-size: 1.2em;
    margin: 5px 0;
    color: #333;
    font-weight: bold;
    padding: 3px 8px;
}
[dir="rtl"] .article-title {
    text-align: right;
}

.article-description {
    font-size: 0.9em;
    color: #555;
    padding: 3px 8px;
}

/* No Articles Placeholder Styles */
.no-articles-container {
    display: none; /* It should initially be hidden and shown dynamically */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 50px;
}

.no-articles-image {
    width: 200px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 20px;
}

.no-articles-text {
    font-size: 1.2em;
    color: #555;
    text-align: center;
}
