.project-filter {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto 40px auto !important;
    gap: 10px !important;
}

.project-filter li {
    display: inline-block !important;
    margin: 0 !important;
}

.project-filter li a {
    display: block !important;
    padding: 10px 20px !important;
    background: #f4f7fb !important;
    color: #444 !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.project-filter li a.active, 
.project-filter li a:hover {
    background: #d9534f !important; 
    color: #fff !important;
}

.roll-project .isotope-container {
    display: block !important;
    position: relative !important;
}

.project-item.item {
    width: calc(50% - 20px) !important; 
    height: 160px !important;
    margin: 10px !important;
    background: #f4f7fb !important;
    border-radius: 15px !important;
    overflow: hidden !important;
}

.project-item > a:first-of-type {
    width: 40% !important;
    height: 100% !important;
    display: block !important;
    float: left !important;
}

.project-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.visible-title {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: 60% !important;
    height: 100% !important;
    padding: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: #f4f7fb !important;
    z-index: 5 !important;
}

.visible-title span {
    color: #002d72 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.project-item::after {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    color: #fff !important;
    z-index: 10 !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
}

html:lang(uk) .project-item.aktyvni::after { 
    content: "Активний"; 
    background: #003399 !important; 
}
html:lang(uk) .project-item.zaversheni::after { 
    content: "Завершений"; 
    background: #6c757d !important; 
}

/* --- ENGLISH VERSION (en-GB) --- */
html:lang(en-GB) .project-item.aktyvni::after { 
    content: "Active"; 
    background: #003399 !important; 
}
html:lang(en-GB) .project-item.zaversheni::after { 
    content: "Completed"; 
    background: #6c757d !important; 
}

.project-title-wrap, .project-pop-wrap, .project-cat {
    display: none !important;
}

@media (max-width: 768px) {
    .project-item.item {
        width: calc(100% - 20px) !important;
    }
}

.visible-title a {
    text-decoration: none !important;
    display: block !important;
    width: 100% !important;
}

.visible-title a span {
    color: #002d72 !important; 
    transition: color 0.3s ease;
}


.visible-title a:hover span {
    color: #d9534f !important; 
}
.blog-post {
width: 32%;
box-shadow: 0 0.2em 0.2em 0 rgba(0, 0, 0, 0.4);
margin: 2px;
}
@media (max-width: 768px) {
    .blog-post {
        width: calc(100% - 10px) !important;
    }
   .blog-post p {
     padding: 0 8px;
    }
}
html[lang="en-GB"] .button.roll-button.header-item {
    font-size: 0 !important; /* ""   */
}

/* 2.    */
html[lang="en-GB"] .button.roll-button.header-item::after {
    content: 'Donate'; /*    */
    font-size: 13px;   /*    (  ) */
    display: inline-block;
    vertical-align: middle;
}
.has-post-thumbnail {
box-shadow: 0 0.2em 0.2em 0 rgba(0, 0, 0, 0.4);
}

.content-inner, h2, p{
padding: 0 8px;
}
.knp {
position: relative;
display: inline-block:
width: 210px;
height: 40px;
margin-top: 10px;;
padding: 0 10px;
float: right;
}
.knp2 {
position: relative;
display: inline-block:
width: 210px;
height: 40px;
margin-left: 30px;
margin-right: 100px;
margin-top: 10px;;
padding: 0 10px;
float: right;
}
.knp a{
padding: 0 !important;
}
.entry-title {
width: 100%;
height: auto;
background: transparent;
padding: 5px 10px;

}
.entry-title a {
width: 100%;
color: #3c299a !important;
font-size: 20px !important;
padding: 5px 10px;
}
.entry-header h1{
background: transparent;
font-size: 28px !important;
padding: 5px 10px !important;
}

.em-view-container{
color: #000000;
background: rgb(255,255,255,1);
padding: 10px;
}
.em-item-image-placeholder {
color: #107797;
}

.sidebar-column {
border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.maintitle {
font-weight: 400 !important;
}
.subtitle {
padding: 0px 20px !important;
}
.header-contact-phone {
font-size: 20px !important;
}
.round {
width: 200px;
height: 200px;
padding: 30px 0;
border-radius: 50%;
background: #eff5f9;
margin: 0 auto;
}
.round:hover {
background: #dbedf9;
}
.round a{
display: block;
font-size: 18px;
line-height: 18px !important;
color: #3c299a !important;
}
.button-slider {
margin-top: 10px;
font-size: 20px !important;
}

.borderline {
width: 50%;
border-bottom: 4px solid #b9d806;
margin-top: 0px;
margin-bottom: 0px;
}
.boxsright {
  --s: 10px; 
  padding: var(--s);
  border: calc(2*var(--s)) solid #0000;
  outline: 1px solid #000;
  outline-offset: calc(-1*var(--s));
  background: conic-gradient(from 90deg at 1px 1px,#0000 25%,#000 0);
}

.boxsleft{
margin-top: -50%;
margin-left: 45% !important;
outline: 1px solid #fefefe;
outline-offset: -5px;
box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.2);
}

.text-slider {
background: -moz-linear-gradient(left,  rgba(16,119,151,0.4) 0%, rgba(16,119,151,0.6) 100%);
background: -webkit-linear-gradient(left,  rgba(16,119,151,0.4) 0%, rgba(16,119,151,0.6) 100%);
background: linear-gradient(to right,  rgba(16,119,151,0.4) 0%, rgba(16,119,151,0.6) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#33001220', endColorstr='#66001220',GradientType=1 );
padding:20px;
  position: relative;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-name: fadeInRightBig;
  animation-name: fadeInRightBig;
}
.slide-inner a {
color: #000000 !important;
}

.boxs {
border-radius: 2px;
outline: 8px solid rgba(220, 173, 103, 0.4);
outline-offset: -8px;
-webkit-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
box-shadow: 0 0.2em 0.2em 0 rgba(0, 0, 0, 0.4);
}
.boxs h2{
color: #47425D !important;
}
.boxs h4{
background: #004878; 
color: #ffffff !important;
}
.boxs:hover {
-webkit-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
box-shadow: 0 0.3em 0.3em 0 rgba(0, 0, 0, 0.5);
}
.boxs1 {
border-radius: 2px;
padding: 10px;
outline: 8px solid rgba(220, 173, 103, 0.4);
outline-offset: -8px;
-webkit-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
box-shadow: 0 0.2em 0.2em 0 rgba(0, 0, 0, 0.4);
}
.blockleft {
background: rgba(255,255,255,0.2);
padding: 0px 20px;
}
.blockleft h2{
margin: 0 !important;
padding: 0 !important;
color: #1d2a4d !important;
padding: 20px;
}
.blockright {
font-size: 30px;
padding-left: 30px;
color: #ffffff;
border: 3px double #ffffff;
border-radius: 10px;
background: rgba(255,255,255,0.2);
}
.hours {
display:inline-block;
width: 40px;
height: 40px;
font-size: 24px;
text-align: center;
background: #ffffff;
color: #3c299a;
border-radius: 50%;
}
.hours2 {
display:inline-block;
width: 40px;
height: 40px;
font-size: 24px;
text-align: center;
background: #ffffff;
color: #b83709;
border-radius: 50%;
}
.formcont {
background: rgba(229,229,229,0.4);
padding: 20px !important;
margin-top: 150px;
}
.blockss {
text-align: center !important;
padding: 0px;
position: relative;
background: rgba(121,163,158,0.4);
transition: all .5s ease-in-out;
box-shadow: 0 0.1em 0.1em rgba(0, 0, 0, 0.2);
}
.blockss .testprof{
position: relative;
margin: 0 auto;
width: 100%;
padding: 8px 1px;
text-align: center;
background:#004878;
color: #ffffff;
}

.blockss::before{
    content: "";
    position: absolute;
      left: 0px;
    top: 0px;
    opacity: 0;
    border-top: 2px solid #004878;
    border-left: 2px solid #004878;
    transition: all .5s ease-in-out;
}

.blockss::after{
    content: "";
    position: absolute;
    width: 0px;
    height: 0px;
    right: 0px;
    bottom: 0px;
    opacity: 0;
    border-bottom: 2px solid #004878;
    border-right: 2px solid #004878;
    transition: all .5s ease-in-out;
}

.blockss.active::before
{
    width: 150px;
    height:150px;
    opacity: 1;
}

.blockss.active::after
{
    width: 150px;
    height: 150px;
    opacity: 1;
}

.blockss:hover::before{
    width: 50px;
    height: 50px;
    opacity: 1;
}


.blockss:hover::after{
    width: 50px;
    height: 50px;
    opacity: 1;
}


.textwidget .fa {
font-size: 12px;
color: #ff5e14;
}
.widget-area {
border-left: 3px solid #b9d806;
}
.sow-carousel-content {
background: rgba(216,216,216,0.3);
border-radius: 2px;
padding: 0 8px;
-webkit-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
box-shadow: 0 0.1em 0.1em 0 rgba(0, 0, 0, 0.2);
}
.blog-post {
}
.more-button {
position: absolute;
visibility:hidden;
display:none;
}
.inbiz  {
margin-top: -34px;
}
.inbiz a {
font-size: 16px;
color: #d5d4d2 !important;
}
@media only screen and (max-width : 960px) { 
.formcont {
margin-top: 10px;
}
#sidebar-footer {
text-align: center !important;
}
.inbiz  {
width: 100%;
text-align: center;
margin-top: 4px;
}
.inbiz a {
font-size: 14px;
color: #9d9c9a !important;
}

.boxsleft{
margin-top: -55%;
margin-left: 32% !important;
width: 240px;
}
.sidebar-column {
border-right: 0px solid rgba(255, 255, 255, 0.3);
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.maintitle {
font-size: 28px !important;
}
.frontboxtop {
margin-top: 0px;
}

}
@media (max-width: 768px) {
    /* 1. Робимо картку вертикальною */
    .project-item.item {
        flex-direction: column !important;
        height: auto !important; /* Дозволяємо рости вниз */
        min-height: 350px !important;
    }

    /* 2. Фото займає верхню частину */
    .project-item > a:first-of-type {
        width: 100% !important;
        height: 200px !important;
        float: none !important;
    }

    /* 3. Текстовий блок під фото */
    .visible-title {
        position: relative !important; /* Вириваємо з абсолюту для гнучкості */
        width: 100% !important;
        height: auto !important;
        padding: 15px 15px 45px 15px !important; /* Місце знизу для ярлика */
        float: none !important;
        display: block !important;
    }

    /* 4. Ярлик статусу переносимо вниз під текст */
    .project-item::after {
        top: auto !important;
        bottom: 15px !important;
        left: 15px !important;
        right: auto !important;
        width: fit-content !important;
    }
}