/* =========================================
   БАЗОВІ НАЛАШТУВАННЯ ТА ШАПКА (Спільне)
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body { background-color: #f4f4f4; color: #333; display: flex; justify-content: center; padding: 20px; }

.wrapper { background-color: #ffffff; width: 100%; max-width: 900px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); overflow: hidden; min-height: 80vh; display: flex; flex-direction: column; }

header { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; border-bottom: 1px solid #eee; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 20px; color: #1a4b77; text-transform: uppercase; text-decoration: none; }
.logo-icon { background-color: #1a4b77; color: white; width: 30px; height: 30px; display: flex; justify-content: center; align-items: center; border-radius: 4px; font-size: 16px; }
.header-actions { font-size: 20px; color: #555; cursor: pointer; display: flex; gap: 15px; }

nav { display: flex; justify-content: center; padding: 15px 0; border-bottom: 1px solid #eee; }
nav ul { list-style: none; display: flex; gap: 30px; }
nav a { text-decoration: none; color: #333; font-weight: 600; font-size: 14px; text-transform: uppercase; padding-bottom: 5px; transition: color 0.3s; }
nav a:hover, nav a.active { color: #1a4b77; border-bottom: 2px solid #1a4b77; }

main { padding: 30px; flex-grow: 1; }

.tag { font-size: 12px; font-weight: bold; text-transform: uppercase; margin-bottom: 8px; display: block; color: #1a4b77; }
.btn { display: inline-block; padding: 8px 16px; border: 1px solid #1a4b77; color: #1a4b77; text-decoration: none; font-size: 12px; font-weight: bold; text-transform: uppercase; border-radius: 2px; transition: all 0.3s; margin-top: auto; align-self: flex-start; }
.btn:hover { background-color: #1a4b77; color: #fff; }

/* =========================================
   СІТКА КАРТОК (Новини та Огляди)
   ========================================= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; }
.card img { width: 100%; height: 140px; object-fit: cover; border-radius: 4px; margin-bottom: 15px; }
.card h3 { font-size: 16px; margin-bottom: 10px; line-height: 1.3; color: #222; }
.card p { font-size: 13px; color: #666; margin-bottom: 15px; line-height: 1.5; }

/* Зірочки рейтингу для оглядів */
.stars { color: #f39c12; font-size: 14px; margin-bottom: 10px; }

/* =========================================
   ВНУТРІШНІ СТОРІНКИ (Стаття, Про нас)
   ========================================= */
.page-title { font-size: 28px; color: #1a4b77; margin-bottom: 20px; border-bottom: 2px solid #f4f4f4; padding-bottom: 10px; }

/* Сторінка статті */
.article-header { margin-bottom: 20px; }
.article-header h1 { font-size: 32px; line-height: 1.2; margin-bottom: 15px; color: #222; }
.article-meta { font-size: 13px; color: #888; display: flex; gap: 15px; margin-bottom: 20px; }
.article-hero-img { width: 100%; height: 400px; object-fit: cover; border-radius: 4px; margin-bottom: 30px; }
.article-body { font-size: 16px; line-height: 1.8; color: #444; max-width: 750px; margin: 0 auto; }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-size: 22px; margin: 30px 0 15px; color: #1a4b77; }
.article-body blockquote { border-left: 4px solid #1a4b77; padding-left: 20px; font-style: italic; color: #555; background: #f9f9f9; padding: 15px 20px; margin: 20px 0; }

/* Сторінка "Про нас" */
.about-content { display: flex; gap: 30px; align-items: flex-start; }
.about-text { flex: 1; font-size: 15px; line-height: 1.7; color: #444; }
.about-text p { margin-bottom: 15px; }
.about-image { flex: 1; border-radius: 4px; overflow: hidden; }
.about-image img { width: 100%; height: auto; display: block; }

/* Адаптивність */
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
    nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .about-content { flex-direction: column; }
    .article-hero-img { height: 250px; }
    .article-header h1 { font-size: 24px; }
}
/* =========================================
   ГОЛОВНА СТОРІНКА (Hero Section & Pagination)
   ========================================= */
.hero { position: relative; width: 100%; height: 350px; border-radius: 4px; overflow: hidden; margin-bottom: 30px; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px 30px 30px; background: linear-gradient(to top, rgba(15, 32, 50, 0.9) 0%, rgba(15, 32, 50, 0.5) 60%, transparent 100%); color: white; }
.hero h1 { font-size: 28px; margin-bottom: 10px; line-height: 1.2; color: #fff; }
.hero p { font-size: 14px; color: #ddd; margin-bottom: 15px; max-width: 80%; line-height: 1.4; }

/* Кнопка на темному фоні банера */
.btn.hero-btn { border-color: #fff; color: #fff; }
.btn.hero-btn:hover { background-color: #fff; color: #1a4b77; }

/* Пагінація (крапки) */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; margin-bottom: 20px; }
.dot { width: 8px; height: 8px; background-color: #ccc; border-radius: 50%; cursor: pointer; }
.dot.active { background-color: #1a4b77; }

/* Адаптивність для банера */
@media (max-width: 768px) {
    .hero h1 { font-size: 22px; }
    .hero p { max-width: 100%; }
}
