/* RM Haber — Header (Stil 1) */

.rm-header {
	position: relative;
	z-index: 300;
	font-family: var(--rm-font);
	color: var(--rm-color-text);
	background: var(--rm-color-bg);
	border-bottom: 1px solid var(--rm-color-border);
}

.rm-header__container {
	width: min(100% - (var(--rm-container-gutter) * 2), var(--rm-container));
	margin-inline: auto;
}

/* Üst: Son dakika */
.rm-header__breaking {
	background: var(--rm-breaking-news-bg);
	color: var(--rm-breaking-text);
	line-height: 1;
	overflow-x: clip;
}

.rm-header__breaking-inner {
	display: flex;
	align-items: stretch;
	gap: 0;
	min-height: 2.125rem;
}

.rm-header__breaking-label {
	display: inline-flex;
	align-items: center;
	gap: var(--rm-space-1);
	flex: 0 0 auto;
	align-self: stretch;
	box-sizing: border-box;
	/* Metnin sağından ekranın sol kenarına kadar uzat */
	margin-left: calc(50% - 50vw);
	padding-left: calc(50vw - 50%);
	padding-right: var(--rm-space-4);
	background: var(--rm-breaking-label-bg);
	color: var(--rm-breaking-title);
	font-size: var(--rm-fs-xs);
	font-weight: var(--rm-fw-bold);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	line-height: 1;
}

.rm-header__breaking-label i {
	display: inline-block;
	font-size: 0.9rem;
	line-height: 1;
	color: var(--rm-breaking-icon);
}

.rm-header__breaking-track {
	position: relative;
	flex: 1 1 auto;
	align-self: stretch;
	min-width: 0;
	display: flex;
	align-items: center;
	padding-left: var(--rm-space-3);
	overflow: hidden;
	mask-image: linear-gradient(90deg, #000 88%, transparent);
}

.rm-header__breaking-list {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	width: max-content;
	animation: rm-breaking-marquee 40s linear infinite;
}

.rm-header__breaking-list li {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	line-height: 1;
}

.rm-header__breaking-list li + li::before {
	content: "";
	display: block;
	width: 1px;
	height: 0.75rem;
	margin-inline: var(--rm-space-4);
	background: color-mix(in srgb, var(--rm-breaking-text) 42%, transparent);
	flex-shrink: 0;
}

.rm-header__breaking-track:hover .rm-header__breaking-list {
	animation-play-state: paused;
}

.rm-header__breaking-list a {
	display: inline-flex;
	align-items: center;
	gap: var(--rm-space-2);
	color: var(--rm-breaking-text);
	text-decoration: none;
	font-size: var(--rm-fs-sm);
	line-height: 1;
	white-space: nowrap;
}

.rm-header__breaking-list a:hover .rm-header__breaking-title {
	text-decoration: underline;
}

.rm-header__breaking-time {
	flex-shrink: 0;
	font-size: var(--rm-fs-xs);
	font-weight: var(--rm-fw-bold);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	opacity: 0.92;
}

.rm-header__breaking-title {
	min-width: 0;
}

.rm-header__breaking-list > li > span {
	display: inline-flex;
	align-items: center;
	color: var(--rm-breaking-text);
	font-size: var(--rm-fs-sm);
	line-height: 1;
	white-space: nowrap;
}

@keyframes rm-breaking-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* Orta satır */
.rm-header__main {
	border-bottom: 1px solid var(--rm-color-border);
}

.rm-header__main-spacer {
	display: none;
	width: 100%;
	pointer-events: none;
}

.rm-header__main.is-fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 360;
	margin: 0;
	background: var(--rm-color-bg);
	border-bottom: 1px solid var(--rm-color-border);
	box-shadow: 0 1px 0 color-mix(in srgb, var(--rm-color-border) 80%, transparent);
}

.rm-header__main-spacer.is-active {
	display: block;
}

.rm-header__main-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--rm-space-4);
	min-height: 4.25rem;
	padding-block: var(--rm-space-3);
}

.rm-header__brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.rm-header__brand .custom-logo {
	display: block;
	height: var(--rm-logo-height, 44px);
	max-height: var(--rm-logo-height, 44px);
	width: auto;
}

.rm-header__brand .custom-logo-link.has-dark-logo .custom-logo--dark,
.rm-mobile-nav__brand .custom-logo-link.has-dark-logo .custom-logo--dark {
	display: none;
}

html.rm-dark .rm-header__brand .custom-logo-link.has-dark-logo .custom-logo--light,
html.rm-dark .rm-mobile-nav__brand .custom-logo-link.has-dark-logo .custom-logo--light {
	display: none;
}

html.rm-dark .rm-header__brand .custom-logo-link.has-dark-logo .custom-logo--dark,
html.rm-dark .rm-mobile-nav__brand .custom-logo-link.has-dark-logo .custom-logo--dark {
	display: block;
}

.rm-header__site-title {
	font-size: var(--rm-fs-xl);
	font-weight: var(--rm-fw-bold);
	letter-spacing: -0.03em;
	text-decoration: none;
	color: var(--rm-color-text);
}

.rm-header__tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--rm-space-2);
	min-width: 0;
}

.rm-header__icon-light {
	display: none;
}

html.rm-dark .rm-header__icon-dark {
	display: none;
}

html.rm-dark .rm-header__icon-light {
	display: inline-block;
}

/* Döviz — esnek ticker (Frankfurter / ECB) */
.rm-fx {
	display: block;
	min-width: 0;
	max-width: 100%;
	margin-right: var(--rm-space-1);
	overflow: hidden;
	border: 1px solid var(--rm-color-border);
	border-radius: var(--rm-radius-sm);
	background: var(--rm-color-bg);
}

.rm-fx__track {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	width: max-content;
	min-width: 100%;
}

.rm-fx__item {
	display: grid;
	grid-template-columns: auto auto;
	grid-template-rows: auto auto;
	column-gap: var(--rm-space-2);
	align-items: center;
	padding: 0.35rem 0.65rem;
	border-right: 1px solid var(--rm-color-border);
	line-height: var(--rm-lh-tight);
}

.rm-fx__item:last-child {
	border-right: 0;
	padding-right: 0.75rem;
}

.rm-fx__code {
	grid-column: 1;
	font-size: 0.625rem;
	font-weight: var(--rm-fw-bold);
	letter-spacing: 0.08em;
	color: var(--rm-color-muted);
}

.rm-fx__value {
	grid-column: 1;
	font-size: var(--rm-fs-sm);
	font-weight: var(--rm-fw-semibold);
	font-variant-numeric: tabular-nums;
	color: var(--rm-color-text);
	white-space: nowrap;
}

.rm-fx__change {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: inline-flex;
	align-items: center;
	gap: 0.1rem;
	font-size: 0.625rem;
	font-weight: var(--rm-fw-semibold);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.rm-fx__change i {
	font-size: 0.75rem;
}

.rm-fx__item.is-up .rm-fx__change {
	color: var(--rm-color-up);
}

.rm-fx__item.is-down .rm-fx__change {
	color: var(--rm-color-down);
}

/* Header: dar alan — içerik kadar, taşarsa kaydır */
.rm-header .rm-fx--compact {
	flex: 1 1 auto;
	width: max-content;
	max-width: min(100%, 34rem);
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.rm-header .rm-fx--compact::-webkit-scrollbar {
	display: none;
}

.rm-header .rm-fx--compact .rm-fx__track {
	width: max-content;
	min-width: 0;
	padding-inline-end: 0.15rem;
}

/* Geniş / dolgu varyantları — sidebar, içerik alanı vb. */
.rm-fx--wide,
.rm-fx--fill {
	width: 100%;
	max-width: none;
	margin-right: 0;
}

.rm-fx--wide .rm-fx__track,
.rm-fx--fill .rm-fx__track {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	min-width: 0;
}

.rm-fx--fill .rm-fx__item {
	flex: 1 1 0;
	min-width: 7.5rem;
}

.rm-fx--wide .rm-fx__item {
	flex: 1 1 9rem;
}

/* Alt satır */
.rm-header__bottom {
	position: relative;
	z-index: 320;
	overflow: visible;
	background: var(--rm-header-bottom-bg);
	color: var(--rm-header-bottom-text);
}

.rm-header__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--rm-space-4);
	min-height: 3.125rem;
	overflow: visible;
}

.rm-header__nav {
	min-width: 0;
	flex: 1;
	overflow: visible;
}

.rm-header__menu {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--rm-space-1) var(--rm-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 0;
}

.rm-header__menu > li {
	flex-shrink: 0;
}

.rm-header__menu a {
	display: inline-flex;
	align-items: center;
	padding: var(--rm-space-3) 0;
	color: var(--rm-header-bottom-text);
	text-decoration: none;
	text-underline-offset: 0.28em;
	text-decoration-thickness: 1.5px;
	font-size: var(--rm-fs-sm);
	font-weight: var(--rm-fw-semibold);
	white-space: nowrap;
}

.rm-header__menu > li > a:hover,
.rm-header__menu > li > a:focus-visible {
	color: var(--rm-header-bottom-text);
	text-decoration: underline;
}

.rm-header__menu .current-menu-item > a {
	text-decoration: underline;
}

.rm-header__home a {
	justify-content: center;
	width: 1.75rem;
	color: var(--rm-header-bottom-text);
}

.rm-header__home a i {
	font-size: 1.15rem;
	line-height: 1;
	color: inherit;
}

.rm-header__home a:hover {
	color: var(--rm-color-accent);
}

.rm-header__menu > li > .sub-menu {
	display: none;
}

.rm-header__more {
	position: relative;
	z-index: 330;
}

.rm-header__more-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	padding: var(--rm-space-3) 0;
	border: 0;
	background: transparent;
	color: var(--rm-header-bottom-text);
	font-family: inherit;
	font-size: var(--rm-fs-sm);
	font-weight: var(--rm-fw-semibold);
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: color var(--rm-transition);
}

.rm-header__more-toggle i {
	font-size: 1.1rem;
	line-height: 1;
	transition: transform var(--rm-transition);
}

.rm-header__more:hover .rm-header__more-toggle,
.rm-header__more:focus-within .rm-header__more-toggle,
.rm-header__more.is-open .rm-header__more-toggle {
	color: var(--rm-color-accent);
	outline: none;
}

.rm-header__more:hover .rm-header__more-toggle i,
.rm-header__more:focus-within .rm-header__more-toggle i,
.rm-header__more.is-open .rm-header__more-toggle i {
	transform: rotate(180deg);
}

.rm-header__more-menu {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 400;
	display: none;
	min-width: 12rem;
	max-width: min(18rem, 70vw);
	max-height: min(70vh, 24rem);
	margin: 0;
	padding: var(--rm-space-2) 0;
	overflow: auto;
	list-style: none;
	border: 1px solid var(--rm-color-border);
	border-radius: var(--rm-radius-md);
	background: var(--rm-color-bg);
	box-shadow: 0 10px 28px color-mix(in srgb, #000 14%, transparent);
}

/* Hover köprüsü: imleç butondan menüye geçerken kapanmasın */
.rm-header__more-menu::before {
	content: "";
	position: absolute;
	top: -0.55rem;
	left: 0;
	right: 0;
	height: 0.55rem;
}

.rm-header__more:hover .rm-header__more-menu,
.rm-header__more:focus-within .rm-header__more-menu,
.rm-header__more.is-open .rm-header__more-menu {
	display: block;
}

.rm-header__more-menu > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--rm-space-2);
	width: 100%;
	padding: 0.65rem 0.9rem;
	color: var(--rm-color-text);
	font-size: var(--rm-fs-sm);
	font-weight: var(--rm-fw-semibold);
	line-height: 1.3;
	text-decoration: none;
	white-space: normal;
}

.rm-header__more-menu > li > a:hover,
.rm-header__more-menu > li > a:focus-visible,
.rm-header__more-menu > .current-menu-item > a {
	background: var(--rm-color-surface);
	color: var(--rm-color-accent);
	outline: none;
}

.rm-header__more-menu .sub-menu {
	display: block;
	margin: 0;
	padding: 0 0 var(--rm-space-1);
	list-style: none;
	border: 0;
	background: transparent;
}

.rm-header__more-menu .sub-menu a {
	display: block;
	padding: 0.45rem 0.9rem 0.45rem 1.35rem;
	color: var(--rm-color-muted);
	font-size: var(--rm-fs-xs);
	font-weight: var(--rm-fw-medium);
	line-height: 1.35;
	text-decoration: none;
}

.rm-header__more-menu .sub-menu a:hover,
.rm-header__more-menu .sub-menu a:focus-visible {
	color: var(--rm-color-accent);
	outline: none;
}

/* Hava durumu — minimal satır */
.rm-weather {
	display: inline-flex;
	align-items: center;
	gap: var(--rm-space-3);
	flex-shrink: 0;
	padding: var(--rm-space-2) 0 var(--rm-space-2) var(--rm-space-3);
	border-left: 1px solid color-mix(in srgb, var(--rm-header-bottom-text) 18%, transparent);
	color: var(--rm-header-bottom-text);
}

.rm-weather__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: var(--rm-radius-sm);
	background: color-mix(in srgb, var(--rm-header-bottom-text) 8%, transparent);
	color: var(--rm-header-bottom-text);
}

.rm-weather__icon i {
	font-size: 1.1rem;
	color: inherit;
}

.rm-weather__body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.rm-weather__primary {
	display: flex;
	align-items: baseline;
	gap: var(--rm-space-2);
}

.rm-weather__temp {
	font-size: var(--rm-fs-lg);
	font-weight: var(--rm-fw-bold);
	letter-spacing: -0.03em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--rm-header-bottom-text);
}

.rm-weather__city {
	font-size: var(--rm-fs-sm);
	font-weight: var(--rm-fw-medium);
	color: var(--rm-header-bottom-text);
}

.rm-weather__meta {
	display: flex;
	align-items: center;
	gap: var(--rm-space-2);
	font-size: var(--rm-fs-xs);
	color: color-mix(in srgb, var(--rm-header-bottom-text) 68%, transparent);
}

.rm-weather__range {
	padding-left: var(--rm-space-2);
	border-left: 1px solid color-mix(in srgb, var(--rm-header-bottom-text) 18%, transparent);
	font-variant-numeric: tabular-nums;
}

/* Arama modal */
.rm-search {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 12vh var(--rm-space-4) var(--rm-space-4);
}

.rm-search[hidden] {
	display: none;
}

.rm-search__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.55);
	backdrop-filter: blur(2px);
}

.rm-search__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 40rem);
	border: 1px solid var(--rm-color-border);
	border-radius: var(--rm-radius-lg);
	background: var(--rm-color-bg);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
	overflow: hidden;
}

.rm-search__form {
	margin: 0;
}

.rm-search__field {
	display: flex;
	align-items: center;
	gap: var(--rm-space-2);
	padding: var(--rm-space-3) var(--rm-space-3) var(--rm-space-3) var(--rm-space-4);
	border-bottom: 1px solid var(--rm-color-border);
}

.rm-search__field > i {
	flex-shrink: 0;
	font-size: 1.25rem;
	color: var(--rm-color-muted);
}

.rm-search__field input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--rm-color-text);
	font: inherit;
	font-size: var(--rm-fs-lg);
	line-height: 1.3;
	outline: none;
}

.rm-search__field input[type="search"]::-webkit-search-cancel-button {
	display: none;
}

.rm-search__results {
	max-height: min(50vh, 24rem);
	overflow: auto;
}

.rm-search__status {
	margin: 0;
	padding: var(--rm-space-4);
	color: var(--rm-color-muted);
	font-size: var(--rm-fs-sm);
}

.rm-search__list {
	margin: 0;
	padding: var(--rm-space-2);
	list-style: none;
}

.rm-search__list[hidden] {
	display: none;
}

.rm-search__item a {
	display: flex;
	align-items: center;
	gap: var(--rm-space-3);
	padding: var(--rm-space-2);
	border-radius: var(--rm-radius-sm);
	text-decoration: none;
	color: var(--rm-color-text);
	transition: background var(--rm-transition);
}

.rm-search__item a:hover {
	background: var(--rm-color-surface);
}

.rm-search__thumb {
	flex-shrink: 0;
	width: 3.5rem;
	height: 2.5rem;
	border-radius: var(--rm-radius-xs);
	overflow: hidden;
	background: var(--rm-color-surface);
}

.rm-search__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rm-search__thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--rm-color-muted);
	font-size: 1rem;
}

.rm-search__title {
	flex: 1;
	min-width: 0;
	font-size: var(--rm-fs-sm);
	font-weight: var(--rm-fw-semibold);
	line-height: var(--rm-lh-tight);
}

body.rm-mega-open,
body.rm-mobile-nav-open,
body.rm-search-open {
	overflow: hidden;
}

/* Mobil menü — sağdan kayan tam ekran */
.rm-mobile-nav {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	display: block;
	margin: 0;
}

.rm-mobile-nav[hidden] {
	display: none;
}

.rm-mobile-nav__panel {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	background: var(--rm-color-bg);
	color: var(--rm-color-text);
	transform: translateX(100%);
	transition: transform 0.32s ease;
	overflow: hidden;
}

.rm-mobile-nav.is-open .rm-mobile-nav__panel {
	transform: translateX(0);
}

.rm-mobile-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--rm-space-3);
	flex-shrink: 0;
	min-height: 4.25rem;
	padding: var(--rm-space-3) var(--rm-container-gutter);
	border-bottom: 1px solid var(--rm-color-border);
}

.rm-mobile-nav__brand {
	min-width: 0;
	margin-right: auto;
	text-align: left;
}

.rm-mobile-nav__brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
}

.rm-mobile-nav__brand .custom-logo {
	display: block;
	height: var(--rm-logo-height, 44px);
	max-height: var(--rm-logo-height, 44px);
	width: auto;
}

.rm-mobile-nav__close {
	flex-shrink: 0;
	margin-left: auto;
}

.rm-mobile-nav__nav {
	flex: 1 1 auto;
	min-height: 0;
	padding: var(--rm-space-4) var(--rm-container-gutter);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.rm-mobile-nav__menu {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rm-mobile-nav__menu > li {
	border-bottom: 1px solid var(--rm-color-border);
}

.rm-mobile-nav__menu a {
	display: flex;
	align-items: center;
	gap: var(--rm-space-2);
	padding: 1rem 0;
	color: var(--rm-color-text);
	text-decoration: none;
	font-size: var(--rm-fs-md);
	font-weight: var(--rm-fw-semibold);
}

.rm-mobile-nav__menu > li > a::before {
	content: "";
	flex-shrink: 0;
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 50%;
	background: var(--rm-color-accent);
}

.rm-mobile-nav__menu > li > a::after {
	content: "\ea6e";
	font-family: remixicon !important;
	font-style: normal;
	font-weight: normal;
	font-size: 1.15rem;
	line-height: 1;
	margin-left: auto;
	color: var(--rm-color-muted);
	speak: never;
	-webkit-font-smoothing: antialiased;
}

.rm-mobile-nav__menu a:hover,
.rm-mobile-nav__menu .current-menu-item > a {
	color: var(--rm-color-accent);
}

.rm-mobile-nav__menu > li > a:hover::after,
.rm-mobile-nav__menu > .current-menu-item > a::after {
	color: var(--rm-color-accent);
}

.rm-mobile-nav__menu .sub-menu {
	margin: 0 0 var(--rm-space-3);
	padding: 0 0 0 var(--rm-space-4);
	list-style: none;
	border: 0;
}

.rm-mobile-nav__menu .sub-menu li {
	border: 0;
}

.rm-mobile-nav__menu .sub-menu a {
	padding: 0.65rem 0;
	font-size: var(--rm-fs-sm);
	font-weight: var(--rm-fw-medium);
	color: var(--rm-color-muted);
}

.rm-mobile-nav__footer {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--rm-space-3);
	padding: var(--rm-space-4) var(--rm-container-gutter) var(--rm-space-5);
	border-top: 1px solid var(--rm-color-border);
	background: var(--rm-color-bg);
}

.rm-mobile-nav__socials {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--rm-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rm-mobile-nav__socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--rm-radius-sm);
	color: var(--rm-color-text);
	text-decoration: none;
	transition: background var(--rm-transition), color var(--rm-transition);
}

.rm-mobile-nav__socials a:hover {
	background: var(--rm-color-surface);
	color: var(--rm-color-accent);
}

.rm-mobile-nav__socials i {
	font-size: 1.15rem;
	line-height: 1;
}

.rm-mobile-nav__credit {
	margin: 0;
	text-align: center;
}

.rm-mobile-nav__credit a {
	color: var(--rm-color-muted);
	text-decoration: none;
	font-size: var(--rm-fs-xs);
	font-weight: var(--rm-fw-medium);
}

.rm-mobile-nav__credit a:hover {
	color: var(--rm-color-accent);
	text-decoration: underline;
}

@media (min-width: 961px) {
	.rm-mobile-nav {
		display: none !important;
	}
}

/* Mega menü paneli */
.rm-header__menu-icon-close {
	display: none;
}

.rm-header__menu-toggle[aria-expanded="true"] .rm-header__menu-icon-open {
	display: none;
}

.rm-header__menu-toggle[aria-expanded="true"] .rm-header__menu-icon-close {
	display: inline-block;
}

.rm-mega {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 350;
	border-top: 1px solid var(--rm-color-border);
	background: transparent;
	overflow: visible;
}

.rm-mega[hidden] {
	display: none;
}

.rm-mega.is-open {
	display: block;
	animation: rm-mega-slide 0.22s ease;
}

@keyframes rm-mega-slide {
	from {
		opacity: 0;
		transform: translateY(-0.5rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.rm-mega__backdrop {
	position: absolute;
	inset: 0;
	z-index: 1;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(15, 23, 42, 0.28);
	cursor: default;
	appearance: none;
	-webkit-appearance: none;
}

.rm-mega__panel {
	position: relative;
	z-index: 2;
	background: var(--rm-color-bg);
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.rm-mega__shell {
	padding-block: var(--rm-space-5);
}

.rm-mega__inner {
	--rm-mega-cat-h: 2.5rem;
	--rm-mega-cats-visible: 5;
	--rm-mega-cats-gap: var(--rm-space-1);
	--rm-mega-cats-h: calc(
		(var(--rm-mega-cat-h) * var(--rm-mega-cats-visible)) +
		(var(--rm-mega-cats-gap) * (var(--rm-mega-cats-visible) - 1))
	);
	display: grid;
	grid-template-columns: 15rem minmax(0, 1fr);
	gap: var(--rm-space-5);
	align-items: stretch;
}

.rm-mega__sidebar,
.rm-mega__content {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.rm-mega__sidebar {
	padding: var(--rm-space-3);
	border-radius: var(--rm-radius-md);
	background: var(--rm-color-accent);
	color: var(--rm-color-on-accent);
	/* Satır yüksekliğini 5 kategorilik sidebar belirler */
	height: fit-content;
	align-self: start;
}

.rm-mega__sidebar-title {
	flex: 0 0 auto;
	margin: 0 0 var(--rm-space-3);
	font-size: var(--rm-fs-xs);
	font-weight: var(--rm-fw-bold);
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--rm-color-on-accent) 78%, transparent);
}

.rm-mega__cats-scroll {
	flex: 0 0 auto;
	height: var(--rm-mega-cats-h);
	max-height: var(--rm-mega-cats-h);
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.rm-mega__cats-scroll::-webkit-scrollbar {
	width: 0;
	height: 0;
	display: none;
}

.rm-mega__cats {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: var(--rm-mega-cats-gap);
}

.rm-mega__cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: var(--rm-mega-cat-h);
	flex: 0 0 auto;
	gap: var(--rm-space-2);
	padding: 0 0.75rem;
	border: 0;
	border-radius: var(--rm-radius-sm);
	background: transparent;
	color: var(--rm-color-on-accent);
	font: inherit;
	font-size: var(--rm-fs-sm);
	font-weight: var(--rm-fw-semibold);
	text-align: left;
	cursor: pointer;
	transition: background var(--rm-transition), color var(--rm-transition);
}

.rm-mega__cat em {
	font-style: normal;
	font-size: var(--rm-fs-xs);
	font-weight: var(--rm-fw-medium);
	color: color-mix(in srgb, var(--rm-color-on-accent) 72%, transparent);
}

.rm-mega__cat:hover,
.rm-mega__cat.is-active {
	background: var(--rm-color-accent-hover);
	color: var(--rm-color-on-accent);
}

.rm-mega__cat.is-active {
	background: var(--rm-color-on-accent);
	color: var(--rm-color-accent);
}

.rm-mega__cat.is-active em {
	color: color-mix(in srgb, var(--rm-color-accent) 70%, #000);
}

.rm-mega__content {
	/* JS ile sidebar yüksekliğine eşitlenir */
	align-self: start;
}

.rm-mega__content-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto;
	gap: var(--rm-space-3);
	margin-bottom: var(--rm-space-3);
}

.rm-mega__content-title {
	margin: 0;
	font-size: var(--rm-fs-md);
	font-weight: var(--rm-fw-bold);
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--rm-color-accent);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rm-mega__all {
	display: inline-flex;
	align-items: center;
	gap: var(--rm-space-1);
	color: var(--rm-color-muted);
	text-decoration: none;
	font-size: var(--rm-fs-sm);
	font-weight: var(--rm-fw-semibold);
	white-space: nowrap;
}

.rm-mega__all:hover {
	color: var(--rm-color-accent);
}

.rm-mega__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-rows: minmax(0, 1fr);
	gap: var(--rm-space-3);
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	align-items: stretch;
}

.rm-mega__grid .rm-card {
	min-width: 0;
	min-height: 0;
	height: 100%;
}

.rm-mega__grid .rm-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

/* Görsel daima 16:9; eşit yükseklik fazlası gövde alanında kalır */
.rm-mega__grid .rm-card__media {
	flex: 0 0 auto;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	min-height: 0;
}

.rm-mega__grid .rm-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.rm-mega__grid .rm-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	padding: var(--rm-space-2);
	gap: var(--rm-space-1);
}

.rm-mega__grid .rm-card__title {
	font-size: var(--rm-fs-md);
}

.rm-mega__grid .rm-card__link:hover .rm-card__title-text,
.rm-mega__grid .rm-card:focus-within .rm-card__title-text {
	box-shadow: none;
	text-decoration: none;
}

.rm-mega__grid .rm-card__meta {
	margin-top: auto;
}

.rm-mega__empty {
	margin: 0;
	color: var(--rm-color-muted);
	font-size: var(--rm-fs-sm);
}

.rm-mega__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--rm-space-4);
	margin-top: var(--rm-space-4);
	padding-top: var(--rm-space-4);
	border-top: 1px solid var(--rm-color-border);
}

.rm-mega__footer-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rm-space-2) var(--rm-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rm-mega__footer-menu a {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--rm-color-muted);
	text-decoration: none;
	font-size: var(--rm-fs-sm);
	font-weight: var(--rm-fw-medium);
}

.rm-mega__footer-menu a i {
	font-size: 0.9rem;
	line-height: 1;
	opacity: 0.85;
}

.rm-mega__footer-menu a:hover {
	color: var(--rm-color-accent);
}

.rm-mega__socials {
	display: flex;
	align-items: center;
	gap: var(--rm-space-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rm-mega__socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: var(--rm-radius-sm);
	color: var(--rm-color-text);
	text-decoration: none;
	transition: background var(--rm-transition), color var(--rm-transition);
}

.rm-mega__socials a:hover {
	background: var(--rm-color-surface);
	color: var(--rm-color-accent);
}

.rm-mega__socials i {
	font-size: 1.1rem;
	line-height: 1;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 1100px) {
	.rm-header .rm-fx--compact {
		max-width: min(100%, 20rem);
	}

	.rm-mega__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	.rm-fx {
		display: none;
	}

	.rm-header__nav {
		display: none;
	}

	.rm-header__bottom {
		display: none;
	}

	.rm-mega {
		display: none !important;
	}

	.rm-header__main {
		background: var(--rm-color-bg);
	}
}
