/* ========================================
   CSS CUSTOM PROPERTIES - Light Mode (Default)
   ======================================== */
:root {
	/* Dashboard Green Gradient Colors */
	--primary-blue: #004000;
	--primary-blue-dark: #002b00;
	--primary-blue-darker: #001800;
	--primary-gradient: linear-gradient(135deg, #005a00 0%, #004000 100%);
	--primary-gradient-hover: linear-gradient(135deg, #007000 0%, #005a00 100%);

	/* Neutral Colors */
	--text-primary: #1a1a2e;
	--text-secondary: #6c757d;
	--text-muted: #adb5bd;
	--bg-body: #ffffff;
	--bg-card: #ffffff;
	--bg-hover: #f8f9fa;
	--border-color: #e9ecef;
	--border-subtle: #dee2e6;

	/* Shadows */
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
	--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
	--shadow-hover: 0 6px 20px rgba(0, 64, 0, 0.35);

	/* Spacing Scale */
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2rem;
	--space-xl: 3rem;

	/* Border Radius */
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;

	/* Typography */
	--font-size-base: 1rem;
	--font-size-sm: 0.875rem;
	--font-size-xs: 0.75rem;
	--font-size-lg: 1.125rem;
	--font-size-xl: 1.25rem;
	--line-height-base: 1.6;

	/* Code Blocks */
	--code-bg: #f8f9fa;
	--code-text: #333;
	--code-border: #e9ecef;
}

/* ========================================
   BASE STYLES
   ======================================== */
html {
	position: relative;
	min-height: 100%;
	scroll-behavior: smooth;
}

body {
	padding-top: 56px;
	margin-bottom: 80px;
	background-color: var(--bg-body);
	color: var(--text-primary);
	transition: background-color 0.3s ease, color 0.3s ease;
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
}

section {
	padding: 150px 0;
}

img {
	max-width: 100%;
	height: auto;
  display: block;
  margin: 10px auto;
}

p { margin: 15px 0 0 0; }

/* ========================================
   LINKS
   ======================================== */
a {
	color: var(--primary-blue);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--primary-blue-dark);
	text-decoration: none;
}

a:focus {
	outline: 2px solid var(--primary-blue);
	outline-offset: 2px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1.title,
h2.title {
	font-size: 2.3rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: var(--space-md);
}

h1.title {
	font-size: 2.5rem;
}

/* ========================================
   CODE BLOCKS
   ======================================== */
pre,
code {
	background: var(--code-bg);
	color: var(--code-text);
	border-radius: var(--radius-sm);
	transition: background-color 0.3s ease, color 0.3s ease;
}

pre {
	border-left: 3px solid var(--primary-blue);
	padding: var(--space-md);
	overflow-x: auto;
}

code {
	display: inline-block;
	padding: 0.2em 0.5em;
	line-height: 1.4em;
	font-size: 0.9em;
}

/* ========================================
   TABLES
   ======================================== */
table {
	empty-cells: show;
	border: 1px solid var(--border-color);
	width: 100%;
	font-size: 0.9em;
	margin-bottom: var(--space-md);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

thead {
	background: var(--primary-gradient);
	color: #ffffff;
	text-align: left;
	vertical-align: bottom;
}

tr {
	display: table-row;
	vertical-align: inherit;
	border-color: var(--border-color);
	transition: background-color 0.2s ease;
}

tbody tr:hover {
	background-color: var(--bg-hover);
}

th,
td {
	padding: 0.75em 1em;
	border-bottom: 1px solid var(--border-color);
}

/* ========================================
   BLOCKQUOTES
   ======================================== */
blockquote {
	padding: var(--space-md) var(--space-lg);
/*	margin: 0 0 var(--space-lg) var(--space-lg);*/
	border-left: 4px solid var(--primary-blue);
	font-style: italic;
	background-color: var(--bg-hover);
	border-radius: var(--radius-sm);
	color: var(--text-secondary);
}

/* ========================================
   NAVBAR - Blue Gradient
   ======================================== */
.navbar-modern {
	background: var(--primary-gradient) !important;
	box-shadow: var(--shadow-md);
	transition: all 0.3s ease;
}

.navbar-brand {
	font-weight: 600;
	font-size: 1.25rem;
	transition: transform 0.3s ease;
}

.navbar-brand:hover {
	transform: translateY(-2px);
}

.navbar .nav-link {
	font-size: 0.9rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9) !important;
	padding: 0.5rem 1rem;
	border-radius: var(--radius-sm);
	transition: all 0.3s ease;
}

.navbar .nav-link:hover {
	background-color: rgba(255, 255, 255, 0.15);
	color: #ffffff !important;
}

.navbar .nav-link.active {
	background-color: rgba(255, 255, 255, 0.2);
	color: #ffffff !important;
}

img.nav-svg-icon {
	width: 1.2rem;
	height: 1.2rem;
	filter: brightness(0) invert(1);
	opacity: 0.9;
	transition: opacity 0.3s ease;
}

.nav-link:hover img.nav-svg-icon {
	opacity: 1;
}

/* ========================================
   CARDS - Modern Design
   ======================================== */
.card-modern {
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: var(--space-xl);
	margin-bottom: var(--space-xl);
}

.card-modern .card-img-top {
	border-radius: var(--radius-sm);
}

.card-modern .card-body {
	padding: 0;
	margin-top: var(--space-md);
}

.card-modern .title {
	color: var(--text-primary);
}

/* ========================================
   BUTTONS - Gradient Style
   ======================================== */
.btn-primary-gradient {
	background: var(--primary-gradient);
	border: none;
	color: white;
	padding: 0.75rem 1.5rem;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: var(--font-size-base);
	transition: all 0.3s ease;
	box-shadow: var(--shadow-sm);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.btn-primary-gradient:hover {
	background: var(--primary-gradient-hover);
	box-shadow: var(--shadow-hover);
	transform: translateY(-2px);
	color: white;
	text-decoration: none;
}

.btn-primary-gradient:focus {
	outline: 2px solid var(--primary-blue);
	outline-offset: 2px;
}

.btn-outline-primary-custom {
	border: 2px solid var(--primary-blue);
	color: var(--primary-blue);
	background: transparent;
	padding: 0.6rem 1.5rem;
	border-radius: var(--radius-sm);
	font-weight: 600;
	transition: all 0.3s ease;
}

.btn-outline-primary-custom:hover {
	background: var(--primary-blue);
	color: white;
	transform: translateY(-2px);
}

/* ========================================
   FOOTER - Blue Gradient
   ======================================== */
footer.footer-modern {
	position: absolute;
	bottom: 0;
	width: 100%;
	min-height: 80px;
	line-height: 1.5;
	background: var(--primary-gradient);
	color: white;
	padding: var(--space-lg) 0;
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
	font-size: var(--font-size-sm);
}

footer.footer-modern a {
	color: rgba(255, 255, 255, 0.9);
	transition: color 0.3s ease;
}

footer.footer-modern a:hover {
	color: #ffffff;
}

.mini-logo {
	height: 24px;
	vertical-align: middle;
	filter: brightness(0) invert(1);
}

/* ========================================
   METADATA (Dates, Reading Time)
   ======================================== */
.metadata {
	color: var(--text-secondary);
	font-size: var(--font-size-sm);
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
	align-items: center;
}

.metadata i {
	color: var(--primary-blue);
	margin-right: 0.25rem;
}

/* ========================================
   PAGINATION - Modern Style
   ======================================== */
.pagination .page-link {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	color: var(--primary-blue);
	padding: 0.6rem 1.2rem;
	border-radius: var(--radius-sm);
	font-weight: 500;
	transition: all 0.3s ease;
}

.pagination .page-link:hover {
	background: var(--primary-gradient);
	color: white;
	border-color: var(--primary-blue);
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
}

.pagination .page-item.disabled .page-link {
	background: var(--bg-hover);
	color: var(--text-muted);
	border-color: var(--border-color);
}

/* ========================================
   PLUGINS - Sidebar Styling
   ======================================== */
.sidebar-container {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: var(--space-lg);
}

.plugin {
	margin-top: 0;
	padding-bottom: var(--space-lg);
	margin-bottom: var(--space-lg);
	border-bottom: 1px solid var(--border-subtle);
}

.plugin:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.plugin-label {
	font-size: var(--font-size-base);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: var(--space-md);
}

.plugin ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.plugin ul li {
	padding: var(--space-xs) 0;
}

.plugin ul li a {
	color: var(--text-primary);
	display: block;
	transition: color 0.3s ease;
}

.plugin ul li a:hover {
	color: var(--primary-blue);
}

/* Tags and Categories - Badge Style */
.plugin.plugin-tags li,
.plugin.plugin-categories li {
	display: inline-block;
	padding: 0;
	margin: 0.25rem;
}

.plugin.plugin-tags li a,
.plugin.plugin-categories li a {
	background: var(--primary-gradient);
	color: white;
	padding: 0.4rem 1rem;
	border-radius: 20px;
	font-size: var(--font-size-sm);
	font-weight: 500;
	display: inline-block;
	transition: all 0.3s ease;
}

.plugin.plugin-tags li a:hover,
.plugin.plugin-categories li a:hover {
	background: var(--primary-gradient-hover);
	color: white;
}

/* Search Plugin Styling */
.plugin.plugin-search .form-control {
	border: 2px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: 0.75rem 1rem;
	background: var(--bg-body);
	color: var(--text-primary);
	transition: all 0.3s ease;
}

.plugin.plugin-search .form-control:focus {
	border-color: var(--primary-blue);
	box-shadow: 0 0 0 3px rgba(0, 64, 0, 0.15);
	outline: none;
}

.plugin.plugin-search button {
	background: var(--primary-gradient);
	border: none;
	color: white;
	padding: 0.75rem 1.5rem;
	border-radius: var(--radius-sm);
	font-weight: 600;
	transition: all 0.3s ease;
	margin-top: var(--space-sm);
}

.plugin.plugin-search button:hover {
	background: var(--primary-gradient-hover);
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
}

/* ========================================
   BOOTSTRAP ICONS
   ======================================== */
.bi {
	margin-right: 0.5rem;
}

/* ========================================
   COVER IMAGE ENHANCEMENTS
   ======================================== */
.cover-image-wrapper {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-sm);
	margin-bottom: var(--space-md);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
	h1.title {
		font-size: 1.8rem;
	}

	h2.title {
		font-size: 1.5rem;
	}

	body {
		font-size: 0.95rem;
	}

	.plugin {
		padding: var(--space-md);
	}

	.btn-primary-gradient {
		width: 100%;
		justify-content: center;
	}
}

/* -----------------------------------------------
   Plugin: Random Category Article
----------------------------------------------- */

.plugin-random-article {
    position: fixed;
    bottom: 45px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 9999;
    pointer-events: none; /* чтобы блок-обёртка не перекрывал страницу */
}

.plugin-random-article__btn {
    display: inline-block;
    padding: 14px 68px; 
    background-color: #f97316;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 10px;
    border: 3px solid transparent;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.15s ease;
    pointer-events: auto; /* возвращаем клики только кнопке */
}

.plugin-random-article__btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.5);
    color: #fff;
}

.plugin-random-article__btn:active {
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4);
    color: #fff;
}

/* -----------------------------------------------
   Plugin: Home Buttons (шорткод [home])
----------------------------------------------- */

.home-buttons-wrapper {
    margin: 2em 0;
    text-align: center;
}

.home-btn {
    display: block;
    max-width: 320px;
    margin: 0 auto 1em;
    padding: 16px 28px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Кнопка 1: Лента (тёмно-зелёный, под цвет темы) */
.home-btn-primary {
    background: linear-gradient(135deg, #005a00, #004000);
}

.home-btn-primary:hover,
.home-btn-primary:active,
.home-btn-primary:visited {
    background: linear-gradient(135deg, #007000, #005a00);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Кнопка 2: Случайно (оранжевый) */
.home-btn-secondary {
    background: linear-gradient(135deg, #fb923c, #f97316);
}

.home-btn-secondary:hover,
.home-btn-secondary:active,
.home-btn-secondary:visited {
    background: linear-gradient(135deg, #f97316, #ea6c00);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* -----------------------------------------------
   ТЕСТ
----------------------------------------------- */

.question { padding: 25px; border: 2px solid #ddd; border-radius: 10px; background: #fafafa; margin-bottom: 20px; }
.options { list-style: none; padding: 0; margin: 20px 0; }
.option { 
    margin: 12px 0; padding: 18px; 
    background: #f0f8ff; border-radius: 8px; 
    cursor: pointer; transition: all 0.3s; 
    border: 2px solid transparent;
    user-select: none;
}
.option:hover { background: #e0f2ff; transform: translateX(5px); }
.option.correct { background: #d4edda !important; border-color: #28a745; color: #155724; }
.option.incorrect { background: #f8d7da !important; text-decoration: line-through; border-color: #dc3545; color: #721c24; }
.explanation { 
    margin-top: 20px; padding: 20px; 
    background: linear-gradient(135deg, #e3f2fd, #bbdefb); 
    border-left: 5px solid #2196f3; 
    border-radius: 5px; 
    display: none; 
    animation: fadeIn 0.5s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reset-btn { 
    margin-top: 20px; padding: 12px 24px; 
    background: #ff9800; color: white; 
    border: none; border-radius: 25px; 
    cursor: pointer; font-size: 16px;
}
.reset-btn:hover { background: #f57c00; }

/*----------------------------------------------- */

.paginator {    text-align: center;}

@media (min-width: 900px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl {
    max-width: 900px;
  }
}

@media (min-width: 768px) {
  .col-md-9 {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
}

a {
	color: #000;
	text-decoration: none;
	border-bottom: 1px dotted;
}

a:hover {
		border-bottom: 2px solid #f80;
}

.navbar a 	{border-bottom: 0px;}
