header {
    position: relative;
    padding: 15px 0;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Вирівнювання по верхньому краю */
    flex-wrap: wrap;
    gap: 20px; /* Відступ між секціями */
}

header .top-bar {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header .container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    height: 100%;
}
header .site-title{
    font-family: 'Alegreya Sans';
    font-weight: bold;
    list-style: none;
}
header ul {
    font-family: 'Alegreya Sans';
    padding-top: 15px;
    font-size: 25px;
    font-weight: bold;
    list-style: none;
    display: flex;
}
header .top-bar li a{
    list-style: none;
    padding:.25rem 1rem;
    font-family: 'Alegreya Sans';
    font-size: 25px;
    color: #ffffff;
}

header .top-bar li:hover a {
    color: #f9de85;
}

header .top-bar li:first-child a {
    padding-left: 0;
}

header .top-bar li:first-child a {
    padding-right: 0;
}

.header-left {
    flex: 1;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
}

.top-bar {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.top-bar a {
    text-decoration: none;
    color: inherit;
}

.mobile-menu-icon {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #ffffff;
    margin-left: 20px;
    padding: 5px;
}
@media (max-width: 768px) {
    .mobile-menu-icon {
        display: block;
        margin-left: auto;
        order: 1;
    }
    
    .header-right {
        justify-content: flex-end;
    }
    
    .menu-holder {
        color: #ffffff;
        display: none;
    }
    
    .menu-holder.active {
        display: flex;
        justify-content: center;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: <?php echo esc_attr(get_theme_mod('header_bg_color', '#ffffff')); ?>;
        z-index: 1000;
        padding: 15px 0;
        box-shadow: 0 5px 10px rgba(255, 255, 255, 0.1);
    }
    
    .top-bar {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
    }
}
.page-wrap {
    padding: 2rem 0;
}

a.site-title {
	   text-decoration: none;
    font-family: 'Alegreya Sans';
    color: #ffffff;
}

body, .site {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
}


.site-footer {

    background: #577057;
    color: #fff;
    padding: 20px 0;
}



.footer-section {
	list-style-type: none;
    flex: 1;
    padding: 10px;
}

.footer-section h4 {
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-section a {
    display: flex;
    color: #ffffff;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 5px;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    display: inline-block;
    margin-right: 10px;
}

.social-links img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-links i {
    font-size: 24px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.social-links a:hover i {
    color: #e76f51;
}


.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.site-icon-with-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-container{
    height: 30px; /* Настройте по необходимости */
    width: auto;
}

@media screen and (max-width: 800px) {
    .container {
        display: flex;
        
        text-align: center;
    }
}

/* 404 Page Styles */
.error-404-page {
    max-width: 800px;
    margin: 0 auto;
margin-top: 100px;
    padding: 50px 20px;
    text-align: center;
    font-family: Arial, sans-serif;
    color: #333;
}

.error-404-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-code {
    font-size: 72px;
    margin-bottom: 20px;
    color: #2e7d32; 
    line-height: 1;
}

.error-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #2e7d32;
}

.error-message {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

.error-buttons {
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.button {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.home-button {
    background-color: #2e7d32;
    color: white;
}

.home-button:hover {
    background-color: #1b5e20;
}

.back-button {
    border: 2px solid #2e7d32;
    color: #2e7d32;
    background: transparent;
}

.back-button:hover {
    background-color: #e8f5e9;
}

.organization-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 16px;
}


@media (max-width: 600px) {
    .error-code {
        font-size: 60px;
    }
    
    .error-title {
        font-size: 24px;
    }
    
    .error-message {
        font-size: 16px;
    }
    
    .button {
        padding: 10px 20px;
    }
}


@media (max-width: 900px) {
	a.site-title {
       text-decoration: none;
     font-family: 'Alegreya Sans';
    width: 450px;
     color: #ffffff;
     transform: rotate(90rem);
 }
 contact-info {
    text-align: left
 };
}


@media (max-width: 700px) {
	a.site-title {
     text-decoration: none;
     font-family: 'Alegreya Sans';
    width: 250px;
     color: #ffffff;
 }
}
@media (max-width: 700px) {
	footer .container  {
display: grid;
place-items: center; 
 }
footer .footer-section p {
place-items: center;
}
}