@font-face {
	font-family: "GraphikArabic";
	src: url("https://digital.baly.iq/wp-content/uploads/sites/3/redux/custom-fonts/custom/Graphikarabic3-regular2/Graphikarabic3-regular2.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "GraphikArabic";
	src: url("https://digital.baly.iq/wp-content/uploads/sites/3/redux/custom-fonts/custom/Graphikarabic3-medium2/Graphikarabic3-medium2.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "GraphikArabic";
	src: url("https://digital.baly.iq/wp-content/uploads/sites/3/redux/custom-fonts/custom/Graphikarabic3-bold2/Graphikarabic3-bold2.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.baly-blog {
	--blue: #1565f5;
	--blue-dark: #0d4dcc;
	--blue-light: #e8f0fe;
	--ink: #0d1829;
	--ink-60: #4a5568;
	--ink-30: #a0aec0;
	--surface: #f7f9fc;
	--white: #ffffff;
	--border: #e2e8f3;
	--radius-sm: 10px;
	--radius-md: 16px;
	--radius-lg: 24px;
	--radius-xl: 32px;
	background: var(--white);
	color: var(--ink);
	direction: rtl;
	font-family: "GraphikArabic", "Segoe UI", Tahoma, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	text-align: right;
	width: 100%;
}

.baly-blog,
.baly-blog *,
.baly-blog *::before,
.baly-blog *::after {
	box-sizing: border-box;
	letter-spacing: 0;
}

.baly-blog a {
	color: inherit;
	text-decoration: none;
}

.baly-blog__hero {
	background: var(--white);
	padding: 40px 40px 0;
}

.baly-blog__slider {
	aspect-ratio: 16 / 6.5;
	background: var(--ink);
	border-radius: var(--radius-xl);
	max-height: 500px;
	min-height: 260px;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.baly-blog__slide {
	align-items: flex-end;
	display: flex;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transition: opacity 0.7s ease;
}

.baly-blog__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.baly-blog__slide-img {
	display: block;
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

.baly-blog__slide-overlay {
	background: linear-gradient(to top, rgba(10, 20, 50, 0.85) 0%, rgba(10, 20, 50, 0.3) 50%, transparent 100%);
	inset: 0;
	position: absolute;
}

.baly-blog__slide-content {
	display: block;
	padding: 40px 48px;
	position: relative;
	width: 100%;
	z-index: 2;
}

.baly-blog__slide-tag,
.baly-blog__card-tag {
	background: var(--blue-light);
	border-radius: 6px;
	color: var(--blue);
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 12px;
	padding: 3px 10px;
}

.baly-blog__slide-tag {
	background: var(--blue);
	border-radius: 20px;
	color: var(--white);
	margin-bottom: 14px;
	padding: 4px 12px;
}

.baly-blog__slide-title {
	color: var(--white);
	display: block;
	font-size: clamp(22px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 12px;
	max-width: 55%;
}

.baly-blog__slide-meta {
	align-items: center;
	color: rgba(255, 255, 255, 0.7);
	display: flex;
	font-size: 13px;
	gap: 16px;
}

.baly-blog__slide-read-more {
	align-items: center;
	background: var(--white);
	border-radius: var(--radius-sm);
	color: var(--ink);
	display: inline-flex;
	font-size: 14px;
	font-weight: 700;
	margin-top: 18px;
	padding: 10px 22px;
	transition: background 0.2s, color 0.2s, transform 0.15s;
}

.baly-blog__slide:hover .baly-blog__slide-read-more {
	background: var(--blue-light);
	color: var(--blue);
	transform: translateX(-3px);
}

.baly-blog__slider-nav {
	align-items: center;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	color: var(--white);
	cursor: pointer;
	display: flex;
	height: 44px;
	justify-content: center;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: background 0.2s;
	width: 44px;
	z-index: 10;
}

.baly-blog__slider-nav:hover {
	background: rgba(255, 255, 255, 0.3);
}

.baly-blog__slider-nav--prev {
	right: 20px;
}

.baly-blog__slider-nav--next {
	left: 20px;
}

.baly-blog__slider-controls {
	align-items: center;
	bottom: 28px;
	display: flex;
	gap: 10px;
	left: 48px;
	position: absolute;
	z-index: 10;
}

.baly-blog__slider-dot {
	background: rgba(255, 255, 255, 0.4);
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	height: 8px;
	transition: background 0.2s, width 0.3s;
	width: 8px;
}

.baly-blog__slider-dot.is-active {
	background: var(--white);
	width: 24px;
}

.baly-blog__section {
	padding: 36px 40px 0;
}

.baly-blog__section-header {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
}

.baly-blog__section-title {
	color: var(--ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
}

.baly-blog__section-link {
	align-items: center;
	color: var(--blue);
	display: flex;
	font-size: 14px;
	font-weight: 500;
	gap: 4px;
	transition: gap 0.2s;
}

.baly-blog__section-link:hover {
	gap: 8px;
}

.baly-blog__featured-grid {
	align-items: start;
	display: grid;
	gap: 20px;
	grid-template-columns: 1fr 420px;
}

.baly-blog__large-grid {
	align-items: start;
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.baly-blog__side-stack {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.baly-blog__card-large,
.baly-blog__card-small,
.baly-blog__card-carousel,
.baly-blog__card-grid {
	background: var(--white);
	color: inherit;
	display: flex;
	overflow: hidden;
	transition: transform 0.25s, box-shadow 0.25s, border-color 0.2s;
}

.baly-blog__card-large {
	background: var(--surface);
	border-radius: var(--radius-lg);
	flex-direction: column;
}

.baly-blog__card-large:hover {
	box-shadow: 0 20px 50px rgba(21, 101, 245, 0.12);
	transform: translateY(-4px);
}

.baly-blog__card-small {
	align-items: flex-start;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-md);
	gap: 14px;
	padding: 16px;
}

.baly-blog__card-small:hover {
	border-color: var(--blue);
	box-shadow: 0 8px 24px rgba(21, 101, 245, 0.08);
	transform: translateX(-3px);
}

.baly-blog__card-carousel,
.baly-blog__card-grid {
	border: 1.5px solid var(--border);
	border-radius: var(--radius-md);
	flex-direction: column;
}

.baly-blog__card-carousel {
	flex: 0 0 280px;
	min-width: 280px;
	scroll-snap-align: start;
}

.baly-blog__card-carousel:hover {
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
	transform: translateY(-4px);
}

.baly-blog__card-grid:hover {
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
	transform: translateY(-4px);
}

.baly-blog__card-img {
	aspect-ratio: 21 / 7;
	display: block;
	max-height: 200px;
	object-fit: cover;
	width: 100%;
}

.baly-blog__card-img-sq {
	border-radius: 10px;
	flex: 0 0 90px;
	height: 72px;
	object-fit: cover;
	width: 90px;
}

.baly-blog__card-img-carousel,
.baly-blog__card-img-grid {
	display: block;
	height: 160px;
	object-fit: cover;
	width: 100%;
}

.baly-blog__card-img-grid {
	height: 180px;
}

.baly-blog__image-placeholder {
	align-items: center;
	background: repeating-linear-gradient(45deg, #e8edf5, #e8edf5 6px, #dde4f0 6px, #dde4f0 12px);
	color: #8fa0bc;
	display: flex;
	font-family: monospace;
	font-size: 12px;
	justify-content: center;
}

.baly-blog__card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px;
}

.baly-blog__card-large .baly-blog__card-body {
	padding: 16px 20px;
}

.baly-blog__card-small .baly-blog__card-body {
	padding: 0;
}

.baly-blog__card-carousel .baly-blog__card-body {
	padding: 18px;
}

.baly-blog__card-title {
	color: var(--ink);
	display: block;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 8px;
}

.baly-blog__card-small .baly-blog__card-title {
	font-size: 14px;
	margin-bottom: 6px;
}

.baly-blog__card-carousel .baly-blog__card-title {
	font-size: 15px;
}

.baly-blog__card-excerpt {
	color: var(--ink-60);
	display: -webkit-box;
	flex: 1;
	font-size: 13px;
	line-height: 1.65;
	margin-bottom: 16px;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.baly-blog__card-meta {
	align-items: center;
	color: var(--ink-30);
	display: flex;
	flex-wrap: wrap;
	font-size: 13px;
	gap: 12px;
}

.baly-blog__card-small .baly-blog__card-meta {
	font-size: 12px;
}

.baly-blog__card-meta-dot {
	background: var(--ink-30);
	border-radius: 50%;
	height: 3px;
	width: 3px;
}

.baly-blog__carousel-wrap {
	position: relative;
}

.baly-blog__carousel {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	padding-bottom: 4px;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.baly-blog__carousel::-webkit-scrollbar {
	display: none;
}

.baly-blog__carousel-btn {
	align-items: center;
	background: var(--white);
	border: 1.5px solid var(--border);
	border-radius: 50%;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	color: var(--ink);
	cursor: pointer;
	display: flex;
	height: 40px;
	justify-content: center;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
	width: 40px;
	z-index: 5;
}

.baly-blog__carousel-btn:hover {
	border-color: var(--blue);
	box-shadow: 0 4px 20px rgba(21, 101, 245, 0.15);
	color: var(--blue);
}

.baly-blog__carousel-btn--prev {
	right: -20px;
}

.baly-blog__carousel-btn--next {
	left: -20px;
}

.baly-blog__posts-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.baly-blog__card-grid.is-hidden {
	display: none;
}

.baly-blog__load-wrap {
	margin-top: 40px;
	text-align: center;
}

.baly-blog__load-more {
	background: transparent;
	border: 1.5px solid var(--border);
	border-radius: 12px;
	color: var(--ink);
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	padding: 13px 36px;
	transition: border-color 0.2s, color 0.2s;
}

.baly-blog__load-more:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.baly-blog__search-overlay {
	align-items: flex-start;
	background: rgba(13, 24, 41, 0.6);
	backdrop-filter: blur(4px);
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	padding: 120px 20px 0;
	pointer-events: none;
	position: fixed;
	transition: opacity 0.25s;
	z-index: 9999;
}

.baly-blog__search-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.baly-blog__search-box {
	background: var(--white);
	border-radius: var(--radius-lg);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
	max-width: 560px;
	padding: 20px;
	transform: translateY(-16px);
	transition: transform 0.25s;
	width: 100%;
}

.baly-blog__search-overlay.is-open .baly-blog__search-box {
	transform: translateY(0);
}

.baly-blog__search-input-wrap {
	align-items: center;
	border: 2px solid var(--blue);
	border-radius: 12px;
	display: flex;
	gap: 12px;
	padding: 10px 16px;
}

.baly-blog__search-icon {
	color: var(--ink-60);
	display: flex;
}

.baly-blog__search-input {
	border: 0;
	color: var(--ink);
	direction: rtl;
	flex: 1;
	font-family: inherit;
	font-size: 16px;
	outline: 0;
}

.baly-blog__search-close {
	background: transparent;
	border: 0;
	color: var(--ink-60);
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
}

@media (max-width: 900px) {
	.baly-blog__hero {
		padding: 20px 20px 0;
	}

	.baly-blog__section {
		padding: 28px 20px 0;
	}

	.baly-blog__featured-grid,
	.baly-blog__large-grid {
		grid-template-columns: 1fr;
	}

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

	.baly-blog__slider-controls {
		left: 20px;
	}

	.baly-blog__slide-content {
		padding: 28px 24px;
	}

	.baly-blog__slide-title {
		font-size: 20px;
		max-width: 80%;
	}
}

@media (max-width: 600px) {
	.baly-blog__slider {
		aspect-ratio: 16 / 7;
		border-radius: var(--radius-lg);
		max-height: 220px;
		min-height: 0;
	}

	.baly-blog__slide-content {
		padding: 20px;
	}

	.baly-blog__slide-title {
		font-size: 18px;
		max-width: 95%;
	}

	.baly-blog__slide-read-more {
		font-size: 13px;
		margin-top: 12px;
		padding: 8px 16px;
	}

	.baly-blog__slider-nav {
		height: 36px;
		width: 36px;
	}

	.baly-blog__posts-grid {
		grid-template-columns: 1fr;
	}

	.baly-blog__carousel-btn {
		display: none;
	}
}
