:root {
	--primary: #4f46e5;
	--primary-hover: #4338ca;
	--bg: #f8fafc;
	--card-bg: #ffffff;
	--text: #0f172a;
	--text-muted: #64748b;
	--border: #e2e8f0;
	--radius: 12px;
}
.module {
	padding-bottom: 40px;
}

.news-list {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}


.editor-container {
	background: var(--card-bg);
	padding: 32px;
	border-radius: var(--radius);
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
	width: 100%;
}

.editor-header {
	margin-bottom: 24px;
}

.editor-header h2 {
	margin: 0 0 8px 0;
	font-size: 24px;
	font-weight: 700;
}

.editor-header p {
	margin: 0;
	color: var(--text-muted);
	font-size: 14px;
}

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            font-weight: 600;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .form-control {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 15px;
            box-sizing: border-box;
            transition: all 0.2s ease;
            background: #fbfbfb;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            background: #fff;
            box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
        }

        textarea.form-control {
            resize: vertical;
            min-height: 120px;
        }

        /* Красивое поле загрузки изображения с предпросмотром */
        .image-upload-zone {
            border: 2px dashed var(--border);
            padding: 20px;
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: border-color 0.2s;
            position: relative;
        }

        .image-upload-zone:hover {
            border-color: var(--primary);
        }

        .image-upload-zone input[type="file"] {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            opacity: 0;
            cursor: pointer;
        }

        .preview-img {
            max-width: 100%;
            max-height: 180px;
            border-radius: 6px;
            display: none;
            margin-top: 10px;
        }

.btn-submit {
	background-color: var(--primary);
	color: white;
	border: none;
	padding: 14px 24px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	transition: background 0.2s;
}

        .btn-submit:hover {
            background-color: var(--primary-hover);
        }

        .message {
            margin-top: 15px;
            padding: 12px;
            border-radius: 6px;
            display: none;
            font-size: 14px;
            text-align: center;
        }
        .message.success { background: #bbf7d0; color: #166534; }
        .message.error { background: #fecaca; color: #991b1b; }

.news-card {
	display: flex;
	flex-direction: column;
	max-width: 350px;
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.news-card__image-wrap {
	width: 100%;
	height: 200px;
	overflow: hidden;
}

.news-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.news-card:hover .news-card__image {
	transform: scale(1.05);
}

.news-card__content {
	display: flex;
	flex-direction: column;
	padding: 16px;
	flex-grow: 1;
}

.news-card__date {
	font-size: 0.82rem;
	color: #888888;
	margin-bottom: 8px;
}

.news-card__title {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0 0 10px 0;
	line-height: 1.35;
}

.news-card__title a {
	color: #222222;
	text-decoration: none;
}

.news-card__title a:hover {
	color: #0066cc;
}

.news-card__text {
	font-size: 0.95rem;
	color: #555555;
	line-height: 1.5;
	margin: 0 0 16px 0;
	flex-grow: 1;
}

.news-card__btn {
	align-self: flex-start;
	display: inline-block;
	margin-right: 2px;
	margin-left: 2px;
	padding: 8px 14px;
	font-size: 0.9rem;
	color: #ffffff;
	background-color: #0066cc;
	border-radius: 4px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.news-card__btn:hover {
	background-color: #004999;
}

.news-image-wrapper {
	width: 40%;
	max-height: 500px;
	float: left;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	margin-right: 20px;
	margin-bottom: 20px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	margin-bottom: 2rem;
}

/* Сама картинка */
.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Картинка заполняет область без искажений */
  object-position: center; /* Центрирование */
  transition: transform 0.5s ease; /* Плавный эффект при наведении */
}

/* Эффект легкого увеличения при наведении */
.news-image-wrapper:hover .news-image {
  transform: scale(1.03);
}

@media (max-width: 480px) {
	.news-image-wrapper {
		width: 100%;
		aspect-ratio: 16 / 9;
		overflow: hidden;
		margin-right: 0px;
		margin-bottom: 10px;
		border-radius: 12px;
	}


}


