/* 
 * Content Sections Styles
 * Файл: css-new/content.css
 */

/* Hero Image Section (Static) - FULL WIDTH */
.hero-section {
	position: relative;
	width: 100vw;
	height: 500px;
	overflow: hidden;
	background: var(--primary-darker);
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	z-index: 0;
}

.hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.center {
	padding: 0 1rem;
	max-width: 1400px;
	margin: 0 auto;
}

.section-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 30px;
}

.section-title {
	font-family: 'Roboto Slab', serif;
	font-size: 1.8rem;
	font-weight: 600;
	color: var(--text-light);
	margin-bottom: 50px;
	text-align: center;
}

/* ========================================
   NEWS SECTION (CuteNews news_block)
   ======================================== */
.news-section {
	padding: 80px 0 100px 0;
	background: linear-gradient(180deg, var(--primary-darkest) 0%, rgba(0, 91, 187, 0.15) 100%);
	border-top: 3px solid var(--ukraine-blue);
	overflow: visible;
	position: relative;
	z-index: 1;
}

.news-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 30px;
}

.news-icon {
	width: 40px;
	height: 40px;
}

.news-icon img {
	width: 100%;
	height: 100%;
}

/* Wrapper для CuteNews */
.cutenews-wrapper {
	position: relative;
	overflow: hidden;
	padding: 15px 0;
	margin: 0;
}

/* Grid для карток - FLEX, не grid! */
.news-grid-cards {
	display: flex;
	gap: 30px;
	transition: transform 0.5s ease;
}

/* Картка новини - фіксована ширина */
.news-card-modern {
	background: rgba(30, 30, 40, 0.7);
	border: 1px solid rgba(0, 91, 187, 0.3);
	border-radius: 12px;
	padding: 30px;
	display: flex;
	flex-direction: column;
	min-height: 280px;
	flex: 0 0 calc(33.333% - 20px);
	transition: all 0.4s ease;
	position: relative;
	z-index: 5;
}

.news-card-modern:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 50px rgba(0, 91, 187, 0.4);
	border-color: var(--ukraine-yellow);
	z-index: 100;
}

/* Дата */
.news-card-modern .news-date {
	font-size: 0.85rem;
	color: var(--ukraine-yellow);
	font-weight: 600;
	margin-bottom: 15px;
	display: block;
}

/* Заголовок */
.news-card-modern .news-title {
	font-family: 'Roboto Slab', serif;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text-light);
	line-height: 1.5;
	margin-bottom: 15px;
}

/* Посилання в заголовку */
.news-card-modern .news-title a {
	color: var(--text-light);
	text-decoration: none;
	transition: color 0.3s ease;
}

.news-card-modern .news-title a:hover {
	color: var(--ukraine-blue-light);
}

/* Short story excerpt */
.news-card-modern .news-excerpt {
	font-size: 0.9rem;
	color: var(--text-muted);
	line-height: 1.6;
	flex: 1;
	margin-bottom: 20px;
}

/* Посилання "Читати далі" */
.news-card-modern .news-read-more {
	color: var(--ukraine-blue-light);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s ease;
}

.news-card-modern .news-read-more:hover {
	color: var(--ukraine-yellow);
	gap: 12px;
}

/* Приховуємо оригінальні CuteNews блоки */
.news_block {
	display: none !important;
}

/* Приховуємо пагінацію CuteNews */
.pagination_news {
	display: none !important;
}

/* Навігація карусель */
.news-carousel-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 30px;
	position: relative;
	z-index: 50;
}

.news-nav-btn {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: 2px solid var(--border-blue);
	background: var(--bg-card);
	color: var(--text-light);
	font-size: 1.5rem;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	z-index: 50;
}

.news-nav-btn:hover:not(:disabled) {
	background: var(--ukraine-blue);
	border-color: var(--ukraine-blue);
	transform: scale(1.1);
	z-index: 100;
}

.news-nav-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.news-dots {
	display: flex;
	gap: 12px;
}

.news-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--border-subtle);
	cursor: pointer;
	transition: all 0.3s ease;
}

.news-dot.active {
	background: var(--ukraine-yellow);
	width: 30px;
	border-radius: 6px;
}

.news-dot:hover {
	background: var(--ukraine-blue-light);
}

/* Responsive */
@media (max-width: 992px) {
	.news-grid-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.news-grid-cards {
		grid-template-columns: 1fr;
	}
	
	.news-nav-btn {
		width: 40px;
		height: 40px;
		font-size: 1.2rem;
	}
}

/* ========================================
   RESEARCH DIRECTIONS
   ======================================== */
.research-section {
	padding: 80px 0;
	background: var(--primary-darker);
	position: relative;
	z-index: 0;
}

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

.research-card {
	background: var(--bg-card);
	border-radius: 12px;
	padding: 40px;
	display: flex;
	gap: 30px;
	transition: all 0.4s ease;
	border: 1px solid var(--border-subtle);
	border-top: 4px solid var(--ukraine-blue);
}

.research-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0, 91, 187, 0.3);
	border-top-color: var(--ukraine-yellow);
}

.research-icon {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, rgba(0, 91, 187, 0.2) 0%, rgba(255, 213, 0, 0.1) 100%);
	border-radius: 12px;
	padding: 15px;
}

.research-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.research-content h3 {
	font-family: 'Roboto Slab', serif;
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--ukraine-yellow);
	margin-bottom: 15px;
}

.research-content h3 a:hover {
	color: var(--ukraine-yellow-light);
}

.research-content p {
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.7;
}

/* ========================================
   DEVELOPMENTS SECTION (NEW MODERN STYLE)
   ======================================== */
.developments-section {
	padding: 80px 0;
	background: var(--bg-primary);
}

.developments-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 40px;
}

.development-card {
	background: var(--bg-card);
	border: 1px solid var(--border-blue);
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.4s ease;
}

.development-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 50px rgba(0, 91, 187, 0.4);
	border-color: var(--ukraine-yellow);
}

.development-card a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.dev-image {
	width: 100%;
	height: 220px;
	overflow: hidden;
	background: #1a1a1a;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dev-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.development-card:hover .dev-image img {
	transform: scale(1.1);
}

.dev-content {
	padding: 25px;
}

.dev-content h3 {
	font-family: 'Roboto Slab', serif;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--text-light);
	line-height: 1.5;
	transition: color 0.3s ease;
}

.development-card:hover .dev-content h3 {
	color: var(--ukraine-blue-light);
}

/* Кнопка "Більше розробок" */
.section-more {
	text-align: center;
	margin-top: 40px;
}

.more-link {
	display: inline-block;
	padding: 14px 35px;
	background: var(--ukraine-blue);
	color: var(--text-light);
	font-size: 1rem;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.3s ease;
	border: 2px solid var(--ukraine-blue);
}

.more-link:hover {
	background: transparent;
	color: var(--ukraine-yellow);
	border-color: var(--ukraine-yellow);
	transform: translateY(-2px);
}

/* Responsive для Developments */
@media (max-width: 992px) {
	.developments-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.developments-grid {
		grid-template-columns: 1fr;
	}
	
	.dev-image {
		height: 200px;
	}
}

/* ========================================
   DEVELOPMENTS SECTION (from old site)
   ======================================== */
.fon {
	background: #4b4b4b;
}

.our_developments {
	background: rgba(255, 255, 255, 0.17);
}

.our_developments h2 {
	font-family: Montserrat;
	font-style: normal;
	font-weight: 600;
	font-size: 20px;
	line-height: 24px;
	color: #1C1C1C;
	text-align: center;
	padding: 20px 0;
}

.nf-item {
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	margin: 0;
	padding: 5px 0;
}

.item-box {
	flex: 1 0 30%;
	background-clip: content-box;
	overflow: hidden;
	display: block;
	box-sizing: border-box;
	margin: 0px 10px 10px 0px;
	position: relative;
}

.item-box a img {
	max-width: 100%;
}

.item-box:hover .item-mask {
	opacity: 1;
	visibility: visible;
}

.item-box:hover .item-mask .item-caption {
	opacity: 1;
}

.item-mask {
	background: rgba(199, 107, 67, 0.75);
	height: 100%;
	position: absolute;
	transition: all .5s ease-in-out 0s;
	width: 100%;
	top: 0;
	left: 0;
	opacity: 0;
	visibility: hidden;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.item-mask .item-caption {
	position: absolute;
	transition: all .5s ease-in-out 0s;
	opacity: 0;
	width: 100%;
	box-sizing: border-box;
}

.item-container {
	transform: scale(1);
	width: 100%;
	transition: all 2s cubic-bezier(.23,1,.32,1) 0s;
	vertical-align: middle;
}

.item-caption p {
	font-style: normal;
	font-weight: 600;
	font-size: 20px;
	line-height: 24px;
	text-align: center;
	color: #262626;
}

.container-more {
	padding: 0 0 20px 0;
	margin: 0;
}

.container-more a {
	font-style: normal;
	font-weight: 500;
	font-size: 14px;
	line-height: 17px;
	color: #ffffff;
	text-transform: uppercase;
	text-decoration: none;
}

.container-more a:hover {
	color: #C76B43;
}

/* ========================================
   REFERENCES SECTION
   ======================================== */
.references {
	background: #262626;
}

.references ul {
	display: flex;
	justify-content: space-between;
	padding: 0;
}

.references li {
	display: flex;
	flex-direction: row;
	align-items: center;
	list-style: none;
	padding: 30px 15px;
	text-align: left;
	gap: 15px;
}

.references li img {
	padding: 0;
	display: block;
	margin: 0;
	max-width: 70px;
	max-height: 70px;
	object-fit: contain;
	flex-shrink: 0;
}

.references li a {
	font-style: normal;
	font-weight: 600;
	font-size: 14px;
	line-height: 18px;
	letter-spacing: 0.02em;
	color: #ffffff;
	text-decoration: none;
	max-width: 320px;
}

.references li a:hover {
	color: #C76B43;
	text-decoration: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
	.research-grid {
		grid-template-columns: 1fr;
	}

	.hero-section {
		height: 350px;
	}
}

@media (max-width: 768px) {
	.hero-section {
		height: 280px;
	}

	.item-box {
		flex: 1 0 100%;
	}

	.references ul {
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.research-card {
		flex-direction: column;
		text-align: center;
		padding: 30px;
	}

	.research-icon {
		margin: 0 auto;
	}

	.hero-section {
		height: 220px;
	}
}
