﻿


body {
    background-color: #f8f9fa;
    font-family: 'Arial', sans-serif;
}

/* Başlık Arka Planı */
.bg-header {
    background: url('/img/news-bg.jpg') center/cover no-repeat;
    width: 100%;
    height: 250px; /* Başlık arka plan yüksekliği */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

    /* Başlık Metni */
    .bg-header h1 {
        font-size: 2.2rem;
        font-weight: bold;
        text-transform: uppercase;
        color: white;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); /* Metin okunaklığını artır */
    }

/* Başlık Metni Gölgelendirme */
.shadow-text {
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

/* Ana İçerik Alanı */
.news-single {
    max-width: 1200px;
    margin: auto;
}

/* Haber İçeriği */
.single-main {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.1);
}

/* Haber Başlığı */
.news-title {
    font-size: 2.2rem;
    font-weight: bold;
    text-transform: capitalize;
    color: #333;
    text-align: center;
}

/* Metin */
.news-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    text-align: left; /* Tüm metinleri sola yasla */
}

/* Tarih butonu */
.news-date {
    color: white;
    background-color: #16ac97;
    border-radius: 5px;
    padding: 5px 10px;
    display: inline-block;
    font-size: 0.9rem;
}

/* Görseller */
.news-head img, .image-gallery img {
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

    .news-head img:hover, .image-gallery img:hover {
        transform: scale(1.05);
        box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
    }

/* Yan Menü */
.main-sidebar {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 1.5rem;
    color: #333;
    text-align: center;
}

/* Butonlar */
.btn {
    border-radius: 5px;
    font-size: 1rem;
    padding: 10px 20px;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    transition: background-color 0.3s;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

/* Responsive Tasarım */
@media (max-width: 991px) {
    .news-title {
        font-size: 1.1rem;
    }

    .news-text {
        font-size: 1rem;
        text-align: left; /* Metinleri sola yasla */
    }

    .sidebar-title {
        font-size: 1.3rem;
    }

    .main-sidebar {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .bg-header {
        height: 180px;
    }

        .bg-header h1 {
            font-size: 1.5rem;
        }

    .news-title {
        font-size: 0.90rem;
    }

    .news-text {
        font-size: 1rem;
        text-align: left; /* Mobilde sola yaslama */
    }

    .main-sidebar {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .news-title {
        font-size: 0.90rem;
    }

    .news-text {
        font-size: 0.95rem;
        text-align: left; /* Küçük ekranlarda sola yaslama */
    }

    .news-date {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}
