/*!
Theme Name: Dobrobat US
Theme URI: https://dobrobat.us/
Author: Dobrobat
Description: WordPress theme for Dobrobat USA — nonprofit landing page for Ukraine reconstruction support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dobrobat-us
Tags: one-column, custom-menu, translation-ready, block-styles

Dobrobat US is a one-page landing theme built from the Dobrobat USA static site.
*/

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* News */
.news-section .swiper-slide {
	height: auto;
}

.news-card__title-wrap {
	margin: 0 0 0.12rem;
}

.news-card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.25;
}

/* Single news */
.is-news .header {
	background-color: var(--yellow, #ffd900);
}

.news-single {
	padding: calc(var(--header-height, 0.8rem) + 0.24rem) 0 1.2rem;
}

.news-single__card {
	border-radius: 0.15rem;
	background: #fff;
	box-shadow: 0 0.04rem 0.24rem rgba(0, 0, 0, 0.08);
}

@media (min-width: 640px) {
	.news-single__card {
		padding: 0.86rem 0.8rem 1.2rem;
	}
}

.news-article__header {
	margin-bottom: 0.24rem;
}

.news-article__back {
	display: inline-block;
	margin-bottom: 0.24rem;
	font-size: 0.14rem;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	color: inherit;
	border-bottom: 2px solid transparent;
	transition: border-color 0.3s ease;
}

.news-article__back:hover {
	border-color: #000;
}

.news-article__date {
	display: block;
	margin-bottom: 0.12rem;
	font-size: 0.14rem;
	font-weight: 500;
	color: #8a8a8a;
}

.news-single .news-article__title {
	margin: 0;
	font-size: 0.22rem;
	font-weight: 600;
	line-height: 1.35;
	text-transform: none;
	letter-spacing: normal;
}

@media (min-width: 640px) {
	.news-single .news-article__title {
		font-size: 0.26rem;
	}
}

@media (min-width: 1024px) {
	.news-single .news-article__title {
		font-size: 0.28rem;
		line-height: 1.3;
	}
}

.news-article__thumbnail {
	margin: 0.24rem 0;
	height: 2.4rem;
}

@media (min-width: 640px) {
	.news-article__thumbnail {
		height: 6rem;
		margin: 0.32rem 0;
	}
}

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

.news-gallery {
	margin-top: 0.4rem;
	padding-top: 0.32rem;
	border-top: 2px solid #e8e8e8;
}

@media (min-width: 640px) {
	.news-gallery {
		margin-top: 0.5rem;
		padding-top: 0.4rem;
	}
}

.news-gallery__title {
	margin: 0;
}

.news-gallery .swiper {
	overflow: hidden;
}

.news-gallery .swiper-slide {
	height: auto;
}

.news-gallery__item {
	margin: 0;
}

.news-gallery__link {
	display: block;
}

.news-gallery__frame {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 2.2rem;
	background: #f5f5f0;
}

@media (min-width: 640px) {
	.news-gallery__frame {
		height: 2.8rem;
	}
}

@media (min-width: 1024px) {
	.news-gallery__frame {
		height: 3.2rem;
	}
}

.news-gallery__image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform 0.35s ease;
}

.news-gallery__link:hover .news-gallery__image {
	transform: scale(1.02);
}

.news-gallery__controls {
	margin-top: 0.24rem;
}

.news-article__content {
	font-size: 0.14rem;
	font-weight: 500;
	line-height: 1.6;
}

@media (min-width: 640px) {
	.news-article__content {
		font-size: 0.16rem;
	}
}

.news-article__content > *:first-child {
	margin-top: 0;
}

.news-article__content > *:last-child {
	margin-bottom: 0;
}

.news-article__content > h1:first-child {
	display: none;
}

.news-article__content p,
.news-article__content ul,
.news-article__content ol {
	margin-bottom: 1em;
}

.news-article__content a {
	border-bottom: 1px solid currentColor;
	text-decoration: none;
	transition: color 0.3s ease, border-color 0.3s ease;
}

.news-article__content a:hover {
	color: #ffd900;
	border-color: #ffd900;
}

.news-article__content h2,
.news-article__content h3,
.news-article__content h4 {
	font-weight: 600;
	text-transform: none;
	margin: 1.25em 0 0.5em;
}

.news-article__content h2 {
	font-size: 0.2rem;
}

.news-article__content h3 {
	font-size: 0.18rem;
}

.news-article__content img {
	border-radius: 0.1rem;
	max-width: 100%;
	height: auto;
}

/* News archive */
.news-archive {
	padding: calc(var(--header-height, 0.8rem) + 0.24rem) 0 1.2rem;
}

.news-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 100%;
	background: linear-gradient(160deg, #fff9d6 0%, var(--yellow, #fdc300) 55%, #f5b800 100%);
}

.news-card__placeholder-logo {
	width: 55%;
	max-width: 1.2rem;
	height: auto;
	opacity: 0.9;
}

.news-archive__pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.16rem;
	justify-content: center;
	font-size: 0.14rem;
	font-weight: 600;
}

.news-archive__pagination .page-numbers {
	padding: 0.08rem 0.16rem;
	border-bottom: 2px solid transparent;
	transition: border-color 0.3s ease;
}

.news-archive__pagination .page-numbers.current,
.news-archive__pagination .page-numbers:hover {
	border-color: #000;
}
