/* Базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Шапка сайта */
.header {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Основной контейнер - широкий */
.container {
    width: 95%;
    max-width: 1300px; 
    margin: 0 auto;
    padding: 2rem 1rem;
    flex: 1;
}

/* Поиск */
.search-box {
    margin-bottom: 2rem;
    text-align: center;
}

.search-box input {
    width: 100%;
    max-width: 600px;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: #3498db;
}

/* Сетка статей - в 1 столбец */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Карточка статьи */
.card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.card-content {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.05rem;
}

.card-content ul {
    margin-top: 10px;
    padding-left: 20px;
}

/* Кнопки ссылок - по центру */
.card-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center; /* ВЫРАВНИВАНИЕ КНОПОК ПО ЦЕНТРУ */
    margin-top: 10px;
}

/* Настройки самих кнопок */
.btn {
    display: inline-block;
    
    /* Радиальный градиент: от светлого центра к более темным краям */
    background: radial-gradient(circle, #5dade2 0%, #2980b9 100%);
    
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    
    /* Плавная анимация при наведении */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(41, 128, 185, 0.3); /* Легкая тень */
}

/* Эффект при наведении на синюю кнопку */
.btn:hover {
    background: radial-gradient(circle, #3498db 0%, #1f618d 100%);
    transform: translateY(-2px); /* Кнопка чуть-чуть приподнимается */
    box-shadow: 0 6px 15px rgba(41, 128, 185, 0.5); /* Тень становится больше */
}

/* Вторичная (серая) кнопка, если понадобится */
.btn-secondary {
    background: radial-gradient(circle, #a6b5b5 0%, #7f8c8d 100%);
    box-shadow: 0 4px 10px rgba(127, 140, 141, 0.3);
}

.btn-secondary:hover {
    background: radial-gradient(circle, #8e9e9e 0%, #636e72 100%);
    box-shadow: 0 6px 15px rgba(127, 140, 141, 0.5);
}

/* Подвал */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}