/* Accomar Homepage — References slider + News/Projects/Services kart grid
   Marka renkleri: #001c54 (lacivert), #2cc2e2 (camgöbeği) */

/* =========================================================
   1) REFERENCES — Shipyard & Clients kayan logo slider'ları
   ========================================================= */
.accomar-references {
	margin: 0 0 36px;
	box-sizing: border-box;
}
.accomar-references * { box-sizing: border-box; }

.accomar-ref-title {
	position: relative;
	font-size: 31px;
	font-weight: 600;
	color: #001c54;
	margin: 0 0 22px;
	padding-bottom: 12px;
	line-height: 1.2;
}
.accomar-ref-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 54px;
	height: 3px;
	background: #2cc2e2;
	border-radius: 2px;
}

.accomar-ref-viewport { position: relative; }

.accomar-ref-swiper { width: 100%; overflow: hidden; }
.accomar-ref-swiper .swiper-wrapper { align-items: center; }

/* Marquee: sürekli, doğrusal akış + kenarlarda yumuşak fade */
.accomar-ref--marquee .swiper-wrapper { transition-timing-function: linear !important; }
.accomar-ref--marquee .accomar-ref-swiper {
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
	        mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.accomar-references .accomar-ref-slide {
	width: var(--accomar-ref-w, 240px);
	height: var(--accomar-ref-h, 150px);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.accomar-ref-logo {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.accomar-ref-logo:hover {
	box-shadow: 0 10px 26px rgba(0, 28, 84, .12);
	border-color: #2cc2e2;
	transform: translateY(-2px);
}

.accomar-ref-img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

/* Gri logo, hover'da renkli */
.accomar-ref--grayscale .accomar-ref-img {
	filter: grayscale(100%);
	opacity: .72;
	transition: filter .3s ease, opacity .3s ease;
}
.accomar-ref--grayscale .accomar-ref-logo:hover .accomar-ref-img {
	filter: grayscale(0);
	opacity: 1;
}

.accomar-ref-link {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}

.accomar-ref-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	background: #001c54;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: .85;
	transition: opacity .2s ease, background .2s ease;
}
.accomar-ref-nav:hover { opacity: 1; background: #2cc2e2; }
.accomar-ref-prev { left: -8px; }
.accomar-ref-next { right: -8px; }

.accomar-ref-swiper.swiper-watch-overflow .swiper-wrapper { justify-content: center; }

@media (max-width: 1024px) {
	.accomar-references .accomar-ref-slide { width: var(--accomar-ref-w-t, 190px); }
}
@media (max-width: 767px) {
	.accomar-references .accomar-ref-slide { width: var(--accomar-ref-w-m, 140px); }
	.accomar-ref-title { font-size: 24px; }
}

/* =========================================================
   2) ORTAK KART GRID — News / Projects / Services
   ========================================================= */
.accomar-section { margin: 0 0 56px; }
.accomar-section:last-child { margin-bottom: 0; }

.accomar-block { margin: 0 0 40px; box-sizing: border-box; }
.accomar-block * { box-sizing: border-box; }

.accomar-section-title {
	position: relative;
	font-size: 37px;
	font-weight: 600;
	color: #001c54;
	text-align: center;
	margin: 0 0 32px;
	padding-bottom: 16px;
	line-height: 1.2;
}
.accomar-section-title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 64px;
	height: 3px;
	background: #2cc2e2;
	border-radius: 2px;
}
.accomar-section-title--left { text-align: left; }
.accomar-section-title--left::after { left: 0; transform: none; }

.accomar-grid {
	display: grid;
	grid-template-columns: repeat(var(--accomar-cols, 3), 1fr);
	gap: 30px;
}
@media (max-width: 1024px) { .accomar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .accomar-grid { grid-template-columns: 1fr; gap: 22px; } }

.accomar-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #eef0f4;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0, 28, 84, .06);
	transition: transform .3s ease, box-shadow .3s ease;
}
.accomar-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(0, 28, 84, .14);
}

.accomar-card__media {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #eef1f6;
}
.accomar-card__img,
.accomar-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}
.accomar-card:hover .accomar-card__img { transform: scale(1.06); }
.accomar-card__ph {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #dfe6f0, #eef1f6);
}

.accomar-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 28, 84, .55), rgba(0, 28, 84, 0) 55%);
	opacity: 0;
	transition: opacity .3s ease;
}
.accomar-card--service:hover .accomar-card__overlay,
.accomar-card--project:hover .accomar-card__overlay { opacity: 1; }

.accomar-card__body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}
.accomar-card__meta {
	font-size: 13px;
	color: #2cc2e2;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.accomar-card__type {
	font-size: 12px;
	color: #2cc2e2;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.accomar-card__title {
	font-size: 19px;
	line-height: 1.3;
	font-weight: 600;
	margin: 0;
	color: #001c54;
}
.accomar-card__title a { color: inherit; text-decoration: none; }
.accomar-card__title a:hover { color: #2cc2e2; }
.accomar-card__excerpt {
	font-size: 14.5px;
	line-height: 1.6;
	color: #5a6473;
	margin: 0;
}
.accomar-card__link {
	margin-top: auto;
	align-self: flex-start;
	font-size: 14px;
	font-weight: 600;
	color: #001c54;
	text-decoration: none;
	transition: color .2s ease;
}
.accomar-card__link:hover { color: #2cc2e2; }

.accomar-card--service .accomar-card__title {
	text-transform: uppercase;
	font-size: 17px;
	letter-spacing: .02em;
}

/* "Tümünü gör" butonu */
.accomar-block__more { text-align: center; margin-top: 30px; }
.accomar-btn {
	display: inline-block;
	padding: 13px 34px;
	border-radius: 30px;
	background: #001c54;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: background .25s ease, color .25s ease, transform .2s ease;
}
.accomar-btn:hover { background: #2cc2e2; color: #001c54; transform: translateY(-1px); }

/* Editör ipucu (içerik yokken) */
.accomar-hint {
	padding: 12px 14px;
	border: 1px dashed #c0392b;
	color: #c0392b;
	border-radius: 6px;
}

@media (max-width: 767px) {
	.accomar-section-title { font-size: 26px; }
}
