/* ==========================================================================
   E-huquq theme
   ========================================================================== */

:root {
	--ehq-navy: #102f7c;
	--ehq-navy-dark: #0b2160;
	--ehq-blue: #0a3c9f;        /* ticker bar */
	--ehq-accent: #1662ee;      /* category badges, links */
	--ehq-red: #e3141f;
	--ehq-text: #22365f;
	--ehq-muted: #5d6b88;
	--ehq-soft: #eef1f6;
	--ehq-border: #e2e7f0;
	--ehq-white: #fff;
	--ehq-radius: 8px;
	--ehq-shadow: 0 2px 10px rgba(16, 47, 124, .07);
	--ehq-font: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--ehq-container: 1480px;
	--ehq-gutter: 24px;

	/* Image ratios — change here to crop images differently */
	--ehq-card-ratio: 40 / 11;
	--ehq-card-ratio-mobile: 17 / 10;
	--ehq-compact-ratio: 3 / 1;
	--ehq-article-ratio: 16 / 7;
	--ehq-thumb-ratio: 146 / 78;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--ehq-font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--ehq-text);
	background: var(--ehq-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.ehq-lock { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--ehq-accent); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}
.ehq-skip:focus {
	clip: auto; clip-path: none;
	width: auto; height: auto;
	top: 8px; left: 8px; z-index: 10000;
	padding: 10px 16px;
	background: var(--ehq-white);
	color: var(--ehq-navy);
	border-radius: 6px;
	box-shadow: var(--ehq-shadow);
}

.ehq-container {
	width: 100%;
	max-width: var(--ehq-container);
	margin: 0 auto;
	padding: 0 var(--ehq-gutter);
}

.ehq-icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: middle; }

.ehq-divider { display: inline-block; width: 1px; height: 22px; background: #c3cbdb; flex: none; }
.ehq-divider--red { background: var(--ehq-red); }

.ehq-only-mobile { display: none !important; }

/* ---------- Ticker ---------- */

.ehq-ticker { background: var(--ehq-blue); color: #fff; font-size: 14.5px; }
.ehq-ticker__inner { display: flex; align-items: center; gap: 14px; height: 52px; }
.ehq-ticker__label {
	display: flex; align-items: center; gap: 10px;
	font-weight: 600; text-transform: uppercase; letter-spacing: .01em;
	white-space: nowrap;
}
.ehq-ticker__label .ehq-icon { width: 24px; height: 24px; color: var(--ehq-red); }
.ehq-ticker__label::after { content: ""; width: 1px; height: 18px; margin-left: 4px; background: rgba(255, 255, 255, .6); }
.ehq-ticker__viewport {
	flex: 1; min-width: 0; overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}
.ehq-ticker__track { display: flex; width: max-content; will-change: transform; }
.ehq-ticker__item { position: relative; padding: 0 18px; white-space: nowrap; color: #fff; }
.ehq-ticker__item::after { content: "|"; position: absolute; right: -2px; opacity: .7; }
.ehq-ticker__item:hover { text-decoration: underline; }
.ehq-ticker__nav { display: flex; gap: 14px; margin-left: 8px; }
.ehq-ticker__nav button { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; border-radius: 50%; }
.ehq-ticker__nav button:hover { background: rgba(255, 255, 255, .14); }
.ehq-ticker__nav .ehq-icon { width: 24px; height: 24px; }

/* ---------- Top bar ---------- */

.ehq-topbar { background: var(--ehq-soft); }
.ehq-topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 46px; }
.ehq-topbar__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.ehq-toplinks { display: flex; align-items: center; font-size: 14px; color: var(--ehq-navy); }
.ehq-toplinks li { display: flex; align-items: center; }
.ehq-toplinks li + li::before { content: ""; width: 1px; height: 14px; background: #9aa6bf; margin: 0 18px; }
.ehq-toplinks a:hover { color: var(--ehq-accent); }

/* Social icons */
.ehq-socials { display: flex; align-items: center; gap: 10px; }
.ehq-social {
	display: grid; place-items: center;
	width: 32px; height: 32px;
	color: #fff; border-radius: 50%;
	transition: transform .15s ease, opacity .15s ease;
}
.ehq-social:hover { transform: translateY(-1px); opacity: .9; }
.ehq-social .ehq-icon { width: 62%; height: 62%; }
.ehq-social--facebook { background: #1877f2; }
.ehq-social--facebook .ehq-icon { width: 78%; height: 78%; transform: translate(1px, 2px); }
.ehq-social--telegram { background: #29a3df; }
.ehq-social--telegram .ehq-icon { transform: translateX(-1px); }
.ehq-social--instagram { border-radius: 9px; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ehq-social--youtube { border-radius: 9px; background: #e8191f; width: 36px; height: 28px; }
.ehq-social--youtube .ehq-icon { width: 80%; height: 80%; }

/* Icon buttons */
.ehq-icon-btn { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ehq-navy); border-radius: 8px; }
.ehq-icon-btn .ehq-icon { width: 26px; height: 26px; }
.ehq-icon-btn--plain:hover { color: var(--ehq-accent); }
.ehq-icon-btn--round { border: 1px solid var(--ehq-border); border-radius: 50%; background: #fff; box-shadow: var(--ehq-shadow); }
.ehq-icon-btn--menu { background: transparent; }
.ehq-icon-btn--menu .ehq-icon { width: 22px; height: 22px; }
.ehq-icon-btn--menu[aria-expanded="true"] { background: #dbe7fb; }

/* ---------- Main bar / desktop nav ---------- */

.ehq-mainbar { background: #fff; border-bottom: 1px solid var(--ehq-border); }
.ehq-mainbar__inner { display: flex; align-items: center; gap: 56px; min-height: 80px; }

.ehq-logo { margin: 0; line-height: 1; flex: none; white-space: nowrap; }
.ehq-logo__text { margin: 0; font-size: inherit; line-height: 1; }
.ehq-logo__text a, .ehq-logo a { color: var(--ehq-navy); font-weight: 700; letter-spacing: -.02em; }
.ehq-logo--main { font-size: 52px; }
.ehq-logo img { max-height: 64px; width: auto; }

.ehq-nav { flex: 1; min-width: 0; }
.ehq-nav__menu { display: flex; align-items: center; gap: 40px; }
.ehq-nav__menu > li { position: relative; }
.ehq-nav__menu > li > a {
	position: relative;
	display: flex; align-items: center; gap: 8px;
	padding: 28px 0;
	font-size: 17px; font-weight: 500; color: var(--ehq-navy);
	white-space: nowrap;
}
.ehq-nav__menu > li > a::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: 14px;
	height: 4px; border-radius: 2px;
	background: var(--ehq-red);
	transform: scaleX(0); transition: transform .2s ease;
}
.ehq-nav__menu > li > a:hover::after,
.ehq-nav__menu > .current-menu-item > a::after,
.ehq-nav__menu > .current-menu-ancestor > a::after,
.ehq-nav__menu > .current-post-ancestor > a::after,
.ehq-nav__menu > .current-category-ancestor > a::after { transform: scaleX(1); }
.ehq-nav__menu > li:not(.current-menu-item):not(.current-menu-ancestor):not(.current-post-ancestor) > a:hover::after { background: #c9d4ea; }
.ehq-menu-caret { width: 18px; height: 18px; transition: transform .2s ease; }

/* Dropdown */
.ehq-nav .sub-menu {
	position: absolute; top: calc(100% - 10px); left: -20px; z-index: 50;
	min-width: 240px; padding: 10px 8px;
	background: #fff; border: 1px solid var(--ehq-border); border-radius: 10px;
	box-shadow: 0 12px 30px rgba(16, 47, 124, .14);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s .18s;
}
.ehq-nav .sub-menu::before {
	content: ""; position: absolute; top: -7px; left: 40px;
	width: 12px; height: 12px; background: #fff;
	border-left: 1px solid var(--ehq-border); border-top: 1px solid var(--ehq-border);
	transform: rotate(45deg);
}
.ehq-nav li:hover > .sub-menu,
.ehq-nav li:focus-within > .sub-menu,
.ehq-nav li.is-open > .sub-menu {
	opacity: 1; visibility: visible; transform: none;
	transition: opacity .18s ease, transform .18s ease;
}
.ehq-nav li:hover > a .ehq-menu-caret,
.ehq-nav li.is-open > a .ehq-menu-caret { transform: rotate(180deg); }
.ehq-nav .sub-menu a {
	display: flex; align-items: center; gap: 14px;
	padding: 8px 12px; border-radius: 6px;
	font-size: 15px; color: var(--ehq-navy); white-space: nowrap;
}
.ehq-nav .sub-menu a:hover, .ehq-nav .sub-menu .current-menu-item > a { background: var(--ehq-soft); color: var(--ehq-accent); }
.ehq-nav .sub-menu .ehq-menu-icon { width: 22px; height: 22px; }

/* ---------- Mobile header ---------- */

.ehq-mobilebar { display: none; background: #fff; }

/* ---------- Mobile drawer ---------- */

.ehq-drawer { position: fixed; inset: 0; top: var(--ehq-drawer-top, 0); z-index: 900; visibility: hidden; transition: visibility 0s .3s; }
.ehq-drawer.is-open { visibility: visible; transition: none; }
.ehq-drawer__overlay { position: absolute; inset: 0; background: rgba(40, 48, 66, .5); opacity: 0; transition: opacity .3s ease; }
.ehq-drawer.is-open .ehq-drawer__overlay { opacity: 1; }
.ehq-drawer__panel {
	position: absolute; top: 0; bottom: 0; left: 0;
	width: min(88vw, 520px);
	padding: 24px 22px 40px;
	overflow-y: auto; overscroll-behavior: contain;
	background: #fff;
	border-top-right-radius: 14px;
	box-shadow: 10px 0 30px rgba(0, 0, 0, .15);
	transform: translateX(-102%); transition: transform .3s ease;
}
.ehq-drawer.is-open .ehq-drawer__panel { transform: none; }
.ehq-drawer__close { display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; color: #6b7690; }
.ehq-drawer__close .ehq-icon { width: 28px; height: 28px; }
.ehq-drawer__menu li a {
	display: flex; align-items: center; gap: 22px;
	padding: 16px 6px;
	font-size: 20px; color: var(--ehq-navy);
	border-bottom: 1px solid var(--ehq-border);
}
.ehq-drawer__menu li:last-child a { border-bottom: 0; }
.ehq-drawer__menu a:hover, .ehq-drawer__menu .current-menu-item > a { color: var(--ehq-accent); }
.ehq-drawer__menu .ehq-menu-icon { width: 32px; height: 32px; color: var(--ehq-navy); }

/* ---------- Search overlay ---------- */

.ehq-search { position: fixed; inset: 0; z-index: 1000; visibility: hidden; transition: visibility 0s .25s; }
.ehq-search.is-open { visibility: visible; transition: none; }
.ehq-search__overlay { position: absolute; inset: 0; background: rgba(11, 33, 96, .55); opacity: 0; transition: opacity .25s ease; }
.ehq-search.is-open .ehq-search__overlay { opacity: 1; }
.ehq-search__panel {
	position: relative; padding: 36px 0;
	background: #fff; box-shadow: var(--ehq-shadow);
	transform: translateY(-100%); transition: transform .25s ease;
}
.ehq-search.is-open .ehq-search__panel { transform: none; }
.ehq-search__panel .ehq-container { display: flex; align-items: center; gap: 16px; }
.ehq-search__panel .ehq-searchform { flex: 1; }
.ehq-search__close { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ehq-navy); }
.ehq-search__close .ehq-icon { width: 28px; height: 28px; }

.ehq-searchform { display: flex; align-items: center; gap: 8px; max-width: 760px; margin: 0 auto; border: 2px solid var(--ehq-border); border-radius: 10px; padding: 4px 4px 4px 16px; background: #fff; }
.ehq-searchform:focus-within { border-color: var(--ehq-accent); }
.ehq-searchform__input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 18px; color: var(--ehq-navy); background: transparent; padding: 10px 0; }
.ehq-searchform__btn { display: grid; place-items: center; width: 48px; height: 44px; border-radius: 8px; background: var(--ehq-accent); color: #fff; }
.ehq-searchform__btn .ehq-icon { width: 22px; height: 22px; }

/* ---------- Badges / dates / headings ---------- */

.ehq-badge {
	display: inline-block;
	padding: 4px 11px;
	font-size: 15px; font-weight: 500; line-height: 1.4;
	color: #fff; background: var(--ehq-accent);
	border-radius: 5px;
}
.ehq-badge:hover { background: var(--ehq-navy); }

.ehq-date { display: inline-flex; align-items: center; gap: 10px; color: var(--ehq-red); font-size: 16px; }
.ehq-date .ehq-icon { width: 22px; height: 22px; }

.ehq-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 14px; }
.ehq-section-title { display: flex; align-items: center; gap: 14px; font-size: 34px; font-weight: 600; color: var(--ehq-red); }
.ehq-section-title::before { content: ""; width: 6px; height: 1.05em; border-radius: 2px; background: var(--ehq-red); flex: none; }
.ehq-section-head--blue .ehq-section-title { color: var(--ehq-navy); font-size: 26px; }
.ehq-section-head--blue .ehq-section-title::before { background: var(--ehq-accent); width: 5px; }
.ehq-section-more { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; color: var(--ehq-accent); white-space: nowrap; }
.ehq-section-more .ehq-icon { width: 22px; height: 22px; color: var(--ehq-red); transition: transform .2s ease; }
.ehq-section-more:hover .ehq-icon { transform: translateX(3px); }

/* ---------- Hero slider ---------- */

.ehq-hero-wrap { max-width: 1536px; margin: 0 auto; padding: 0 6px; }
.ehq-hero {
	position: relative;
	height: clamp(320px, 30vw, 470px);
	overflow: hidden;
	border-radius: 10px;
	background: var(--ehq-navy-dark);
	color: #fff;
}
.ehq-hero__slide {
	position: absolute; inset: 0;
	opacity: 0; visibility: hidden;
	transition: opacity .7s ease, visibility 0s .7s;
}
.ehq-hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.ehq-hero__media, .ehq-hero__media img, .ehq-hero__media .ehq-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ehq-hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(9, 38, 112, .96) 0%, rgba(12, 48, 135, .82) 35%, rgba(12, 48, 135, .25) 62%, rgba(12, 48, 135, 0) 80%);
}
.ehq-hero__content {
	position: relative; z-index: 2;
	display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px;
	height: 100%; max-width: 760px;
	padding: 40px 40px 56px 120px;
}
.ehq-hero__title { font-size: clamp(28px, 3vw, 46px); font-weight: 600; line-height: 1.12; }
.ehq-hero__title a { color: #fff; }
.ehq-hero__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.ehq-hero__more {
	display: inline-flex; align-items: center; gap: 10px;
	padding-left: 12px; border-left: 3px solid var(--ehq-red);
	font-size: 17px; color: #fff; text-decoration: underline; text-underline-offset: 4px;
}
.ehq-hero__more .ehq-icon { width: 22px; height: 22px; color: var(--ehq-red); }
.ehq-hero__arrow {
	position: absolute; top: 50%; z-index: 3;
	display: grid; place-items: center;
	width: 48px; height: 48px; margin-top: -24px;
	border-radius: 50%; color: #fff;
	background: rgba(120, 130, 150, .55);
	backdrop-filter: blur(4px);
	transition: background .2s ease;
}
.ehq-hero__arrow:hover { background: rgba(120, 130, 150, .85); }
.ehq-hero__arrow .ehq-icon { width: 26px; height: 26px; }
.ehq-hero__arrow--prev { left: 20px; }
.ehq-hero__arrow--next { right: 20px; }
.ehq-hero__dots { position: absolute; z-index: 3; left: 47%; bottom: 18px; display: flex; gap: 10px; }
.ehq-hero__dot { width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.ehq-hero__dot.is-active { background: var(--ehq-red); transform: scale(1.1); }

/* ---------- Grid & cards ---------- */

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

.ehq-card {
	position: relative;
	display: flex; flex-direction: column;
	background: #fff;
	border: 1px solid var(--ehq-border);
	border-radius: 6px;
	box-shadow: var(--ehq-shadow);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
.ehq-card:hover { box-shadow: 0 8px 24px rgba(16, 47, 124, .12); transform: translateY(-2px); }
.ehq-card__media { position: relative; aspect-ratio: var(--ehq-card-ratio); overflow: hidden; background: var(--ehq-soft); }
.ehq-card__media img, .ehq-card__media .ehq-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ehq-card:hover .ehq-card__media img { transform: scale(1.04); }
.ehq-card__media .ehq-badge { position: absolute; left: 16px; bottom: 6px; z-index: 2; }
.ehq-card__body { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 12px 22px 16px; }
.ehq-card__title { font-size: 19px; font-weight: 500; line-height: 1.35; color: var(--ehq-navy); }
.ehq-card__title a:hover { color: var(--ehq-accent); }
.ehq-card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.ehq-card__arrow { color: var(--ehq-red); display: grid; }
.ehq-card__arrow .ehq-icon { width: 24px; height: 24px; transition: transform .2s ease; }
.ehq-card:hover .ehq-card__arrow .ehq-icon { transform: translateX(3px); }

/* Whole card / list item clickable */
.ehq-stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Compact card (related news) */
.ehq-card--compact .ehq-card__media { aspect-ratio: var(--ehq-compact-ratio); }
.ehq-card--compact .ehq-card__body { gap: 6px; padding: 8px 12px 10px; }
.ehq-card--compact .ehq-card__title { font-size: 15px; line-height: 1.3; }
.ehq-card--compact .ehq-date { font-size: 14px; gap: 8px; }
.ehq-card--compact .ehq-date .ehq-icon { width: 18px; height: 18px; }

/* Image placeholder */
.ehq-placeholder {
	display: grid; place-items: center;
	background: linear-gradient(135deg, #0b2b78, #1662ee);
	color: rgba(255, 255, 255, .85);
	font-weight: 700; font-size: 22px; letter-spacing: -.01em;
}

/* ---------- Home ---------- */

.ehq-home { padding-top: 0; }
.ehq-news--home { padding-bottom: 40px; }

/* ---------- Archive ---------- */

.ehq-archive { padding: 18px var(--ehq-gutter) 48px; }
.ehq-archive__desc { margin: -4px 0 18px; color: var(--ehq-muted); }
.ehq-empty { padding: 40px 0; text-align: center; }

.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.page-numbers {
	display: grid; place-items: center;
	min-width: 42px; height: 42px; padding: 0 10px;
	border: 1px solid var(--ehq-border); border-radius: 8px;
	font-weight: 500; color: var(--ehq-navy); background: #fff;
}
.page-numbers .ehq-icon { width: 20px; height: 20px; }
.page-numbers:hover { border-color: var(--ehq-accent); color: var(--ehq-accent); }
.page-numbers.current { background: var(--ehq-accent); border-color: var(--ehq-accent); color: #fff; }
.page-numbers.dots { border: 0; background: none; }

/* ---------- Breadcrumb ---------- */

.ehq-breadcrumb { margin: 0 0 12px; font-size: 15px; color: var(--ehq-accent); }
.ehq-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ehq-breadcrumb li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ehq-breadcrumb a:hover { text-decoration: underline; }
.ehq-breadcrumb .is-current span { color: var(--ehq-muted); }
.ehq-breadcrumb__sep { width: 16px; height: 16px; color: var(--ehq-muted); }
.ehq-is-article .ehq-breadcrumb .is-current,
.ehq-is-article .ehq-breadcrumb li:nth-last-child(2) .ehq-breadcrumb__sep { display: none; }

/* ---------- Single article ---------- */

.ehq-single {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 430px;
	gap: 28px;
	align-items: start;
	padding-top: 22px;
	padding-bottom: 48px;
}
.ehq-article__title { font-size: clamp(26px, 2.7vw, 40px); font-weight: 600; line-height: 1.2; color: var(--ehq-navy); }
.ehq-article__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 16px; }
.ehq-article__tools { display: flex; align-items: center; gap: 18px; }

.ehq-fontsize { display: flex; border: 1px solid var(--ehq-border); border-radius: 6px; overflow: hidden; }
.ehq-fontsize__btn { width: 30px; height: 30px; font-weight: 600; color: var(--ehq-accent); background: #fff; }
.ehq-fontsize__btn--down { font-size: 15px; }
.ehq-fontsize__btn--up { font-size: 18px; border-left: 1px solid var(--ehq-border); }
.ehq-fontsize__btn:hover { background: var(--ehq-soft); }

.ehq-share { display: flex; flex-wrap: wrap; gap: 8px; }
.ehq-share__btn { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; border-radius: 50%; transition: transform .15s ease, opacity .15s ease; }
.ehq-share__btn:hover { transform: translateY(-1px); opacity: .9; }
.ehq-share__btn .ehq-icon { width: 60%; height: 60%; }
.ehq-share__btn--facebook { background: #1877f2; }
.ehq-share__btn--facebook .ehq-icon { width: 75%; height: 75%; transform: translate(1px, 2px); }
.ehq-share__btn--x { background: #1da1f2; }
.ehq-share__btn--telegram { background: #29a3df; }
.ehq-share__btn--whatsapp { background: #25d366; }
.ehq-share__btn--linkedin { background: #0a66c2; }
.ehq-share__btn--copy { background: #b9c2d6; }
.ehq-share__btn--copy.is-copied { background: #25d366; }
.ehq-share--square .ehq-share__btn { width: 48px; height: 48px; border-radius: 6px; }
.ehq-share--square .ehq-share__btn--x { background: #000; }
.ehq-share--square .ehq-share__btn--copy { background: #8d9ab5; }

.ehq-article__image { margin: 0 0 14px; }
.ehq-article__image img { width: 100%; aspect-ratio: var(--ehq-article-ratio); object-fit: cover; border-radius: var(--ehq-radius); }
.ehq-article__image figcaption { margin-top: 6px; font-size: 14px; color: var(--ehq-muted); }

.ehq-article__lead { margin: 0 0 12px; font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--ehq-navy); }

.ehq-content { --ehq-content-size: 17px; font-size: var(--ehq-content-size); line-height: 1.6; color: var(--ehq-text); overflow-wrap: break-word; }
.ehq-content > * { margin-top: 0; margin-bottom: .75em; }
.ehq-content h2, .ehq-content h3, .ehq-content h4 { margin-top: 1.2em; color: var(--ehq-navy); font-weight: 600; }
.ehq-content h2 { font-size: 1.45em; }
.ehq-content h3 { font-size: 1.25em; }
.ehq-content a { color: var(--ehq-accent); text-decoration: underline; text-underline-offset: 2px; }
.ehq-content ul, .ehq-content ol { padding-left: 1.4em; }
.ehq-content ul { list-style: disc; }
.ehq-content ol { list-style: decimal; }
.ehq-content li { margin-bottom: .3em; }
.ehq-content blockquote { margin-left: 0; padding: 12px 20px; border-left: 4px solid var(--ehq-accent); background: var(--ehq-soft); border-radius: 0 8px 8px 0; color: var(--ehq-navy); }
.ehq-content img { border-radius: 6px; }
.ehq-content figure { margin-left: 0; margin-right: 0; }
.ehq-content table { width: 100%; border-collapse: collapse; }
.ehq-content th, .ehq-content td { padding: 8px 10px; border: 1px solid var(--ehq-border); text-align: left; }
.ehq-content iframe { max-width: 100%; }

.ehq-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--ehq-border); }
.ehq-tags a { padding: 4px 12px; border-radius: 20px; background: var(--ehq-soft); font-size: 14px; color: var(--ehq-navy); }
.ehq-tags a:hover { background: var(--ehq-accent); color: #fff; }

.ehq-related { margin-top: 18px; padding-top: 4px; border-top: 1px solid var(--ehq-border); }
.ehq-related .ehq-section-head { margin: 12px 0 12px; }
.ehq-related .ehq-grid { gap: 12px; }

/* Sidebar list */
.ehq-sidebar { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 20px; }
.ehq-list-box { background: #fff; border: 1px solid var(--ehq-border); border-radius: var(--ehq-radius); box-shadow: var(--ehq-shadow); overflow: hidden; }
.ehq-list-box__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: #f4f6fa; }
.ehq-list-box__title { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 600; color: var(--ehq-navy); }
.ehq-list-box__title::before { content: ""; width: 5px; height: 1.05em; border-radius: 2px; background: var(--ehq-accent); }
.ehq-list-box__title--mobile, .ehq-list-box__more { display: none; }
.ehq-list { padding: 4px 16px 8px; }
.ehq-list__item { position: relative; display: grid; grid-template-columns: 146px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--ehq-border); }
.ehq-list__item:last-child { border-bottom: 0; }
.ehq-list__thumb { aspect-ratio: var(--ehq-thumb-ratio); overflow: hidden; border-radius: 4px; background: var(--ehq-soft); }
.ehq-list__thumb img, .ehq-list__thumb .ehq-placeholder { width: 100%; height: 100%; object-fit: cover; font-size: 13px; }
.ehq-list__body { display: flex; flex-direction: column; gap: 6px; }
.ehq-list__title { font-size: 15.5px; font-weight: 500; line-height: 1.3; color: var(--ehq-accent); }
.ehq-list__item:hover .ehq-list__title { color: var(--ehq-navy); }
.ehq-list .ehq-date { font-size: 15px; gap: 8px; }
.ehq-list .ehq-date .ehq-icon { width: 19px; height: 19px; }


/* ---------- Pages ---------- */

.ehq-page { max-width: 960px; padding-top: 22px; padding-bottom: 56px; }
.ehq-page .ehq-section-head { margin-top: 4px; }

.ehq-404 { padding: 64px var(--ehq-gutter) 24px; text-align: center; }
.ehq-404__code { margin: 0; font-size: 120px; font-weight: 700; line-height: 1; color: var(--ehq-accent); }
.ehq-404__title { margin: 8px 0; font-size: 32px; color: var(--ehq-navy); }
.ehq-404 .ehq-searchform { margin: 24px auto; }
.ehq-btn { display: inline-block; padding: 12px 24px; border-radius: 8px; background: var(--ehq-accent); color: #fff; font-weight: 500; }
.ehq-btn:hover { background: var(--ehq-navy); }

/* Elementor pages: content is full width, Elementor controls spacing */
.ehq-is-elementor .ehq-main { overflow-x: clip; }

/* ---------- Footer ---------- */

.ehq-footer { margin-top: 32px; color: #c3cee8; font-size: 15px; }
.ehq-footer a { transition: color .15s ease; }

/* Blue "follow us" strip — same blue as the ticker */
.ehq-footer__cta { background: var(--ehq-blue); color: #fff; }
.ehq-footer__cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.ehq-footer__cta-text { display: flex; align-items: center; gap: 14px; }
.ehq-footer__cta-text > .ehq-icon { width: 34px; height: 34px; color: var(--ehq-red); }
.ehq-footer__cta-text strong { display: block; font-size: 19px; font-weight: 600; line-height: 1.3; }
.ehq-footer__cta-text span { display: block; font-size: 14px; color: rgba(255, 255, 255, .75); }
.ehq-follow { display: flex; flex-wrap: wrap; gap: 10px; }
.ehq-follow__btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 5px 18px 5px 5px;
	border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	font-size: 15px; font-weight: 500; color: #fff;
}
.ehq-follow__btn:hover { background: #fff; color: var(--ehq-navy); }
.ehq-follow__btn .ehq-social { width: 32px; height: 32px; }
.ehq-follow__btn .ehq-social--youtube { width: 32px; height: 32px; border-radius: 50%; }

/* Main area */
.ehq-footer__main { position: relative; padding: 52px 0 40px; background: var(--ehq-navy-dark); }
.ehq-footer__grid { display: grid; grid-template-columns: 1.25fr 1.35fr 1.4fr .8fr; gap: 44px; }

.ehq-footer .ehq-logo a { color: #fff; }
.ehq-logo--footer { font-size: 40px; margin-bottom: 16px; }
.ehq-logo--footer img { filter: brightness(0) invert(1); }
.ehq-footer__about { max-width: 360px; margin: 0 0 20px; line-height: 1.65; }

.ehq-footer__contacts li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; line-height: 1.45; }
.ehq-footer__contacts .ehq-icon { width: 20px; height: 20px; margin-top: 1px; color: var(--ehq-red); }
.ehq-footer__contacts a:hover { color: #fff; }

.ehq-footer__title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 20px; font-weight: 600; color: #fff; }
.ehq-footer__title::before { content: ""; width: 5px; height: 1.1em; border-radius: 2px; background: var(--ehq-red); }

.ehq-footer__cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.ehq-footer__cats a { display: flex; align-items: center; gap: 10px; padding: 6px 0; line-height: 1.3; }
.ehq-footer__cats .ehq-icon { width: 19px; height: 19px; color: #7f9be0; transition: color .15s ease; }
.ehq-footer__cats a:hover { color: #fff; }
.ehq-footer__cats a:hover .ehq-icon { color: var(--ehq-red); }

.ehq-footer__news-item { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ehq-footer__news-item:first-child { padding-top: 0; }
.ehq-footer__news-item:last-child { border-bottom: 0; }
.ehq-footer__news-thumb { aspect-ratio: 92 / 62; overflow: hidden; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.ehq-footer__news-thumb img, .ehq-footer__news-thumb .ehq-placeholder { width: 100%; height: 100%; object-fit: cover; font-size: 10px; }
.ehq-footer__news-title { margin-bottom: 6px; font-size: 14.5px; font-weight: 500; line-height: 1.35; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ehq-footer__news-item:hover .ehq-footer__news-title { color: #9fb8ff; }
.ehq-footer .ehq-date { font-size: 13px; gap: 6px; color: #ff6b73; }
.ehq-footer .ehq-date .ehq-icon { width: 15px; height: 15px; }

.ehq-footer__menu li { margin-bottom: 4px; }
.ehq-footer__menu a { position: relative; display: inline-block; padding: 6px 0 6px 16px; }
.ehq-footer__menu a::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ehq-red); }
.ehq-footer__menu a:hover { color: #fff; }

/* Bottom bar */
.ehq-footer__bottom { background: #071a4f; border-top: 3px solid var(--ehq-red); font-size: 14px; color: #93a3c8; }
.ehq-footer__bottom-inner { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
.ehq-footer__bottom p { margin: 0; }
.ehq-footer__note { margin-left: auto !important; }
.ehq-totop {
	display: grid; place-items: center;
	width: 42px; height: 42px; flex: none;
	border-radius: 50%; background: var(--ehq-red); color: #fff;
	box-shadow: 0 6px 16px rgba(227, 20, 31, .35);
	transition: transform .2s ease, background .2s ease;
}
.ehq-totop:hover { transform: translateY(-3px); background: #c50f19; }
.ehq-totop .ehq-icon { width: 22px; height: 22px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1400px) {
	.ehq-nav__menu { gap: 28px; }
	.ehq-mainbar__inner { gap: 40px; }
	.ehq-logo--main { font-size: 44px; }
	.ehq-single { grid-template-columns: minmax(0, 1fr) 380px; }
}

@media (max-width: 1240px) {
	.ehq-nav__menu { gap: 22px; }
	.ehq-nav__menu > li > a { font-size: 15.5px; }
	.ehq-logo--main { font-size: 38px; }
	.ehq-hero__content { padding-left: 90px; }
}

/* Tablet & mobile: switch to the mobile header */
@media (max-width: 1100px) {
	.ehq-topbar, .ehq-mainbar { display: none; }

	.ehq-mobilebar { display: block; border-bottom: 1px solid var(--ehq-border); }
	.ehq-mobilebar .ehq-logo--mobile {
		display: flex; justify-content: center;
		margin: 0 var(--ehq-gutter); padding: 14px 0 12px;
		font-size: 42px;
		border-bottom: 1px solid #c9d3e6;
	}
	.ehq-mobilebar__row {
		display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
		gap: 12px;
		padding: 12px var(--ehq-gutter);
	}
	.ehq-mobilebar__tools { display: flex; align-items: center; gap: 10px; }
	.ehq-mobilebar .ehq-socials { gap: 8px; }
	.ehq-mobilebar .ehq-social { width: 36px; height: 36px; }
	.ehq-mobilebar .ehq-social--youtube { width: 36px; height: 36px; border-radius: 50%; }

	/* Compact (article) variant: tools | logo | socials on one line */
	.ehq-mobilebar--compact .ehq-mobilebar__row { flex-wrap: nowrap; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
	.ehq-mobilebar--compact .ehq-logo--mobile { margin: 0; padding: 0; border: 0; font-size: 34px; flex: 1; }
	.ehq-mobilebar--compact .ehq-mobilebar__tools { gap: 6px; }

	.ehq-single { grid-template-columns: minmax(0, 1fr); }
	.ehq-sidebar { position: static; }
	.ehq-only-mobile { display: inline-flex !important; }
	.ehq-only-desktop { display: none !important; }

	/* Breadcrumb shows the current title on mobile */
	.ehq-is-article .ehq-breadcrumb { padding-bottom: 10px; border-bottom: 1px solid var(--ehq-border); font-size: 14px; color: var(--ehq-navy); }
	.ehq-is-article .ehq-breadcrumb .is-current { display: flex; flex: 1; }
	.ehq-is-article .ehq-breadcrumb .is-current span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.ehq-is-article .ehq-breadcrumb li:nth-last-child(2) .ehq-breadcrumb__sep { display: inline-block; }
	.ehq-is-article .ehq-breadcrumb ol { flex-wrap: nowrap; }

	.ehq-article__tools { gap: 14px; }
	.ehq-fontsize { border: 0; gap: 10px; }
	.ehq-fontsize__btn { width: auto; height: auto; background: none; color: var(--ehq-navy); font-weight: 500; font-size: 19px; border: 0 !important; }
	.ehq-fontsize__btn--up { font-size: 19px; }
	.ehq-article__tools .ehq-icon-btn .ehq-icon { width: 30px; height: 30px; }

	.ehq-article__share-bottom { display: block !important; margin-top: 16px; padding: 14px 0; border-top: 1px solid var(--ehq-border); border-bottom: 1px solid var(--ehq-border); }

	/* Sidebar becomes "Son xəbərlər" list under the article */
	.ehq-list-box--sidebar { border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
	.ehq-list-box--sidebar .ehq-list-box__head { padding: 0; margin-bottom: 6px; background: none; }
	.ehq-list-box--sidebar .ehq-list-box__title { display: none; }
	.ehq-list-box--sidebar .ehq-list-box__title--mobile { display: block; font-size: 30px; color: var(--ehq-red); }
	.ehq-list-box--sidebar .ehq-list-box__title--mobile::before { display: none; }
	.ehq-list-box--sidebar .ehq-list-box__more { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ehq-accent); }
	.ehq-list-box--sidebar .ehq-list-box__more .ehq-icon { width: 22px; height: 22px; }
	.ehq-list-box--sidebar .ehq-list { padding: 0; }
	.ehq-list-box--sidebar .ehq-list__item { grid-template-columns: 38% minmax(0, 1fr); gap: 18px; }
	.ehq-list-box--sidebar .ehq-list__title { font-size: 18px; font-weight: 600; color: var(--ehq-navy); }

	.ehq-grid, .ehq-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ehq-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 36px; }
	.ehq-footer__about { max-width: none; }
}

@media (max-width: 767px) {
	:root { --ehq-gutter: 16px; }

	.ehq-ticker { display: none; }

	/* Home on mobile: list of big cards, no slider */
	.ehq-hero-wrap { display: none; }
	.ehq-news--home .ehq-section-head { display: none; }
	.ehq-news--home { padding-top: 14px; }

	.ehq-grid, .ehq-grid--2, .ehq-grid--3, .ehq-grid--4 { grid-template-columns: minmax(0, 1fr); gap: 10px; }

	.ehq-card { padding: 14px; border-radius: 10px; }
	.ehq-card:hover { transform: none; }
	.ehq-card__media { aspect-ratio: var(--ehq-card-ratio-mobile); border-radius: 6px; }
	.ehq-card__media .ehq-badge { display: none; }
	.ehq-card__body { padding: 12px 6px 0; gap: 10px; }
	.ehq-card__title { font-size: 22px; font-weight: 600; line-height: 1.3; }
	.ehq-card .ehq-date { font-size: 17px; font-weight: 500; }
	.ehq-card .ehq-date .ehq-icon { color: #6b7690; }

	.ehq-section-title { font-size: 28px; }

	.ehq-mobilebar .ehq-logo--mobile { font-size: 38px; }
	.ehq-mobilebar__row { gap: 10px; }
	.ehq-toplinks--mobile { font-size: 15px; }
	.ehq-toplinks--mobile li + li::before { margin: 0 12px; }

	.ehq-article__title { font-size: 30px; }
	.ehq-single { padding-top: 10px; gap: 22px; }
	.ehq-content { --ehq-content-size: 18px; }

	.ehq-list-box--sidebar .ehq-list-box__title--mobile { font-size: 28px; }
	.ehq-list-box--sidebar .ehq-list__title { font-size: 16px; }
	.ehq-list-box--sidebar .ehq-list .ehq-date { font-size: 14px; }

	.ehq-footer { margin-top: 20px; }
	.ehq-footer__cta-inner { flex-direction: column; align-items: flex-start; }
	.ehq-follow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
	.ehq-footer__main { padding: 40px 0 28px; }
	.ehq-footer__grid { grid-template-columns: 1fr; gap: 34px; }
	.ehq-footer__brand { text-align: center; }
	.ehq-footer__brand .ehq-logo { display: flex; justify-content: center; }
	.ehq-footer__about { margin-left: auto; margin-right: auto; }
	.ehq-footer__contacts { display: inline-block; text-align: left; }
	.ehq-footer__bottom-inner { flex-direction: column; justify-content: center; text-align: center; padding-top: 18px; padding-bottom: 18px; }
	.ehq-footer__note { margin-left: 0 !important; }
}

@media (max-width: 480px) {
	.ehq-mobilebar__row { flex-wrap: nowrap; gap: 6px; padding-left: 12px; padding-right: 12px; }
	.ehq-mobilebar__tools { gap: 4px; }
	.ehq-icon-btn { width: 34px; height: 34px; }
	.ehq-icon-btn .ehq-icon { width: 22px; height: 22px; }
	.ehq-icon-btn--menu .ehq-icon { width: 19px; height: 19px; }
	.ehq-mobilebar .ehq-socials { gap: 4px; }
	.ehq-mobilebar .ehq-social, .ehq-mobilebar .ehq-social--youtube { width: 28px; height: 28px; }
	.ehq-toplinks--mobile { font-size: 12.5px; white-space: nowrap; }
	.ehq-toplinks--mobile li + li::before { margin: 0 6px; }
	.ehq-mobilebar .ehq-divider { height: 18px; }
	.ehq-mobilebar--compact .ehq-logo--mobile { flex: 1 1 auto; min-width: 0; font-size: 25px; }
	.ehq-mobilebar--compact .ehq-mobilebar__tools .ehq-divider { display: none; }
	.ehq-card__title { font-size: 20px; }
	.ehq-article__title { font-size: 26px; }
	.ehq-share--square .ehq-share__btn { width: 44px; height: 44px; }
}

@media (max-width: 370px) {
	.ehq-mobilebar--compact .ehq-social--youtube,
	.ehq-mobilebar .ehq-social--youtube { display: none; }
	.ehq-mobilebar--compact .ehq-logo--mobile { font-size: 22px; }
}

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

/* ---------- Print ---------- */

@media print {
	.ehq-header, .ehq-drawer, .ehq-search, .ehq-footer, .ehq-sidebar, .ehq-related,
	.ehq-article__tools, .ehq-article__share-bottom, .ehq-breadcrumb, .ehq-tags { display: none !important; }
	.ehq-single { display: block; padding: 0; }
	body { color: #000; }
	.ehq-article__title { color: #000; }
}

.ehq-hero .ehq-placeholder span { display: none; }
