:root {
    --background: #F5F8FB;
    --secondary-background: #FFFFFF;
    --primary-text: #1E293B;
    --secondary-text: #004B87;
    --additional-text: #64748B;

    --logo-blue: #0E5D91;
    --dark-navy: #0E1E2D;
    --gold-accent: #D4AF37;
    --accent-color: #0072CE;
    --border-color: #E2E8F0;
    --card-shadow: 0 4px 20px rgba(14, 30, 45, 0.06);

    --button-text: #FFFFFF;
}

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

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

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

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

body {
    font-family: "Mariupol-Regular", sans-serif;
    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;
}

.visible-title {
    display: block;
    width: 100%;
    max-width: 1460px;
    margin: 75px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    padding-left: 34px;
    font-family: "Mariupol-Bold", sans-serif;
    font-size: 2.2rem;
    line-height: 1.25;
    color: var(--secondary-text);
}

div[role="region"][aria-label="Назва сторінки"] {
    width: 100%;
}

.visible-title::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0.15em;
    bottom: 0.15em;
    width: 6px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--logo-blue), var(--secondary-text));
}

@media (max-width: 991px) {
    .visible-title {
        margin-top: 60px;
        font-size: 1.7rem;
    }
}

@media (max-width: 600px) {
    .visible-title {
        font-size: 1.4rem;
    }
}

.content {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1460px;
    padding: 0px 20px 20px 20px;
    gap: 20px;
    min-height: calc(100vh - 370px);
}

.content, .ml-language-popup {
    margin-top: 75px;
}

.top-image {
    position: relative;
    width: calc(100vw - 40px);
    max-width: 1420px;
    height: 200px;
    margin-top: 20px;
}

.top-image::after {
    left: 70%;
    width: 30%;
    height: 100%;
    background-position: left top;
    content: "";
    position: absolute;
    top: 0;
    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: "Mariupol-Bold", sans-serif;
    border: none;
    border-radius: 2rem;
    padding: 0.7rem 1.5rem;
    width: max-content;
    min-width: max-content;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--button-text);
    background-color: var(--secondary-text);
    box-shadow: var(--card-shadow);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.about-button.gold {
    color: var(--dark-navy);
    background-color: var(--gold-accent);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

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

.banner {
    width: 100%;
    padding: 20px;
    background-color: var(--secondary-background);
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 30% auto;
}

.banner .banner-text {
    width: 70%;
    margin-left: auto;
}

/* окремі банери мають .button-block поза .banner-text — вирівнюємо так само,
   щоб текст/кнопка не перекривали декоративне зображення в лівому куті */
.banner > .button-block {
    width: 70%;
    margin-left: auto;
    justify-content: flex-start;
}

.banner .banner-text h3 {
    font-family: "Mariupol-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: "Mariupol-Regular", 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;
    object-fit: contain;
}

.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: "Mariupol-Bold", sans-serif;
    color: var(--secondary-text);
    font-size: 1.3rem;
    margin: 1rem 0;
}

.news-header {
    position: relative;
    padding-left: 16px;
    font-size: 1.9rem !important;
}

.news-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.05em;
    bottom: 0.05em;
    width: 5px;
    background: var(--logo-blue);
    border-radius: 2px;
}

.column p {
    font-family: "Mariupol-Regular", sans-serif;
    color: var(--primary-text);
    font-size: 1rem;
    margin: 0 0 0.7rem 0;
}

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

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

.horizontal-list-element {
    width: calc(33.333% - 14px);
    padding: 16px;
    background-color: var(--secondary-background);
    border-radius: 1.2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

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

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

.horizontal-list-element h2 {
    min-height: auto;
    font-size: 1.1rem !important;
}

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

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

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

.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;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

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

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

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

.about-button:hover {
    background-color: var(--logo-blue);
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.about-button.gold:hover {
    background-color: #c29d2e;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
}

.page-header {
    font-size: 3.6rem;
    font-family: "Mariupol-Bold", sans-serif;
    background: -webkit-linear-gradient(var(--logo-blue), var(--secondary-text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
}

.logo-wrapper {
    width: 70%;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

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

.page-link {
    background-color: var(--secondary-background);
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    width: 2.6rem;
    height: 2.6rem;
    display: flex;
    justify-content: center;
    font-family: "Mariupol-Bold", sans-serif;
    color: var(--secondary-text);
    font-size: 1rem;
    margin: 0;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.page-link:hover {
    background-color: var(--light-blue, #EEF6FC);
    cursor: pointer;
}

.page-link.active {
    background-color: var(--logo-blue);
    border-color: var(--logo-blue);
    color: #FFFFFF;
}

.dots {
    display: flex;
    align-items: center;
    color: var(--additional-text);
    font-family: "Mariupol-Bold", sans-serif;
}

.follow-block .social-buttons {
    margin: 0;
}

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

.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%;
    max-width: 30%;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

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

.follow-block h2 {
    font-family: "Mariupol-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%);
}

.news-list-header {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 0 20px 0;
    position: relative;
    padding-left: 16px;
    margin: 1rem 0;
}

@media (max-width: 991px) {
    .content, .ml-language-popup {
        margin-top: 60px;
    }
}

@media (max-width: 750px) {
    .top-image {
        height: 100px;
    }
    
    .top-image::after {
        left: 60%;
        width: 40%;
    }
    
    .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 left;
    }
    
    .about-button {
        min-width: 13rem;
        min-height: 3.5rem;
        margin: 10px 0;
    }
}

@media (max-width: 740px) {
    .vertical-list-element {
        flex-direction: column;
    }
    
    .vertical-list-element img {
        width: 100%;
        max-width: unset;
        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,
    .banner > .button-block {
        width: 100%;
        margin-left: 0;
    }
    
    .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;
    }
}



@media (max-width: 991px) {
    .page-header {
        font-size: 3.1rem;
        overflow-wrap: break-word;
    }
    
    .top-image::after {
        left: 60%;
        width: 40%;
    }
    
    .logo-wrapper {
        width: 60%;
    }
}

@media (max-width: 950px) {
    .page-header {
        font-size: 3rem;
    }
}

@media (max-width: 770px) {
    .page-header {
        font-size: 3.1rem;
    }
}

@media (max-width: 750px) {
    .page-header {
        font-size: 1.3rem;
        padding-top: 0rem;
    }
    
    .logo-wrapper {
        align-items: center;
    }
}

@media (max-width: 600px) {
    .page-header {
        font-size: 1.2rem;
    }
}

@media (max-width: 440px) {
    .page-header {
        font-size: 1rem;
    }
}
