        .news {
            background: #f9f9f9;
            color: black;
            padding: 20px;
            margin: 10px 0;
            border-radius: 10px;
            box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
            display: flex;
            align-items: center;
           
        }
       .news:hover {
            transform: ;
            box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
        }
        .news img {
            width: 100px;
            height: 100px;
            object-fit: cover;
            border-radius: 10px;
            margin-right: 15px;
            box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
            border-radius: 10px;
            margin-bottom: 10px;
            margin-top: 5px;
        }
        .news h3 {
            margin: 0;
            color: #333;
        }
        .news p {
            color: #555;
            transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
            max-height: 50px;
            overflow: hidden;
            opacity: 0.8;
        }
        .pagination {
            margin-top: 20px;
        }
        .pagination a {
            padding: 10px 15px;
            margin: 5px;
            text-decoration: none;
            background: #2575fc;
            color: white;
            border-radius: 5px;
            display: inline-block;
            transition: background 0.3s;
        }
        .pagination a:hover {
            background: #6a11cb;
        }
        .news .full-text {
            display: none;
        }
        .news button {
            margin-top: 10px;
            padding: 8px 12px;
            border: none; 
            background: #007bff;
            color: white;
            cursor: pointer;
            border-radius: 5px;
            transition: background 0.3s;
        }
        .news button:hover {
            background: #0056b3;
        }
        .news a {
              text-decoration: none;
              color: black;
              display: block;
}

        .news a:hover h3 {
              color: blue;
              text-decoration: underline;
       }

        .news-detail {
            width: 100%;
            max-width: 98%;
            border: 1px solid #ddd;
            border-radius: 10px;
            background: white;
        }
        .news-detail img {
              width: 100%;
              height: 700px;
              border-radius: 10px;
        }
       .read-more {
              display: inline-block;
              margin-top: 5px;
              padding: 8px 12px;
              background: #C8C8C8;
              color: white;
              text-decoration: none;
              border-radius: 5px;
        }
       .read-more:hover {
              background: #ddd;
        }
    
        .latest-news {
    flex: 1 1 calc(33.33% - 24px); /* 3 блока в ряд с учётом отступов */
    max-width: calc(33.33% - 24px); /* Чтобы не выходило за границы */
    border: 1px solid #ccc;
    padding: ;
    border-radius: 10px;
    background: ;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Чтобы padding не увеличивал размер блока */
}
.latest-news img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: transform 0.3s ease-in-out; /* Плавная анимация */
}

.latest-news img:hover {
    transform: scale(1.1); /* Увеличение картинки при наведении */
}  
.latest-news img:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    filter: brightness(0.9); /* Немного затемнить */
}


.latest-news-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap; /* Позволяет переносить блоки на новую строку */
    justify-content: space-between; /* Равномерное распределение */
    gap: 20px; /* Отступ между блоками */
    padding: 10px; /* Отступ от краёв контейнера */
    margin-left: 15px;
}



  .latest-elon-container {
    width: 100%;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    box-sizing: border-box;
}

/* Гибкий блок */
.latest-elon {
    width: calc(20% - 15px); /* 5 блок дар як сатр */
    min-width: 150px;
    box-sizing: border-box;
    background: white;
    padding:;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Медиа queries барои экранҳои хурд */
@media (max-width: 1400px) {
    .latest-elon {
        width: calc(25% - 15px); /* 4 блок */
    }
}
@media (max-width: 992px) {
    .latest-elon {
        width: calc(33.33% - 15px); /* 3 блок */
    }
}
@media (max-width: 768px) {
    .latest-elon {
        width: calc(50% - 15px); /* 2 блок */
    }
}
@media (max-width: 480px) {
    .latest-elon {
        width: 100%; /* 1 блок */
    }
}
.latest-elon img {
    max-width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.latest-elon img:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    filter: brightness(0.9);
}

.latest-elon .read-more {
    display: inline-block;
    padding: 8px 12px;
    margin-bottom: 10px;
    background: #C8C8C8;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.latest-elon .read-more:hover {
    background: #aaa;
}

.latest-makola-container {
    width: 100%;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    box-sizing: border-box;
}

.latest-makola {
    width: calc(33.33% - 20px); /* 3 блок */
    min-width: 250px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-makola img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: transform 0.3s ease-in-out;
}

.latest-makola img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
@media (max-width: 1400px) {
    .latest-makola {
        width: calc(50% - 20px); /* 2 блок */
    }
}

@media (max-width: 768px) {
    .latest-makola {
        width: 100%; /* 1 блок */
    }
}
