#sp-main-body, #sp-component {
    background: #2c3e50 !Important;
}
/* ========================================================================
   СТИЛОВЕ ЗА HERO SLIDER-А
   ======================================================================== */
.splide__slide { position: relative; overflow: hidden; height: 500px; background-color: #333; }
.splide__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero-text { position: absolute; bottom: 0; left: 0; width: 100%; padding: 60px 40px; box-sizing: border-box; text-align: center; color: #ffffff; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%); }
.hero-text h2 { font-size: 2.5rem; font-weight: 700; margin: 0 0 10px 0; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero-text p { font-size: 1.2rem; margin: 0; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.splide__arrow { background-color: rgba(0, 0, 0, 0.5); }
.splide__arrow svg { fill: #ffffff; }

/* ========================================================================
   КОРЕКЦИЯ ЗА ЛЯВОТО МЕНЮ
   ======================================================================== */
#sp-left { background-color: #2c3e50 !important; padding: 25px 15px !important; box-sizing: border-box; }
#sp-left .sp-module ul > li { border: none !important; padding: 0 !important; margin-bottom: 5px !important; }
#sp-left .sp-module ul > li > a { color: #ffffff !important; background: transparent !important; font-weight: 500 !important; padding: 12px 20px !important; border-radius: 8px; transition: all 0.2s ease-in-out !important; display: block !important; }
#sp-left .sp-module ul > li > a:hover { background-color: rgba(24, 206, 179, 0.2) !important; color: #ffffff !important; }
#sp-left .sp-module ul > li.active > a { background-color: #18ceb3 !important; color: #ffffff !important; font-weight: 700 !important; }
#sp-main-body, #sp-component { padding: 0 !important; }
#sp-left .sp-module { border: none !important; }

/* ========================================================================
   СТИЛОВЕ ЗА МЕТРО ПЛОЧКИТЕ
   ======================================================================== */
.metro-container { display: flex; flex-wrap: wrap; justify-content: center; }
.metro-box { flex: 1 1 300px; color: #ffffff; transition: transform 0.3s ease; }
.metro-box:hover { transform: translateY(-5px); }
.metro-blue { background-color: #007bff; }
.metro-green { background-color: #28a745; }
.metro-orange { background-color: #fd7e14; }
.metro-content { text-align: center; padding: 30px; }
.metro-icon i { font-size: 48px; margin-bottom: 15px; color: rgba(255, 255, 255, 0.8); }
.metro-title { font-size: 1.5rem; font-weight: 700; color: #ffffff; margin-top: 0; margin-bottom: 10px; }
.metro-text { color: rgba(255, 255, 255, 0.9); margin-bottom: 20px; min-height: 50px; }
.metro-link { display: inline-block; background-color: rgba(255, 255, 255, 0.2); color: #ffffff; padding: 10px 20px; border-radius: 50px; text-decoration: none; font-weight: bold; transition: background-color 0.3s ease; }
.metro-link:hover { background-color: rgba(255, 255, 255, 0.4); color: #ffffff; }

/* ========================================================================
   СТИЛОВЕ ЗА МОДУЛ "ПОСЛЕДНИ НОВИНИ" (ТЪМНА ВЕРСИЯ С КАРТИЧКИ)
   ======================================================================== */

/* --- Общ контейнер за секцията --- */
.latest-news-section {
    padding: 0px 15px !important;
    background-color: #2c3e50 !important; /* ТЪМЕН ФОН НА СЕКЦИЯТА */
}
.latest-news-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.latest-news-section .sp-module-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff; /* БЯЛ ЦВЯТ ЗА ЗАГЛАВИЕТО */
}

/* --- Нулиране на стиловете на UL/LI от Joomla --- */
.latest-news-section ul.mod-articles-items {
    list-style-type: none !important;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.latest-news-section li {
    padding: 0 !important;
    margin: 0 !important;
}

/* --- Стил за всяка новина (КАРТИЧКАТА) --- */
.latest-news-section article.mod-articles-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}
.latest-news-section article.mod-articles-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* --- СНИМКАТА --- */
.latest-news-section .article-intro-image a {
    display: block;
    height: 220px;
    overflow: hidden;
}
.latest-news-section .article-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.latest-news-section article.mod-articles-item:hover .article-intro-image img {
    transform: scale(1.1);
}

/* --- ТЕКСТОВИЯТ БЛОК --- */
.latest-news-section .mod-articles-item-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* --- ЗАГЛАВИЕТО НА НОВИНАТА --- */
.latest-news-section .mod-articles-title {
    margin: 0 0 15px 0;
}
.latest-news-section .mod-articles-title a {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    line-height: 1.4;
}
.latest-news-section .mod-articles-title a:hover {
    color: #18ceb3;
}

/* --- УВОДНИЯТ ТЕКСТ --- */
.latest-news-section .mod-articles-item-content p {
    margin: 20px 0 20px 0;
    color: #6c757d;
    flex-grow: 1;
}

/* --- БУТОН "ПРОЧЕТИ ПОВЕЧЕ" --- */
.latest-news-section .readmore a {
    display: inline-block;
    color: #18ceb3;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #18ceb3;
    border-radius: 50px;
    padding: 8px 18px;
    transition: all 0.3s ease;
}
.latest-news-section .readmore a:hover {
    background-color: #18ceb3;
    color: #ffffff;
}

/* ========================================================================
   СТИЛОВЕ ЗА ФУТЪРА (FOOTER)
   ======================================================================== */
#sp-footer {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
}
#sp-footer a {
    color: #18ceb3 !important;
}
#sp-component .article-details {
    background-color: #ffffff;
    padding: 30px; /* Добавя въздух около текста */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Добавя фина сянка */
}
.article-list .article {
    background: #f5f5f5;
}
.article-list {
    padding-top: 50px;
}
/* ========================================================================
   СТИЛОВЕ ЗА СЕКЦИЯ BOTTOM (Контакти, Връзки, Соц. мрежи)
   ======================================================================== */

/* Задаваме тъмен фон и въздух на цялата секция */
#sp-bottom {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 50px 0;
}

/* Стил за заглавията на модулите */
#sp-bottom .sp-module-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Общи стилове за линковете */
#sp-bottom a, #sp-bottom a:hover {
    color: #18ceb3 !important; /* Тюркоазен цвят, като на активното меню */
}

/* Стил за списъците (контакти и бързи връзки) */
#sp-bottom ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sp-bottom .contact-info li,
#sp-bottom .quick-links li {
    padding: 2px 0;
}
#sp-bottom .sp-module ul>li {
    margin-bottom: 5px;
}
/* Икони в контактната информация */
#sp-bottom .contact-info i {
    margin-right: 10px;
    color: #18ceb3;
    width: 20px;
    text-align: center;
}

/* Икони за социалните мрежи */
#sp-bottom .social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    margin-right: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

#sp-bottom .social-icons a:hover {
    background-color: #18ceb3;
}
/* ========================================================================
   СТИЛОВЕ ЗА ИНФОРМАЦИЯТА ПОД ЗАГЛАВИЕТО НА СТАТИИТЕ
   ======================================================================== */

/* --- Стил за целия контейнер --- */
.article-info {
    display: flex; /* Подрежда елементите на един ред */
    flex-wrap: wrap; /* Позволява им да преминат на нов ред, ако екранът е тесен */
    gap: 20px; /* Разстояние между елементите */
    padding: 15px 0;
    margin: 20px 0;
    border-top: 1px solid #e9ecef; /* Линия отгоре */
    border-bottom: 1px solid #e9ecef; /* Линия отдолу */
    font-size: 0.9rem; /* Малко по-малък шрифт */
    color: #6c757d; /* Сив цвят за текста */
}

/* --- Премахваме точките/запетаите, които Joomla добавя автоматично --- */
.article-info > dd {
    display: none;
}

/* --- Общ стил за всеки елемент (категория, дата, посещения) --- */
.article-info .category-name,
.article-info .published,
.article-info .hits {
    display: flex;
    align-items: center;
}

/* --- Добавяме икони пред всеки елемент с магията на ::before --- */
.article-info .category-name::before,
.article-info .published::before,
.article-info .hits::before {
    font-family: "Font Awesome 6 Free"; /* Казваме на браузъра да използва Font Awesome */
    font-weight: 900; /* Избираме "солидния" стил на иконите */
    margin-right: 8px; /* Разстояние между иконата и текста */
    color: #18ceb3; /* Тюркоазен цвят за иконите */
}

/* --- Задаваме конкретна икона за всеки елемент --- */
.article-info .category-name::before {
    content: "\f07b"; /* Икона за папка (folder) */
}

.article-info .published::before {
    content: "\f073"; /* Икона за календар (calendar) */
}

.article-info .hits::before {
    content: "\f06e"; /* Икона за око (eye) */
}

/* Скриваме текста "Посещения:", защото иконата е достатъчна */
.article-info .hits::first-line {
    font-size: 0;
}

/* Стил за линка на категорията */
.article-info .category-name a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
}
.article-info .category-name a:hover {
    color: #18ceb3;
}
/* ========================================================================
   СТИЛОВЕ ЗА БУТОНИТЕ ЗА СОЦИАЛНО СПОДЕЛЯНЕ
   ======================================================================== */

/* --- Скриваме целия блок, ако не го искаме --- */
/* .article-ratings-social-share {
    display: none !important;
} */

/* --- Основен контейнер на иконите --- */
.article-social-share .social-share-icon ul {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
    display: flex;
    gap: 10px; /* Разстояние между иконите */
}

/* --- Стил за всяка икона (бутон) --- */
.article-social-share .social-share-icon li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Прави ги кръгли */
    color: #ffffff !important; /* Цветът на иконата */
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.article-social-share .social-share-icon li a:hover {
    transform: scale(1.1); /* Леко уголемяване при посочване */
}

/* --- Задаваме конкретен цвят за всяка мрежа --- */
.article-social-share .social-share-icon .facebook {
    background-color: #1877F2;
}

.article-social-share .social-share-icon .twitter {
    background-color: #1DA1F2;
}

.article-social-share .social-share-icon .linkedin {
    background-color: #0A66C2;
}
/* ========================================================================
   КОРЕКЦИЯ ЗА СТРАНИЦАТА СЪС СЪБИТИЯ (ЕДНАКВА ВИСОЧИНА)
   ======================================================================== */

/* --- Насочваме се към контейнера на статиите в blog изглед --- */
.blog .items-row {
    display: flex; /* Активираме Flexbox */
    flex-wrap: wrap; /* Позволяваме на елементите да преминат на нов ред */
}

/* --- Караме всяка колона да заема цялата налична височина --- */
.blog .items-row > [class*="col-"] {
    display: flex;
    align-items: stretch; /* Разпъва елементите по цялата височина на реда */
}

/* --- Гарантираме, че самата статия също се разпъва --- */
.blog .mod-articles-item {
    height: 100%; /* Заема 100% от височината на родителя си (колоната) */
    display: flex;
    flex-direction: column;
}

/* --- Караме текстовия блок да се разшири, за да избута бутона надолу --- */
.blog .mod-articles-item .mod-articles-item-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* --- Избутваме бутона "Прочети повече" най-отдолу --- */
.blog .mod-articles-item .readmore {
    margin-top: auto; /* Това е магията - избутва бутона в края */
}
/* ========================================================================
   СТИЛОВЕ ЗА СТРАНИЦА "КОНТАКТИ" (ПОДОБРЕНА ВЕРСИЯ)
   ======================================================================== */

.contact-page-container {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 части за формата, 1 част за информацията */
    gap: 50px; /* Разстояние между колоните */
}

/* Стил за лявата колона с формата */
.contact-form-wrapper h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Стил за дясната колона */
.contact-sidebar-wrapper .contact-info-box {
    background-color: #f8f9fa; /* Светлосив фон */
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.contact-sidebar-wrapper h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}
.contact-sidebar-wrapper .contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-sidebar-wrapper .contact-details li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}
.contact-sidebar-wrapper .contact-details i {
    color: #18ceb3;
    font-size: 1.1rem;
    margin-right: 15px;
    width: 25px;
    margin-top: 5px;
}
.contact-sidebar-wrapper .contact-details strong {
    display: block;
    margin-bottom: 3px;
}

/* Медия заявка за мобилни устройства */
@media (max-width: 991px) {
    .contact-page-container {
        grid-template-columns: 1fr; /* Нарежда колоните една под друга */
    }
}
ul.mod-articles-items.mod-articles-grid.grid-cols-3.mod-list {
    margin-top: 30px;
}
/* ========================================================================
   СТИЛОВЕ ЗА СТРАНИЦА "ЕКИП"
   ======================================================================== */

.team-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* Стил за кръгчето с инициалите */
.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Прави го кръгло */
    background-color: #18ceb3; /* Тюркоазен цвят */
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    font-size: 2.5rem;
    font-weight: 700;
}

.team-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.team-position {
    color: #6c757d;
    font-size: 0.9rem;
}
/* Стил за снимката на екипа */
.team-avatar-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    display: block;
}