/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
:root {
	--content-width: 1140px;
	--clr-01: #151515;/*black*/
	--clr-02: #FBFAF5;/*white*/
	--clr-03: #A05B25;/*brown*/
	--clr-04: #E6DFD6;/*beige*/
	--clr-05: #A4ADB4;/*grey*/
	--clr-06: #C59A79;/*light-brown*/
	--clr-07: #f0f0f1;/*light-grey*/
	
	--font:"Montserrat Alternates", sans-serif;
}

html,body {
	min-height:100vh;
}

body {
	display:flex;
	flex-direction:column;
}
body.lock {
	overflow:hidden;
}

.elementor-location-footer {
	margin-top:auto;
}

h2>a, 
h3>a, 
h4>a, 
h5>a,
.elementor-heading-title > a {
	font-family:unset!important;
	font-size:unset!important;
	font-weight:unset!important;
	font-style:unset!important;
}	

.video-type a {
	pointer-events: none;
}

.container {
    margin: 0 auto;
    max-width: calc(var(--content-width) + 20px);
    padding-inline-end: 10px;
    padding-inline-start: 10px;
    width: 100%;
}

.page-header {
	background-color: var(--clr-04);
	padding:25px 0;
	min-height:120px;
}

.rank-math-breadcrumb p {
	margin:0;
}

.page-title {
	margin-bottom:20px;
}

.btn-row {
	display:flex;
	justify-content:center;
	margin-top:40px;
}
.btn {
	color: var(--clr-01)!important;
	transition:background-color 0.3s;
	display: flex;
    align-items: center;
    gap: 10px;
}

#clear-filters-btn,
#close-filters-btn {
	display: flex;
    gap: 8px;
    align-items: center;
}

.btn:hover {
	background-color:var(--clr-03);
	color: var(--clr-01)!important;
}

.resourses-wrapper {
	display:flex;
	flex-direction:column;
	gap:20px;
	margin-top:40px;
}
.resourses-filter {
	background: var(--clr-07); 
	padding: 20px; 
	border-radius: 6px;
}

.filter-group {
	padding:15px 0 20px;
	border-top: 2px solid #e1e1e1;
}

.filter-title {
	margin-top: 0!important; 
	font-size: 16px; 
}
.filter-items {
	max-height: 305px; 
	overflow-y: auto; 
	padding-right: 10px; 
	display: flex; 
	flex-direction: column; 
	gap: 8px;
}

.filter-checkbox-label {
	display: flex; 
	align-items: center; 
	gap: 10px; 
	cursor: pointer; 
	font-size: 14px; 
	line-height: 1.3;
}

.filter-checkbox {
	width: 18px; 
	height: 18px; 
	cursor: pointer;
	flex-shrink: 0;
}

.resources-list {
	display: flex; 
	flex-direction: column; 
	gap: 15px; 
	margin-bottom: 30px;
	opacity:1;
	transition:opacity 0.3s;
}
.resources-list.loading {
	opacity:0.6;
	pointer-events:none;
}

.filter-items::-webkit-scrollbar {
    width: 6px;
}
.filter-items::-webkit-scrollbar-track {
    background: var(--clr-02);
    border-radius: 4px;
}
.filter-items::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
.filter-items::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.clear-filter-row {
	padding-bottom: 20px;
}

.resource-item {
	display:flex;
	max-width:100%;
}

.resource-item a {
	display:block;
}

@media (min-width:768px) {
	.page-header {
		min-height:150px;
	}
	.resourses-wrapper {
		flex-direction:row;
	}
	.resourses-filter {
		flex: 0 0 300px;
		max-height: 100vh;
        position: sticky;
        top: 20px;
		overflow:hidden;
	}
	.resourses-inner {
		flex: 1;
		max-width: calc(100% - 330px);
        word-wrap: break-word;
	}
}

.site-main .resource-card-item {
	border-top: 1px solid var(--clr-04); 
	border-bottom: 3px solid var(--clr-03); 
	padding: 20px 0; 
	font-family: sans-serif; 
	position: relative;
	margin-bottom: 20px;
}
.site-main .resource-meta-top {
	display: flex; 
	align-items: center; 
	gap: 15px; 
	margin-bottom: 15px; 
	flex-wrap: wrap;
}

.site-main .badge-material {
	border: 1px solid var(--clr-03); 
	color: var(--clr-01);
	border-radius: 20px; 
	padding: 5px 12px 3px; 
	font-size: 13px; 
	text-decoration: none; 
	font-weight: 500;
	transition:background-color 0.3s;
}

.site-main .badge-material:hover {
	background-color:var(--clr-03); 
	color:var(--clr-01); 
}

.pub-year {
	font-size: 14px;
}

.site-main .pdf-link {
	margin-left: auto; 
	color: var(--clr-03);
	font-size: 16px; 
	text-decoration: none; 
	letter-spacing: 0.5px;
	transition:color 0.3s;
}
.site-main .pdf-link:hover {
	color: var(--clr-01);
}

.site-main .resource-title {
	margin: 0 0 10px 0; 
	font-size: 18px; 
	font-weight: 600; 
	line-height: 1.4;
	font-family:var(--font);
}

.site-main .resource-title a {
	color:var(--clr-01);
	transition:color 0.3s;
	line-height: 1.4;
}

.site-main .resource-title a:hover {
	color: var(--clr-03);
}

.site-main .resource-people {
	font-size: 14px; 
	line-height: 1.5;	
}

.site-main .auth-link {
	text-decoration: none; 
	border-bottom: 1px dashed #bbb;
}

.site-main .resource-tags-bottom {
	display: flex; 
	gap: 8px; 
	flex-wrap: wrap;
	margin-top: 15px; 
}

.site-main .badge-secondary {
	background-color: #f0eae1; 
	border-radius: 4px; 
	padding: 5px 10px 3px; 
	font-size: 13px; 
	text-decoration: none; 
	transition: background-color 0.3s;
	color: var(--clr-01);
}
.site-main .badge-secondary:hover {
	color: var(--clr-01);
	background-color: var(--clr-03);
}

.single-resources .btn-row {
	justify-content:start;
	margin-top:20px;
}

.btn-rnd {
	border-radius: 30px;
    padding: 7px 14px 5px;
    border: 1px solid var(--clr-03);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--clr-03) !important;
    transition: color 0.3s, background-color 0.3s;
    line-height: 1.2 !important;
    font-size: 16px !important;
}
.btn-rnd:hover {
	color:var(--clr-02)!important;;
}
.single-resources .site-main .resource-card-item {
	padding: 30px 0;
	border-top:none;
	margin-bottom:10px;
	border-color:var(--clr-06);
}

.single-resources .site-main .resource-meta-top {
	margin-bottom:20px;
}

.single-resources .site-main .badge-material,
.single-resources .site-main .pub-year {
	font-size:14px;
}

.single-resources .site-main .resource-title {
	font-size:24px;
	margin-bottom:20px;
}

.single-resources .site-main .resource-people {
    font-size: 16px;
}

.row {
	display:flex;
	flex-wrap:wrap;
}

.col-left {
	width:100%;
}
.col-right {
	width:100%;
}

@media (min-width:768px) {
	.row {
		gap:40px;
	}
	.col-left {
		flex:5;
		width:unset;
	}
	.col-right {
		flex:2;
		width:unset;
	}
}

.book-title {
	font-family:var(--font);
	font-size: 16px;
    font-weight: 500;
    line-height: 1.4em;
	margin-top:30px;
	margin-bottom:14px;
}

.book-details {
	margin:0;
	padding:0;
}
.book-details li {
	display:flex;
	gap:30px;
	margin-bottom:10px;
	align-items:center;
}

.book-details li span:first-child{
	color: #4D5255;
	font-size:14px;
	font-weight:500;
	flex: 0 0 120px;
	line-height: 1.3;
}

.book-details li span:last-child{
	font-family:var(--font);
	font-size: 16px;
    font-weight: 600;
	line-height: 1.4;
}

.book-details .auth-link {
	color:var(--clr-03);
	font-weight:600;
	font-family:var(--font);
	transition:color 0.3s;
}
.book-details .auth-link:hover {
	font-family:var(--font);
	color:var(--clr-06);
}

.topics-list {
	display:flex;
	gap:8px;
	padding:0;
	margin:0;
	list-style:none;
	flex-wrap:wrap;
}

.delimiter {
	border-top:1px solid var(--clr-03);
	margin:30px 0;
}

.book-apa {
	border-left:5px solid var(--clr-06);
	padding: 10px;
	background-color:var(--clr-04);
	border-radius:10px;
}
.book-cite {
	font-size:14px;
	line-height:1.4;
	margin-bottom:15px;
}
.book-apa .btn-cite {
	border-radius: 10px;
    padding: 9px 14px 7px;
	border: 1px solid var(--clr-03);
	display:flex;
	align-items:center;
	gap:8px;
	color:var(--clr-03)!important;
	transition: color 0.3s, background-color 0.3s;
}
.book-apa .btn-cite:hover {
	color:var(--clr-02)!important;;
}

.linked-resources-list {
	margin-top:20px;
	list-style-type:disc!important;
}

.linked-resources-list li {
	position:relative;
}
.linked-resources-list li:before {
	content:"";
	aspect-ratio:1/1;
	width:8px;
	height:auto;
	border-radius:100%;
	background-color:var(--clr-01);
	position:absolute;
	top:10px;
	left:-20px;
}

/*custom accordion*/
/* Базові стилі для контенту акордеона */
[data-acc-content] {
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

/* Стилізація кнопки-заголовка, яку JS створить автоматично */
.acc-trigger-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

/* Дефолтна іконка-стрілочка (створюється динамічно) */
.acc-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 10px;
}

/* Клас для обертання іконки, коли акордеон відкритий */
.acc-icon--rotated {
    transform: translateY(2px) rotate(-135deg);
}
[data-acc-content][aria-hidden="true"] {
	margin-bottom:-20px;
}

#open-filters-btn,
#close-filters-btn {
	width:100%;
	justify-content:center;
	gap:10px;
}

#close-filters-btn {
	margin-top:20px;
}

.filter-search-group {
	padding-bottom: 20px;
}
.filter-search-row {
	display: flex; 
	width: 100%; 
	max-width: 100%; 
	border: 1px solid #ccc; 
	border-radius: 4px; 
	overflow: hidden; 
	background: #fff;
}	

.filter-content {
	position:fixed;
	opacity:0;
	visibility:hidden;
	transition: opacity 0.3s;
}

.filter-content[aria-hidden="false"] {
    background: var(--clr-07);
    width: 100%;
	height: 100vh;
    padding: 20px;
    left: 0px;
    top: 0;
	z-index:100;
	opacity:1;
	visibility:visible;
}
.filters-lists {
	height: calc(100% - 210px);
    overflow-y: auto;
    padding-right: 10px;
    margin-right: -10px;
}

@media (min-width:768px) {
	#open-filters-btn,
	#close-filters-btn
	{
		display:none;
	}
	.filter-content {
		position:static;
		opacity:1;
		visibility:visible;
	}
	.filter-content[aria-hidden="false"] {
		padding:0;
	}
	.filters-lists {
		height: calc(100% - 185px);
	}
	
	.filters-lists::-webkit-scrollbar {
		width: 6px;
	}
	
	.filters-lists::-webkit-scrollbar-track {
		background: var(--clr-02);
		border-radius: 4px;
	}
	.filters-lists::-webkit-scrollbar-thumb {
		background: #c1c1c1;
		border-radius: 4px;
	}
	.filters-lists::-webkit-scrollbar-thumb:hover {
		background: #a8a8a8;
	}
	
	[data-acc-content] {
		overflow-y:auto;
	}
}