/* Загальні стилі */
h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
}

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0 20%; /* Відступи з боків */
    background-color: #f9f9f9;
    display: flex; /* Встановлюємо флекс-батьківський елемент */
    flex-direction: column; /* Ставимо вертикальний напрямок для контенту */
    min-height: 100vh; /* Мінімальна висота екрану */
}

@media (max-width: 768px) {
    body {
        font-family: 'Open Sans', sans-serif;
        margin: 0;
        padding: 0 4%; /* Відступи з боків */
        background-color: #f9f9f9;
        display: flex; /* Встановлюємо флекс-батьківський елемент */
        flex-direction: column; /* Ставимо вертикальний напрямок для контенту */
        min-height: 100vh; /* Мінімальна висота екрану */
    }
}

.container {
    /*max-width: 1200px;*/
    margin: 0 19%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
}

.gray {
    color: gray;
}
h4 {
    margin-top: 5px;
}

/* Хедер */
header {
    width: 100vw; /* Встановлюємо ширину на 100% ширини вікна */
    position: relative; /* Уникаємо проблем з позиціонуванням */
    left: 50%; /* Вирівнюємо лівий край */
    right: 50%; /* Вирівнюємо правий край */
    margin-left: -50vw; /* Зміщуємо на половину ширини вікна */
    margin-right: -50vw; /* Зміщуємо на половину ширини вікна */
    background-color: #fff;
    padding: 20px 0;
}


header .logo a {
    flex-flow: column-reverse;
    font-size: 150%;
    font-weight: bold;
    color: #333;
    font-family: "Yeseva One", Georgia, Times, serif;
    /*font-family: 'Open Sans', sans-serif; !* Підключення шрифта *!*/
    text-decoration: none; /* Прибирає підкреслення */
    justify-content: left;
}
.future {
    flex-flow: column-reverse;
    font-size: 150%;
    font-weight: bold;
    color: #333;
    font-family: "Yeseva One", Georgia, Times, serif;
    /*font-family: 'Open Sans', sans-serif; !* Підключення шрифта *!*/
    text-decoration: none; /* Прибирає підкреслення */
    justify-content: left;
}
.graficname {
    color: #0053a4;
    font-size: 17px;
    flex-flow: column-reverse;
    font-weight: bolder;
    font-family: "Yeseva One", Georgia, Times, serif;
    /*font-family: 'Open Sans', sans-serif; !* Підключення шрифта *!*/
    text-decoration: none; /* Прибирає підкреслення */
    justify-content: left;
}
header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: right;
    gap: 20px;
}

header nav ul li a {
    text-decoration: none;
    color: gray;
    font-size: 16px;
}

header nav ul li a:hover {
    color: #007bff;
}

/* Основний контент */
table {
    text-align: center;
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table a {
    text-decoration: none;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ddd;
    /*text-align: left;*/
}

table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

table .btn-info {
    display: inline-block;
    padding: 5px 10px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

table .btn-info:hover {
    background-color: #0056b3;
}

/* Архів конференцій */
.archive {
    display: flex;
    gap: 20px;
    /*margin-top: 20px;*/
}

.archive .card {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Футер */
footer {
    width: 100vw; /* Встановлюємо ширину на 100% ширини вікна */
    position: relative; /* Уникаємо проблем з позиціонуванням */
    left: 50%; /* Вирівнюємо лівий край */
    right: 50%; /* Вирівнюємо правий край */
    margin-left: -50vw; /* Зміщуємо на половину ширини вікна */
    margin-right: -50vw; /* Зміщуємо на половину ширини вікна */
    background-color: #e5e5e5;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px; /* Додаємо відступ зверху */
}


footer a {
    color: #007bff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Кнопки */
.btn {
    background: rgba(51, 51, 51, 0.25);
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    text-decoration: none;
    display: inline-flex;
    justify-content: center; /* Горизонтальне вирівнювання */
    align-items: center; /* Вертикальне вирівнювання */
    padding: 8px;
    width: 90%;
    text-align: center;
    background-color: rgb(22, 102, 241);
    border-radius: 5px;
    border: 1px solid rgb(12, 80, 198);
    font-size: 14px;
    font-weight: 800;
    color: rgb(255, 255, 255);
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    cursor: pointer;
    transition: box-shadow 0.3s cubic-bezier(.2, 1, .3, 1),
    transform 0.3s cubic-bezier(.2, 1, .3, 1),
    color 0.3s, background-color 0.3s, border-color 0.3s;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-primary:active {
    background-color: #004494;
    transform: translateY(0);
}



.button {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Відступ між іконкою та текстом */
    background-color: #00a808; /* Зелений фон */
    color: #fff; /* Білий текст */
    font-size: 16px; /* Розмір тексту */
    font-weight: bold; /* Жирний текст */
    font-family: Arial, sans-serif; /* Шрифт */
    text-decoration: none; /* Прибирає підкреслення */
    padding: 10px 20px; /* Внутрішні відступи */
    border-radius: 8px; /* Округлені краї */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Тінь */
    transition: background-color 0.3s ease; /* Анімація при наведенні */
}

.button:hover {
    background-color: #218838; /* Трохи темніший зелений при наведенні */
}

.btn-journal {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Відступ між іконкою та текстом */
    background-color: #0053a4; /* Зелений фон */
    color: #fff; /* Білий текст */
    font-size: 16px; /* Розмір тексту */
    font-weight: bold; /* Жирний текст */
    font-family: Arial, sans-serif; /* Шрифт */
    text-decoration: none; /* Прибирає підкреслення */
    padding: 10px 20px; /* Внутрішні відступи */
    border-radius: 8px; /* Округлені краї */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Тінь */
    transition: background-color 0.3s ease; /* Анімація при наведенні */
}

.btn-journal:hover {
    background-color: rgba(0, 83, 164, 0.34); /* Трохи темніший зелений при наведенні */
}

.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    background-size: cover;
    background-position: center;
}


strong {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.6;
    letter-spacing: 0em;
    font-family: "Yeseva One", Georgia, Times, serif;
    box-sizing: border-box;
    color: rgb(0, 84, 165);
}


.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-block {
    flex: 1;
    text-align: center;
}

.footer-block p,
.footer-block a {
    margin: 0;
    color: #100f0f;
    text-decoration: none;
}

.footer-block a:hover {
    text-decoration: underline;
}

/* Стилі для соціальних іконок */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    background-size: cover;
    background-position: center;
}

.social-icon.facebook {
    background-image: url('icon/free-icon-facebook-5968764.png'); /* Додати іконку Facebook */
}

.social-icon.telegram {
    background-image: url('icon/free-icon-telegram-906377.png'); /* Додати іконку Telegram */
}

.social-icon:hover {
    opacity: 0.8;
}


.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Три колонки */
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    row-gap: 60px;
    padding: 20px;
}

.archive-item {
    display: flex;
    flex-direction: column; /* Вертикальне розташування елементів */
    justify-content: space-between; /* Простір між елементами */
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.34);
    height: 95%; /* Забезпечує однакову висоту блоків */
}
.archive-item a {
    text-decoration: none;
    color: #100f0f;
    font-weight: bold;
}

.archive-item-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.archive-item-content {
    margin: 10px 5px;
    flex-grow: 1; /* Займає доступний простір між заголовком та кнопкою */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Відокремлює вміст та кнопку */
}

.archive-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.archive-item p {
    font-size: 14px;
    color: #666;
}

.archive-item .btn-primary {
    display: inline-block;
    /*padding: 10px 20px;*/
    width: 60%;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    margin-left: 15%;
}

.archive-item .btn-primary:hover {
    background-color: #45a049;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr 1fr; /* Дві колонки на менших екранах */
    }
}

@media (max-width: 480px) {
    .archive-grid {
        grid-template-columns: 1fr; /* Одна колонка на дуже малих екранах */
    }
}

.archive-footer {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.archive-footer .btn-primary {
    width: auto;
    display: inline-block;
    padding: 10px 30px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.archive-footer .btn-primary:hover {
    background-color: #0056b3;
}

.page-separator {
    margin: 0 0 30px -20px;
    height: 2px;
    background: #5a80b1;
}

.conference {
    text-align: center;
}

.font14 {
    font-size: 15px;
}

.grafic {
    width: 100%;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 50px 0;
}

.btn-pagination {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    color: #000;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.btn-pagination:hover {
    background-color: #007bff;
    color: #fff;
}

.btn-pagination.active {
    background-color: #0056b3;
    color: #fff;
    border-color: #0056b3;
}

.pagination-ellipsis {
    display: inline-block;
    padding: 10px 15px;
    color: #999;
}

main {
    display: flex;
    flex-direction: column;
    /*align-items: start;*/
    justify-content: center;
    min-height: 80vh;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr 1fr; /* Дві колонки на менших екранах */
        padding: 0;
    }

    .logo h1 {
        font-size: 14px;
    }

    .logo strong, p, span {
        font-size: 14px;
    }

    .container {
        display: table;
        margin: 0 1%;
    }
    .container a {
        font-size: 80%;
    }
    h2 {
        font-size: 100%;
        margin: 10px 0;
        text-align: center;

    }

    header .logo a, .future, .graficname {
        font-size: 100%;

    }

    .footer-container {
        max-width: 768px;
        flex-direction: column;
        text-align: center;
    }

    .footer-block {
        margin-bottom: 10px;
    }

    .btn-primary {
        width: 80%;
    }

    .archive-item {
        height: auto; /* Автоматична висота на мобільних пристроях */
        font-size: 14px;
        padding: 5px;
    }

    .archive-item .btn-primary {
        width: 80%; /* Кнопка на всю ширину на мобільних пристроях */
        margin-left: 0;

    }
}

@media (max-width: 80px) {
    .archive-grid {
        grid-template-columns: 1fr; /* Одна колонка на дуже малих екранах */
    }

    header .logo a, .future, .graficname {
        font-size: 100%;
    }

    .footer-container {
        padding: 0 10px;
    }

    .footer-block {
        margin-bottom: 5px;
    }

    .btn-primary {
        font-size: 14px; /* Зменшуємо розмір шрифту кнопки */
        width: 100%;
    }

    .archive-item {
        padding: 15px; /* Зменшуємо відступи в картках */
    }

    .archive-item h3 {
        font-size: 16px;
    }

    .archive-item p {
        font-size: 12px;
    }
}

.archive-footer {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.archive-footer .btn-primary {
    width: auto;
    display: inline-block;
    padding: 10px 30px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.archive-footer .btn-primary:hover {
    background-color: #0056b3;
}
.responsive-image {
    width: 100%;
    height: auto;
    max-width: 680px; /* Максимальна ширина для великих екранів */
}


.derzhavna-pidtrymka {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.derzhavna-pidtrymka > div {
    flex: 1 1 100%;
}

.derzhavna-pidtrymka img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .derzhavna-pidtrymka > div:first-child {
        display: flex;
        justify-content: center;
    }

    .derzhavna-pidtrymka img {
        max-width: 50%;
    }
}

@media (min-width: 768px) {
    .derzhavna-pidtrymka {
        flex-wrap: nowrap;
        margin-top: 20px;
    }

    .derzhavna-pidtrymka > div:first-child {
        flex: 1;
        display: block;
    }

    .derzhavna-pidtrymka > div:last-child {
        flex: 2;
    }
}