/*
Theme Name: NMG Starter
Theme URI: https://github.com/yourusername/nmg-starter
Author: Your Name
Author URI: https://yourwebsite.com
Description: A clean, minimal WordPress starter theme with custom Gutenberg blocks.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nmg-starter
Tags: starter, minimal, clean, gutenberg
*/

/* Reset and Base Styles */

body {
	background-color: #1E1E1E;
}

.container {
	max-width: 1920px;
	margin: 0 auto;
	padding: 0 100px;
}


@media (max-width: 1441px) {
	.container {
		padding: 0 140px;
	}
}



@media (max-width: 1200px) {
	.container {
		padding: 0 50px;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 0 10px;
	}
}

/* Header */
.site-header {
	background-color: #fff;
	border-bottom: 1px solid #e0e0e0;
	padding: 20px 0;
}

.site-title {
	font-size: 24px;
	font-weight: 600;
	margin: 0;
}

.site-title a {
	color: #333;
	text-decoration: none;
}

.site-title a:hover {
	color: #0073aa;
}

/* Main Content */
.site-main {
	padding-bottom: 60px;
}

/* Posts */
.post {
	margin-bottom: 40px;
}

.post-title {
	font-size: 32px;
	margin-bottom: 10px;
}

.post-title a {
	color: #333;
	text-decoration: none;
}

.post-title a:hover {
	color: #0073aa;
}

.post-meta {
	color: #666;
	font-size: 14px;
	margin-bottom: 15px;
}

.post-content {
	margin-top: 20px;
}

.post-content p {
	margin-bottom: 15px;
}

/* Footer */
.site-footer {
	background-color: #f5f5f5;
	border-top: 1px solid #e0e0e0;
	padding: 30px 0;
	text-align: center;
	color: #666;
	font-size: 14px;
}

/* Gutenberg Block Styles */
.wp-block-nmg-custom-block {
	padding: 20px;
	border: 2px solid #0073aa;
	border-radius: 8px;
	margin: 20px 0;
	background-color: #f9f9f9;
}

.wp-block-nmg-custom-block__title {
	font-size: 24px;
	margin-bottom: 10px;
	color: #0073aa;
}

.wp-block-nmg-custom-block__content {
	margin-top: 15px;
}

.wp-block-nmg-custom-block__button {
	display: inline-block;
	padding: 10px 20px;
	background-color: #0073aa;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	margin-top: 15px;
	transition: background-color 0.3s;
}

.wp-block-nmg-custom-block__button:hover {
	background-color: #005a87;
}

.material-container .entry-content>p {
	width: 66%;
	margin-left: auto;
}

.material-container .entry-content .material-content a,
.persony-content-intro-text a,
.nmg-meta-author-block__text a {
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: var(--color-accent);
	color: var(--color-text-primary);
	transition: color 0.3s;

	&:hover {
		color: var(--color-primary);
	}
}

.persony-content-intro-text a {
	color:#E1E1E1;
}

.single-material-page {
	background-color: white;
}

.single-persony-page {
	color: #E1E1E1;
}

/* общий контейнер цитаты со стилем "Note" */
.wp-block-quote {
	position: relative;
	padding-left: 60px;
	/* место под картинку слева */
	padding-top: 27px;
	max-width: 85%;
	width: 100%;
	margin-left: auto;
	border: none;
	font-family: var(--font-family-oswald);
	font-size: 46px;
	font-weight: bold;
	line-height: 1.2;
}

@media screen and (max-width: 768px) {
	.wp-block-quote {
		font-size: 24px;
	}
}

.wp-block-quote cite {
	font-size: 24px;
	font-weight: bold;
	line-height: 1.2;
	color: #1E1E1E;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-top: 20px;
	display: block;
	text-align: right;
}

.wp-block-quote>* {
	position: relative;
	z-index: 1;
}

.wp-block-columns {
	row-gap: 20px;
	column-gap: 20px;
}

/* сама картинка-значок */
.wp-block-quote::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 122px;
	height: 67px;
	background-image: url("images//quotes.svg");
	/* твой путь */
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

/* Homepage Styles */
.homepage-main {
	padding: 0;
}

.homepage-container {
	max-width: 1920px;
	margin: 0 auto;
}

.homepage-blocks {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-bottom: 60px;
	padding: 0 100px;
}

.homepage-block {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #f8f9fa;
	min-height: 400px;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.homepage-block:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.homepage-block-link {
	display: block;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.homepage-block-image {
	position: relative;
	height: 250px;
	overflow: hidden;
}

.homepage-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.homepage-block:hover .homepage-block-image img {
	transform: scale(1.05);
}

.homepage-block-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.homepage-block:hover .homepage-block-overlay {
	opacity: 1;
}

.homepage-block-badges {
	position: absolute;
	top: 16px;
	right: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.badge {
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.badge-exclusive {
	background: linear-gradient(135deg, #ff6b6b, #ee5a24);
	color: white;
}

.badge-clapperboard {
	background: linear-gradient(135deg, #ffd93d, #ff8c42);
	font-size: 16px;
	padding: 4px 8px;
}

.homepage-block-content {
	padding: 24px;
	height: calc(100% - 250px);
	display: flex;
	flex-direction: column;
}

.homepage-block-category {
	margin-bottom: 12px;
}

.homepage-block-category a {
	color: #007cba;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: color 0.3s ease;
}

.homepage-block-category a:hover {
	color: #005a87;
}

.homepage-block-title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 12px;
	color: #1a1a1a;
	transition: color 0.3s ease;
}

.homepage-block:hover .homepage-block-title {
	color: #007cba;
}

.homepage-block-subtitle {
	font-size: 16px;
	line-height: 1.5;
	color: #666;
	margin-top: auto;
}

.homepage-block--empty {
	background: #f8f9fa;
	border: 2px dashed #ddd;
}

.homepage-block-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	text-align: center;
	padding: 40px;
}

.placeholder-content {
	color: #999;
}

.placeholder-icon {
	font-size: 48px;
	margin-bottom: 16px;
	display: block;
}

.placeholder-content p {
	margin: 0;
	font-size: 16px;
}

/* Load More Button */
.homepage-load-more {
	text-align: center;
	margin-bottom: 60px;
}

.load-more-button {
	display: inline-block;
	padding: 16px 32px;
	background: linear-gradient(135deg, #007cba, #005a87);
	color: white;
	text-decoration: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.load-more-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.15);
	background: linear-gradient(135deg, #005a87, #004a70);
}

/* Responsive Design */
@media (max-width: 1200px) {
	.homepage-blocks {
		grid-template-columns: repeat(2, 1fr);
		padding: 0 50px;
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.homepage-blocks {
		grid-template-columns: 1fr;
		padding: 0 20px;
		gap: 20px;
	}

	.homepage-block {
		min-height: 300px;
	}

	.homepage-block-image {
		height: 200px;
	}

	.homepage-block-content {
		padding: 20px;
		height: calc(100% - 200px);
	}

	.homepage-block-title {
		font-size: 18px;
	}

	.homepage-block-subtitle {
		font-size: 14px;
	}

	.homepage-load-more {
		margin-bottom: 40px;
	}

	.load-more-button {
		padding: 14px 28px;
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.homepage-blocks {
		padding: 0 15px;
	}

	.homepage-block-content {
		padding: 16px;
	}

	.homepage-block-title {
		font-size: 16px;
	}

	.homepage-block-subtitle {
		font-size: 13px;
	}
}

/* Customizer autocomplete styles */
.ui-autocomplete {
	max-height: 200px;
	overflow-y: auto;
	overflow-x: hidden;
	z-index: 10000 !important;
}

.ui-menu-item {
	padding: 8px 12px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
}

.ui-menu-item:hover,
.ui-menu-item.ui-state-focus {
	background: #f8f9fa;
	color: #333;
}

.ui-menu-item:last-child {
	border-bottom: none;
}

/* Select2 styles for Customizer */
.select2-container {
	width: 100% !important;
	max-width: 100% !important;
}

.select2-container--default .select2-selection--single {
	border: 1px solid #ddd;
	border-radius: 4px;
	height: 36px;
	padding: 0 12px;
	font-size: 14px;
	line-height: 34px;
	background: #fff;
	box-sizing: border-box;
}

.select2-container--default.select2-container--focus .select2-selection--single {
	border-color: #007cba;
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	color: #333;
	padding: 0;
	line-height: 34px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: #999;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 34px;
	right: 8px;
}

.select2-dropdown {
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	background: #fff;
	z-index: 99999 !important;
	max-width: 400px;
}

.select2-container--default .select2-results__option {
	padding: 10px 12px;
	font-size: 14px;
	border-bottom: 1px solid #f0f0f0;
	cursor: pointer;
}

.select2-container--default .select2-results__option:last-child {
	border-bottom: none;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background: #f8f9fa;
	color: #333;
}

.select2-container--default .select2-results__option[aria-selected=true] {
	background: #007cba;
	color: white;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 8px 12px;
	font-size: 14px;
	margin: 8px;
	width: calc(100% - 16px) !important;
	box-sizing: border-box;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
	border-color: #007cba;
	outline: none;
}

/* Customizer material autocomplete styles */
.nmg-material-autocomplete-wrapper {
	position: relative;
}

.nmg-material-search {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.nmg-material-search:focus {
	border-color: #007cba;
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.nmg-material-search+input[type="hidden"] {
	display: none;
}

.ui-autocomplete {
	max-height: 200px;
	overflow-y: auto;
	overflow-x: hidden;
	z-index: 10000 !important;
	border: 1px solid #ddd;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ui-menu-item {
	padding: 8px 12px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
}

.ui-menu-item:hover,
.ui-menu-item.ui-state-focus {
	background: #f8f9fa;
	color: #333;
}

.ui-menu-item:last-child {
	border-bottom: none;
}

.ui-helper-hidden-accessible {
	display: none;
}

/* jQuery UI Autocomplete styles for Customizer */
.ui-autocomplete {
	max-height: 200px;
	overflow-y: auto;
	overflow-x: hidden;
	z-index: 9999 !important;
	border: 1px solid #ddd;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 14px;
}

.ui-menu-item {
	padding: 8px 12px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
}

.ui-menu-item:hover,
.ui-menu-item.ui-state-focus {
	background: #f8f9fa;
	color: #333;
}

.ui-menu-item:last-child {
	border-bottom: none;
}

.ui-helper-hidden-accessible {
	display: none;
}

/* Datalist styles for Customizer */
.nmg-material-input {
	width: 100%;
}

datalist {
	display: none;
}

datalist option {
	font-size: 14px;
	padding: 4px;
}


.category-tab,
.filter-tab {
	color: var(--color-red);
}

.category-tab:hover,
.filter-tab:hover {
	color: var(--color-gray-light);
	background: var(--color-red);
}

.category-tab.active,
.filter-tab.active {
	color: var(--color-gray-light);
	background: var(--color-red);
}

.material-card>a {
	z-index: 1;
}

.material-category a {
	z-index: 2;
}

/* Related Materials Slider */
.related-materials-section {
	width: 100%;
	overflow: hidden;
}

.related-materials__arrow {
	background: transparent;
	color: var(--color-gray-light);
	cursor: pointer;
	transition: all 0.3s ease;
	border-radius: 0;
}

.related-materials__arrow:hover {
	color: var(--color-red);
	border-color: var(--color-red);
}

.related-materials__arrow:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.related-materials__counter {
	font-family: var(--typography-desktop-body-large-font-family);
	font-size: var(--typography-desktop-body-large-font-size);
}


.no-posts {
	grid-column: span 4;
	text-align: center;
	font-size: var(--typography-desktop-h2-main-font-size);
	line-height: var(--typography-desktop-h2-main-line-height);
	font-family: var(--typography-desktop-h2-main-font-family);
	font-weight: var(--typography-desktop-h2-main-font-weight);
	text-transform: var(--typography-desktop-h2-main-text-transform);
	color: white;
	margin-bottom: 20px;
}

.material-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
	.material-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

@media (min-width: 1024px) {

	/* Corresponds to Tailwind's 'lg' breakpoint */
	.material-grid article:nth-child(10n + 1),
	.material-grid article:nth-child(10n + 5) {
		grid-column: span 2;
	}
}


@media (max-width: 768px) {
	.material-thumbnail {
		height: 420px;
	}
}


/**
 * Frontend styles for Meta Author Block
 */
.wp-block-nmg-meta-author-block {
	margin: 10px 0;
	padding: 0;
}

.nmg-meta-author-block__container {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}




.nmg-author__image {
	width: 415px;
	height: 415px;
	overflow: hidden;
	flex-shrink: 0;
	margin-bottom: 25px;
}

@media (max-width: 1441px) {
	.nmg-author__image {
		width: 260px;
		height: 260px;
	}
}

@media (max-width: 768px) {
	.nmg-author__image {
		width: 107px;
		height: 107px;
	}
}

.nmg-author__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nmg-author__left {
	flex-basis: 33.33%;
}

.nmg-author__left a {
	text-decoration: none;
	color: var(--color-text-dark);
	transition: color 0.3s;

	&:hover {
		color: var(--color-primary);
	}
}

.nmg-author__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nmg-author__name {
	font-size: 24px;
	font-weight: 800;
	color: #000;
	line-height: 1.2;
	margin-bottom: 6px;
}

.nmg-author__description {
	font-size: 18px;
	font-weight: 500;
}


.nmg-author__right {
	flex-basis: 66.66%;
}



.nmg-meta__info {
	display: flex;
	align-items: center;
	font-size: 14px;
	color: #505050;
}

.nmg-meta__category {
	color: #505050;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s;
}

.nmg-meta__category:hover {
	color: #e91e63;
}

.nmg-meta__separator {
	color: #505050;
	margin: 0 4px;
}

.nmg-meta__date {
	color: #666;
	white-space: nowrap;
}

/* Social Icons */
.nmg-meta__social {
	display: flex;
	gap: 15px;
	align-items: center;
}

.nmg-meta__social-author {
	display: flex;
	gap: 15px;
	align-items: center;
}

@media (max-width: 768px) {
	.nmg-meta__social-author {
		gap: 5px;
	}
}

.material-page-share {
	display: flex;
	gap: 20px;
	align-items: center;
}


.nmg-social__icon svg {
	height: 25px;
	fill: #505050;
}

.nmg-meta__social-author .nmg-social__icon svg {
	fill: #A0A0A0;
}

.material-page-share svg {
	fill: #505050;
	width: 38px;
	height: 32px;
}

.material-page-share a:nth-child(3) svg ,
.material-page-share a:nth-child(4) svg{
	width: 30px;
}

.nmg-social__icon:hover svg, .material-page-share svg:hover {
	fill: #CA284D;
}


/* Text Content */
.nmg-meta-author-block__text {
	margin-top: 20px;
}

.nmg-text__content {
	font-size: 16px;
	line-height: 1.6;
	color: #333;
}

.nmg-text__content a {
	color: #0077ff;
	text-decoration: underline;
	transition: color 0.3s;
}

.nmg-text__content a:hover {
	color: #005acc;
}

/* Pink highlight support */
.nmg-text__content .has-inline-color {
	padding: 2px 4px;
	border-radius: 2px;
}

.nmg-text__content .has-pink-color {
	background-color: #ffe4f0;
	color: #e91e63;
}

/* Responsive */
@media (max-width: 768px) {
	.nmg-meta-author-block__container {
		flex-direction: column;
		align-items: flex-start;
	}

	.nmg-meta-author-block__meta {
		align-items: flex-start;
		width: 100%;
	}

	.nmg-meta__info .nmg-meta__category_link,
	.nmg-meta__info .nmg-meta__date {
		font-size: 10px !important;
	}

	.nmg-author__name {
		font-size: 16px;
	}

	.nmg-social__icon {
		width: 36px;
		height: 36px;
	}

	.nmg-text__content {
		font-size: 15px;
	}
}

@media (max-width: 480px) {

	.nmg-meta__social {
		gap: 8px;
	}

	.nmg-social__icon {
		width: 22px;
		height: 22px;
	}
}

.nmg-fallback-image-base {
	background-color: var(--color-gray-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	height: 415px;
	width: 415px;
}

.nmg-fallback-image-base img {
	width: 60%;
}

@media screen and (max-width: 1024px) {
	.nmg-fallback-image-base {
		height: 260px;
		width: 260px;
	}
}

@media screen and (max-width: 768px) {
	.nmg-fallback-image-base {
		height: 108px;
		width: 108px;
	}
}



.material-container .entry-content {
	font-size: var(--typography-desktop-body-font-size);
	font-weight: var(--typography-desktop-body-font-weight);
}

@media screen and (max-width: 768px) {
	.material-container .entry-content {
		font-size: var(--typography-mobile-body-font-size);
		font-weight: var(--typography-mobile-body-font-weight);
	}
}

.material-container .entry-content .wp-block-columns .wp-block-column:first-child {
	font-weight: bold;
}

@media screen and (max-width: 768px) {
	.material-container .entry-content .wp-block-columns .wp-block-column:first-child {
		font-size: var(--typography-mobile-question-font-size);
	}
}

.nmg-single-image__title {
	text-align: right;
}

@media screen and (max-width: 768px) {
	.nmg-single-image__title {
		text-align: left;
	}
}

.material-container .entry-content .wp-block-column span {
	text-decoration: none !important;
	background-color: #ffc4d2;
}

.persony-content-intro {
	display: flex;
	gap: 20px;
}

@media screen and (max-width: 1080px) {
	.persony-content-intro {
		flex-direction: column;
	}
}

.persony-content-intro-text {
	width: 75%;
}

@media screen and (max-width: 1080px) {
	.persony-content-intro-text {
		width: 100%;
	}
}

.persony-content-intro-image {
	max-width: 550px;
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
	flex-shrink: 0;
}

@media screen and (max-width: 1440px) {
	.persony-content-intro-image {
		max-width: 360px;
	}
}
@media screen and (max-width: 560px) {
	.persony-content-intro-image {
		max-width: 100%;
	}
}


/* Biography Block Styles */
.persony-content-intro-biography {
	font-family: sans-serif;
	/* Replace with theme font if available */
	margin-bottom: 30px;
	padding: 20px;
	border: 2px solid var(--color-red);

}

.biography-label {
	font-size: 14px;
	text-transform: uppercase;
	color: #E1E1E1;
	margin-bottom: 10px;
	font-size: 26px;
	letter-spacing: 1px;
}

@media screen and (max-width: 768px) {
	.biography-label {
		font-size: 16px;
	}
}


.biography-specialty {
	font-size: 26px;
	margin-bottom: 25px;
}

.biography-row {
	color: #ccc;
}

.biography-row-label {
	color: #E1E1E1;
	opacity: 0.7;
	font-size: 16px;
}

.biography-row-value a {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: #E31E24;
	text-underline-offset: 3px;
}

.biography-row-value a:hover {
	text-decoration: none;
	color: #E31E24;
}

.biography-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.biography-tag {
	display: inline-block;
	padding: 5px 15px;
	border: 1px solid #E31E24;
	color: #E31E24;
	text-transform: uppercase;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.biography-tag:hover {
	background-color: #E31E24;
	color: #fff;
	cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.biography-name {
		font-size: 32px;
	}

	.persony-content-intro-biography {
		padding: 20px;
	}
}


.entry-content p+p {
	margin-top: 20px;
}

.persony-content-intro-text>* {
	margin-bottom: 20px;
}

.persony-content-intro-text h2 {
	font-size: var(--typography-desktop-caption-font-size);
	font-weight: var(--typography-desktop-h2-main-font-weight);
}

.persony-content-intro-text h2 {
	font-size: var(--typography-desktop-caption-font-size);
	font-family: var(--typography-desktop-caption-font-family);
	font-weight: bold;
}

@media (max-width: 768px) {
	.persony-content-intro-text h2 {
		font-size: var(--typography-mobile-caption-font-size);
		line-height: var(--typography-mobile-caption-line-height);
	}
}

@media (min-width: 769px) and (max-width: 1440px) {
	.persony-content-intro-text h2 {
		font-size: var(--typography-tablet-caption-font-size);
		line-height: var(--typography-tablet-caption-line-height);
	}
}

.persony-content-intro {
	font-size: var(--typography-desktop-body-font-size);
	font-weight: var(--typography-desktop-body-font-weight);
}

@media screen and (max-width: 768px) {
	.persony-content-intro {
		font-size: var(--typography-mobile-body-font-size);
		font-weight: var(--typography-mobile-body-font-weight);
	}
}


.nmg-quote-image__text {
	position: relative;
	padding-left: 60px;
	/* место под картинку слева */
	padding-top: 27px;
	max-width: 1490px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	border: none;

	font-size: 46px;
	font-weight: bold;
	line-height: 1.2;
}


.nmg-quote-image__text>* {
	position: relative;
	z-index: 1;
}

/* сама картинка-значок */
.nmg-quote-image__text::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 122px;
	height: 67px;
	background-image: url("images//quotes.svg");
	/* твой путь */
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	z-index: -1;
}

.persony-content-rest {
	margin-top: 30px;
}

.persony-content-rest .nmg-slider-gallery__scrollbar .swiper-scrollbar-drag {
	background: var(--color-gray-light);
}

.persony-content-rest .nmg-slider-gallery__scrollbar {
	background: var(--color-gray-dark);
}

.persony-content-rest .nmg-slider-gallery__navigation-counter-current,
.persony-content-rest .nmg-slider-gallery__navigation-counter-separator,
.persony-content-rest .nmg-slider-gallery__arrow,
.persony-content-rest .nmg-slider-gallery__slide-title,
.persony-content-rest .nmg-slider-gallery__slide-subtitle,
.persony-content-rest .nmg-slider-gallery__text {
	color: white;
}

/* Person Slider Gallery Styles (Swiper adaptation) */

.person-slider-container {
	margin: 60px 0;
	width: 100%;
}

.person-slider-gallery {
	position: relative;
	width: 100%;
}

/* Swiper Container */
.person-slider__swiper {
	width: 100%;
	overflow: hidden;
}

/* Slide: 2-column grid */
.person-slider__slide {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	align-items: start;
}

/* Left Column: Content */
.person-slider__slide-left {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	padding: 40px 0;
	width: 100%;
}

.person-slider__slide-title {
	font-size: 26px;
	font-weight: bold;
	margin: 0 0 8px;
	line-height: 1.2;
	color: #fff;
	/* Changed to white for dark theme */
}

.person-slider__slide-subtitle {
	font-size: 16px;
	margin: 0;
	color: #fff;
	/* Changed to white */
	font-weight: 400;
}

/* Right Column: Image */
.person-slider__slide-right {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.person-slider__slide-image {
	width: 100%;
	aspect-ratio: 4/3;
	overflow: hidden;
	border-radius: 8px;
	position: relative;
}

.person-slider__slide-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	/* Changed to contain to match gallery, or cover? Gallery used contain */
	display: block;
}

/* Navigation (in Left Column for Person Slider based on PHP structure, 
   but gallery CSS had it in Right Column or separate. 
   In my PHP, I put nav inside .person-slider__slide-left container.
   So I need to adjust styles to fit there. 
   In Gallery Block CSS, .nmg-slider-gallery__navigation was max-width: 50% and margin-left: auto.
   Here it is inside the left column, so width 100% of that column is fine.
*/

.person-slider__navigation {
	display: flex;
	gap: 20px;
	width: 100%;
	position: relative;
	height: 72px;
}

.person-slider__navigation-counter {
	font-size: 18px;
	font-family: var(--font-family-oswald);
	display: flex;
	align-items: center;
	gap: 4px;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
	margin-bottom: 20px;
	/* Separator from nav controls */
}

.person-slider__navigation-counter-current {
	color: #fff;
	font-weight: 500;
	min-width: 1ch;
	text-align: right;
}

.person-slider__navigation-counter-separator {
	color: #fff;
	font-weight: 400;
}

.person-slider__navigation-counter-total {
	color: #A0A0A0;
	font-weight: 400;
	min-width: 1ch;
	text-align: left;
}

/* Pagination & Scrollbar */
.person-slider__pagination-wrapper {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex-grow: 1;
	/* Allow it to take space */
}

.person-slider__pagination {
	display: flex;
	gap: 8px;
	align-items: center;
}

.person-slider__pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #ccc;
	border-radius: 50%;
	opacity: 1;
	transition: all 0.3s ease;
	cursor: pointer;
}

.person-slider__pagination .swiper-pagination-bullet-active {
	background: #fff;
	width: 12px;
	height: 12px;
}

/* Arrows */
.person-slider__arrows {
	display: flex;
	gap: 12px;
	align-items: center;
}

.person-slider__arrow {
	background: transparent;
	color: #fff !important;
	width: 24px !important;
	height: 24px !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	padding: 0;
	outline: none;
	border: none;
}

.person-slider__arrow::after,
.person-slider__arrow::before {
	font-size: 24px !important;
}

.person-slider__arrow:active {
	transform: scale(0.95);
}

.person-slider__arrow svg {
	width: 24px;
	height: 24px;
}

.person-slider__arrow.swiper-button-disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
	.person-slider__slide {
		gap: 40px;
	}

	.person-slider__slide-title {
		font-size: 36px;
	}
}

@media (max-width: 768px) {
	.person-slider__slide {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.person-slider__slide-left {
		padding: 20px 0;
		order: 2;
		/* Put content below image on mobile if desired, or remove to keep top */
	}

	.person-slider__slide-right {
		order: 1;
	}

	.person-slider__slide-title {
		font-size: 28px;
		margin-bottom: 15px;
	}

	.person-slider__navigation {
		width: 100%;
		margin-top: 20px;
	}
}

.person-slider__navigation-container {
	position: absolute;
	width: 50%;
	right: 0;
	bottom: 0;
}

.person-slider__navigation-container .swiper-scrollbar-drag {
	background: var(--color-gray-light);
}

.person-slider__navigation-container .swiper-scrollbar {
	background: var(--color-gray-dark);
}

.person-slider__label {
	font-size: 20px;
	text-transform: uppercase;
}


@media screen and (max-width: 768px) {
	.person-slider__label {
		font-size: 16px;
	}

	.biography-row-value {
		font-size: 14px !important;
	}

	.biography-row-label {
		font-size: 12px !important;
	}
}

.person-slider__title {
	font-size: 50px;
	color: #E1E1E1;
	font-family: var(--font-family-oswald);
	text-transform: uppercase;
}


.person-slider__slide {
    text-decoration: none;
    color: inherit;
    display: grid; /* Restore grid display for the anchor tag */
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.person-slider__label , .person-slider__link-text {
	color: var(--color-gray-light) !important;
}

.person-slider__slide:hover .person-slider__slide-title,
.person-slider__slide:hover .person-slider__title {
    color: var(--color-red);
    transition: color 0.3s ease;
}

/* Adjustments for responsive grid inside anchor */
@media (max-width: 1024px) {
    .person-slider__slide {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .person-slider__slide {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.person-slider__arrow:hover  {
	color: var(--color-red) !important;
}
.page-privacy-policy a {
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-color: var(--color-accent);
	color: var(--color-text-primary);
	transition: color 0.3s;

	&:hover {
		color: var(--color-primary);
	}
}

.page-privacy-policy p + p {
	margin-top: 10px;
}

.page-privacy-policy {
	font-size: 20px;
	font-weight: 500;
}

@media screen and (max-width: 1280px) {
	.page-privacy-policy {
		font-size: 16px;
	}
}

@media screen and (max-width: 768px) {
	.page-privacy-policy {
		font-size: 14px;
	}
}

/* Predlozhite Ideyu Page Form Styles */
.page-template-page-predlozhite-ideyu form button[type="submit"] {
	background-color: #cbd5e1;
	color: #334155;
	padding: 0.75rem 1.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	width: 100%;
	max-width: 280px;
}

.page-template-page-predlozhite-ideyu form button[type="submit"]:hover:not(:disabled) {
	background-color: #94a3b8;
	color: #1e293b;
	transform: translateY(-1px);
}

.page-template-page-predlozhite-ideyu form button[type="submit"]:active:not(:disabled) {
	transform: translateY(0);
}

.page-template-page-predlozhite-ideyu form button[type="submit"]:disabled {
	cursor: not-allowed;
}

/* Modal styles */
#successModal, #errorModal {
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

#successModal > div, #errorModal > div {
	animation: slideUp 0.3s ease;
}

@keyframes slideUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Redakcziya (Editorial) Page Styles */
.redakcziya-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.redakcziya-card:hover .redakcziya-card__name {
	color: var(--color-red);
}

.redakcziya-card__image img {
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* =========================================================
   Episodes Block (single-kino.php — Сериал type)
   ========================================================= */

.persony-content-episodes {
	margin: 48px 0;
	width: 100%;
}

/* --- Header / season selector --- */

.episodes-header {
	display: flex;
	align-items: center;
	margin-bottom: 24px;
}

.episodes-season-selector {
	position: relative;
}

.episodes-season-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	background: #2a2a2a;
	border: 1px solid #444;
	color: #fff;
	font-family: var(--font-family-oswald, 'Oswald', sans-serif);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.episodes-season-toggle:hover {
	border-color: #777;
}

.episodes-season-chevron {
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.episodes-season-toggle[aria-expanded="true"] .episodes-season-chevron {
	transform: rotate(180deg);
}

.episodes-season-dropdown {
	position: absolute;
	top: calc(100% + 2px);
	left: 0;
	z-index: 200;
	min-width: 180px;
	background: #2a2a2a;
	border: 1px solid #444;
	list-style: none;
	margin: 0;
	padding: 4px 0;
	display: none;
}

.episodes-season-dropdown.is-open {
	display: block;
}

.episodes-season-option {
	padding: 10px 16px;
	color: #bbb;
	font-family: var(--font-family-oswald, 'Oswald', sans-serif);
	font-size: 14px;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.episodes-season-option:hover,
.episodes-season-option.is-active {
	background: #383838;
	color: #fff;
}

/* --- Season panels --- */

.episodes-season-panel {
	display: none;
}

.episodes-season-panel.is-active {
	display: block;
}

/* --- Quick nav (>16 episodes) --- */

.episodes-quicknav {
	margin-bottom: 16px;
}

.episodes-quicknav-select {
	background: #2a2a2a;
	border: 1px solid #444;
	color: #fff;
	padding: 7px 12px;
	font-size: 14px;
	min-width: 220px;
	cursor: pointer;
	font-family: var(--font-family-oswald, 'Oswald', sans-serif);
}

/* --- Swiper --- */

.episodes-swiper {
	width: 100%;
	overflow: hidden;
}

/* --- Episode card --- */

.episode-card {
	width: 100%;
}

.episode-card__image {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #111;
	margin-bottom: 14px;
}

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

.episode-card__meta {
	padding: 0 2px;
}

.episode-card__title {
	font-family: var(--font-family-oswald, 'Oswald', sans-serif);
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 4px;
	line-height: 1.2;
	text-transform: uppercase;
}

.episode-card__number {
	font-family: var(--font-family-oswald, 'Oswald', sans-serif);
	font-size: 13px;
	color: #aaa;
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* --- Description with read-more clamp --- */

.episode-card__desc-inner {
	overflow: hidden;
	max-height: 130px;
	transition: max-height 0.35s ease;
}

.episode-card__desc.is-expanded .episode-card__desc-inner {
	max-height: 2000px;
}

.episode-card__read-more,
.episode-card__collapse {
	background: none;
	border: none;
	padding: 0;
	color: #4F4F4F;
	font-size: 18px;
	cursor: pointer;
	margin-top: 4px;
	display: inline-block;
	transition: color 0.2s ease;
}

.episode-card__read-more:hover,
.episode-card__collapse:hover {
	color: #ccc;
}

.episode-card__collapse {
	display: none;
}

.episode-card__desc.is-expanded .episode-card__read-more {
	display: none;
}

.episode-card__desc.is-expanded .episode-card__collapse {
	display: inline-block;
}

/* --- Navigation arrows --- */

.episodes-nav {
	display: flex;
	justify-content: space-between;
	gap: 6px;
	margin-top: 20px;
}

.episodes-nav__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	background: transparent;
	color: var(--color-gray-light);
	cursor: pointer;
	transition: color 0.2s ease;
	flex-shrink: 0;
}

.episodes-nav__btn:hover {
	color: var(--color-red, #E31E24);
}

.episodes-nav__btn.swiper-button-disabled {
	opacity: 0.25;
	cursor: not-allowed;
	pointer-events: none;
}

@media (max-width: 768px) {
	.persony-content-episodes {
		margin: 32px 0;
	}
}