/* Основни стилове */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
}

/* Фон с blur ефект */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Gabrovo.jpg') no-repeat center center/cover;
    filter: blur(5px);
    z-index: -1;
}

/* Хедър */
header {
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
}

h1 {
    margin: 0;
}

/* Търсачка */
.search-container {
    text-align: center;
    margin: 20px 0;
}

.search-box {
    padding: 10px;
    font-size: 18px;
    width: 300px;
    border: 2px solid gray;
    border-radius: 5px;
    background: rgba(200, 200, 200, 0.7);
}

.search-button {
    padding: 10px 15px;
    font-size: 18px;
    background: gray;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.search-button:hover {
    background: darkgray;
}

/* Галерия с бутоните */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    max-width: 900px;
}

/* Всички бутони са с еднакъв размер */
.image-container {
    position: relative;
    width: 100%;
    height: 250px; /* Еднаква височина */
    overflow: hidden;
    border-radius: 10px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Изрязване за еднакъв размер */
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover ефект */
.image-container:hover img {
    filter: blur(5px) brightness(70%);
    transform: scale(1.1);
}

/* Overlay текст */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 22px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Текстът се показва при hover */
.image-container:hover .overlay {
    opacity: 1;
}

/* Карусел за новини */
#news-carousel {
    text-align: center;
    margin-top: 40px;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 80%;
    margin: auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.news-item {
    min-width: 100%;
    padding: 15px;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 10px;
    text-align: center;
}

/* Оправени бутоните за карусел */
.carousel-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 24px;
    padding: 10px;
    border: none;
    cursor: pointer;
    margin: 0 10px;
    border-radius: 5px;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}
