/* === ЗАГОЛОВОК СТОРІНКИ (project-content-title) === */
.project-content-title {
	background: #f9f9f9;
	padding: 30px 0;
	margin-bottom: 30px;
	border-bottom: 1px solid #eee;
}

.project-content-title h1 {
	font-size: 36px;
	font-weight: 700;
	margin-top: 5px;
	margin-bottom: 0;
}

.project-date {
	font-size: 14px;
	color: #555;
	margin: 0;
	text-transform: uppercase;
}

.project-date strong {
	font-weight: 600;
	color: #333;
}

/* === ОСНОВНИЙ КОНТЕНЕР ДЕТАЛЕЙ === */
.container.project-details {
	padding-bottom: 50px;
}

.container.project-details h1 {
	font-family: "Montserrat", sans-serif;
	font-size: 32px;
	font-weight: 700;
	margin-top: 30px;
	margin-bottom: 30px;
}

.container.project-details hr {
	border: 0;
	height: 1px;
	background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 86, 179, 0.4), rgba(0, 0, 0, 0));
	margin: 40px 0;
}


.project-details .content {
	color: #585858;
	font-size: 16px;
}

.project-details .content p {
	margin-bottom: 15px;
	margin-top: 15px;
}

.project-details .content ul li {
	position: relative;
	padding-left: 40px;
	line-height: 1.25;
	margin-bottom: 10px;
}

.project-details .content ul li::before {
	content: '';
	display: block;
	background: #585858;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	position: absolute;
	left: 20px;
	top: 7px;
}

/* Контейнер для скидання лічильника */
.project-details .content ol {
	list-style: none;
	counter-reset: custom-counter;
	padding-left: 0;
}

.project-details .content ol li {
	position: relative;
	padding-left: 40px; /* залишаємо як у ul */
	line-height: 1.25;
	margin-bottom: 10px;
	counter-increment: custom-counter;
}

.project-details .content ol li::before {
	/* Відображаємо номер */
	content: counter(custom-counter) ".";

	/* Позиціонування */
	position: absolute;
	left: 15px; /* трохи змістив вліво, щоб двозначні числа мали місце */
	top: 0;

	/* Стилізація тексту (підберіть під свій дизайн) */
	color: #585858;
	font-weight: bold;
	width: 20px; /* фіксована ширина для вирівнювання крапки */
	text-align: right;
}

.project-details .content a {
	color: #205953;
	text-decoration: underline;
}


/* === SLICK SLIDER: КОНТЕЙНЕР ТА СЛАЙДИ === */
.project-slider-wrapper {
	position: relative; /* Для позиціонування стрілок відносно слайдера */
	margin-bottom: 40px;
	border-radius: 8px;
	overflow: hidden;
	/*		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
}

.project-slider {
	margin-bottom: 0; /* Прибираємо стандартний відступ, бо є wrapper */
}

/* 1. Задаємо жорсткі розміри для контейнера слайду */
.project-slide {
	position: relative;
	outline: none;
	height: 800px; /* Ваша цільова висота */
	background-color: #000; /* Фон, якщо картинка раптом не завантажиться */
}

/* 2. Змушуємо картинку заповнювати весь простір без деформації */
.project-slide img {
	width: 100%;
	height: 100%; /* Тепер висота не auto, а 100% від батька (800px) */
	display: block;
	object-fit: cover; /* Ключова властивість: заповнює контейнер як фонове фото */
	object-position: center; /* Центрує зображення */
}

/* 3. Текст (caption) вже має position: absolute і bottom: 0,
тому він автоматично приклеїться до низу цих 800px */
.slide-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 35px 20px 15px;
	background: linear-gradient(
	to top,
	rgba(0,0,0,0.85) 0%,
	rgba(0,0,0,0.5) 40%,
	rgba(0,0,0,0) 80%
	);
	color: #fff;
	text-align: center;
	pointer-events: none;
	z-index: 2; /* Щоб бути над картинкою */
}

/* 3. Додамо обмеження для самого тексту (опціонально),
щоб він точно не займав більше 3 рядків */
.caption-text {
	font-size: 1.1rem;
	line-height: 1.4;
	font-weight: 400;
	max-width: 85%;
	margin: 0 auto;

	/* Ефект трикрапки, якщо тексту забагато (для 3 рядків) */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* === СТИЛЬ СТРІЛОК (ЯК НА ВАШІЙ КАРТИНЦІ) === */
.slick-prev, .slick-next {
	position: absolute;
	bottom: 0;
	z-index: 1;
	width: 50px;
	height: 50px;
	background-color: rgba(51, 51, 51, 0.9); /* Темно-сірий колір */
	border: none;
	color: #fff;
	display: flex !important; /* Slick іноді ховає кнопки, force display */
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
	cursor: pointer;
	padding: 0;
}

/* Зліплюємо стрілки у правому нижньому куті */
.slick-prev {
	right: 51px; /* Знаходиться ліворуч від кнопки "Вперед" */
	left: auto;
}

.slick-next {
	right: 0;
	left: auto;
}

.slick-prev:hover, .slick-next:hover {
	background-color: #28a745; /* Зелений при наведенні */
	color: #fff;
}

/* Іконки всередині стрілок */
.slick-prev i, .slick-next i {
	font-size: 18px;
}

/* Скидання стандартних стилів стрілок Slick */
.slick-prev:before, .slick-next:before {
	display: none;
}

/* === ПАГІНАЦІЯ (DOTS) === */
.slick-dots {
	bottom: 15px; /* Піднімаємо крапки трохи вище нижнього краю */
	z-index: 5;
}

.slick-dots li button:before {
	font-size: 10px;
	color: #fff;
	opacity: 0.5;
}

.slick-dots li.slick-active button:before {
	color: #28a745;
	opacity: 1;
}

/* === РОЗДІЛЬНИК ТА КНОПКИ === */
.project-separator {
	border: 0;
	height: 1px;
	background: #ddd;
	margin: 50px 0;
}

.btn-secondary {
	border-color: #28a745;
	padding: 10px 25px;
	transition: all 0.2s ease;
}

.btn-secondary:hover {
	color: #ffffff;
	background-color: rgb(32, 89, 83);
	border-color: #1c7430;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-lg {
	padding: 12px 30px;
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 700;
}

/* --- СТИЛІЗАЦІЯ DOTS У ЛІВОМУ НИЖНЬОМУ КУТІ --- */

.slick-dots {
	position: absolute;
	bottom: 0; /* Притискаємо до нижнього краю, як і стрілки */
	left: 20px; /* Відступ від лівого краю */
	display: flex !important;
	align-items: center;
	width: auto; /* Контейнер тільки по ширині точок */
	height: 50px; /* Така ж висота, як у ваших кнопок (стрілок) */
	padding: 0;
	margin: 0;
	list-style: none;
	z-index: 2;
}

.slick-dots li {
	display: block;
	width: 12px;
	height: 12px;
	margin: 0 4px;
	padding: 0;
}

.slick-dots li button {
	font-size: 0;
	display: block;
	width: 12px;
	height: 12px;
	padding: 0;
	cursor: pointer;
	border: 0;
	outline: none;
	background: transparent;
	position: relative;
}

/* Самі крапки */
.slick-dots li button:before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px; /* Розмір самої крапки */
	height: 8px;
	margin-top: -4px;
	margin-left: -4px;
	background-color: #ffffff;
	border-radius: 50%;
	opacity: 0.5;
	transition: all 0.3s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Активна крапка */
.slick-dots li.slick-active button:before {
	opacity: 1;
	background-color: white;/*#28a745;  Ваш зелений колір */
	transform: scale(1.3); /* Трохи збільшуємо активну */
}

/* Адаптивність для мобільних */
@media (max-width: 767px) {
	.slick-dots {
		left: 10px;
		height: 40px; /* Під висоту мобільних стрілок */
	}
}


/* === АДАПТИВНІСТЬ === */
@media (max-width: 767px) {
	.project-content-title {
		padding: 20px 0;
	}
	.project-content-title h1 {
		font-size: 28px;
	}

	.container.project-details h1 {
		font-size: 22px;
	}

	.project-separator {
		margin: 30px 0;
	}
	.btn-lg {
		width: 100%;
	}
	/* Зменшуємо кнопки на мобільних */
	.slick-prev, .slick-next {
		width: 40px;
		height: 40px;
	}
	.slick-prev {
		right: 41px;
	}
	.caption-text {
		font-size: 1rem;
	}
}

@media (max-width: 768px) {
	.project-slide {
		height: 250px; /* Або інша комфортна висота для мобілок */
	}
}
