/*
Theme Name: DEF
Version: 1.0
*/

/* =========================
RESET
========================= */

*,
*::before,
*::after {
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
font-size: 16px;
line-height: 1.6;

color: #222;
background: #fff;

overflow-x: hidden;

}

img {
display: block;
max-width: 100%;
height: auto;
}

svg {
display: block;
}

a {
color: inherit;
text-decoration: none;
}

ul,
ol {
margin: 0;
padding: 0;
list-style: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 0;
}

button,
input,
textarea,
select {
font: inherit;
}

/* =========================
LAYOUT
========================= */



.section {
padding: 40px 0;
}

.wrapper {
width: 92%;
max-width: 1440px;
margin: 0 auto;
}

.row {
	display:flex;
	gap: 30px;
	justify-content:space-between;
}

.main-col {
	width:75%;
}

.aside-col {
	width:25%;
}

.section-title {
font-size: clamp(26px, 2vw, 34px);	
margin-bottom: 10px;
}

/* =========================
TYPOGRAPHY
========================= */

h1 {
font-size: clamp(36px, 5vw, 64px);
line-height: 1.1;
margin-bottom: 20px;
}

h2 {
font-size: clamp(30px, 4vw, 48px);
line-height: 1.2;
margin-bottom: 20px;
}

h3 {
font-size: clamp(24px, 3vw, 32px);
line-height: 1.2;
margin-bottom: 15px;
}

p {
margin-bottom: 20px;
}



/* =========================
BUTTONS
========================= */

.button,
.wp-block-button__link {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 14px 32px;

border-radius: 50px;

background: #009ee3;
color: #fff;

transition: .3s;

}

.button:hover,
.wp-block-button__link:hover {
transform: translateY(-2px);
}

/* =========================
HEADER
========================= */

.site-header {
position: sticky;
top: 0;
z-index: 100;
background: #141e36;
border-bottom: 1px solid #eee;

}

.site-header .wrapper {
    display: flex;
    flex-direction: column;
    align-items: inherit;
    justify-content: space-between;
    min-height: 90px;
    gap: 20px;
    padding: 20px 0 0 0;
}

.main-menu ul {
display: flex;
gap: 30px;
}

.main-menu a {
transition: .3s;
}

.main-menu a:hover {
color: #009ee3;
}

.custom-logo-link {
	max-width:200px;
}




/* =========================
navigation
========================= */

.navigation {
  
}

.navigation ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navigation ul li {
  position: relative;
  cursor: pointer;
}

.navigation a {
  display: table;
  padding: 15px 30px;
  font-weight: 500;
  font-style: normal;
  color: #fff;
}

.navigation ul li a:before,
.navigation ul li a:hover:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  transition: 0.3s;
}

.navigation ul li a:before {
  width: 0;
}

.navigation ul li a:hover:before {
  width: 100%;
}

.navigation ul li a:hover {
  color: #ff0051;
}

.navigation ul li:hover > ul {
  display: inherit;
  z-index: 9999;
  background: #0054A6;
  box-shadow: 0px 13px 10px -10px rgba(175, 177, 186, 1);
}

.navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  z-index: 9998;
  border: 1px solid #B6C6D3;
  border-radius: 0 0 9px 9px;
}

.navigation ul ul:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 16px;
  background-image: url("/wp-content/themes/razom/design/nav-bg.png");
  background-size: cover;
}

.navigation ul ul li {
  position: relative;
  display: list-item;
  float: none;
  width: 200px;
  padding: 15px 20px;
}

.navigation ul ul li a {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
}

.navigation ul ul li a:hover {
  color: #fbae17;
}





.tag-menu {
	background:#eee;
	display:flex;
	justify-content:flex-start;
	align-items:center;
	padding:5px 10px;
}




/* =========================
CONTENT
========================= */

.page-content,
.single-post,
.archive {
min-height: 60vh;
}

article {

}

/* =========================
FOOTER
========================= */

.site-footer {
padding: 60px 0;
background: #f5f5f5;

}

.site-footer p {
margin: 0;
}

/* =========================
FORMS
========================= */

input,
textarea,
select {
width: 100%;
padding: 12px 15px;

border: 1px solid #ddd;
border-radius: 8px;
}

textarea {
resize: vertical;
}



iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  border-radius: 6px;
}


/* =========================
WORDPRESS
========================= */

.aligncenter {
display: block;
margin: 0 auto;
}

.alignleft {
float: left;
margin-right: 20px;
}

.alignright {
float: right;
margin-left: 20px;
}

.wp-caption {
max-width: 100%;
}

.screen-reader-text {
display: none;
}

/* =========================
MOBILE
========================= */

@media (max-width: 991px) {

section {
    padding: 60px 0;
}

.main-menu ul {
    gap: 20px;
}

}

@media (max-width: 767px) {

section {
    padding: 50px 0;
}

.site-header .wrapper {
    min-height: 70px;
}

.main-menu {
    display: none;
}

}















/* =========================
main section
========================= */
























 .hp-accordion-wrapper {
        
    }

    .hp-accordion-container {
        display: flex;
        flex-direction: column;
        height: 650px;
        border-radius: 6px;
        overflow: hidden;
        background-color: #111;
    }

    .hp-accordion-item {
        flex: 1;
        position: relative;
        overflow: hidden;
        background-color: #23272a;
        /* Плавний перехід для зміни розміру та кольору тла */
        transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.5s ease;
        text-decoration: none;
        display: block;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .hp-accordion-item:last-child {
        border-bottom: none;
    }

    /* Логіка розкриття через єдиний клас active */
    .hp-accordion-item.active {
        flex: 3.5;
    }

    /* Фонове фото ховаємо за дефолтом (opacity: 0) */
    .hp-accordion-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.8s ease;
        z-index: 1;
    }

    /* Показуємо фото ТІЛЬКИ в активному слайді */
    .hp-accordion-item.active .hp-accordion-bg {
        opacity: 1;
        visibility: visible;
    }

    /* Затемнення поверхні фото */
    .hp-accordion-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
        z-index: 2;
        opacity: 0;
        transition: opacity 0.6s ease;
    }

    /* Включаємо затемнення тільки коли фото активне */
    .hp-accordion-item.active .hp-accordion-overlay {
        opacity: 1;
    }

    /* Контентна частина */
    .hp-accordion-content {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 30px;
        box-sizing: border-box;
        z-index: 3;
        color: #ffffff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }
	
	.hp-accordion-item.active .hp-accordion-content {
        justify-content: flex-end;
    }

    /* Заголовок поста */
    .hp-accordion-title {
        font-size: 16px;
        font-weight: 600;
        margin: 0;
        color: #ffffff;
        line-height: 1.3;
        transition: transform 0.5s ease, color 0.3s ease;
    }

    /* Опис, що розгортається вгору */
    .hp-accordion-expandable {
        max-height: 0;
        opacity: 0;
        transform: translateY(15px);
        transition: max-height 0.5s ease, opacity 0.4s ease, transform 0.5s ease;
        overflow: hidden;
    }

    /* Анімація появи тексту вгору для відкритого елемента */
    .hp-accordion-item.active .hp-accordion-expandable {
        max-height: 180px;
        opacity: 1;
        transform: translateY(0);
        margin-top: 12px;
    }

    .hp-accordion-excerpt {
        font-size: 14px;
        line-height: 1.5;
        color: #e0e0e0;
        margin: 0;
    }

    /* Мобільна адаптивність */
    @media (max-width: 600px) {
        .hp-accordion-container {
            height: 520px;
        }
        .hp-accordion-title {
            font-size: 18px;
        }
        .hp-accordion-content {
            padding: 20px;
        }
    }






















.blog-container {
    
}
.sidebar-placeholder {
    border-left: 1px solid #ccc;
    padding-left: 20px;
    height: 100%;
}


.magazine-news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px 25px;
}


@media (max-width: 1024px) {
    .magazine-container { flex-direction: column; }
    .magazine-left-70, .blog-container { flex: 0 0 100%; max-width: 100%; }
    .sidebar-placeholder { border-left: none; border-top: 1px solid #ccc; padding: 20px 0 0 0; }
}

@media (max-width: 768px) {
    .magazine-news-list { grid-template-columns: 1fr; } /* Все в одну колонку */
    .mag-card:first-child { flex-direction: column; gap: 15px; } /* Перша картка теж складається вертикально */
    .mag-card:first-child .mag-card-img, .mag-card:first-child .mag-card-content { flex: 0 0 100%; max-width: 100%; }
}






















/* Сама картка */
.post-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}



/* Контейнер для фото */
.card-image-wrap {
    position: relative;
    width: 100%;
    height: 600px; /* Можна налаштувати потрібну висоту фото */
    overflow: hidden;
}

.card-thumb, .card-thumb-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-thumb-placeholder {
    background: #e0e0e0;
}

/* Чорний градієнт-затемнення поверх фото знизу, щоб біле ім'я автора добре читалося */
.card-author-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 25px 25px 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    color: #ffffff;
    display: flex;
    align-items: flex-end;
	flex-direction:column;
}

.author-meta-box {
    display: flex;
    flex-direction: column;
}

/* Ім'я автора */
.author-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 3px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Посада автора */
.author-job {
    font-size: 13px;
    color: #dddddd;
    font-weight: 400;
}

.card-content {
    padding: 0 0 10px 0;
    position: relative;
    margin: 0 0 10px 0;
}
	
	.card-content:before {
    content:"";
		position:absolute;
		bottom:0;
		left:0;
		width:50px;
		height:1px;
		background:#fff;
}

.card-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.4;
}

.card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.card-title a:hover {
    color: #0073aa; /* Колір при наведенні на заголовок */
}

























article {
	
}
































 .entity-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tag-group {
    margin-bottom: 15px;
}

.tag-group strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    opacity: 0.6;
}

.tag {
    display: inline-block;
    margin: 3px 6px 3px 0;

    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 20px;

    font-size: 13px;
    text-decoration: none;
    color: #333;
}

.tag:hover {
    background: #009ee3;
    color: #fff;
    border-color: #009ee3;
}   
        









/* Хлібні крихти */
.breadcrumbs {
    margin-bottom: 20px;
}






















.country-section {
	
}






.page-header{
    padding: 40px 0;
}

/* верхній блок */
.page-header-top{
    display: flex;
    align-items: center;
    gap: 14px;
position: relative;
    margin-bottom: 12px;
}

/* прапор */
.cat-icon-wrap{
    width: 60px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgb(0 0 0 / 12%);
    flex-shrink: 0;
    position: absolute;
    top: 8px;
}

.cat-icon{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* заголовок */
.page-title{
    font-size: 54px;
    letter-spacing: -0.5px;
margin: 0 0 0 80px;
    position: relative;
}

/* акцентна лінія */
.page-title::after{
    content: "";
    display: block;

    width: 150px;
    height: 2px;
    margin-top: 8px;

    background: linear-gradient(90deg, #111, transparent);
    border-radius: 2px;
}

/* опис */
.taxonomy-description{
    max-width: 700px;

    font-size: 16px;
    line-height: 1.6;
    color: #555;
}




.country-section .deftech-grid {
	    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.country-section .card-company {
	background: #fff;
    border: 1px solid #e1e1e1;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}





.card-person {
	background: #efefef;
    border: 1px solid #e1e1e1;
    padding: 15px;
    border-radius: 4px;
}


.country-section .card-person-avatar {
    width: 100px;
    height: 100px;
    margin: -63px auto 0 auto;
    border-radius: 50%;
    overflow: hidden;
}

.country-section .card-person-avatar img {
	width:150px;
	height:150px;
	object-fit:cover;
}

.card-person h3 {
	text-align:center;
	font-size:22px;
	margin:10px 0;
}























.main-section {
	background:#141e36;
	padding:40px 0;
}


.main-section .wrapper {
	display:flex;
	gap:30px;
}







/* Основний контейнер на всю ширину екрану */
.hero-news-section {
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 600px; /* Змінено з min-height на стабільну height для розрахунку висоти скролу */
    display: flex;
    align-items: stretch; /* Розтягує внутрішній контейнер на всю висоту */
    color: #ffffff;
    font-family: sans-serif;
    overflow: hidden;
}
    
.hero-news-section:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 30%; 
    height: 100%; 
    background: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none; 
    z-index: 1; 
}  
	
    
.hero-news-section:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 30%; 
    height: 100%; 
    background: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none; 
    z-index: 1; 
}  	

.hero-container {
    display: flex;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    align-items: stretch; 
}

.hero-left-main {
        padding: 30px;
	box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Контент лівої колонки залишається притиснутим до низу */
}





.hero-right-sidebar {
    flex: 0 0 30%;
    min-width: 352px;
    background: rgba(0, 0, 0, 0.2); /* Легке затемнення, основну роль грає ваш градієнт */
    padding: 20px 0px 20px 0px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    max-height: 100%; 
    z-index: 2; 
    
}



.hero-right-sidebar-content {
    flex: 0 0 30%;
    min-width: 352px;
    padding: 20px 25px 20px 25px;
    box-sizing: border-box;
    max-height: 100%; 
    overflow-y: auto;
    z-index: 2; /* Щоб посилання працювали поверх :before градієнта */
    
    /* Ховаємо дефолтний грубий скролбар для стильного вигляду */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}




/* Налаштування скролбару для Chrome/Safari/Edge */
.hero-right-sidebar-content::-webkit-scrollbar {
    width: 4px;
}
.hero-right-sidebar-content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}



.hero-right-title {
    font-size: 18px;
    margin: 0 25px 0px 25px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    display: inline;
}

.news-date-group-title {
	position:relative;
	color:#ffbf40;
	margin:0 0 10px 0;
	text-transform:uppercase;
	font-size:14px;
	
}





/* Стилізація категорій головного поста */
.post-categories-list a {
    color: #ffdd00; 
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    margin-right: 10px;
}
	
	.main-post-meta	{
		z-index:4;
	}

/* Заголовок головного поста */
.main-post-title {
    margin: 10px 0;
    font-size: 36px;
    line-height: 1.2;
}

.main-post-title a {
    color: #fff;
    text-decoration: none;
}

/* Дата і час головного поста */
.main-post-date {
    font-size: 14px;
    color: #ddd;
}

	
	
	
	
/* Правий блок новин */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
	
}

.news-list li {
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Легке розділення лініями */
}
	
	.news-list li.important-news {
    font-weight:bold;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li a {
    color: #fff;
    text-decoration: none;
}

.news-list li a:hover, .main-post-title a:hover {
    text-decoration: underline;
}

.news-list .post-date {
    font-size: 12px;
    background: rgba(255,255,255,0.2);
    padding: 2px 5px;
    margin-right: 8px;
    border-radius: 3px;
    font-weight: bold;
}
	
.news-list li.important-news .post-date {
    background: rgba(236,183,0,0.7);
}	


/* Зміна кольору тексту посилань на чорний */
.single-post .news-list li a {
    color: #000000;
}

/* Зміна кольору ліній-роздільників на темний */
.single-post .news-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Зміна стилю плашки дати (сіро-чорний напівпрозорий фон та чорний текст) */
.single-post .news-list .post-date,
.single-post .news-list .sidebar-post-date {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
}

/* Якщо новина важлива, можна залишити жовтий фон, але текст зробити суворо чорним */
.single-post .news-list li.important-news .post-date,
.single-post .news-list li.important-news .sidebar-post-date {
    background: rgba(236, 183, 0, 0.9);
    color: #000000;
}

/* Стиль для назви дня (Today / Yesterday / Дата), який є у вашому PHP-шаблоні */
.single-post .news-list .news-day-delimiter {
    color: #8c8c8c;
    font-weight: bold;
    border-bottom: 2px solid #8c8c8c;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
    .hero-news-section {
        height: auto; /* На мобільних прибираємо фіксовану висоту */
        overflow: visible;
    }
    .hero-container {
        flex-direction: column;
    }
    .hero-left-main, .hero-right-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
    }
    .hero-right-sidebar {
        margin-top: 30px;
        max-height: 400px; /* Обмежуємо скрол на мобільних, щоб сторінка горталася далі */
    }
    .main-post-title {
        font-size: 26px;
    }
}


































/* Контейнер для нашої сітки */
.dp-latest-posts {
    
}


/* Контейнер для нашої сітки */
.dp-latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Створює 4 однакові колонки */
    gap: 20px; /* Відстань між картками постів */
    margin: 20px 0;
}

/* Стилі для окремої картки поста */
.dp-latest-posts-grid .post-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

/* --- НОВІ СТИЛІ ДЛЯ КАТЕГОРІЇ ТА ДАТИ --- */
.dp-latest-posts-grid .post-meta {
    display: flex;
    align-items: center;
    gap: 10px; /* Відстань між категорією та датою */
    font-size: 0.8rem; /* Трохи менший шрифт */
    color: #888;
    margin-bottom: 8px; /* Відступ до заголовка */
}

.dp-latest-posts-grid .post-category a {
    color: #0073aa; /* Колір посилання категорії */
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase; /* Робимо назву категорії великими літерами */
}

.dp-latest-posts-grid .post-category a:hover {
    text-decoration: underline;
}

/* Додамо невеличку крапку-розділювач перед датою, якщо є категорія */
.dp-latest-posts-grid .post-category + .post-date::before {
    content: "•";
    margin-right: 10px;
    color: #ccc;
}
/* -------------------------------------- */

.dp-latest-posts-grid .post-title {
    font-size: 1.1rem;
    margin: 0; /* Прибрав верхній марджин, бо тепер є bottom у post-meta */
    line-height: 1.4;
}

.dp-latest-posts-grid .post-title a {
    color: #333;
    text-decoration: none;
}

.dp-latest-posts-grid .post-title a:hover {
    color: #0073aa; /* Колір при наведенні */
}



















/*---------------------------------------------- Події ----------------------------------------------------*/



/*---------- Сторінка події ----------------*/


.event-page .row {
	display:flex;
}

.event-page .event-content {
	width:70%;
}

.event-page .event-sidebar {
	width:30%;
}




.other-events .event-sidebar-item {
	background:#eee;
	padding:20px;
}

.other-events .event-sidebar-item.event-featured {
    background: #f5f5f5;
    border: 2px solid #e00000;
}
















/*---------- Слайдер на головній сторінці ----------------*/

.event-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    height: 130px;
    display: flex;
	gap:15px;
	background: #eee;
	overflow:hidden;
}

.event-item.event-featured {
	background: #141e36;
	color:#fff;
}

.event-item.event-featured a {
	color:#fff;
}

.event-featured .event-content {
	position:absolute;
	left:25%;
	top:0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-meta {
	display:flex;
	gap:20px;
}

.event-image {
	width: 250px;
	height: 130px;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

.event-image img {
	min-width: 100%;
	min-height: 100%;
	object-fit: cover;
}

.event-image:before {
	content:"";
	position:absolute;
	right:0;
	top:0;
	width:100%;
	height:100%;
	background: linear-gradient(to left, rgb(20, 30, 54), rgba(20, 30, 54, 0.3));
}

.event-image img {
	width:130px;
	height:130px;
	object-fit:cover;
}

.event-title {
	font-size: 18px;
}








/*---------------------------------------------- Аналітика на головній ----------------------------------------------------*/

.magazine-section {
    
}
.magazine-container {
    display: flex;
    max-width: 1320px;
    margin: 0 auto;
    
}
.magazine-left-70 {
    flex: 0 0 70%;
    max-width: 70%;
	padding-right: 40px;
}

.mag-card {
    display: flex;
    flex-direction: column;
}
.mag-card-img {
    margin-bottom: 15px;
	border-radius: 4px;
	overflow:hidden;
}
.mag-card-title {
    font-size: 16px;
    margin: 10px 0;
    font-weight: bold;
    line-height: 1.3;
}

/* А ТЕПЕР ПЕРЕФОРМАТОВУЄМО ТІЛЬКИ ПЕРШУ КАРТКУ */
.mag-card:first-child {
    grid-column: 1 / -1; /* Займає всі 3 колонки по ширині */
    flex-direction: row; /* Картинка і текст стають в один ряд (навпіл) */
    padding-bottom: 40px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 0px;
}

/* Налаштування пропорцій 50/50 тільки для першої картки */
.mag-card:first-child .mag-card-img {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 0;
}
.mag-card:first-child .mag-card-content {
    flex: 0 0 50%;
    max-width: 50%;
	padding:30px;
}
.mag-card:first-child .mag-card-title {
    font-size: 24px;
    line-height: 1.2;
}

.mag-card-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.mag-card-title a {
    text-decoration: none;
}
.mag-badge {
    font-size: 10px;
    text-transform: uppercase;
    border: 1px solid #777;
    padding: 2px 6px;
    display: inline-block;
    font-weight: bold;
    letter-spacing: 1px;
}
.mag-excerpt {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 15px;
}
.mag-link {
    font-size: 11px;
    font-weight: bold;
    color: #111;
    text-decoration: none;
    margin-top: auto;
}
.mag-link:hover {
    text-decoration: underline;
}








































/*---------------------------------------------- Сторінка продукту ----------------------------------------------------*/









/* Контейнер сітки для двох колонок */
.product-two-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px; /* Зазор між лівою і правою колонкою */
    margin-bottom: 40px; /* Відступ знизу перед Related News */
}

/* Ліва колонка (Галерея або Головне фото) */
.product-col-left {
    flex: 1 1 45%; /* Базова ширина біля 45-50% */
    min-width: 300px; /* Мінімальна ширина для мобільних */
}

/* Права колонка (Текст) */
.product-col-right {
    flex: 1 1 50%;
    min-width: 300px;
}

/* Оформлення заголовка в колонці */
.product-col-right h1 {
    margin-top: 0; /* Щоб заголовок вирівнювався по верхньому краю фото */
    margin-bottom: 20px;
    font-size: 2.2rem;
    line-height: 1.2;
}

/* Якщо виводиться одне дефолтне міні-вікно thumnbail замість галереї */
.entity-image.main-slide-inner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Адаптивність для планшетів та смартфонів */
@media (max-width: 768px) {
    .product-two-columns {
        flex-direction: column; /* Перетворюємо на одну колонку */
        gap: 20px;
    }
    .product-col-right h1 {
        font-size: 1.8rem;
    }
}














/* Загальна обгортка */
.product-gallery-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Контейнер головного слайду для позиціонування підпису */
.main-slide-inner {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Опціонально: закруглення кутів великого фото */
}

.product-gallery-main .item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Стильний підпис поверх великого зображення */
.product-gallery-main .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); /* М'який градієнт для читабельності */
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    pointer-events: none; /* Щоб клік по тексту все одно відкривав Fancybox */
    box-sizing: border-box;
    z-index: 2;
}

/* Блок мініатюр */
.product-gallery-thumbs {
    margin-top: 12px; /* Відступ між великим фото та мініатюрами */
}

.product-gallery-thumbs .item {
    cursor: pointer;
    padding: 2px; /* Невеликий зазор для красивої рамки */
}

.product-gallery-thumbs .item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.3s ease;
}

/* Ефекти для активної мініатюри та ховеру */
.product-gallery-thumbs .owl-item.current .item img,
.product-gallery-thumbs .item:hover img {
    opacity: 1;
    border-color: #3498db; /* Колір рамки активного елемента (замініть на свій бренд-колір) */
}

/* Кастомізація стрілок Owl (якщо увімкнені в JS) */
.product-gallery-main .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8) !important;
    color: #333 !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    font-size: 24px !important;
    line-height: 40px !important;
    transition: background 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	text-indent:-9999px;
}
.product-gallery-main .owl-nav button:hover {
    background: #ffffff !important;
}
.product-gallery-main .owl-nav button.owl-prev { left: 15px; }
.product-gallery-main .owl-nav button.owl-next { right: 15px; }






.related-news-section {
	margin:30px 0;
}

.related-news-section h2 {
	font-size:30px;
}

.related-news-section h3 {
	font-size:18px;
}

.product-page .news-card {
	background: #fff;
    border: 1px solid #e1e1e1;
    padding: 15px;
    border-radius: 4px;
	height: 340px;
}

.news-card__thumb {
	height:170px;
	margin:0 0 10px 0;
}

.news-card__thumb img {
	height:170px;
	width:100%;
	object-fit:cover;
}











