:root {
    --background: #E9E9E9;
    --secondary-background: #222274;
    --primary-text: #000000;
    --secondary-text: #214D84;
    --additional-text: #454545;
    
    --logo-blue: #30307F;
    
    --button-text: #FFFFFF;
}

html {
    background: var(--background);
    min-height: 100%;
}

@font-face {
    font-family: "e-Ukraine-Bold";
    src: url("../fonts/e-Ukraine-Bold.ttf") format("opentype");
}

@font-face {
    font-family: "e-Ukraine-Medium";
    src: url("../fonts/e-Ukraine-Medium.otf") format("opentype");
}

@font-face {
    font-family: "e-UkraineHead-LOGO";
    src: url("../fonts/e-UkraineHead-LOGO.otf") format("opentype");
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary-text);
    background: none !important;
}

.accesability-header {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.content {
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-top: -35px;
}

.top-image {
    position: relative;
    width: 100vw;
    max-width: 1040px;
    min-height: 500px;
    height: 40vh;
}

.top-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 27%;
    width: 73%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: cover;
    z-index: 999;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,1) 95%, rgba(0,0,0,0));
}

.about-button {
    font-family: "e-Ukraine-Bold", sans-serif;
    border: none;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    width: max-content;
    min-width: max-content;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--button-text);
}

.about-button .button-icon {
    display: inline-block;
    height: 1rem;
    padding-right: 0.5rem;
}

.button-block {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.banner {
    width: 100%;
    padding: 20px;
    background-color: var(--secondary-background);
    border-radius: 1.5rem;
}

.banner .banner-text {
    width: 70%;
}

.banner .banner-text h3 {
    font-family: "e-Ukraine-Bold", sans-serif;
    color: var(--secondary-text);
    font-size: 1.3rem;
}

.banner .banner-text .text-info {
    margin: 1rem 0;
}

.banner .banner-text p {
    font-family: "e-UkraineHead-LOGO", sans-serif;
    color: var(--primary-text);
    font-size: 1rem;
    margin-bottom: 0;
}

.banner .banner-text .additional {
    color: var(--additional-text);
}

.social-buttons {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    text-align: center;
    margin-bottom: 0.2rem;
    gap: 1rem;
    max-width: 100%;
    flex-wrap: wrap;
}

.social-buttons a {
    background-color: var(--secondary-text);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 1rem;
    aspect-ratio: 1;
}

.social-buttons a img {
    width: 1rem;
    height: 1rem !important;
    align-self: center;
    margin: 0;
    border-radius: 0;
}

.columns {
    width: 100%;
    padding: 10px 0px;
    display: inline-flex;
    gap: 2rem;
}

.column {
    width: calc(50% - 5px);
    display: flex;
    align-items: center;
}

.column h2, .column a {
    font-family: "e-Ukraine-Bold", sans-serif;
    color: var(--secondary-text);
    font-size: 1.3rem;
    margin: 0;
}

.column p {
    font-family: "e-UkraineHead-LOGO", sans-serif;
    color: var(--primary-text);
    font-size: 1rem;
}

.horizontal-list-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.horizontal-list-element {
    width: calc(33% - 13.3px);
    padding: 20px;
    background-color: var(--secondary-background);
    border-radius: 1.5rem;
}

.horizontal-list-element img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.93rem;
    margin-bottom: 0.6rem;
    object-fit: cover;
}

.horizontal-list-element-info > * {
  width: 50%;
}

.horizontal-list-element h2 {
    min-height: 6rem;
}

.horizontal-list-element h2, .horizontal-list-element-info p, .vertical-list-element h2 {
    font-family: "e-Ukraine-Bold", sans-serif;
    color: var(--logo-blue);
    font-size: 1.3rem;
}

.horizontal-list-element .horizontal-list-element-text, .vertical-list-element p {
    font-family: "e-UkraineHead-LOGO", sans-serif;
    color: var(--primary-text);
    font-size: 0.9rem;
}

.horizontal-list-element-text {
    min-height: 5.7rem;
}

.horizontal-list-element-info {
    display: inline-flex;
    width: 100%;
}

.horizontal-list-element-info .time p {
    text-align: end;
    margin-bottom: 0.1rem;
    font-size: 0.9rem;
}

.horizontal-list-element-info .location {
    font-size: 0.9rem;
    width: 50%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.vertical-list-columns {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vertical-list-element {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 20px;
    background-color: var(--secondary-background);
    border-radius: 1.5rem;
    padding: 20px;
}

.vertical-list-element img {
    width: calc(33% - 33.3px);
    height: 170px;
    border-radius: 0.93rem;
    object-fit: cover;
}

.vertical-list-element-text {
    width: calc(67% - 13.3px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.list {
    width: 100%;
    padding-bottom: 40px;
}

.about-button {
    background-color: var(--secondary-text);
}

.about-button:hover {
    background-color: var(--logo-blue);
    cursor: pointer;
}

.page-header {
    padding-top: 3rem;
    font-family: "e-Ukraine-Bold", sans-serif;
    background: -webkit-linear-gradient(#0E5D91, #214D84);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-wrapper {
    position: relative;
    width: 35%;
    height: 100%;
    margin-left: 20px;
    display: flex;
    align-items: start;
}

.pagination {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.page-link {
    background-color: unset;
    border: none;
    font-family: "e-Ukraine-Bold", sans-serif;
    color: var(--secondary-text);
    font-size: 1.3rem;
    margin: 0;
}

.follow-block .social-buttons a {
    background-color: var(--logo-blue);
}

.follow-button {
    white-space: normal;
    word-wrap: break-word;
    text-wrap: wrap;
    width: 100%;
    min-width: unset;
    border-radius: 1rem;
    display: none;
}

.follow-block {
    padding: 20px;
    background-color: var(--secondary-background);
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 30%;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.follow-block h2 {
    font-family: "e-Ukraine-Bold", sans-serif;
    color: var(--logo-blue);
    font-size: 1.3rem;
    margin: 0;
}

.follow-block .close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 1.3rem;
    height: 1.3rem;
    -webkit-mask-image: url(../../images/icons/close.svg);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url(../../images/icons/close.svg);
    mask-repeat: no-repeat;
    mask-size: contain;
    background-color: hsl(204, 82%, 31%);
}

.banner {
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: auto;
    background-size: 30% auto;
}

@media (max-width: 991px) {
    .follow-block {
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 750px) {
    .top-image {
        min-height: 200px;
        height: 200px;
    }
    
    .columns {
        display: flex;
        flex-direction: column;
        gap: 0;
        gap: 1rem;
    }
    
    .column {
        width: 100%;
    }
    
    .social-buttons a {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 1.25rem;
    }

    .social-buttons a img {
        width: 1.5rem;
        height: 1.5rem !important;
    }
    
    .first {
        order: 1;
    }
    
    .second {
        order: 2;
    }
    
    .horizontal-list-element {
        width: calc(50% - 10px);
    }
}

.animated {
    opacity: 0.3;
    transform: translateY(25px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animated.animate {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 750px) {
    .button-block {
        flex-direction: column;
        gap: 0;
    }
    
    .banner {
        background-size: 40% auto;
        background-position: bottom right;
    }
    
    .about-button {
        min-width: 13rem;
        min-height: 3.5rem;
        margin: 10px 0;
    }
}

@media (max-width: 660px) {
    .vertical-list-element {
        flex-direction: column;
    }
    
    .vertical-list-element img {
        width: 100%;
        aspect-ratio: 4/3;
        height: auto;
        border-radius: 0.93rem;
        object-fit: cover;
    }
    
    .vertical-list-element-text {
        width: 100%;
    }
    
    .horizontal-list-element {
        width: 100%;
    }
    
    .horizontal-list-element h2 {
        min-height: unset;
    }
}

@media (max-width: 460px) {
    .banner .banner-text {
        width: 100%;
    }
    
    .banner {
        background-size: 30% auto;
    }
}

@media (max-width: 400px) {
    .social-buttons a {
        width: 1.7rem;
        height: 1.7rem;
        border-radius: 0.85rem;
    }
    
    .social-buttons a img {
        width: 0.9rem;
        height: 0.9rem !important;
    }
    
    button {
        font-size: 0.9rem;
    }
    
    .banner {
        background-image: none !important;
        padding-bottom: 0;
    }
}