/* == ЗАГАЛЬНІ СТИЛІ ==*/

	* {
	 /*	transition: all 0.1s ease-in-out; Застосовуємо плавну анімацію для всіх елементів */
	}

	@font-face {
		font-family: 'Minecraft';
		src: url('https://qqq-craft.top/assets/Minecraft_1.1.ttf') format('truetype');
	}
	
	body {
		font-family: 'Minecraft', sans-serif;
		background-color: #f0ece2;
		color: #333;
		margin: 0;
		padding: 0;
		background-image: url('https://qqq-craft.top/assets/old-wall.png');
		//background-attachment: fixed;
	}
	
	header {
		background: url('https://qqq-craft.top/assets/background.png') no-repeat center/cover;
		color: #fff;
		text-align: center;
		position: relative;
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	}
	
	footer {
		background: #5a4d41;
		color: #fff;
		text-align: center;
		padding: 20px 0;
		position: relative;
		bottom: 0;
		width: 100%;
		height: 300px;
		border-top: 5px solid #7b674f;
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	}
	
	section {
		margin: 30px auto;
		padding: 20px;
		max-width: 1000px;
		min-height: 700px;
		background-color: #fdf7e1;
		border: 5px solid #9e644c;
		border-radius: 10px;
		box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
		position: relative;
	}	
	
	@media (max-width: 1120px) {
		section {
			max-width: 1120px;
			margin: 20px auto;
			border-radius: 0;
			border-left: 0;
			border-right: 0;
		}
		section::before,
		section::after {
			display: none;
		}
	}
	
	img, video {
		border-radius: 5px;
	}
	
	span {
		text-wrap: nowrap;
	}
	
	a {
		text-decoration: none;
		color: #333;
		border-bottom: 2px solid #333;
	}

	a:hover {
		color: #7b674f;
		border-bottom: 2px solid #7b674f;
	}
	
	iframe {
		width: 100%;
		border: none;
		outline: none;
		box-shadow: none;
		border-radius: 5px;
	}
	
	iframe:focus {
		outline: none;
		border: none;
	}

	.box-shadow {
		box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
	}

	code {
		display: inline-block;
		background-color: #7a5c54;
		color: #cdbeac;
		font-family: 'Minecraft', sans-serif;
		padding: 0.25em 0.5em;
		border: 2px solid #a6857c;
		border-radius: 6px;
		box-shadow: 2px 2px 0 #8b484a;
		font-size: 0.95em;
		line-height: 1.4;
		white-space: nowrap;
	}

	@media (max-width: 480px) {
		h1, h2 {
			font-size: 2em;
		}
	}	

/* == НАВІГАЦІЙНА ПАНЕЛЬ ==*/

	/* Базові стилі для nav */
	nav {
	  background-color: #fdf7e1;
	  border-top: 5px solid #7b674f;
      border-bottom: 5px solid #7b674f;
	  width: 100%;
	  z-index: 1000;
	}
	
	nav ul {
	  list-style: none;
	  padding: 0;
	  margin: 0;
	  display: flex;
	  align-items: center;
	  justify-content: space-around;
	  white-space: nowrap;
	}
	
	nav ul li {
	  margin: 0;
	  text-align: center;
	  flex-shrink: 0;
	  position: relative;
	}
	
	nav a {
	  color: #333;
	  text-decoration: none;
	  font-size: 1.2em;
	  display: flex;
	  flex-direction: column;
	  align-items: center;
	  padding: 15px 0px;
	  border: none;
	}
	
	nav span.emoji {
	  font-size: 1.2em;
	}
	
	nav a.active, nav a:hover {
	  color: #7b674f;
	  font-weight: bold;
	  border: none;
	}

	/* Десктопна версія - sticky до верху */
	@media (min-width: 769px) {
		.emoji {
			display: none;
		}
		
		nav {
			position: sticky !important;
			top: 0 !important;
			overflow-x: visible;
			position: -webkit-sticky !important; /* Для Safari */
		}

		nav ul {
			justify-content: center;
		}
		
		nav ul li {
			margin: 0 20px;
		}
	}

	/* Мобільна версія - floating внизу */
	@media (max-width: 768px) {
		nav {
			position: fixed !important;
			width: 80%;
			left: 10%;
			bottom: 20px;
			top: auto !important;
			border: 5px solid #7b674f;
			border-radius: 10px;
			font-size: 0.7em;
			transition: transform 0.3s ease-in-out;
			filter: drop-shadow(1px 1px 10px rgba(0, 0, 0, 0.3));
		}
		
		nav ul li {
			display: block;
			margin: 10px 0;
		}
		
		nav.hidden {
			transform: translateY(150%);
		}
		
		nav ul {
			overflow-x: auto;
		}
		
		nav a {
			padding: 5px 10px;
		}
		
		nav span.emoji {
			font-size: 2em;
		}
		
		nav::before,
		nav::after {
			content: "";
			position: absolute;
			width: 60px;
			height: 60px;
			background-size: contain;
			background-repeat: no-repeat;
			filter: drop-shadow(1px 1px 10px rgba(0, 0, 0, 0.3));
			pointer-events: none;
		}
		
		nav::before {
			top: -18px;
			left: -24px;
			background-image: url('/assets/horns-left.png');
		}
		
		nav::after {
			top: -18px;
			right: -24px;
			background-image: url('/assets/horns-right.png');
		}
	}

	@media (max-width: 480px) {
		.emoji {
			display: block;
		}
		nav a {
			font-size: 1.2em;
		}
	}

	.input {
	  font-size: 16px;
	  padding: 8px 15px;
	  border: 2px solid #a57c55;
	  border-radius: 10px;
	  width: 100%;
	  transition: all 0.3s ease;
	  background: #f8f0e3;
	  color: #493728; 
	  box-sizing: border-box;
	}
	
	input, select, textarea {
		font-family:inherit;
	}

	.input:focus {
	  outline: none;
	  border-color: #ffd700;
	  box-shadow: 0 0 10px #ffd700;
	}

	#suggestions {
	  position: absolute;
	  top: calc(100%);
	  left: 0;
	  width: 200px; 
	  background: #f8f0e3; 
	  border: 2px solid #a57c55;
	  border-top: none; 
	  border-radius: 0 0 10px 10px;
	  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	  max-height: 150px; 
	  overflow-y: auto; 
	  z-index: 1000;
	  display: none; 
	}

	#suggestions div {
	  padding: 8px 15px;
	  cursor: pointer;
	  color: #493728;
	}

	#suggestions div:hover {
	  background: rgba(255, 215, 0, 0.2);
	  text-shadow: 0 0 5px #ffd700;
	}

/* == АНІМАЦІЯ ЗАВАНТАЖЕННЯ ==*/

	.loading-indicator {
		text-align: center;
		padding: 2rem;
		color: #666;
	}

	.spinner {
		border: 3px solid #7b674f;
		border-top: 3px solid #a57c55;
		border-radius: 50%;
		width: 30px;
		height: 30px;
		animation: spin 1s linear infinite;
		margin: 0 auto 1rem;
	}

	@keyframes spin {
		0% { transform: rotate(0deg); }
		100% { transform: rotate(360deg); }
	}

	.end-message {
		text-align: center;
		padding: 2rem;
		color: #999;
		font-style: italic;
	}

/* == ЗАГОЛОВКИ ==*/

	h2 {
		text-transform: uppercase;
		letter-spacing: 5px;
	}

	h1 {
		text-align: center;
		font-size: 2.5em;
		margin-bottom: 20px;
		color: #5a4d41;
	}
	
	/* Адаптивні стилі для мобільних пристроїв */
	@media (max-width: 600px) {
	  .tab-header {
		font-size: 20px; /* Зменшення шрифта на маленьких екранах */
		flex: 1 1 100%; /* Заголовки займають всю ширину на малих екранах */
	  }
	}

/* == ТАБЛИЦІ == */

	.table-wrapper {
		overflow-x: auto;
		border-radius: 5px;
	    align-items: stretch;
		background-color: #f3e6ca;
	}
	table {
		width: 100%;
		border-collapse: collapse;
		font-size: 1.2em;
	}
	table th, table td {
		padding: 10px;
		text-align: center;
		border: 0px solid #7b674f;
	}
	table th {
		background: #f3e6ca;
		color: #5a4d41;
		text-transform: uppercase;
	}
	table td {
		background-color: #f3e6ca;
		justify-content: center;
	}
	table tr:nth-child(even) td,
	table tr:nth-child(even) th {
		background-color: #e1d5b5;
	}

	table a:hover {
		border-bottom: 2px solid #333;
	}

/* == ШАПКА САЙТУ == */

	.header-background {
		background-color: rgba(90, 77, 65, 0.6);
	}
	
	.header-content {
		margin: 0px auto;
		max-width: 1000px;
		min-height: 200px;
		padding: 30px;
		display: flex;
		justify-content: space-between;
		align-items: center;
		z-index: 1;
		position: relative;
	}
	
	.logo {
		border: 0px;
	}
	.logo img {
		width: 180px;
		-webkit-filter: drop-shadow(5px 5px 15px #222);
		filter: drop-shadow(5px 5px 15px #222);
	}
	
	@media (max-width: 768px) {
		.header-content {
			flex-direction: column;
			justify-content: center;
			align-items: center;
			text-align: center;
		}
		h1 {
			font-size: 2.5em;
			letter-spacing: 2px;
		}
		table {
			font-size: 0.9em;
		}
	}

/* == КАРТОЧКИ ==*/

	.box-container {
	  display: grid;
	  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	  gap: 20px;
	  justify-content: space-around;
	  align-items: stretch;
	  margin-top: 10px;
	  padding: 0; 
	}

	.box {
	  background: linear-gradient(135deg, #fdfbdf, #f4e4ba);
	  border: 5px solid #9e644c;
	  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
	  border-radius: 12px;
	  padding: 10px;
	  max-width: 100%;
	  text-align: center;
	  position: relative;
	  color: #4a3b2c;
	  transition: transform 0.3s ease, box-shadow 0.3s ease;
	}
	
	.box img {
		max-width: 100%;
		height: auto;
		border-radius: 8px;
		margin: 10px;
		-webkit-filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.3));
		filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.3));
	}

	.box h3 {
		font-size: 1.6em;
		margin: 10px 0;
		color: #8b5e34;
	}

	.box p {
		font-size: 1.2em;
		margin: 5px 0;
	}

	.box:hover {
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
	}

	@media (max-width: 768px) {
		.box-container {
			grid-template-columns: 1fr;
		}
	}

/* == РІЖКИ ==*/

	.horns::before,
	.horns::after {
		content: "";
		position: absolute;
		width: 80px;
		height: 80px;
		background-size: contain;
		background-repeat: no-repeat;
		-webkit-filter: drop-shadow(1px 1px 10px rgba(0, 0, 0, 0.3));
		filter: drop-shadow(1px 1px 10px rgba(0, 0, 0, 0.3));
		pointer-events: none;
	}
	
	.horns::before {
		top: -24px;
		left: -32.4px;
		background-image: url('/assets/horns-left.png');
	}
	
	.horns::after {
		top: -24px;
		right: -31.5px;
		background-image: url('/assets/horns-right.png');
	}

/* == КНОПКИ ==*/

	.button {
	  font-family: 'Minecraft', sans-serif;
	  display: inline-block;
	  background-color: #8B4513;
	  color: #f0e6d6;
	  font-size: 18px;
	  padding: 10px;
	  margin-top: 10px;
	  margin-bottom: 10px;
	  border: 3px solid #4B2D0B;
	  border-radius: 15px;
	  /*text-transform: uppercase;*/
	  box-shadow: 0 5px 0 #4B2D0B, 0 5px 15px rgba(0, 0, 0, 0.2);
	  transition: background-color 0.3s, transform 0.2s;
	  cursor: pointer;
	  text-shadow: 1px 1px 2px #000;
	  text-decoration: none;
	}
	
	.button:hover {
		border: 3px solid #4B2D0B;
	    color: #f0e6d6;
	}
	
	.box .button {
	  display: block;
	  margin: 20px;
	}
	
	.button:hover {
	  background-color: #a0522d;
	  transform: translateY(-3px);
	}
	
	.button:active {
	  background-color: #7B3F00;
	  box-shadow: 0 2px 0 #4B2D0B;
	}
	
	.button img {
	  margin: 0px;
	  padding: 0px;
	}
	
/* == АНІМАЦІЯ ЗАВАНТАЖЕННЯ == */
	
	.skeleton {
		border-radius: 5px;
		animation: loading 1.2s infinite;
	}
	@keyframes loading {
		0% {
			background-color: #988970;
		}
		50% {
			background-color: #604839;
		}
		100% {
			background-color: #988970;
		}
	}

/* == ВКЛАДКИ == */

	.tab-links {
		list-style-type: none;
		padding: 0;
		display: flex;
		justify-content: start;
		border-bottom: 5px solid #7b674f;
	}

	.tab-links li {
		margin-right: 20px;
		padding: 20px 0px;
	}

	.tab-links li a {
		text-decoration: none;
		color: #333;
		font-size: 1.2em;
	}

	.tab-links li.active a {
		font-weight: bold;
		color: #7b6758;
	}

	.tab {
		display: none;
	}

	.tab.active {
		display: block;
	}

	/* == Адаптивність для мобільних пристроїв == */

	/* Мобільні екрани (до 768px) */
	@media (max-width: 768px) {
		.tab-links {
			flex-direction: column;
			align-items: center;
		}

		.tab-links li {
			padding: 8px 15px;
			text-align: center;
		}

		.tab-links li a {
			font-size: 1em;
		}
	}

	/* Екрани менше 480px */
	@media (max-width: 480px) {
		.tab-links {
			flex-direction: column;
			align-items: stretch;
		}

		.tab-links li {
			width: 100%;
			padding: 10px; 
		}

		.tab-links li a {
			font-size: 0.9em;
		}
	}

/* == СПИСОК ДОСЯГНЕНЬ == */

	.achievement-list {
		list-style: none;
		padding: 0;
		margin: 0;
	}

	.achievement-list li {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 10px 15px;
		border-radius: 5px;
		margin-bottom: 10px;
		transition: background-color 0.3s;
	}

	.achievement-list li:nth-child(odd) {
		background: rgba(255, 255, 255, 0.5);
	}

	.achievement-list li:nth-child(even) {
		background: rgba(255, 247, 232, 0.8);
	}

	.achievement-list li:hover {
		background: #f5e2c7;
	}

	.achievement-details {
		flex: 1;
		margin-left: 15px;
	}

	.achievement-name {
		font-size: 1.1rem;
		font-weight: bold;
		color: #3a2a16;
	}

	.achievement-date,
	.achievement-players {
		font-size: 0.9rem;
		color: #6b4e2f;
		margin-top: 2px;
	}

	.achievement-percentage {
		font-size: 1.2rem;
		font-weight: bold;
		color: #80390f;
		text-align: right;
	}

	.achievement-icon {
		font-size: 1.5rem;
		color: #9c7845;
	}

	@keyframes softGlow {
	  0%, 100% {
		box-shadow: 0 0 10px rgba(255, 223, 0, 0.6), 0 0 20px rgba(255, 223, 0, 0.4), 0 0 30px rgba(255, 223, 0, 0.2);
	  }
	  50% {
		box-shadow: 0 0 15px rgba(255, 223, 0, 1), 0 0 25px rgba(255, 223, 0, 0.8), 0 0 40px rgba(255, 223, 0, 0.5);
	  }
	}

	.glowing {
	  animation: softGlow 1.5s ease-in-out infinite;
	}

	.challenge-glow {
		animation: challenge-glow-pulse 2s infinite;
		box-shadow: 0 0 15px rgba(186, 85, 211, 0.8); /* яскраво-фіолетове свічіння */
		border: 1px solid rgba(255, 255, 255, 0.3);
	}

	@keyframes challenge-glow-pulse {
		0%, 100% { box-shadow: 0 0 15px rgba(186, 85, 211, 0.7); }
		50% { box-shadow: 0 0 25px rgba(186, 85, 211, 1); }
	}

	/* Стилі для тексту останнього оновлення кешу */
	.cache-update-text {
		color: #888888;   /* Сірий колір */
		font-size: 14px;   /* Невеликий розмір шрифту */
		text-align: right; /* Вирівнювання тексту по правому краю */
	}
	

	/* Загальний стиль для новин */
	.new {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		border-radius: 10px;
		margin-bottom: 20px;
		padding: 20px;
		background: linear-gradient(135deg, #fdfbdf, #f4e4ba);
		box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
	}

	.news-content {
		flex: 2;
	}
	
	.news-image {
		width: 300px;         /* Ширина */
		height: 300px;        /* Висота */
		overflow: hidden;     /* Обрізає частину зображення, що виходить за межі */
		border-radius: 8px;   /* Закруглені кути */
		display: flex;        /* Використання флексу для вирівнювання зображення */
		justify-content: center;
		align-items: center;
		margin-right: 20px;   /* Відступ між зображенням і текстом */
	}

	.news-image img {
		height: 100%;         /* Зображення займає всю висоту контейнера */
		object-fit: cover;    /* Зберігає пропорції зображення, обрізає зайве */
		transition: transform 0.3s ease;
		cursor: pointer;
	}

	.news-image img:hover {
		transform: scale(1.05);
	}

	.news-title {
		font-size: 1.5em;
		color: #4b2e2a;
	}

	.news-description {
		font-size: 1em;
		color: #4b2e2a;
	}

	.news-footer {
		font-size: 0.9em;
		color: #6e4e4b;
		font-style: italic;
	}

	.news-timestamp {
		font-size: 0.8em;
		color: #6e4e4b;
		text-align: right;
		margin-top: 15px;
	}

	.news-link {
		display: inline-block;
		margin-top: 10px;
		padding: 10px 15px;
		color: #fff;
		background: #8b4513;
		border-radius: 5px;
		text-decoration: none;
		box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
		font-weight: bold;
	}

	.news-link:hover {
		background: #5e320f;
	}

	/* Секція реакцій */
	.reactions {
		margin-top: 10px;
		display: flex;
		gap: 10px;
	}

	.reaction-button {
		background: #f4e4ba;
		border: 1px solid #8b4513;
		border-radius: 5px;
		padding: 5px 10px;
		font-size: 0.9em;
		cursor: pointer;
		transition: background 0.3s;
	}

	.reaction-button:hover {
		background: #d3c2a4;
	}

	/* Секція коментарів */
	.comments {
		margin-top: 15px;
		font-size: 0.9em;
		color: #4b2e2a;
	}

	/* Оновлений стиль для коментаря */
	.comment {
		max-width: 100%;
		margin-bottom: 10px;
		border-bottom: 1px dashed #ccc;
		padding-bottom: 5px;
		word-wrap: break-word; /* Додаємо правило для переносу довгих слів */
		overflow-wrap: break-word; /* Альтернативне правило для забезпечення переносу */
		word-break: break-all; /* Примусове розбиття довгих слів */
	}

	/* Адаптивний дизайн для мобільних пристроїв */
	@media (max-width: 768px) {
		.new {
			flex-direction: column; /* Встановлює вертикальне розташування */
			align-items: center;
			padding: 15px;
		}

		.news-image {
			max-width: 100%; /* Робить зображення на всю ширину */
			max-height: 300px; /* Максимальна висота зображення */
			margin-right: 0; /* Забирає відступ праворуч */
			margin-bottom: 15px; /* Відступ знизу для відокремлення від тексту */
		}

		.news-image img {
			width: 100%; /* Розтягує зображення на всю ширину контейнера */
			height: auto; /* Зберігає пропорції */
		}

		.news-content {
			margin-left: 0; /* Вирівнює контент для центрування */
			width: 100%; /* Розтягує текст на всю ширину */
		}

		.news-timestamp {
			text-align: left; /* Для зручності вирівнює дату публікації */
		}
	}

	.container {
		display: flex;
		justify-content: space-between;
	}

	.news {
		flex: 1;
		overflow-y: auto;
		padding: 20px;
		box-sizing: border-box;
		background-image: url('/background');
		background-color: #9e644c;
		background-attachment: fixed; /* Фіксування фону */
		background-size: cover; /* Для покриття всього елемента */
	}

	.news h2 {
		margin-bottom: 20px;
		color: #d1ccc0;
	}

	#news-list {
		overflow-y: auto;
	}

	.login-panel {
		width: 300px;
		position: sticky;
		top: 0;
		padding: 20px;
		box-sizing: border-box;
		background: linear-gradient(135deg, #fdfbdf, #f4e4ba);
		border-left: 5px solid #9e644c;
		border-right: 5px solid #9e644c;
		height: 100vh;
		text-align: center;
	}

	.login-panel form {
		display: flex;
		flex-direction: column;
		align-items: center; 
	}

	.login-panel label {
		width: 100%;
		text-align: left;
	}

	.login-panel input {
		width: 100%;
		text-align: center;
		margin-bottom: 10px;
	}

	.input {
	  font-size: 16px;
	  padding: 8px 15px;
	  border: 2px solid #a57c55;
	  border-radius: 10px;
	  width: 200px;
	  transition: all 0.3s ease;
	  background: #f8f0e3;
	  color: #493728; 
	  box-sizing: border-box;
	}

	input, select, textarea {
		font-family:inherit;
	}

	.input:focus {
	  outline: none;
	  border-color: #ffd700;
	  box-shadow: 0 0 10px #ffd700;
	}

/* Загальний стиль для новин */
	.new {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		border-radius: 10px;
		margin-bottom: 20px;
		padding: 20px;
		background: linear-gradient(135deg, #fdfbdf, #f4e4ba);
		box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
	}

	.news-content {
		flex: 2;
	}

	.news-image {
		flex: 1;
		max-width: 300px; /* Забезпечено квадратність */
		max-height: 300px; /* Забезпечено квадратність */
		overflow: hidden;
		border-radius: 8px;
		display: flex;
		justify-content: center;
		align-items: center;
		margin-right: 20px; /* Відступ між зображенням і текстом */
	}

	.news-image img {
		object-fit: cover;
		width: 100%;
		object-fit: cover; /* Забезпечує обрізання зображення в межах квадрата */
		transition: transform 0.3s ease;
		cursor: pointer;
	}

	.news-image img:hover {
		transform: scale(1.05);
	}

	.news-title {
		font-size: 1.5em;
		color: #4b2e2a;
	}

	.news-description {
		font-size: 1em;
		color: #4b2e2a;
	}

	.news-footer {
		font-size: 0.9em;
		color: #6e4e4b;
		font-style: italic;
	}

	.news-timestamp {
		font-size: 0.8em;
		color: #6e4e4b;
		text-align: right;
		margin-top: 15px;
	}

	.news-link {
		display: inline-block;
		margin-top: 10px;
		padding: 10px 15px;
		color: #fff;
		background: #8b4513;
		border-radius: 5px;
		text-decoration: none;
		box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
		font-weight: bold;
	}

	.news-link:hover {
		background: #5e320f;
	}

	/* Секція реакцій */
	.reactions {
		margin-top: 10px;
		display: flex;
		gap: 10px;
	}

	.reaction-button {
		background: #f4e4ba;
		border: 1px solid #8b4513;
		border-radius: 5px;
		padding: 5px 10px;
		font-size: 0.9em;
		cursor: pointer;
		color: #9e644c;
		transition: background 0.3s;
	}

	.reaction-button:hover {
		background: #d3c2a4;
	}

/* Секція коментарів */
	.comments {
		margin-top: 15px;
		font-size: 0.9em;
		color: #4b2e2a;
	}

	.comment {
		margin-bottom: 10px;
		border-bottom: 1px dashed #ccc;
		padding-bottom: 5px;
	}

/* Адаптивний дизайн для мобільних пристроїв */
	@media (max-width: 768px) {
		.new {
			flex-direction: column;
			align-items: center;
			padding: 15px;
		}

		.news-image {
			max-width: 100%;
			max-height: 300px;
			margin-right: 0;
			margin-bottom: 15px;
		}

		.news-image img {
			width: 100%;
			height: auto;
		}

		.news-content {
			margin-left: 0;
			width: 100%;
		}

		.news-timestamp {
			text-align: left;
		}
	}


/* == СТИЛІ ДЛЯ СКРОЛУ == */

	::-webkit-scrollbar {
		width: 8px;
		height: 8px;
	}

	::-webkit-scrollbar-thumb {
		background-color: #a57c55;
		border-radius: 10px;
		border: 2px solid #f8f0e3;
	}

	::-webkit-scrollbar-track {
		background-color: transparent;
	}
	

/* == СТИЛІ ГАЛЕРЕЇ == */
	
	.gallery-card {
	    border-radius: 5px;
	/*	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); */
	}
	
	.gallery-masonry {
	  display: flex;
	  gap: 16px;
	}

	.gallery-column {
	  flex: 1;
	  display: flex;
	  flex-direction: column;
	  gap: 16px;
	}

	@media (max-width: 768px) {
	  .gallery-masonry {
		flex-direction: column;
	  }
	}

	.media-content {
	  width: 100%;
	  height: auto;
	  display: block;
	  object-fit: cover;
	  border-radius: 5px;
	}

	/* Інфо під контентом */
	.media-meta {
	  padding-top: 0.5rem;
	  padding-bottom: 0.5rem;
	  color: #ccc;
	  font-size: 0.8rem;
	}

	.author-avatar {
	  width: 30px;
	  height: 30px;
	  border-radius: 50%;
	  object-fit: cover;
	}

	.author-name {
	  color: #a4644c;
	  font-weight: bold;
	}

	.media-meta-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.author-info {
		display: flex;
		align-items: center;
		gap: 0.5rem;
	}

	.media-reactions {
	  display: flex;
	  flex-wrap: wrap;
	  gap: 0.3rem;
	  margin-top: 0.3rem;
	}


	.load-more {
		margin: 20px auto;
		display: block;
	}
	.load-more:hover {
		background: #3e4147;
	}

	.tools-bar {
		display: flex;
		justify-content: end;
	}
	
/* == СТИЛІ ТУТОРІАЛІВ == */

	.alert {
		background: linear-gradient(135deg, #fdfbdf, #f4e4ba);
		border: 3px solid #9e644c;
		border-radius: 10px;
		padding: 20px;
		margin: 20px 0;
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
		color: #4a3b2c;
		font-family: 'Minecraft', sans-serif;
	}

	.alert-warning {
		background: linear-gradient(135deg, #fff3cd, #ffeaa7);
		border-color: #d4a574;
		color: #856404;
		position: relative;
	}

	.alert-warning::before {
		content: "⚠️";
		font-size: 1.2em;
		margin-right: 10px;
	}

	.tutorials-stats {
		padding: 15px 20px;
		font-size: 1em;
		color: #5a4d41;
	}

	.tutorial-item {
		background: linear-gradient(135deg, #fdfbdf, #f4e4ba);
		border: 5px solid #9e644c;
		border-radius: 12px;
		padding: 20px;
		margin-bottom: 20px;
		transition: all 0.3s ease;
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
		position: relative;
		color: #4a3b2c;
	}

	.tutorial-item:hover {
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
	}

	.tutorial-title {
		margin: 0 0 15px 0;
		font-size: 1.6em;
		color: #8b5e34;
		text-transform: uppercase;
		letter-spacing: 2px;
		font-family: 'Minecraft', sans-serif;
	}

	.tutorial-title a {
		text-decoration: none;
		color: #8b5e34;
		border-bottom: 2px solid transparent;
		transition: all 0.3s ease;
	}

	.tutorial-title a:hover {
		color: #7b674f;
		border-bottom: 2px solid #7b674f;
	}

	.tutorial-meta {
		display: flex;
		flex-wrap: wrap;
		gap: 15px;
		margin-bottom: 15px;
		font-size: 1em;
		color: #6b4e2f;
		font-family: 'Minecraft', sans-serif;
	}

	.tutorial-type {
		background: #8B4513;
		color: #f0e6d6;
		padding: 5px 12px;
		border-radius: 15px;
		font-size: 0.9em;
		border: 2px solid #4B2D0B;
		box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
		text-transform: uppercase;
		font-weight: bold;
		text-shadow: 1px 1px 2px #000;
	}

	.tutorial-status.active {
		color: #2d5016;
		font-weight: bold;
	}

	.tutorial-status.active::before {
		content: "✅ ";
		color: #2d5016;
	}

	.tutorial-status.archived {
		color: #6c757d;
		font-weight: bold;
	}

	.tutorial-status.archived::before {
		content: "📦 ";
		color: #6c757d;
	}

	.tutorial-actions {
		text-align: right;
		margin-top: 15px;
	}

	.tutorial-link {
		display: inline-block;
		padding: 10px 20px;
		background-color: #8B4513;
		color: #f0e6d6;
		text-decoration: none;
		border-radius: 15px;
		border: 3px solid #4B2D0B;
		box-shadow: 0 5px 0 #4B2D0B, 0 5px 15px rgba(0, 0, 0, 0.2);
		transition: all 0.3s ease;
		font-family: 'Minecraft', sans-serif;
		font-size: 1em;
		font-weight: bold;
		text-transform: uppercase;
		text-shadow: 1px 1px 2px #000;
	}

	.tutorial-link:hover {
		background-color: #a0522d;
		transform: translateY(-3px);
		color: #f0e6d6;
		border-bottom: 3px solid #4B2D0B;
	}

	.tutorial-link:active {
		background-color: #7B3F00;
		box-shadow: 0 2px 0 #4B2D0B;
		transform: translateY(0);
	}

	/* Адаптивність для мобільних пристроїв */
	@media (max-width: 768px) {
		.tutorial-meta {
			flex-direction: column;
			gap: 10px;
		}

		.tutorial-actions {
			text-align: center;
		}

		.tutorial-title {
			font-size: 1.4em;
			letter-spacing: 1px;
		}

		.tutorial-item {
			padding: 15px;
			margin-bottom: 15px;
		}

		.tutorials-stats {
			font-size: 0.9em;
			padding: 12px 15px;
		}
	}
	
	
	
	.text-image {
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  gap: 3rem;
	  margin: 4rem 0;
	  flex-wrap: wrap;
	}

	.text-image.split .text,
	.text-image.split .image {
	  flex: 1 1 45%;
	}

	.text-image.reverse {
	  flex-direction: row-reverse;
	}

	.text-image .text {
	  font-size: 1.1rem;
	  line-height: 1.6;
	}

	.text-image .image img {
	  width: 100%;
	  height: auto;
	  border-radius: 12px;
	  box-shadow: 0 0 20px rgba(0,0,0,0.2);
	}

	/* Mobile adaptation */
	@media (max-width: 768px) {
	  .text-image {
		flex-direction: column !important;
		text-align: center;
	  }

	  .text-image .text,
	  .text-image .image {
		flex: 1 1 100%;
	  }

	  .text-image .image img {
		max-width: 100%;
	  }
	}
