/* ================= GENEL ================= */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #e9ecef;
    color: #222;
}

/* ================= NAVBAR ================= */

nav {
    background: #1f4e79;
    padding: 15px 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* ================= GENEL CONTAINER ================= */

.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}

/* ================= GRID (liste sayfası) ================= */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

/* Kart */
.news-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    transition: 0.2s;
}

.news-card:hover {
    transform: scale(1.02);
}

/* Görsel */
.news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* Görsel yoksa */
.no-image {
    height: 160px;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* Başlık */
.news-card h2 {
    font-size: 15px;
    padding: 10px;
    margin: 0;
}

.news-card a {
    color: #222;
    text-decoration: none;
}

.news-card a:hover {
    color: #1f4e79;
}

/* ================= YAZI DETAY SAYFASI ================= */

.article-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 30px;
    background: #f7f7f7;
    border-radius: 8px;
}

/* Başlık */
.article-title {
    font-size: 34px;
    margin-bottom: 25px;
}

/* Ana görsel */
.article-image {
    width: 100%;
    height: auto;
    margin-bottom: 25px;
    border-radius: 8px;
}

/* İçerik alanı (okuma rahatlığı için dar) */
.article-content {
    max-width: 820px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.8;
}

/* Paragraflar */
.article-content p {
    margin-bottom: 18px;
}

/* Başlıklar */
.article-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 24px;
}

.article-content h3 {
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 20px;
}

/* Görseller */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Liste */
.article-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

/* ================= FOOTER ================= */

footer {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-container {
        padding: 20px;
    }
}

/* Telefon */
@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 26px;
    }
}
.site-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background: #e9ecef;
}

.site-logo picture {
    display: block;
}

.site-logo img {
    display: block;
    width: 400px;
    max-width: 85vw;
    height: auto;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    background: #1f4e79;
    padding: 15px 20px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    margin: 0;
}

.main-nav a:hover {
    color: #f2c94c;
}

@media (max-width: 600px) {
    .site-logo {
        padding: 10px;
    }

    .site-logo img {
        width: 230px;
        max-width: 90vw;
    }

    .main-nav {
        gap: 12px;
        padding: 12px 10px;
    }

    .main-nav a {
        font-size: 14px;
    }
}
