/* =========================================================
   LIGHTBOX (CBOX)
   ========================================================= */

#cboxTitle {
    color: #333;
    padding-bottom: 20px;
    background-color: #ffffff;
    font-weight: 600;
    font-family: Arial, sans-serif;
}

#cboxCurrent {
    left: 110px;
    color: #666;
}

/* =========================================================
   ИЗОБРАЖЕНИЯ И ПОЛЕТА
   ========================================================= */

.field--type-image .field__item {
    float: left;
    margin: 5px 15px 10px 0;
    padding: 0; /* Махаме padding, за да не се разминават рамките */
}

.views-field-field-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* =========================================================
   КАРТИ НА СЪВЕТНИЦИ (Сава)
   ========================================================= */

.title-sav {
    text-align: center;
    margin-top: 15px;
    font-size: 1.2em;
    font-weight: 600; /* Добавяме удебеляване, тъй като е заглавие */
    color: #01458c;
}

.views-field-field-struktura,
.views-field-field-kratka-informaciya {
    text-align: center;
    color: #555;
    line-height: 1.5;
}

/* Бутон "Виж повече" (Преработен в модерен бутон) */
.views-field-view-node {
    text-align: center;
    box-sizing: border-box;
    padding: 0;
    margin: 20px auto 30px;
    white-space: normal;
    text-decoration: none;
    display: block;
    width: 100%; /* Правим го responsive */
    max-width: 200px; /* Ограничаваме максималната ширина */
}

.views-field-view-node a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #005BA1; /* Институционално синьо */
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 25px; /* Запазваме заоблената форма (pill shape) */
    /* Махаме старата тежка сянка и слагаме фина */
    box-shadow: 0 4px 6px rgba(0, 91, 161, 0.2);
    transition: all 0.2s ease-in-out;
}

.views-field-view-node a:hover {
    background-color: #004483;
    box-shadow: 0 6px 12px rgba(0, 91, 161, 0.3);
    transform: translateY(-2px); /* Леко повдигане при посочване */
}

.src-image {
    display: none;
}

/* =========================================================
   ОБЩИ КАРТИ (.card)
   ========================================================= */

.card {
    margin: 15px 0;
    padding: 20px; /* Равен padding от всички страни */
    border: 1px solid #eaeaea; /* Тънка, светла рамка вместо пунктир */
    border-radius: 10px; /* Модерни заоблени ъгли */
    /* Махаме старите тежки сенки и слагаме много фина */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    min-width: 0;
    word-wrap: break-word;
    background-color: #ffffff;
    background-clip: border-box;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card .avatar {
    position: relative;
    z-index: 100;
    max-height: 220px;
}

.card .avatar img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    /* Премахваме "5px 5px 5px grey" и слагаме мека сянка */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    line-height: 1.42857143;
    background-color: #f8f9fa; /* По-неутрален фон */
    border: 3px solid #ffffff; /* Бяла рамка около снимката */
    border-radius: 8px;
    transition: all .2s ease-in-out;
}

/* =========================================================
   ГАЛЕРИЯ
   ========================================================= */

ol.c {
    list-style-type: decimal;
}

.gallery-image {
    display: block;
    /* Мека сянка */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: 260px;
    width: 100%;
    object-fit: cover; /* Уверяваме се, че снимките не се разтягат грозно */
    margin-bottom: 30px;
    border-radius: 8px; /* Заоблени ъгли */
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
}

.gallery-image:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px); /* Ефект на повдигане на снимките при посочване */
}