.articles {
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
}

.articles .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}

.articles .box {
    box-shadow: 0 2px 15px rgb(0 0 0 / 10%);
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.articles .box:hover {
    transform: translateY(-10px);
    box-shadow: 0 2px 15px rgb(0 0 0 / 20%);
}

.articles .box img {
    width: 100%;
    max-width: 100%;
    height: 300px;
}

.articles .box .content {
    padding: 20px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Adjust number of lines you want to show */
    line-clamp: 3; /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    white-space: normal;
}

.articles .box .content h3 {
    margin: 0;
}

.articles .box .content p {
    margin: 10px 0 0;
    line-height: 1.5;
    color: #777;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Show 3 lines only */
    line-clamp: 3; /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}
.articles .box .info {
    padding: 20px;
    border-top: 1px solid #e6e6e7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.articles .box .info a {
    color: var(--color-primary);
    font-weight: bold;
}

.articles .box .info i {
    color: var(--color-primary);
}

.articles .box:hover .info i {
    animation: moving-arrow 0.6s linear infinite;
}
.blog-post {
    direction: rtl;
    text-align: right;
}

.post-title {
    font-family: "Oswald", sans-serif;
    font-size: 2rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
}
.blog-details .search-button {
    background-color: var(--color-primary);
    color: white;
    border: none; /* Optional: cleaner button */
    padding: 0.5rem 1rem; /* Optional: add spacing */
    cursor: pointer; /* Optional: pointer on hover */
}
.blog-details h5 {
    background-color: var(--color-primary);
    color: white;
    border: none; /* Optional: cleaner button */
    padding: 0.5rem 1rem; /* Optional: add spacing */
    cursor: pointer; /* Optional: pointer on hover */
}
