diff --git a/static/css/custom.css b/static/css/custom.css index 78a3308..110e012 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -95,6 +95,34 @@ main img { border: 2px solid #ddd; } /* ------------------------------------------------------------------ */ +/* Красивые карточки для новостей */ +.news-card { + background: white; + border-radius: 8px; + padding: 20px; + margin: 15px 0; + box-shadow: 0 2px 8px rgba(0, 51, 102, 0.08); + border-left: 4px solid #003366; + transition: transform 0.2s, box-shadow 0.2s; +} + +.news-card:hover { + transform: translateX(5px); + box-shadow: 0 4px 16px rgba(0, 51, 102, 0.15); +} + +.news-date { + color: #666; + font-size: 0.85em; + margin-bottom: 10px; +} + +.news-title { + color: #003366; + margin: 0 0 10px 0; + font-size: 1.3em; +} +/* ------------------------------------------------------------------ */ /* Мобильная адаптация */ @media (max-width: 768px) { body {