/* ========================================================================
   GLOBAL RESET & FONTS
   ======================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');

body.site {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f6f8;
    color: #222;
    /* ВІДСТУП ЗВЕРХУ - ЩОБ МЕНЮ НЕ ПЕРЕКРИВАЛО КОНТЕНТ */
    padding-top: 160px !important; 
}

a { color: #0099e6; text-decoration: none; }
a:hover { color: #0077b3; text-decoration: none; }

/* ========================================================================
   STICKY HEADER (ЛИПКА ШАПКА)
   ======================================================================== */
header.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 50px; /* Фіксуємо мінімальну висоту */
    z-index: 9999;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 0;
    padding: 10px 0;
}

/* Логотип */
.header .brand {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: #000;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 5px;
}

/* Меню навігації */
.navigation { margin-top: 15px; }
.navigation .nav-pills > li > a {
    font-weight: 700;
    text-transform: uppercase;
    color: #444;
    padding: 10px 15px;
}
.navigation .nav-pills > .active > a,
.navigation .nav-pills > li > a:hover {
    background: #0099e6;
    color: #fff;
    border-radius: 4px;
}

/* ========================================================================
   K2 SINGLE ITEM (Вигляд однієї новини - ЯК НА KREMEN.TODAY)
   ======================================================================== */

/* 1. Контейнер статті */
#k2Container.itemView {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    /* Робимо важливим, щоб перебити стилі шаблону */
    margin-bottom: 20px;
}

/* 2. Заголовок */
.itemView .itemHeader .itemTitle {
    font-family: 'Roboto', sans-serif;
    font-size: 36px !important; /* Примусово великий шрифт */
    font-weight: 900;
    line-height: 1.2;
    color: #111;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 0;
}

/* Прибираємо "Featured" та інші мітки */
.itemView .itemHeader .itemDateCreated,
.itemView .itemHeader span sup { display: none; }

/* 3. Інфо-панель (Автор, Категорія) */
.itemView .itemToolbar {
    background: #f9f9f9;
    border-left: 5px solid #0099e6;
    padding: 10px 15px;
    margin-bottom: 25px;
    font-size: 14px;
}
.itemView .itemToolbar ul li {
    display: inline-block;
    list-style: none;
    margin-right: 20px;
    border: none;
    color: #555;
}
/* Ховаємо зайві кнопки (друк/email/шрифт) */
.itemView .itemToolbar .itemPrintLink,
.itemView .itemToolbar .itemEmailLink,
.itemView .itemToolbar .fontSize { display: none !important; }

/* 4. ГОЛОВНЕ ЗОБРАЖЕННЯ (Fix для K2) */
.itemView .itemImageBlock {
    float: none !important; /* Відміняємо обтікання */
    margin: 0 0 25px 0 !important;
    width: 100% !important;
    display: block;
}

.itemView .itemImageBlock .itemImage {
    display: block;
    width: 100%;
}

.itemView .itemImageBlock img {
    width: 100% !important; /* Розтягуємо на всю ширину */
    height: auto !important;
    display: block;
    border-radius: 4px;
}

/* Підпис фото */
.itemView .itemImageCaption {
    display: block;
    text-align: center;
    color: #888;
    font-size: 12px;
    margin-top: 5px;
}

/* 5. Текст статті */
.itemView .itemBody {
    padding: 0;
}
.itemView .itemFullText {
    font-size: 19px; /* Великий читабельний текст */
    line-height: 1.7;
    color: #222;
}
.itemView .itemFullText p {
    margin-bottom: 25px;
}

/* Цитати */
.itemView blockquote {
    font-size: 22px;
    font-style: italic;
    color: #333;
    border-left: 4px solid #0099e6;
    background: transparent;
    padding: 10px 20px;
    margin: 30px 0;
}

/* 6. Теги і соцмережі */
.itemLinks, .itemSocialLinksBlock {
    border-top: 1px solid #eee;
    margin-top: 30px;
    padding-top: 20px;
}