/* Akademi Hastanesi ana sayfa içerik sekmeleri - tamamen namespaced */
.ahci-home,
.ahci-home * {
	box-sizing: border-box;
}

.ahci-home {
	--ahci-home-primary: #004a8d;
	--ahci-home-primary-dark: #00365f;
	--ahci-home-accent: #3ec4f1;
	--ahci-home-text: #1f2937;
	--ahci-home-muted: #6b7280;
	--ahci-home-border: #e7edf3;
	--ahci-home-soft: #f6f9fc;
	--ahci-home-white: #fff;
	width: 100%;
	font-family: inherit;
	color: var(--ahci-home-text);
}

.ahci-home__tabs-wrap {
	border-bottom: 1px solid var(--ahci-home-border);
	margin-bottom: 22px;
}

.ahci-home__tabs {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: thin;
	padding: 0 2px;
}

.ahci-home__tab {
	appearance: none;
	border: 0;
	background: transparent;
	color: #5f6b7a;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	padding: 14px 18px 16px;
	position: relative;
	transition: color .2s ease, background .2s ease;
}

.ahci-home__tab::after {
	content: "";
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: -1px;
	height: 3px;
	border-radius: 6px 6px 0 0;
	background: var(--ahci-home-accent);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .2s ease;
}

.ahci-home__tab:hover,
.ahci-home__tab:focus-visible,
.ahci-home__tab.is-active {
	color: var(--ahci-home-primary);
}

.ahci-home__tab.is-active::after {
	transform: scaleX(1);
}

.ahci-home__tab:focus-visible {
	outline: 3px solid rgba(62, 196, 241, .28);
	outline-offset: -3px;
	border-radius: 10px 10px 0 0;
}

.ahci-home__panel[hidden] {
	display: none !important;
}

.ahci-home__panel.is-active {
	animation: ahciHomeFade .22s ease;
}

@keyframes ahciHomeFade {
	from { opacity: .2; transform: translateY(3px); }
	to { opacity: 1; transform: translateY(0); }
}

.ahci-home__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.ahci-home__card {
	min-width: 0;
	display: grid;
	grid-template-columns: 172px minmax(0, 1fr);
	background: var(--ahci-home-white);
	border: 1px solid var(--ahci-home-border);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 8px 26px rgba(0, 74, 141, .055);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ahci-home__card:hover {
	transform: translateY(-3px);
	border-color: rgba(62, 196, 241, .55);
	box-shadow: 0 14px 34px rgba(0, 74, 141, .11);
}

.ahci-home__media {
	display: block;
	min-height: 100%;
	background: var(--ahci-home-soft);
	overflow: hidden;
}

.ahci-home__media img,
.ahci-home__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 190px;
	object-fit: cover;
}

.ahci-home__media img {
	transition: transform .35s ease;
}

.ahci-home__card:hover .ahci-home__media img {
	transform: scale(1.035);
}

.ahci-home__placeholder {
	display: grid;
	place-items: center;
	background: linear-gradient(145deg, var(--ahci-home-primary-dark), var(--ahci-home-primary) 58%, var(--ahci-home-accent));
}

.ahci-home__placeholder-mark {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border: 1px solid rgba(255,255,255,.36);
	border-radius: 18px;
	background: rgba(255,255,255,.12);
	color: #fff;
	font-size: 28px;
	font-weight: 800;
	backdrop-filter: blur(5px);
}

.ahci-home__content {
	min-width: 0;
	padding: 18px 20px 17px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.ahci-home__meta {
	font-size: 12px;
	font-weight: 600;
	color: #7b8794;
	margin-bottom: 7px;
}

.ahci-home__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: -.015em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ahci-home__title a {
	color: var(--ahci-home-primary);
	text-decoration: none;
}

.ahci-home__title a:hover {
	color: var(--ahci-home-primary-dark);
}

.ahci-home__excerpt {
	margin: 0 0 12px;
	color: var(--ahci-home-muted);
	font-size: 13px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ahci-home__readmore {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--ahci-home-primary);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.ahci-home__readmore span:last-child,
.ahci-home__all span {
	transition: transform .2s ease;
}

.ahci-home__readmore:hover span:last-child,
.ahci-home__all:hover span {
	transform: translateX(3px);
}

.ahci-home__footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 18px;
}

.ahci-home__all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 15px;
	border: 1px solid var(--ahci-home-border);
	border-radius: 11px;
	background: #fff;
	color: var(--ahci-home-primary);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 5px 16px rgba(0, 74, 141, .04);
	transition: border-color .2s ease, background .2s ease;
}

.ahci-home__all:hover {
	border-color: rgba(62, 196, 241, .75);
	background: #f8fcff;
}

.ahci-home__empty {
	padding: 28px;
	border: 1px dashed #ced9e4;
	border-radius: 16px;
	background: var(--ahci-home-soft);
	color: var(--ahci-home-muted);
	text-align: center;
}

@media (max-width: 1050px) {
	.ahci-home__card {
		grid-template-columns: 140px minmax(0, 1fr);
	}

	.ahci-home__media img,
	.ahci-home__placeholder {
		min-height: 175px;
	}
}

@media (max-width: 820px) {
	.ahci-home__grid {
		grid-template-columns: 1fr;
	}

	.ahci-home__card {
		grid-template-columns: 165px minmax(0, 1fr);
	}
}

@media (max-width: 560px) {
	.ahci-home__tabs-wrap {
		margin-bottom: 16px;
	}

	.ahci-home__tab {
		font-size: 14px;
		padding: 12px 13px 14px;
	}

	.ahci-home__tab::after {
		left: 13px;
		right: 13px;
	}

	.ahci-home__grid {
		gap: 14px;
	}

	.ahci-home__card {
		grid-template-columns: 116px minmax(0, 1fr);
		border-radius: 14px;
	}

	.ahci-home__media img,
	.ahci-home__placeholder {
		min-height: 155px;
	}

	.ahci-home__content {
		padding: 14px 14px 13px;
	}

	.ahci-home__title {
		font-size: 15px;
		margin-bottom: 6px;
	}

	.ahci-home__excerpt {
		-webkit-line-clamp: 2;
		font-size: 12px;
		line-height: 1.45;
		margin-bottom: 8px;
	}

	.ahci-home__meta,
	.ahci-home__readmore {
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ahci-home *,
	.ahci-home *::before,
	.ahci-home *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

/* HTML widget ile class tabanlı otomatik yükleme alanı */
.akademi-home-content {
	width: 100%;
	min-width: 0;
}

.akademi-home-content.is-loading {
	min-height: 360px;
}

.ahci-home-loader,
.ahci-home-loader * {
	box-sizing: border-box;
}

.ahci-home-loader {
	width: 100%;
}

.ahci-home-loader__tabs {
	display: flex;
	gap: 14px;
	padding: 8px 0 18px;
	margin-bottom: 22px;
	border-bottom: 1px solid #e7edf3;
}

.ahci-home-loader__tabs span {
	display: block;
	width: 128px;
	height: 22px;
	border-radius: 999px;
	background: #edf2f7;
	animation: ahciHomePulse 1.1s ease-in-out infinite alternate;
}

.ahci-home-loader__tabs span:nth-child(2) { width: 92px; }
.ahci-home-loader__tabs span:nth-child(3) { width: 118px; }

.ahci-home-loader__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.ahci-home-loader__grid span {
	display: block;
	height: 190px;
	border-radius: 18px;
	background: linear-gradient(90deg, #f4f7fa 25%, #edf2f7 45%, #f4f7fa 65%);
	background-size: 220% 100%;
	animation: ahciHomeShimmer 1.25s linear infinite;
}

@keyframes ahciHomePulse {
	from { opacity: .55; }
	to { opacity: 1; }
}

@keyframes ahciHomeShimmer {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

@media (max-width: 820px) {
	.ahci-home-loader__grid {
		grid-template-columns: 1fr;
	}
}
