



/*фоотер*/


.footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Разстояние между редовете */
}

.footer-row {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-item {
    flex: 1; /* Равномерно разпределение */
    max-width: 150px; /* Ограничение на големината */
    display: flex;
    justify-content: center; /* Центриране хоризонтално */
    align-items: center; /* Центриране вертикално */

}

.footer-item img {
    width: auto;
    height: 80px; /* Всички лога ще имат еднаква височина */
    max-width: 120px; /* За да няма прекалено дълги лога */
    object-fit: contain; /* Запазва пропорциите и ги оразмерява правилно */
    transition: transform 0.3s ease-in-out;
}

.footer-item a:hover img {
    transform: scale(1.1); /* Лека анимация при ховър */
}

@media screen and (max-width: 768px) {
    .footer-row {
        flex-direction: column; /* Логата се подреждат едно под друго */
        align-items: center;
    }

    .footer-item {
        max-width: 100px; /* Намалява логата на малки екрани */
    }

    .footer-item img {
        height: 60px;
    }
}

/* Service Section CSS
---------------------------*/


.service-section {
    padding: 46px 0 60px;
    position: relative;
}

.service-section h2.subtitle {
    margin-bottom: 60px;
}

/* Карта на услуга */
.service-section .single-service {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 380px;
    border-radius: 3px;
    border: 1px solid #f1f1f1;
    position: relative;
    overflow: hidden;
    background: #fff;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.service-section .single-service:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Ховър рамка - остава твоята */
.service-section .single-service::before,
.service-section .single-service::after {
    content: "";
    position: absolute;
    opacity: 0;
    z-index: 1;
}

.service-section .single-service::before {
    top: 0; left: 0;
    bottom: 100%; right: 100%;
    border-top: 2px solid #58bed3;
    border-right: 2px solid #58bed3;
}

.service-section .single-service:hover::before {
    opacity: 1;
    right: 0; bottom: 0;
    transition: opacity .001s, right .125s linear .001s, bottom .125s linear .126s;
}

.service-section .single-service::after {
    bottom: 0; right: 0;
    top: 100%; left: 100%;
    border-bottom: 2px solid #58bed3;
    border-left: 2px solid #58bed3;
}

.service-section .single-service:hover::after {
    opacity: 1;
    left: 0; top: 0;
    transition: opacity .001s linear .251s, left .125s linear .252s, top .125s linear .377s;
}

/* Снимка */
.service-section .img-wrapper {
    height: 180px;
    overflow: hidden;
}

.service-section .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 10s ease;
}

.service-section .single-service:hover img {
    transform: scale(1.5);
}

/* Текстово съдържание */
.service-section .service-txt {
    flex-grow: 1;
    padding: 20px 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.service-section .service-txt h4 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #183650;
    margin-bottom: 15px;
    min-height: 45px;
}

.service-section .service-txt a.readmore {
    display: inline-block;
    margin-top: auto;
    color: #58bed3;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-section .service-txt a.readmore:hover {
    color: #007fa3;
}

/* Карусел навигация */
.service-carousel.owl-carousel .owl-item {
    margin-bottom: 4px;
}

.service-carousel.owl-carousel .owl-nav {
    position: absolute;
    top: -100px;
    right: 0;
}

.service-carousel.owl-carousel .owl-nav button.owl-next,
.service-carousel.owl-carousel .owl-nav button.owl-prev {
    width: 40px;
    height: 40px;
    border: 1px solid #bfc2c5;
    color: #1f415f;
    font-weight: 900;
    font-size: 12px;
    background: #fff;
    transition: all 0.3s;
}

.service-carousel.owl-carousel .owl-nav button.owl-next:hover,
.service-carousel.owl-carousel .owl-nav button.owl-prev:hover {
    background-color: #58bed3;
    color: #fff;
    border-color: #58bed3;
}
/*тест*/





/* ==========================================================================
  03. PRELOAD SPINNER
  =========================================================================== */

#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999999;
}

#loading {
    background-color: #fefdfc;
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 99999999;
    margin-top: 0px;
    top: 0px;
}

.cssload-loader {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -40px;
    margin-left: -40px;
    width: 50px;
    height: 50px;
    animation: cssload-invert 2.3s infinite steps(2, end);
    -o-animation: cssload-invert 2.3s infinite steps(2, end);
    -ms-animation: cssload-invert 2.3s infinite steps(2, end);
    -webkit-animation: cssload-invert 2.3s infinite steps(2, end);
    -moz-animation: cssload-invert 2.3s infinite steps(2, end);
}

.fancy-spinner {
    display: -webkit-box;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
}

.fancy-spinner div {
    position: absolute;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
}

.fancy-spinner div.ring {
    border-width: 0.25rem;
    border-style: solid;
    border-color: transparent;
    -webkit-animation: 2s fancy infinite alternate;
    animation: 2s fancy infinite alternate;
}

.fancy-spinner div.ring:nth-child(1) {
    border-left-color: #0d4bd0;
    border-right-color: #0d4bd0;
}

.fancy-spinner div.ring:nth-child(2) {
    border-top-color: #0d4bd0;
    border-bottom-color:#0d4bd0;
    -webkit-animation-delay: 1s;
    animation-delay: 1s;
}

.fancy-spinner div.dot {
    width: 1rem;
    height: 1rem;
    background: #0d4bd0;
}

@-webkit-keyframes fancy {
    to {
        -webkit-transform: rotate(360deg) scale(0.5);
        transform: rotate(360deg) scale(0.5);
    }
}

@keyframes fancy {
    to {
        -webkit-transform: rotate(360deg) scale(0.5);
        transform: rotate(360deg) scale(0.5);
    }
}

/*timeline*/
/* Основни променливи */
.timeline-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    overflow: hidden;
}
* {
    box-sizing: border-box;
}

html {
    font-size: 14px;
}



h2 {
    margin: 2%;
    text-align: center;
    font-size: 2rem;
    font-weight: 100;
}

.timeline {
    display: flex;
    flex-direction: column;
    margin: 20px auto;
    position: relative;
}

.timeline__event {
    margin-bottom: 20px;
    position: relative;
    display: flex;
    margin: 20px 0;
    border-radius: 6px;
    align-self: center;
    width: 50vw;
}

.timeline__event:nth-child(2n + 1) {
    flex-direction: row-reverse;
}

.timeline__event__date {
    color: #53b1f4;
    font-size: 1.5rem;
    font-weight: 600;
    background: #497fbe;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0 20px;
    border-radius: 6px 0 0 6px;
}

.timeline__event:nth-child(2n + 1) .timeline__event__date {
    border-radius: 0 6px 6px 0;
}

.timeline__event__content {
    padding: 20px;
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25),
    0 18px 36px -18px rgba(0, 0, 0, 0.3),
    0 -12px 36px -8px rgba(0, 0, 0, 0.025);
    background: #fff;
    width: calc(40vw - 84px);
    border-radius: 0 6px 6px 0;
}

.timeline__event:nth-child(2n + 1) .timeline__event__content {
    border-radius: 6px 0 0 6px;
}

.timeline__event__title {
    font-size: 1.2rem;
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 600;
    color: #497fbe;
    letter-spacing: 1.5px;
}

.timeline__event__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #497fbe;
    padding: 20px;
    align-self: center;
    margin: 0 20px;
    background:#497fbe;
    border-radius: 100%;
    width: 40px;
    height: 40px;
    position: relative;
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25),
    0 18px 36px -18px rgba(0, 0, 0, 0.3),
    0 -12px 36px -8px rgba(0, 0, 0, 0.025);
}

.timeline__event__icon i {
    font-size: 32px;
}

.timeline__event:nth-child(2n + 1) .timeline__event__icon:before {
    content: "";
    width: 2px;
    height: 100%;
    background: #497fbe;
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
}

.timeline__event:nth-child(2n + 1) .timeline__event__icon:after {
    content: "";
    width: 100%;
    height: 2px;
    background:#497fbe;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.timeline__event__description {
    flex-basis: 60%;
}

/* Цветови схеми за различните типове */
.timeline__event--type2:after {
    background: #555ac0;
}

.timeline__event--type2 .timeline__event__date {
    color: #87bbfe;
    background: #555ac0;
}

.timeline__event--type2 .timeline__event__icon {
    background: #87bbfe;
    color: #555ac0;
}

.timeline__event--type2 .timeline__event__title {
    color: #555ac0;
}

.timeline__event--type3:after {
    background: #24b47e;
}

.timeline__event--type3 .timeline__event__date {
    color: #aff1b6;
    background-color: #24b47e;
}

.timeline__event--type3 .timeline__event__icon {
    background: #aff1b6;
    color: #24b47e;
}

.timeline__event--type3 .timeline__event__title {
    color: #24b47e;
}

.timeline__event:last-child .timeline__event__icon:before {
    content: none;
}

/* Отзивчив дизайн */
@media (max-width: 786px) {
    .timeline__event {
        flex-direction: column;
        align-self: center;
    }

    .timeline__event__content {
        width: 100%;
    }

    .timeline__event__icon {
        border-radius: 6px 6px 0 0;
        width: 100%;
        margin: 0;
        box-shadow: none;
    }

    .timeline__event__date {
        border-radius: 0;
        padding: 20px;
    }

    .timeline__event:nth-child(2n + 1) {
        flex-direction: column;
        align-self: center;
    }

    .timeline__event:nth-child(2n + 1) .timeline__event__date {
        border-radius: 0;
        padding: 20px;
    }

    .timeline__event:nth-child(2n + 1) .timeline__event__icon {
        border-radius: 6px 6px 0 0;
        margin: 0;
    }
}

/* Анимации */
@keyframes fillLeft {
    100% {
        right: 100%;
    }
}

@keyframes fillTop {
100% {
    left: 100%;
}

}
/*timeline*/

/*news */
.news-date {
    text-align: right;
    font-style: italic;
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}


 .image-grid {
     display: grid;
     grid-template-columns: repeat(2, 1fr); /* вместо 4, слагаме 2 */
     gap: 20px;
     margin-top: 40px;
 }

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.grid-item img:hover {
    transform: scale(1.03);
}

#specialBtn {
    @media screen and (max-width: 768px) {
        margin-bottom: 25px;
        margin-left: -46px;
    }
}

#image-grid {
    @media screen and (max-width: 768px) {
        grid-template-columns: 1fr;
    }
}

