/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
Author: uaz-upi.com
*/


.site-logo-img img {
	filter: none;}
.field .field-label, .field .field-label-inline, .field .field-label-inline-first {
    font-weight: bold;
}



h2, .entry-content h2, .entry-content h2 a {font-size: 42px; font-size: 1.5rem;}
h1, .entry-content h1, .entry-content h1 a {font-size: 48px; font-size: 2.2rem;}

.main-header-bar-wrap {
    position: fixed;
    width: 100%;
}

.header-scrolled {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
	
}

.main-header-bar-wrap {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent;
}

.main-header-bar-wrap .menu-link {
    
}

.main-header-bar-wrap.header-scrolled {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-header-bar-wrap.header-scrolled .menu-link {
    color: black !important;
}


p {
    margin-bottom: 0.1em;
}



.ast-archive-description p {
    margin-bottom: 0;
    font-size: 14px;
    font-size: 1rem;

}


.ast-blog-layout-5-grid .ast-blog-featured-section img {
    object-fit: scale-down;
}

/* Стилізація дерева категорій */
.category-tree ul {
    list-style-type: none;
    margin: 0;
    padding-left: 1em;
    border-left: 1px dotted #ccc;
}

.category-tree li {
    margin: 4px 0;
    position: relative;
}

.category-tree li::before {
    content: '';
    position: absolute;
    top: 0.6em;
    left: -1em;
    width: 0.5em;
    height: 1px;
    background: #ccc;
}

.category-tree a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
}

.category-tree a:hover {
    color: #0073aa;
}

.category-tree li.active > a {
    font-weight: bold;
    color: #0073aa;
}

@media (max-width: 600px) {
    .category-tree ul {
        padding-left: 0.5em;
    }

    .category-tree li {
        font-size: 14px;
    }
}



.category-tree {
    font-family: sans-serif;
    font-size: 15px;
	    padding-top: 25px;
}

.category-tree ul {
    list-style: none;
    margin: 0;
    padding-left: 1em;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-tree li {
    margin: 4px 0;
    position: relative;
    line-height: 1.5;
}

.category-tree a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease;
    padding-left: 5px;
}

.category-tree a:hover {
    color: #0073aa;
}

.category-tree li.active > a {
    font-weight: bold;
    color: #0073aa;
}

.category-tree .toggle-arrow {
    cursor: pointer;
    font-size: 12px;
    margin-right: 5px;
    color: #666;
    user-select: none;
}

.category-tree .collapsible > ul {
    display: none;
    padding-left: 1em;
    border-left: 1px dashed #ccc;
}

.category-tree .collapsible.expanded > ul {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.category-tree .collapsible > .toggle-arrow {
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}

.category-tree .collapsible.expanded > .toggle-arrow {
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-2px); }
    to { opacity: 1; transform: translateY(0); }
}

.no-results {
	display:none;
}
