﻿@media screen and (max-width: 768px) {
    .akharinakhbarborder2 {
        width: 75vw; 
        max-width: none;
        margin: auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
        /*box-sizing: border-box;*/
        gap: 15px; /* ایجاد فاصله بین عناصر داخلی */
    }
}
@media screen and (max-width: 768px) {
    .mediacontainer {
        width: 90%;
        max-width: 600px;
        margin: auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px; /* فاصله بین آیتم‌ها */
    }




}
/*////////////////*/
.latest-news-wrapper {
    width: 100%;
    text-align: center;
    padding: 20px;
}

.latest-news-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.latest-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-news-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.news-image-box {
    width: 100%;
    max-width: 180px;
    text-align: center;
}

.news-thumbnail {
    width: 100%;
    max-width: 180px;
    border-radius: 15px;
    display: block;
    margin: auto;
    height: auto;
}

.latest-news-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

.latest-news-description {
    text-align: justify;
    direction: rtl;
    font-size: 16px;
}

.read-more-link {
    color: #808080;
    text-decoration: none;
}

/* تنظیمات برای موبایل */
@media screen and (max-width: 768px) {
    .news-thumbnail {
        max-width: 280px; /* در موبایل تصاویر بزرگ‌تر شوند */
    }

    .latest-news-title {
        font-size: 20px; /* اندازه متن تیتر */
    }

    .latest-news-description {
        font-size: 18px; /* بهبود خوانایی */
    }
}

