/* ================================================================
   Sovushkeen — Home Page Redesign
   Prefix: sov-
   ================================================================ */

:root {
	--sov-bg:         #f0f4f8;
	--sov-white:      #ffffff;
	--sov-blue-dark:  #0d1b2a;
	--sov-blue-mid:   #1a3a6b;
	--sov-blue:       #2563eb;
	--sov-blue-hover: #1d4ed8;
	--sov-text:       #1e293b;
	--sov-muted:      #64748b;
	--sov-border:     #e2e8f0;
	--sov-radius-sm:  8px;
	--sov-radius:     14px;
	--sov-radius-lg:  20px;
	--sov-shadow:     0 2px 16px rgba(0, 0, 0, 0.08);
	--sov-shadow-md:  0 4px 24px rgba(0, 0, 0, 0.12);
}

/* ----------------------------------------------------------------
   Layout: full-width home page, no sidebar
   ---------------------------------------------------------------- */

body.home .main-inner,
body.blog .main-inner {
	display: flex;
	flex-direction: column;
}

body.home #sidebar,
body.blog  #sidebar,
body.home .widget-area,
body.blog  .widget-area {
	display: none !important;
}

body.home .content,
body.blog  .content {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin-right: 0 !important;
	padding: 0 !important;
}

body.home,
body.blog {
	background: var(--sov-bg);
}

body.home .container,
body.blog  .container {
	background: var(--sov-bg) !important;
}


/* ----------------------------------------------------------------
   Header enhancements (home page only)
   ---------------------------------------------------------------- */

body.home #header,
body.blog  #header {
	background: #fff;
	border-bottom: 1px solid var(--sov-border);
	box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

body.home #header > .group,
body.blog  #header > .group {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

/* ----------------------------------------------------------------
   Section centering wrapper
   ---------------------------------------------------------------- */

.sov-hero-wrap,
.sov-articles,
.sov-cta {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

/* ----------------------------------------------------------------
   Hero grid: slider + benefits sidebar
   ---------------------------------------------------------------- */

.sov-hero-wrap {
	position: relative;
	margin-top: 24px;
	margin-bottom: 8px;
}

.sov-hero-grid {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 20px;
	align-items: stretch;
}

.sov-hero-slider {
	position: relative;
	overflow: hidden;
	border-radius: var(--sov-radius-lg);
	box-shadow: var(--sov-shadow-md);
}

/* Dots overlay — inside slider, absolutely positioned at bottom center */
.sov-hero-dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 10;
}

.sov-hero-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s, width 0.2s, height 0.2s;
}

.sov-hero-dot.is-active {
	background: #ffffff;
	width: 10px;
	height: 10px;
}

/* Slides: hidden by default, visible when active */
@keyframes sov-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.sov-hero-slider .sov-slide {
	display: none;
}
.sov-hero-slider .sov-slide.is-active {
	display: block;
	animation: sov-fade-in 0.6s ease forwards;
}

/* ----------------------------------------------------------------
   Hero featured slide
   ---------------------------------------------------------------- */

.sov-hero-featured {
	position: relative;
	height: 100%;
	min-height: clamp(280px, 38vw, 440px);
}

.sov-hero-link {
	display: block;
	position: absolute;
	inset: 0;
	text-decoration: none;
}

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

.sov-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(13, 27, 42, 0.88) 0%,
		rgba(13, 27, 42, 0.55) 60%,
		rgba(13, 27, 42, 0.15) 100%
	);
	padding: 32px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.sov-hero-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 6px;
	margin-bottom: 16px;
	align-self: flex-start;
}

.sov-hero-title {
	color: #fff;
	font-size: clamp(20px, 2.5vw, 28px);
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 12px;
}

.sov-hero-desc {
	color: rgba(255, 255, 255, 0.82);
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 20px;
	max-width: 480px;
}

.sov-hero-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	color: var(--sov-blue-dark);
	font-size: 14px;
	font-weight: 600;
	padding: 12px 24px;
	border-radius: var(--sov-radius-sm);
	text-decoration: none;
	align-self: flex-start;
	transition: background 0.2s, transform 0.15s;
}

.sov-hero-link:hover .sov-hero-btn {
	background: #f0f4ff;
	transform: translateY(-1px);
}

/* ----------------------------------------------------------------
   Hero benefits sidebar (bio block)
   ---------------------------------------------------------------- */

.sov-hero-benefits {
	background: var(--sov-white);
	border-radius: var(--sov-radius-lg);
	padding: 28px 24px;
	box-shadow: var(--sov-shadow);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 18px;
}

.sov-hero-benefits-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--sov-blue-dark);
	margin: 0;
	line-height: 1.25;
}

.sov-hero-benefits-bio {
	font-size: 14px;
	line-height: 1.55;
	color: var(--sov-muted);
	margin: 0;
}

.sov-hero-benefits-points {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sov-hero-benefit-point {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.sov-hero-benefit-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--sov-blue-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #fff;
	font-size: 14px;
}

.sov-hero-benefit-text h4 {
	font-size: 14px;
	font-weight: 700;
	color: var(--sov-text);
	margin: 0 0 3px;
	line-height: 1.3;
}

.sov-hero-benefit-text p {
	font-size: 13px;
	color: var(--sov-muted);
	margin: 0;
	line-height: 1.45;
}

/* ----------------------------------------------------------------
   Articles section
   ---------------------------------------------------------------- */

.sov-articles {
	margin-top: 12px;
	margin-bottom: 32px;
}

.sov-articles-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.sov-section-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--sov-text);
	margin: 0;
}

/* Filter pills */

.sov-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sov-filter {
	padding: 7px 16px;
	border-radius: 100px;
	border: 1.5px solid var(--sov-border);
	background: var(--sov-white);
	color: var(--sov-text);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.18s;
	font-family: inherit;
}

.sov-filter:hover {
	border-color: var(--sov-blue);
	color: var(--sov-blue);
}

.sov-filter.active {
	background: var(--sov-blue-dark);
	border-color: var(--sov-blue-dark);
	color: #fff;
}

/* ----------------------------------------------------------------
   Article grid
   ---------------------------------------------------------------- */

.sov-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

/* ----------------------------------------------------------------
   Article card
   ---------------------------------------------------------------- */

.sov-card {
	background: var(--sov-white);
	border-radius: var(--sov-radius);
	overflow: hidden;
	box-shadow: var(--sov-shadow);
	transition: transform 0.2s, box-shadow 0.2s;
}

.sov-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--sov-shadow-md);
}

.sov-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* Image container — enforces 16:9 */

.sov-card-img-wrap {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 */
	overflow: hidden;
	background: #e8edf2;
}

.sov-card-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.3s;
}

.sov-card:hover .sov-card-img {
	transform: scale(1.03);
}

.sov-card-img--placeholder {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: linear-gradient(135deg, #dde4ef 0%, #c8d3e8 100%);
}

/* Category badge on image */

.sov-card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background: rgba(255, 255, 255, 0.92);
	color: var(--sov-text);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 3px 9px;
	border-radius: 6px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	white-space: nowrap;
	max-width: calc(100% - 20px);
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Card body */

.sov-card-body {
	padding: 14px 16px 16px;
}

.sov-card-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--sov-text);
	line-height: 1.45;
	margin: 0 0 10px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sov-card:hover .sov-card-title {
	color: var(--sov-blue);
}

.sov-card-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.sov-card-meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--sov-muted);
}

.sov-card-meta i {
	font-size: 11px;
	opacity: 0.75;
}

/* Hidden cards (filtered out) */

.sov-card.is-hidden {
	display: none;
}

/* ----------------------------------------------------------------
   Telegram CTA block
   ---------------------------------------------------------------- */

.sov-cta {
	margin-top: 8px;
	margin-bottom: 32px;
	background: var(--sov-white);
	border-radius: var(--sov-radius-lg);
	box-shadow: var(--sov-shadow);
	overflow: hidden;
}

.sov-cta-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 24px 32px;
}

.sov-cta-icon {
	width: 52px;
	height: 52px;
	background: #e8f0fe;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #229ed9;
	font-size: 22px;
	flex-shrink: 0;
}

.sov-cta-text {
	flex: 1;
	min-width: 0;
}

.sov-cta-text h3 {
	font-size: 16px;
	font-weight: 700;
	color: var(--sov-text);
	margin: 0 0 4px;
}

.sov-cta-text p {
	font-size: 13px;
	color: var(--sov-muted);
	margin: 0;
}

.sov-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--sov-blue-dark);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 24px;
	border-radius: var(--sov-radius-sm);
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s, transform 0.15s;
	flex-shrink: 0;
}

.sov-cta-btn:hover {
	background: var(--sov-blue-mid);
	color: #fff;
	transform: translateY(-1px);
}

/* ----------------------------------------------------------------
   Pagination
   ---------------------------------------------------------------- */

.sov-pagination {
	margin-top: 28px;
	display: flex;
	justify-content: center;
}

.sov-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.sov-pagination .page-numbers li a,
.sov-pagination .page-numbers li span {
	display: inline-flex;
	align-items: center;
	padding: 9px 18px;
	border-radius: 100px;
	border: 1.5px solid var(--sov-border);
	background: var(--sov-white);
	color: var(--sov-text);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.18s;
}

.sov-pagination .page-numbers li a:hover {
	border-color: var(--sov-blue);
	color: var(--sov-blue);
}

.sov-pagination .page-numbers li span.current {
	background: var(--sov-blue-dark);
	border-color: var(--sov-blue-dark);
	color: #fff;
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */

@media (max-width: 1100px) {
	.sov-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 860px) {
	.sov-hero-wrap,
	.sov-articles,
	.sov-cta,
	body.home #header > .group,
	body.blog  #header > .group {
		padding-left: 16px;
		padding-right: 16px;
	}
	.sov-hero-grid {
		grid-template-columns: 1fr;
	}
	.sov-hero-featured {
		min-height: clamp(240px, 50vw, 360px);
	}
	.sov-hero-benefits {
		padding: 22px 20px;
		justify-content: flex-start;
	}
	.sov-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.sov-cta-inner {
		padding: 20px 24px;
	}
}

@media (max-width: 580px) {
	.sov-hero-wrap,
	.sov-articles,
	.sov-cta,
	body.home #header > .group,
	body.blog  #header > .group {
		padding-left: 12px;
		padding-right: 12px;
	}
	.sov-hero-overlay { padding: 20px; }
	.sov-hero-title { font-size: 18px; }
	.sov-hero-benefits {
		padding: 20px;
	}
	.sov-articles-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.sov-grid {
		grid-template-columns: 1fr;
	}
	.sov-cta-inner {
		flex-wrap: wrap;
		gap: 16px;
		padding: 20px;
	}
	.sov-cta-btn {
		width: 100%;
		justify-content: center;
}
