* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.news-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sol Bölüm */
.left-section {
    width: 50%;
    background-color: #fbfaf4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.center-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-center {
    text-align: center;
}


.logo-circle {
    width: 10rem; /* Genişliği artırıyoruz */
    height: 3rem; /* Yüksekliği azaltıyoruz */
    background-color: #2d2d2d;
    border-radius: 2rem; /* Daha az yuvarlak kenarlar */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.logo-text {
    color: #fbfaf4;
    font-size: 1rem; /* Yazı boyutunu biraz küçülttük */
    font-weight: bold;
}

.site-title {
    margin-top: 1rem;
}

.site-title a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* gap değerini kaldırıyoruz */
}

.title-blue {
    color: #2d2d2d;
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 0; /* Sağ margin'i kaldırıyoruz */
    line-height: 1; /* Line height'ı 1 yaparak tam hizalama sağlıyoruz */
}

.title-white {
    color: #2d2d2d;
    font-size: 1.5rem;
    font-weight: 600;
    margin-left: 0; /* Sol margin'i kaldırıyoruz */
    line-height: 1; /* Line height'ı 1 yaparak tam hizalama sağlıyoruz */
}

.subtitle {
    margin-top: 0.7rem;
    color: #2d2d2d;
    font-size: 1.3rem; /* Yazıyı büyütüyoruz */
    line-height: 1.5; /* Satır aralığını ayarlıyoruz */
}

.desktop-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background-color: #fbfaf4;
    width: 100%; /* 50% yerine 100% yapıyoruz */
    position: relative; /* fixed yerine relative */
    margin-top: auto; /* Alt tarafa yapışması için */
}


.desktop-footer a {
    color: #2d2d2d;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
    white-space: nowrap; /* Yazıların alt alta inmesini engeller */
}

.desktop-footer a:hover {
    color: #000000;
}

.copyright {
    color: #2d2d2d;
    font-size: 0.75rem;
}

/* Sağ Bölüm */
.right-section {
    width: 50%;
    background-color: #f0eee6;
    overflow-y: auto;
    padding: 1.5rem 0.5rem 2.5rem 0.5rem; /* Alt padding'i 2.5rem'e çıkardık */
    display: flex;
    justify-content: flex-start;
    scrollbar-width: thin;
    scrollbar-color: #e1ddd8 #e1ddd8;
}


.news-list {
    width: 100%;
    max-width: 26rem; /* 25rem'den 26rem'e çıkardık */
    padding: 0 1rem;
}

.news-item {
    margin-bottom: 0.4rem;
    width: 100%; /* Eklendi */

}

.article-link {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.75rem; /* 1rem'den 0.75rem'e düşürdük */
    text-decoration: none;
    padding: 0.5rem 0.75rem; /* Padding'i de biraz azalttık */
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

/* Yazı içeriğini sola hizalama */
.article-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    flex: 1;
}

.article-link:hover {
   background-color: rgba(45, 45, 45, 0.08);
}

.article-image {
    width: 6rem;
    height: 6rem;
    border-radius: 0.375rem;
    overflow: hidden;
    flex-shrink: 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-date {
    font-size: 0.8rem;
    color: #2d2d2d;
    margin-bottom: 0.25rem;
}

.article-title {
    color: #2d2d2d;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Mobile Footer */
.mobile-footer {
    display: none;
    padding: 1.5rem;
    margin-top: auto;
}

.footer-nav,
.footer-legal {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.mobile-footer a {
    color: #2d2d2d;
    text-decoration: none;
    font-size: 0.75rem;
}

.footer-copyright {
    text-align: center;
    color: #2d2d2d;
    font-size: 0.75rem;
}

/* Scrollbar özelleştirmeleri */
.right-section::-webkit-scrollbar {
    width: 8px;
}

.right-section::-webkit-scrollbar-track {
    background: #e1ddd8;
}

.right-section::-webkit-scrollbar-thumb {
    background: #e1ddd8;
    border-radius: 4px;
}

.right-section::-webkit-scrollbar-thumb:hover {
    background: #e1ddd8;
}


@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        min-height: 100vh;
        position: relative;
    }

    .news-container {
        width: 100%;
        height: auto; /* 100vh yerine auto yapıyoruz */
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        position: relative; /* fixed yerine relative */
    }

    .left-section {
        width: 100vw;
        position: relative; /* fixed yerine relative */
        height: auto;
        margin: 0;
        padding: 0;
    }

    .center-content {
        padding: 2rem 0;
        width: 100%;
    }

    .right-section {
        width: 100vw;
        position: relative;
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
        padding-top: 1rem;
    }

    .news-list {
        width: 100%;
        margin: 0;
        padding: 0 0.70rem; /* Sağdan ve soldan 0.70rem boşluk ekledik */
    }

    .news-item {
        margin-bottom: 0.4rem; /* 0.5rem'den 0.25rem'e düşürdük */
        width: 100%;
    }

    .article-link {
        width: 100%;
        padding: 0.5rem 0.75rem; /* Padding'i de biraz azalttık */
        margin: 0;
        gap: 1rem;
        border-radius: 0.375rem; /* Köşelerin yuvarlaklığını koruyoruz */
    }

    /* Footer düzenlemeleri */
    .mobile-footer {
        width: 100vw;
        display: block;
        background-color: #e1ddd8;
        padding: 1.5rem;
        margin-top: 1rem; /* Haberler ile footer arası boşluk */
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
        margin-bottom: 1rem;
        width: 100%;
    }

    .footer-legal {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 1rem;
        width: 100%;
    }

    .footer-copyright {
        text-align: center;
        width: 100%;
        color: #2d2d2d;
        font-size: 0.8rem;
    }

    .mobile-footer a {
        color: #2d2d2d;
        text-decoration: none;
        font-size: 0.85rem;
        transition: color 0.2s;
    }

    .mobile-footer a:hover {
        color: #000000;
    }

    /* Desktop footer'ı gizle */
    .desktop-footer {
        display: none;
    }

    .center-content {
    padding: 3rem 0; /* 2rem'den 3rem'e çıkardık */
    position: static;
    width: 100%;
    }


    .subtitle {
    font-size: 1.1rem; /* 1.4rem'den küçültüyoruz */
    line-height: 1.4;
    margin-top: 0.75rem;
    padding: 0 1rem;
    }

    .logo-circle {
    width: 8rem; /* Genişliği artırıyoruz */
    height: 3rem; /* Yüksekliği azaltıyoruz */
    background-color: #2d2d2d;
    border-radius: 2rem; /* Daha az yuvarlak kenarlar */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 0.5rem; /* Logo altına biraz boşluk */
}

    .logo-text {
        color: #fbfaf4;
        font-size: 1.3rem; /* Yazı boyutunu biraz küçülttük */
        font-weight: bold;
    }
}

/* Tablet için medya sorgusu */
@media (min-width: 769px) and (max-width: 1024px) {
    .news-list {
        max-width: 32rem; /* Tablet için daha geniş içerik alanı */
        padding: 0 1.5rem;
    }

    .article-title {
        font-size: 1rem; /* Tablet için uygun başlık boyutu */
    }

    .subtitle {
        font-size: 1.2rem; /* Tablet için alt başlık boyutu */
    }

    .logo-circle {
        width: 9rem;
        height: 2.75rem;
    }

    .desktop-footer a {
        font-size: 0.8rem; /* Footer linklerini tablet için küçültme */
    }

    /* İçerik bölümlerinin genişliklerini tablet için ayarlama */
    .left-section,
    .right-section {
        width: 50%;
    }
}
