/**
 * Bootstrap 3 → 5 compat shim (typography, alert close, navbar, FAQ).
 * Layout, thumbnails, and content grid live in theme-base.css.
 */

/* --- Typography (BS3 base was 14px, BS5 is 16px) --- */
body {
	font-size: 14px;
	line-height: 1.42857143;
	color: #333;
}

h1, .h1 { font-size: 36px; }
h2, .h2 { font-size: 30px; }
h3, .h3 { font-size: 24px; }
h4, .h4 { font-size: 18px; }
h5, .h5 { font-size: 14px; }
h6, .h6 { font-size: 12px; }

.lead {
	font-size: 21px;
	font-weight: 300;
	line-height: 1.4;
}

small, .small {
	font-size: 85%;
}

/* BS3 .close in alerts (forms, fixed banner) — BS5 removed .close class */
.alert .close,
.alert button.close {
	float: right;
	font-size: 21px;
	font-weight: bold;
	line-height: 1;
	color: inherit;
	text-shadow: none;
	opacity: 0.9;
	padding: 0;
	margin: -2px 0 0 10px;
	background: transparent;
	border: 0;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
}

.alert .close:hover,
.alert .close:focus,
.alert button.close:hover,
.alert button.close:focus {
	opacity: 1;
	color: inherit;
}

.missed-output .close,
.email-output .close,
.unknown-output .close,
.success-output .close {
	font-size: 14px;
	padding-top: 4px;
	padding-bottom: 4px;
}

/* --- Carousel: natural proportions --- */
.carousel-inner {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.carousel-inner > .carousel-item > img,
.carousel-inner > .carousel-item > a > img {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	margin-left: auto;
	margin-right: auto;
}

.carousel-inner > .carousel-item {
	position: relative;
}

/* --- Navbar (veselka) --- */
.wood-navbar .nav-link,
.wood-navbar .dropdown-menu .dropdown-item {
	line-height: 20px;
}

.wood-navbar .dropdown-menu .dropdown-item {
	color: #333;
	white-space: nowrap;
}

.wood-navbar .dropdown-menu .dropdown-item:hover,
.wood-navbar .dropdown-menu .dropdown-item:focus {
	color: #262626;
	background-color: #f5f5f5;
}

.wl-lang-switcher {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.15rem;
	font-size: 13px;
	line-height: 20px;
}

#pills-menu .wl-lang-switcher {
	margin-bottom: 0.5rem;
}

.wood-navbar .navbar-lang .wl-lang-switcher {
	color: #fff;
}

.wl-lang-switcher__item {
	color: inherit;
	text-decoration: none;
	padding: 0 0.15rem;
}

.wl-lang-switcher__item:hover,
.wl-lang-switcher__item:focus {
	text-decoration: underline;
}

.wl-lang-switcher__item--active {
	font-weight: 700;
	opacity: 0.95;
}

.wl-lang-switcher__sep {
	opacity: 0.6;
	user-select: none;
}

@media (max-width: 767.98px) {
	body {
		overflow-x: hidden;
	}
}

/* --- FAQ block (wl-seo-faq) --- */
.entry-content #wl-seo-faq.wl-faq > h2 {
	margin-top: 0;
	margin-bottom: 1.25rem;
}

.entry-content #wl-seo-faq .wl-faq-item {
	background-color: #f7f5f2;
	border: 1px solid #e8e4df;
	border-radius: 6px;
	padding: 1rem 1.25rem;
	margin-bottom: 0.75rem;
}

.entry-content #wl-seo-faq .wl-faq-item:last-child {
	margin-bottom: 0;
}

.entry-content #wl-seo-faq .wl-faq-item h3 {
	font-size: 18px;
	line-height: 1.35;
	margin: 0 0 0.5rem;
	color: #350007;
}

.entry-content #wl-seo-faq .wl-faq-item p {
	margin: 0;
	color: #555;
	line-height: 1.5;
}

@media (max-width: 767.98px) {
	.entry-content #wl-seo-faq .wl-faq-item {
		padding: 0.875rem 1rem;
	}

	.entry-content #wl-seo-faq .wl-faq-item h3 {
		font-size: 16px;
	}
}
