/* 1. Глобальні налаштування */
:root {
    --bg-dark: #0b110b;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --accent-green: #82a376; /* Світлий салатовий текст */
    --btn-green: #4a6d3c;    /* Темно-зелений для кнопок */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif; /* Шрифт має бути підключений у functions.php */
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 700px;
    padding: 0 20px;
}



.hero-content {
    max-width: 900px;
}

/* Заголовки */
.main-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
}

.main-subtitle {
    font-size: 36px;
    color: var(--accent-green);
    font-weight: 500;
    margin-bottom: 40px;
}

/* Дата та Місце */
.hero-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    color: var(--text-gray);
    font-size: 18px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-item .icon {
    font-size: 20px;
}

/* Кнопки */
.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 80px;
}

.btn {
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s;
    display: inline-block;
}

.btn-filled {
    background-color: var(--btn-green);
    color: var(--text-white);
}

.btn-filled:hover {
    background-color: #5a854a;
}

.btn-outlined {
    border: 1px solid #333;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outlined:hover {
    background: rgba(255, 255, 255, 0.1);
}


.stat-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Основний контейнер для тексту в Hero */
.hero-content {
    max-width: 850px;      /* Обмежуємо ширину, щоб текст не розтягувався на весь екран */
    text-align: left;      /* Вирівнюємо текст по лівому краю */
    margin-left: 0;        /* Скидаємо центрування, якщо воно було через margin: auto */
    margin-right: auto;    /* Залишаємо вільне місце справа */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Вирівнюємо кнопки та мета-дані по лівому краю всередині flex-контейнера */
}



/* Якщо кнопки все ще по центру, додайте це: */
.hero-actions {
    display: flex;
    justify-content: flex-start; /* Кнопки в ряд зліва */
    gap: 20px;
    width: 100%;
}







/* Контентний блок скидає всі можливі центрування */
.hero-content {
    max-width: 850px;
    width: 100%;
    margin-left: 0;   /* Притискаємо до лівого краю контейнера */
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Вирівнює вкладені flex-елементи (кнопки, мета) зліва */
    text-align: left;
}

/* Кнопки в ряд зліва */
.hero-actions {
    display: flex;
    flex-wrap: wrap; /* Щоб не вилазили на малих екранах */
    justify-content: flex-start; 
    gap: 15px;
    margin-bottom: 80px;
}





/* Основний контейнер для блоку статистики */
.stats-bar {
    
    padding: 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    
}

/* Кожна окрема картка */
.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центруємо вміст картки (іконку, цифру) по вертикалі */
    position: relative;
    padding: 0 30px; /* Внутрішні відступи для тексту */
}


/* Стилі для іконки */
.stat-icon {
    margin-bottom: 20px; /* Відступ до цифри */
    height: 40px; /* Фіксуємо висоту іконки */
    display: flex;
    align-items: center;
}

.stat-icon img {
    max-height: 100%; /* Картинка підлаштовується під висоту блоку */
    width: auto;
}

/* Стилі для цифри (Зелена) */
.stat-value {
    font-size: 42px;
    font-weight: 700;
    color: #82a376; /* Салатово-зелений колір з макету */
    margin-bottom: 10px;
}

/* Стилі для підпису (Сірий, вузький) */
.stat-label {
    font-size: 14px;
    color: #a0a0a0; /* Тьмяно-сірий колір */
    line-height: 1.3;
    max-width: 180px; /* Обмежуємо ширину, щоб текст переносився як на макеті */
}






/* Hero Section */
.hero-section {
    
    min-height: 100vh;
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 100px;
}

.hero-content {
    max-width: 850px;
    text-align: left; /* Текст ліворуч */
    margin-bottom: 60px;
}

/* Кнопки та Мета */
.hero-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-card {
    text-align: center;
    position: relative;
}

/* Вертикальні розділювачі */
.stat-card:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 150px;
    width: 1px;
    background: rgba(255,255,255,0.1);
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    color: #82a376; /* Зелений колір з макету */
    margin: 10px 0;
}

.stat-label {
    font-size: 14px;
    color: #a0a0a0;
    text-transform: uppercase;
}





/* Контейнер секції */
.speakers-section {
    background-color: #0b110b; /* Глибокий темний фон як на макеті */
    padding: 80px 20px;
    color: #ffffff;
}

/* Заголовок та посилання "Усі спікери" */
.speakers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.speakers-header h2 {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.all-speakers {
    color: #82a376; /* Фірмовий зелений колір */
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}

.all-speakers:hover {
    opacity: 0.8;
}

/* Сітка спікерів */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки як на скріншоті */
    gap: 20px;
}

/* Картка спікера */
.speaker-card {
    background: #151c15; /* Трохи світліший фон для контрасту картки */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Обгортка фото */
.speaker-photo {
    width: 100%;
    aspect-ratio: 1 / 1.1; /* Пропорції фото */
    overflow: hidden;
}

.speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition: filter 0.4s ease;
}

.speaker-card:hover .speaker-photo img {
    filter: grayscale(0%);
}

/* Блок з інформацією */
.speaker-info {
    padding: 20px;
    flex-grow: 1;
}

.speaker-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.speaker-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.speaker-meta .position {
    font-size: 13px;
    color: #888888; /* Сірий колір для посади */
    text-transform: uppercase;
}

.speaker-meta .company {
    font-size: 14px;
    color: #82a376; /* Зелений колір для компанії */
}

/* Адаптивність */
@media (max-width: 1024px) {
    .speakers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .speakers-grid {
        grid-template-columns: 1fr;
    }
}



/* Робимо так, щоб Slick не ламав сітку */
.speakers-grid.slick-initialized {
    display: block;
}

.speakers-grid .speaker-card {
    margin: 0 10px; /* Відступи між слайдами */
}

/* Стилізація стрілок */
.slick-prev, .slick-next {
    position: absolute;
    top: -60px; /* Піднімаємо до рівня заголовка */
    background: #151c15;
    border: 1px solid #82a376;
    color: #82a376;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slick-prev { right: 60px; } /* Позиція зліва від наступної стрілки */
.slick-next { right: 0; }

.slick-prev:hover, .slick-next:hover {
    background: #82a376;
    color: #fff;
}

/* Вимикаємо стандартні стрілки Slick, якщо вони заважають */
.slick-disabled {
    opacity: 0.3;
    cursor: default;
}


.speakers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.speakers-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px; /* Відступ між "Усі спікери" та кнопками */
}

.slider-arrows {
    display: flex;
    gap: 12px;
}

/* Стиль кнопок як на макеті */
.slider-arrows button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
}

.slider-arrows button:hover {
    border-color: #82a376;
    color: #82a376;
}

/* Ховаємо стандартне позиціонування Slick */
.slick-prev, .slick-next {
    position: static !important;
    transform: none !important;
}

/* Колір "Усі спікери" */
.all-speakers {
    color: #82a376;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
}


.program-section {
    padding: 80px 20px;
    background-color: #0b110b;
    color: #fff;
}

.program-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.view-full-program {
    color: #82a376;
    text-decoration: none;
    font-size: 14px;
}

.program-wrapper {
    position: relative;
}

/* Центральна лінія */
.program-divider {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(130, 163, 118, 0.3);
    transform: translateX(-50%);
}

.program-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.program-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

/* Точки на лінії */
.program-col:last-child .program-item::before {
    content: "";
    position: absolute;
    left: -44px; /* Позиція точки на лінії */
    top: 5px;
    width: 10px;
    height: 10px;
    background: #82a376;
    border-radius: 50%;
    z-index: 2;
}

.event-time {
    color: #82a376;
    font-weight: 600;
    min-width: 100px;
    font-size: 16px;
}

.event-content h3 {
    font-size: 18px;
    margin: 0 0 5px 0;
}

.event-content p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* Адаптивність */
@media (max-width: 768px) {
    .program-grid { grid-template-columns: 1fr; gap: 40px; }
    .program-divider { display: none; }
    .program-col:last-child .program-item::before { display: none; }
}


.site-footer {
    background-color: #0b110b; /* Темний фон як на макеті */
    padding: 80px 20px 40px;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Ліва частина ширша */
    gap: 60px;
    align-items: flex-start;
}

.footer-title {
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 20px;
}

/* Картка з інфо */
.footer-info-card {
    background: transparent;
    border: 1px solid rgba(130, 163, 118, 0.3); /* Напівпрозора зелена рамка */
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 500;
}

.info-item .icon {
    font-size: 20px;
    opacity: 0.8;
}

/* Кнопка в футері */
.btn-register-footer {
    background-color: #4a633f; /* Темно-зелений як на макеті */
    color: #ffffff;
    text-decoration: none;
    padding: 18px 25px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.btn-register-footer:hover {
    background-color: #5a7a4c;
}

.footer-bottom-line {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* Адаптивність */
@media (max-width: 991px) {
    .footer-about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.main-content{
    padding: 0 20px;
}



.site-header {
    background-color: #0b110b;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header {
    position: fixed; /* Або sticky */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Щоб хедер був поверх усіх елементів, навіть модалок */
    
    /* Додамо легке розмиття фону для ефекту преміальності */
    backdrop-filter: blur(10px);
    background-color: rgba(11, 17, 11, 0.9); /* Напівпрозорий темний фон */
    
    transition: all 0.3s ease; /* Для плавних ефектів */
}

.header-container {
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Стилі меню */
.main-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.main-menu a:hover {
    color: #82a376;
}

/* Логотип */
.header-logo img {
    max-height: 50px;
    width: auto;
}

/* Кнопка Реєстрація */
.btn-registration {
    background-color: #4a633f;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.btn-registration:hover {
    background-color: #5a7a4c;
}

/* Мобільна адаптивність */
@media (max-width: 991px) {
    .header-navigation {
        display: none; /* Тут зазвичай додається скрипт для мобільного меню */
    }
}


/* Плавний скрол для всього сайту */
html {
    scroll-behavior: smooth;
}

/* Коригування відступу при скролі (щоб шапка не перекривала заголовок) */
section {
    scroll-margin-top: 100px; 
}

/* Кнопка Реєстрація як у прикладі */
.btn-registration {
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    background-color: #4a633f; /* Фірмовий зелений */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    overflow: hidden;
    transition: background 0.3s ease;
}

.btn-registration span:first-child {
    padding: 12px 20px;
}

/* Блок зі стрілкою (візуально відділений) */
.btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1); /* Легкий відблиск для стрілки */
    padding: 12px 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px;
}

.btn-registration:hover {
    background-color: #5a7a4c;
}

.btn-registration:hover .btn-arrow {
    transform: translateX(3px);
}

/* Стилі для пунктів меню при наведенні */
.main-menu a {
    position: relative;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #82a376;
    transition: width 0.3s ease;
}

.main-menu a:hover::after {
    width: 100%;
}



@media (max-width: 991px) {
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px 0;
    }

    .stat-card:nth-child(2)::after {
        display: none; /* Прибираємо лінію після другого елемента */
    }
}

/* Мобільні телефони (1 колонка) */
@media (max-width: 600px) {
    .stats-bar {
        padding: 40px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 30px 10px;
    }

    /* Прибираємо вертикальні лінії та додаємо горизонтальні */
    .stat-card:not(:last-child)::after {
        right: 50%;
        bottom: 0;
        top: auto;
        transform: translateX(50%);
        width: 60%;
        height: 1px;
    }

    .stat-value {
        font-size: 36px;
    }
}



/* Вимикаємо flex, коли slick ініціалізовано */
.stats-grid.slick-initialized {
    display: block;
}

/* Налаштування точок (dots) для слайдера */
.stats-bar .slick-dots {
    bottom: -30px;
    list-style: none;
    display: flex !important;
    justify-content: center;
    padding: 0;
}

.stats-bar .slick-dots li {
    margin: 0 5px;
}

.stats-bar .slick-dots li button {
    font-size: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(130, 163, 118, 0.3); /* Напівпрозорий зелений */
    border: none;
    padding: 0;
    cursor: pointer;
}

.stats-bar .slick-dots li.slick-active button {
    background: #82a376; /* Активна точка */
    transform: scale(1.2);
}

/* Прибираємо роздільники на мобільних, якщо це слайдер */
@media (max-width: 600px) {
    .stat-card::after {
        display: none !important;
    }
    
    .stats-bar {
        padding-bottom: 60px; /* Місце для точок */
    }
}


/* Центруємо самі слайди всередині Slick */
.stats-grid .slick-track {
    display: flex !important;
    align-items: center;
}

.stats-grid .slick-slide {
    display: flex !important;
    justify-content: center; /* Центрує картку по горизонталі */
    height: auto;
}

/* Центруємо елементи всередині картки */
.stat-card {
    display: flex !important;
    flex-direction: column;
    align-items: center; /* Центрує іконку, цифру і текст */
    text-align: center;
    width: 100%;
    max-width: 300px; /* Обмежуємо ширину, щоб текст не розтягувався */
    margin: 0 auto;
}

/* Вирівнювання іконок */
.stat-icon {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Вирівнювання точок (dots) */
.stats-bar .slick-dots {
    display: flex !important;
    justify-content: center;
    padding: 0;
    margin-top: 20px;
    position: static; /* Щоб вони не наповзали на контент */
}



/* Фон модального вікна */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

/* Контентне вікно */
.modal-content {
    background-color: #0b110b;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid rgba(130, 163, 118, 0.3);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #82a376;
    font-size: 30px;
    cursor: pointer;
}

.modal-title {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.modal-subtitle {
    color: #888;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Поля форми */
.registration-form .form-group {
    margin-bottom: 20px;
}

.registration-form input {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

.registration-form input:focus {
    border-color: #82a376;
}

.registration-form .btn-registration {
    width: 100%;
    justify-content: space-between;
    cursor: pointer;
    border: none;
}