body {
            font-family: Arial, sans-serif;
            background-color: #f0f2f5;
            color: #333;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
            box-sizing: border-box;
            margin: 0;
        }

        .slide-container-nazva {
            width: 100%;
            max-width: 1200px;
            background-color: #fff;
            padding: 5px;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .news-archive-container {
            width: 100%;
            height: 100%;
            background-color: #b3cfdbad;
            border-radius: 8px;
            padding: 20px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        h1 {
            text-align: center;
            margin-top: 0;
            color: #1a1a1a;
        }

        .news-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        .news-item {
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .news-item:hover {
            transform: translateY(-4px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
        }

        /* Стиль для посилання, що обгортає вміст картки */
        .news-link {
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            height: 100%;
            padding: 15px;
            box-sizing: border-box;
        }

        .news-item img {
            width: 100%;
            height: auto;
            border-radius: 5px;
            margin-bottom: 12px;
            aspect-ratio: 16 / 9; /* Забезпечує однакову висоту для всіх фото */
            object-fit: cover;
            display: block;
        }

        .news-item p {
            font-size: 1.05em;
            color: #444;
            line-height: 1.5;
            margin: 0;
            text-align: left;
        }
        
        .pagination-container {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 10px;
        }

        .pagination-button {
            padding: 12px 25px;
            font-size: 0.95em;
            font-weight: bold;
            cursor: pointer;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            background-color: #ffffff;
            color: #007bff;
            transition: all 0.3s;
        }
        
        .pagination-button:hover:not(:disabled) {
            background-color: #007bff;
            color: #fff;
            border-color: #007bff;
        }

        .pagination-button:disabled {
            cursor: not-allowed;
            color: #6c757d;
            background-color: #e9ecef;
        }

        @media (max-width: 768px) {
            .news-grid {
                grid-template-columns: 1fr;
            }
        }