/* ==========================================================================
   WEB LIGHT — news portal theme (RTL, Hebrew)
   Palette inspired by mako.co.il
   ========================================================================== */

:root {
	--wl-navy: #0f2744;
	--wl-navy-2: #1a3558;
	--wl-navy-3: #273044;
	--wl-accent: #e8662c;       /* mako-like orange */
	--wl-accent-hover: #cf511c;
	--wl-red: #d6282a;          /* breaking / hot tag */
	--wl-ink: #14181f;
	--wl-ink-2: #3d4553;
	--wl-muted: #6b7280;
	--wl-line: #e5e7eb;
	--wl-bg: #f4f5f7;
	--wl-bg-alt: #ffffff;
	--wl-radius: 10px;
	--wl-shadow: 0 4px 14px rgba(15, 39, 68, 0.08);
	--wl-shadow-lg: 0 10px 30px rgba(15, 39, 68, 0.12);
	--wl-container: 1240px;
	--wl-font: "Heebo", "Assistant", "Arial Hebrew", Arial, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--wl-font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--wl-ink);
	background: var(--wl-bg);
	direction: rtl;
	text-align: right;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wl-ink); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--wl-accent); }
button { font-family: inherit; cursor: pointer; }

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

.wl-skip {
	position: absolute;
	right: -9999px;
	top: 8px;
	background: var(--wl-navy);
	color: #fff;
	padding: 8px 14px;
	border-radius: 6px;
	z-index: 9999;
}
.wl-skip:focus { right: 8px; color: #fff; }

.wl-container {
	max-width: var(--wl-container);
	margin-inline: auto;
	padding-inline: 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.wl-header {
	background: var(--wl-navy);
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.wl-header__top {
	background: var(--wl-navy);
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.wl-header__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
}

.wl-branding { flex: 1; }
.wl-branding img { max-height: 52px; width: auto; }
.wl-branding__text { display: inline-flex; flex-direction: column; line-height: 1.1; color: #fff; }
.wl-branding__text:hover { color: #fff; }
.wl-branding__mark {
	font-weight: 900;
	font-size: 28px;
	letter-spacing: 1px;
	color: #fff;
}
.wl-branding__mark span {
	color: var(--wl-accent);
	margin-inline-start: 6px;
}
.wl-branding__tag {
	font-size: 12px;
	font-weight: 500;
	color: rgba(255,255,255,.75);
	margin-top: 2px;
}

/* Menu */
.wl-nav {
	background: var(--wl-navy-2);
	border-top: 1px solid rgba(255,255,255,.05);
}
.wl-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}
.wl-menu > li { position: relative; }
.wl-menu > li > a {
	display: block;
	padding: 14px 18px;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	border-inline-start: 1px solid rgba(255,255,255,.06);
}
.wl-menu > li:first-child > a { border-inline-start: 0; }
.wl-menu > li > a:hover,
.wl-menu > li.current-menu-item > a,
.wl-menu > li.current_page_item > a {
	background: var(--wl-accent);
	color: #fff;
}

.wl-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 200px;
	background: #fff;
	list-style: none;
	margin: 0;
	padding: 6px 0;
	border-radius: 0 0 var(--wl-radius) var(--wl-radius);
	box-shadow: var(--wl-shadow-lg);
	z-index: 120;
}
.wl-menu > li:hover > .sub-menu,
.wl-menu > li:focus-within > .sub-menu { display: block; }
.wl-menu .sub-menu a {
	display: block;
	padding: 10px 16px;
	color: var(--wl-ink);
	font-weight: 500;
	font-size: 14px;
}
.wl-menu .sub-menu a:hover { background: var(--wl-bg); color: var(--wl-accent); }

/* Mobile menu toggle */
.wl-menu-toggle {
	display: none;
	width: 42px; height: 42px;
	background: transparent;
	border: 0;
	padding: 0;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
}
.wl-menu-toggle span {
	width: 22px; height: 2px; background: #fff; border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}
.wl-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wl-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.wl-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.wl-search-toggle {
	width: 42px; height: 42px;
	background: transparent;
	border: 0;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
}
.wl-search-toggle:hover { background: rgba(255,255,255,.08); }

.wl-search-drawer {
	background: var(--wl-navy-2);
	padding: 14px 0;
	border-top: 1px solid rgba(255,255,255,.08);
}
.wl-search {
	display: flex;
	width: 100%;
	max-width: 640px;
	margin-inline: auto;
	background: #fff;
	border-radius: var(--wl-radius);
	overflow: hidden;
}
.wl-search__field {
	flex: 1;
	border: 0;
	padding: 12px 16px;
	font-size: 16px;
	font-family: inherit;
	direction: rtl;
	outline: none;
}
.wl-search__submit {
	background: var(--wl-accent);
	border: 0;
	color: #fff;
	padding: 0 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.wl-search__submit:hover { background: var(--wl-accent-hover); }

/* ==========================================================================
   Main
   ========================================================================== */
.wl-main { padding-block: 24px 56px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.wl-hero { margin-bottom: 32px; }
.wl-hero__grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 18px;
}
.wl-hero__main {
	position: relative;
	min-height: 460px;
	border-radius: var(--wl-radius);
	background-size: cover;
	background-position: center;
	overflow: hidden;
	box-shadow: var(--wl-shadow);
}
.wl-hero__link {
	position: absolute; inset: 0; z-index: 2;
}
.wl-hero__main-body {
	position: absolute;
	bottom: 0;
	inset-inline: 0;
	padding: 28px;
	color: #fff;
	z-index: 3;
	pointer-events: none;
}
.wl-hero__main-body a { pointer-events: auto; }
.wl-hero__cat {
	display: inline-block;
	background: var(--wl-accent);
	color: #fff;
	padding: 4px 12px;
	font-size: 13px;
	font-weight: 700;
	border-radius: 4px;
	margin-bottom: 12px;
}
.wl-hero__title {
	font-size: clamp(22px, 3vw, 34px);
	line-height: 1.25;
	font-weight: 800;
	margin: 0 0 10px;
}
.wl-hero__title a { color: #fff; }
.wl-hero__title a:hover { color: #fff; text-decoration: underline; }
.wl-hero__lead {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	color: rgba(255,255,255,.92);
	max-width: 72ch;
}

.wl-hero__side { display: flex; flex-direction: column; gap: 14px; }
.wl-hero__item {
	background: #fff;
	border-radius: var(--wl-radius);
	overflow: hidden;
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 12px;
	box-shadow: var(--wl-shadow);
	flex: 1;
}
.wl-hero__item-media { display: block; overflow: hidden; }
.wl-hero__item-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.wl-hero__item:hover .wl-hero__item-media img { transform: scale(1.04); }
.wl-hero__item-body { padding: 12px 12px 12px 0; display: flex; flex-direction: column; justify-content: center; }
.wl-hero__item-cat {
	display: inline-block;
	background: var(--wl-bg);
	color: var(--wl-accent);
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 4px;
	margin-bottom: 6px;
	align-self: flex-start;
}
.wl-hero__item-title { font-size: 16px; line-height: 1.35; margin: 0; font-weight: 700; }

/* ==========================================================================
   Rows / grids / cards
   ========================================================================== */
.wl-row { margin: 32px 0; }
.wl-row__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--wl-navy);
}
.wl-row__title {
	font-size: 22px;
	font-weight: 800;
	margin: 0;
	color: var(--wl-navy);
	position: relative;
	padding-inline-start: 14px;
}
.wl-row__title::before {
	content: "";
	position: absolute;
	right: 0;
	top: 6px;
	bottom: 6px;
	width: 4px;
	background: var(--wl-accent);
	border-radius: 2px;
}
.wl-row__title a { color: inherit; }
.wl-row__more { font-size: 14px; font-weight: 600; color: var(--wl-accent); }
.wl-row__more:hover { color: var(--wl-accent-hover); }

.wl-grid { display: grid; gap: 20px; }
.wl-grid--2 { grid-template-columns: repeat(2, 1fr); }
.wl-grid--3 { grid-template-columns: repeat(3, 1fr); }
.wl-grid--4 { grid-template-columns: repeat(4, 1fr); }

.wl-card {
	background: #fff;
	border-radius: var(--wl-radius);
	overflow: hidden;
	box-shadow: var(--wl-shadow);
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}
.wl-card:hover { transform: translateY(-2px); box-shadow: var(--wl-shadow-lg); }
.wl-card__media { display: block; aspect-ratio: 3/2; overflow: hidden; background: var(--wl-bg); }
.wl-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.wl-card:hover .wl-card__media img { transform: scale(1.05); }
.wl-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wl-card__cat {
	align-self: flex-start;
	font-size: 12px;
	font-weight: 700;
	color: var(--wl-accent);
	text-transform: none;
	letter-spacing: .3px;
}
.wl-card__cat:hover { color: var(--wl-accent-hover); }
.wl-card__title {
	font-size: 17px;
	font-weight: 700;
	margin: 0;
	line-height: 1.35;
	color: var(--wl-ink);
}

/* ==========================================================================
   Archive head
   ========================================================================== */
.wl-archive-head {
	border-bottom: 2px solid var(--wl-line);
	padding-bottom: 14px;
	margin-bottom: 20px;
}
.wl-archive-head__title {
	font-size: 28px;
	font-weight: 800;
	color: var(--wl-navy);
	margin: 0 0 6px;
}
.wl-archive-head__title span { color: var(--wl-accent); }
.wl-archive-head__desc { color: var(--wl-muted); }

/* ==========================================================================
   Layout with sidebar
   ========================================================================== */
.wl-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 32px;
	align-items: start;
}
.wl-layout__content { min-width: 0; }
.wl-layout__side {
	background: #fff;
	border-radius: var(--wl-radius);
	padding: 20px;
	box-shadow: var(--wl-shadow);
	position: sticky;
	top: 140px;
}
.wl-layout__side .widget + .widget { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--wl-line); }
.wl-layout__side .widget-title {
	font-size: 16px;
	margin: 0 0 12px;
	color: var(--wl-navy);
	font-weight: 800;
	padding-inline-start: 10px;
	border-inline-end: 3px solid var(--wl-accent);
}
.wl-layout__side ul { list-style: none; margin: 0; padding: 0; }
.wl-layout__side li + li { margin-top: 8px; }

/* ==========================================================================
   Single
   ========================================================================== */
.wl-single__head {
	background: linear-gradient(180deg, var(--wl-navy) 0%, var(--wl-navy-2) 100%);
	color: #fff;
	padding-block: 40px 36px;
	margin-bottom: 0;
}
.wl-single__head-inner { max-width: 820px; margin-inline: auto; }
.wl-single__cat {
	display: inline-block;
	background: var(--wl-accent);
	color: #fff;
	padding: 4px 12px;
	font-size: 13px;
	font-weight: 700;
	border-radius: 4px;
	margin-bottom: 14px;
}
.wl-single__cat:hover { color: #fff; background: var(--wl-accent-hover); }
.wl-single__title {
	font-size: clamp(26px, 3.6vw, 40px);
	font-weight: 900;
	line-height: 1.2;
	margin: 0 0 16px;
	color: #fff;
}
.wl-single__meta {
	color: rgba(255,255,255,.85);
	font-size: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.wl-single__sep { opacity: .5; }

.wl-single__cover {
	max-width: 1000px;
	margin: -24px auto 28px;
	border-radius: var(--wl-radius);
	overflow: hidden;
	box-shadow: var(--wl-shadow-lg);
	position: relative;
	z-index: 1;
}
.wl-single__cover img { width: 100%; height: auto; display: block; }

.wl-prose {
	font-size: 18px;
	line-height: 1.8;
	color: var(--wl-ink);
}
.wl-prose--narrow { max-width: 760px; margin-inline: auto; }
.wl-prose p { margin: 0 0 18px; }
.wl-prose h2 { font-size: 26px; font-weight: 800; margin: 32px 0 14px; color: var(--wl-navy); }
.wl-prose h3 { font-size: 22px; font-weight: 800; margin: 28px 0 12px; color: var(--wl-navy); }
.wl-prose img { border-radius: var(--wl-radius); margin: 18px 0; }
.wl-prose a { color: var(--wl-accent); text-decoration: underline; }
.wl-prose a:hover { color: var(--wl-accent-hover); }
.wl-prose blockquote {
	border-inline-start: 4px solid var(--wl-accent);
	background: #fff;
	padding: 18px 22px;
	margin: 22px 0;
	border-radius: 6px;
	font-size: 20px;
	font-weight: 500;
	font-style: italic;
	color: var(--wl-navy);
}
.wl-prose ul, .wl-prose ol { padding-inline-start: 22px; margin: 0 0 18px; }
.wl-prose li { margin-bottom: 6px; }
.wl-prose code { background: #fff; padding: 2px 6px; border-radius: 4px; font-size: .92em; border: 1px solid var(--wl-line); }
.wl-prose pre {
	background: #0c1422; color: #f5f7fa;
	padding: 16px; border-radius: var(--wl-radius);
	overflow: auto; direction: ltr; text-align: left;
}
.wl-prose pre code { background: transparent; border: 0; padding: 0; color: inherit; }

.wl-single__tags {
	margin: 28px 0;
	padding: 14px 0;
	border-top: 1px solid var(--wl-line);
	border-bottom: 1px solid var(--wl-line);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 14px;
	color: var(--wl-muted);
}
.wl-single__tags a {
	background: var(--wl-bg);
	padding: 4px 10px;
	border-radius: 20px;
	font-weight: 600;
	color: var(--wl-navy);
}
.wl-single__tags a:hover { background: var(--wl-accent); color: #fff; }

/* Comments */
.wl-comments { margin-top: 36px; }
.wl-comments__title {
	font-size: 20px;
	font-weight: 800;
	color: var(--wl-navy);
	margin: 0 0 18px;
}
.wl-comments__list { list-style: none; padding: 0; margin: 0 0 24px; }
.wl-comments__list .comment { background: #fff; padding: 16px; border-radius: var(--wl-radius); margin-bottom: 12px; box-shadow: var(--wl-shadow); }
.wl-comments__list .children { list-style: none; padding-inline-start: 20px; margin-top: 12px; }

.comment-form { background: #fff; padding: 20px; border-radius: var(--wl-radius); box-shadow: var(--wl-shadow); }
.comment-form p { margin: 0 0 12px; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 14px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--wl-line);
	border-radius: 6px;
	font-family: inherit;
	font-size: 15px;
}
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--wl-accent); border-color: transparent; }
.form-submit input { background: var(--wl-accent); color: #fff; border: 0; padding: 10px 22px; border-radius: 6px; font-weight: 700; font-size: 15px; cursor: pointer; }
.form-submit input:hover { background: var(--wl-accent-hover); }

/* ==========================================================================
   Pagination / buttons / misc
   ========================================================================== */
.wl-pagination { margin: 32px 0 8px; }
.wl-pagination ul {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	gap: 6px;
	justify-content: center;
	flex-wrap: wrap;
}
.wl-pagination a,
.wl-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	background: #fff;
	border-radius: 6px;
	font-weight: 700;
	font-size: 14px;
	color: var(--wl-navy);
	box-shadow: var(--wl-shadow);
}
.wl-pagination a:hover,
.wl-pagination .current { background: var(--wl-accent); color: #fff; }

.wl-btn {
	display: inline-block;
	background: var(--wl-accent);
	color: #fff;
	padding: 10px 22px;
	border-radius: 6px;
	font-weight: 700;
	border: 0;
}
.wl-btn:hover { background: var(--wl-accent-hover); color: #fff; }

.wl-empty {
	background: #fff;
	border-radius: var(--wl-radius);
	padding: 40px;
	text-align: center;
	color: var(--wl-muted);
	box-shadow: var(--wl-shadow);
}

.wl-404 {
	background: #fff;
	border-radius: var(--wl-radius);
	padding: 60px 40px;
	text-align: center;
	box-shadow: var(--wl-shadow);
	margin: 40px 0;
}
.wl-404__title { font-size: 96px; color: var(--wl-accent); margin: 0; font-weight: 900; line-height: 1; }
.wl-404__lead { font-size: 22px; font-weight: 700; color: var(--wl-navy); margin: 10px 0 4px; }
.wl-404__text { color: var(--wl-muted); margin: 0 0 20px; }
.wl-404 .wl-search { max-width: 420px; margin-inline: auto; border: 1px solid var(--wl-line); }

/* ==========================================================================
   Footer
   ========================================================================== */
.wl-footer {
	background: var(--wl-navy);
	color: rgba(255,255,255,.85);
	padding: 48px 0 24px;
	margin-top: 40px;
}
.wl-footer a { color: rgba(255,255,255,.85); }
.wl-footer a:hover { color: var(--wl-accent); }
.wl-footer__widgets {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	margin-bottom: 32px;
}
.wl-footer__col .widget-title {
	font-size: 14px;
	font-weight: 800;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: .6px;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--wl-accent);
	display: inline-block;
}
.wl-footer__col ul { list-style: none; margin: 0; padding: 0; }
.wl-footer__col li + li { margin-top: 6px; }

.wl-footer__nav { margin-bottom: 24px; }
.wl-footer__menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	justify-content: center;
	font-size: 14px;
}
.wl-footer__bottom {
	border-top: 1px solid rgba(255,255,255,.12);
	padding-top: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}
.wl-footer__brand .wl-branding__mark { font-size: 22px; }
.wl-footer__copy { margin: 0; font-size: 13px; color: rgba(255,255,255,.6); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.wl-hero__grid { grid-template-columns: 1fr; }
	.wl-hero__main { min-height: 360px; }
	.wl-grid--4 { grid-template-columns: repeat(3, 1fr); }
	.wl-footer__widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.wl-menu-toggle { display: inline-flex; }
	.wl-menu {
		display: none;
		flex-direction: column;
		background: var(--wl-navy-2);
	}
	.wl-menu.is-open { display: flex; }
	.wl-menu > li > a { border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.06); }
	.wl-menu .sub-menu { position: static; box-shadow: none; border-radius: 0; background: var(--wl-navy-3); }
	.wl-menu .sub-menu a { color: rgba(255,255,255,.9); }
	.wl-menu .sub-menu a:hover { background: var(--wl-navy); color: var(--wl-accent); }

	.wl-grid--3, .wl-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.wl-layout { grid-template-columns: 1fr; }
	.wl-layout__side { position: static; }

	.wl-hero__item { grid-template-columns: 110px 1fr; }
	.wl-hero__main { min-height: 280px; }
	.wl-hero__main-body { padding: 18px; }

	.wl-single__head { padding-block: 28px 28px; }
	.wl-single__cover { margin: -14px 14px 22px; border-radius: 8px; }
	.wl-prose { font-size: 17px; }

	.wl-footer__widgets { grid-template-columns: 1fr; gap: 24px; }
	.wl-footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
	.wl-grid--3, .wl-grid--4, .wl-grid--2 { grid-template-columns: 1fr; }
	.wl-branding__mark { font-size: 22px; }
	.wl-branding__tag { display: none; }
	.wl-row__head { flex-direction: column; align-items: flex-start; gap: 4px; }
}
