/* Общие стили для страницы */
body {
    font-family: 'Noto Sans', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    background-color: #222;
    color: white;
    padding: 20px;
    text-align: center;
}

header .logo img {
    width: 150px;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff4081;
}

/* Стили для поисковой строки */
.search-section {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#searchInput {
    width: 80%;
    max-width: 500px;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 25px;
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

#searchInput:focus {
    border-color: #00bcd4;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.6);
}

/* Основной блок Базы Знаний */
main {
    padding: 40px 20px;
}

.knowledge-base h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.knowledge-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    position: relative;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #333;
}

.card-content p {
    font-size: 0.9rem;
    color: #666;
}

.card-content a {
    color: #00bcd4;
    text-decoration: none;
    font-weight: bold;
}

.card-content a:hover {
    text-decoration: underline;
}

/* Стили для футера */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
