body {
    margin: 0;
    font-family: sans-serif;
    background-color: #f5f5dc; /* Beige - a light brown tone */
    color: #4a2e11; /* Dark brown */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* overflow özellikleri bu dosyadan yönetilmeyecek */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: #4B352A; /* Yeni kahverengi tonu */
    color: #fff;
    flex-shrink: 0; /* Küçülmesini engelle */
    position: fixed; /* Başlığı sabitle */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Diğer elementlerin üzerinde olması için */
    height: 42px; /* Başlık yüksekliği (örnek) */
}

.title {
    font-size: 1em; /* Başlık font boyutunu biraz küçült */
    font-weight: normal; /* Varsayılan font kalınlığını normal yap */
}

.title strong {
    font-weight: bold; /* YÜKSEL AKSU'yu kalın yap */
}

.title span {
    font-weight: lighter; /* Geri kalan yazıyı ince yap */
    font-size: 0.9em; /* Menü ile aynı boyut */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-family: "futura-pt", sans-serif; /* Set font for menu items */
    text-transform: uppercase; /* Menü yazılarını büyük harf yap */
    font-size: 0.9em; /* Menü font boyutunu biraz küçült */
}

nav ul li a:hover {
    color: #CA7842;
}

.language-selector {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.language-selector a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    transition: color 0.3s ease;
}

.language-selector a:hover {
    color: #CA7842;
}

.language-selector a.active {
    font-weight: bold;
    color: #CA7842;
}

.language-selector .separator {
    color: #fff;
    margin: 0 0.5rem;
}

main {
    flex-grow: 1;
    display: block;
    margin: 0;
    padding: 0;
    padding-top: 42px;

    background-image: url('images/biograf-bg.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    min-height: calc(100vh - 42px);
}

/* Mobil için düzenlemeler */
@media screen and (max-width: 768px) {
    /* Biyografi sayfasında arkaplanı kaldır */
    .biography-layout main {
        background-image: none !important;
    }

    .homepage-content {
        background-image: url('images/biograf-bg-mobile.jpg') !important;
        background-size: cover !important;
        background-position: left !important;
        background-repeat: no-repeat !important;
        background-attachment: fixed !important;
    }

    .biography-layout {
        display: block !important;
    }

    .biography-snippet {
        display: none !important;
    }

    /* Hamburger menü düzenlemeleri */
    .hamburger {
        display: block !important;
        cursor: pointer;
        padding: 10px;
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 1001;
        background: white;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: #333;
        margin: 5px 0;
        transition: 0.3s;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .desktop-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        position: absolute !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        padding: 60px 20px 20px;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        z-index: 1000;
        transition: 0.3s;
        overflow-y: auto;
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mobile-menu li {
        width: 100%;
        text-align: left;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .mobile-menu li:last-child {
        border-bottom: none;
    }

    .mobile-menu a {
        display: block;
        padding: 10px 0;
        font-size: 18px;
        color: #333;
        text-decoration: none;
        font-weight: bold;
    }

    .mobile-menu .language-selector {
        position: absolute;
        bottom: 20px;
        left: 20px;
    }

    /* Biyografi sayfası mobil düzenlemeleri */
    .content-container {
        padding: 20px;
        max-width: 100%;
        margin-top: 60px;
        position: relative;
        z-index: 1;
    }

    .content {
        padding: 5px;
        margin: 0;
        width: 100%;

        border-radius: 10px;
    }

    .content h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .content h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .content h3 {
        font-size: 18px;
        margin: 20px 0 10px;
    }

    .content p {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .content img {
        width: 50%;
        height: auto;
        margin: 20px 0;
    }

    .film-title {
        font-weight: bold;
    }
}

/* Çok küçük ekranlar için düzenlemeler */
@media screen and (max-width: 480px) {
    /* Biyografi sayfasında arkaplanı kaldır */
    .biography-layout main {
        background-image: none !important;
    }

    .homepage-content {
        background-image: url('images/biograf-bg-mobile.jpg') !important;
        background-size: cover !important;
        background-position: left !important;
        background-repeat: no-repeat !important;
        background-attachment: fixed !important;
    }

    .biography-layout {
        display: block !important;
    }

    .biography-snippet {
        display: none !important;
    }

    /* Hamburger menü düzenlemeleri */
    .hamburger {
        right: 15px;
    }

    .hamburger span {
        width: 22px;
    }

    .mobile-menu {
        width: 90%;
    }

    /* Biyografi sayfası mobil düzenlemeleri */
    .content-container {
        padding: 15px;
        margin-top: 50px;
    }

    .content {
        padding: 5px;
    }

    .content h1 {
        font-size: 22px;
    }

    .content h2 {
        font-size: 18px;
    }

    .content h3 {
        font-size: 16px;
    }

    .content p {
        font-size: 14px;
    }
}

/* Filmler sayfası için özel main stili */
.films-page-main {
    background-image: none; /* Arka plan görselini kaldır */
    background-color: #f5f5dc; /* body ile aynı arka plan rengi */
    padding-top: 70px; /* Başlık altındaki boşluk */
    margin: 10px;
    overflow-y: auto; /* Dikey kaydırmayı etkinleştir */
    min-height: calc(100vh - 61px); /* Minimum yükseklik */
    box-sizing: border-box;
}

.homepage-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100vh - 42px);
    background-image: url('images/yuksel-aksu.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.director-photo {
    display: none; /* Hide the img tag since we are using background-image */
}

.movie-posters-container {
    /* position: absolute; /* Fotoğrafın üzerinde konumlandır */
    /* top: 0; /* Üste hizala */
    /* left: 0; /* Sola hizala */
    width: 100%; /* Genişliği tam yap */
    height: 100%; /* Yüksekliği tam yap */
    pointer-events: none; /* Afişlerin tıklanmasını engelle (şimdilik) */
    overflow: hidden; /* Taşan afişleri gizle */
}

.movie-posters-container img {
    position: absolute; /* Konteyner içinde serbestçe konumlandır */
    max-width: 150px; /* Afiş genişliği (ayarlanabilir) */
    height: auto;
    pointer-events: auto; /* Resimlerin tıklanmasını sağla */
    opacity: 0.4; /* Başlangıç opaklığı biraz daha düşürüldü */
    transition: opacity 0.3s ease-in-out; /* Opaklık değişimi için geçiş efekti */
}

.movie-posters-container img:hover {
    opacity: 1; /* Üzerine gelindiğinde tam opaklık */
}

.biography-snippet {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(75, 53, 42, 0.5); /* Yeni kahverengi tonu (RGBA) */
    color: #fff;
    padding: 15px;
    max-width: 600px;
    text-align: center; /* İçeriği ortala */
    opacity: 1;
    max-height: 150px; /* Başlangıç yüksekliği (başlık için yeterli) */
    overflow: hidden; /* Başlangıçta taşan içeriği gizle */
    transition: max-height 1.5s ease-in-out; /* Animasyon süresini yavaşlat */
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* İçeriği ortala */
}

.biography-snippet:hover {
    max-height: 1000px; /* Hover olunca yüksekliği içeriğe göre ayarla, yeterince büyük bir değer */
    overflow: hidden; /* İçeriğin taşmasını engelle */
}

.biography-snippet .bio-title {
    font-weight: normal;
    font-size: 4em;
    margin-bottom: 5px;
    padding-top: 15px;
    text-align: center; /* Başlığı ortala */
    letter-spacing: 2px; /* Harf aralığını ayarla */
}

.biography-snippet .bio-title strong {
    font-weight: bold;
}

.biography-snippet .bio-subtitle {
    font-weight: lighter;
    font-size: 0.5em;
    text-align: center; /* Altyazıyı ortala */
}

.biography-snippet .bio-full-text {
    display: block; /* Tam metni her zaman görünür yap */
    font-size: 0.9em;
    padding-top: 10px;
    text-align: center; /* Tam metni ortala */
}

.biography-snippet .bio-full-text .first-letter {
    float: left;
    font-size: 3em; /* İlk harf boyutunu ayarla */
    line-height: 1;
    margin-right: 5px;
    font-weight: bold;
    color: #CA7842; /* İlk harf rengini ayarla */
}

.biography-snippet .bio-full-text .film-title {
    color: #CA7842; /* Film isimlerinin rengini ayarla */
    font-weight: bold;
}

.biography-snippet .read-more-link {
    color: #CA7842; /* Link rengini ayarla */
    text-decoration: none; /* Altı çiziliyi kaldır */
    margin-top: 10px;
    display: block; /* Yeni satırda göster */
    font-size: 0.9em; /* Link font boyutunu ayarla */
    text-align: center; /* Linki ortala */
}

.biography-snippet .read-more-link:hover {
    text-decoration: underline; /* Üzerine gelindiğinde altını çiz */
}

.social-icons a:hover {
    color: #CA7842; /* Hover rengi */
}

.social-media-corner {
    /* Kaldırıldı: position: absolute; Sol alt köşeye konumlandır */
    position: fixed; /* Sabit konumlandır */
    bottom: 20px; /* Alttan boşluk */
    left: 20px; /* Soldan boşluk */
    background-color: rgba(75, 53, 42, 0.8); /* Arka plan rengi */
    color: #fff; /* Yazı rengi */
    padding: 15px; /* İç boşluk */
    max-width: 200px; /* Genişlik sınırı */
    text-align: center; /* İçeriği ortala */
    display: flex; /* İçeriği düzenlemek için flexbox */
    flex-direction: column; /* Dikey sıralama */
    align-items: center; /* Yatayda ortala */
    z-index: 900; /* Diğer içeriklerin üzerinde olması için */
}

.social-media-corner a {
    color: #fff; /* Link rengi */
    text-decoration: none; /* Altı çiziliyi kaldır */
    margin: 5px 0; /* Linkler arasına dikey boşluk */
    font-size: 0.7em; /* Font boyutu çok aza küçültüldü */
}

.social-media-corner a:hover {
    color: #CA7842; /* Hover rengi */
}

.biography-layout {
    display: block; /* Normal akış */
    width: 100%; /* Tam genişlik kullan */
    max-width: 1200px; /* İçerik genişliğini sınırla */
    justify-self: right;

    padding: 0 20px; /* Sağdan soldan boşluk */
    position: relative; /* İçindeki elemanlar için */
}

.biography-layout .sidebar {
    width: 250px; /* Sidebar genişliği */
    flex-shrink: 0; /* Sidebar'ın küçülmesini engelle */
    position: fixed; /* Sidebar'ı sabitle */
    left: 80px;
    top: 110px; /* Başlık altından başlat */
    bottom: 0; /* Alta kadar uzat */
    padding: 20px; /* İç boşluk */
    z-index: 500; /* İçeriğin üzerinde ama header'ın altında */
    overflow-y: auto; /* Sidebar içeriği kaydırılabilir olsun gerekirse */
    background-color: rgba(245, 245, 220, 0); /* Sidebar arka planı */
}

.biography-layout .content-container {
    display: block; /* Normal akış */
    background-color: rgba(255, 255, 255, 0.8); /* Yarı saydam beyaz arka plan */
    padding: 20px; /* İç boşluk */
    margin-left: 40px;
    margin-top: 80px; /* Üstten boşluk */

    max-width: 1000px; /* İçerik konteynerinin maksimum genişliği */
    position: relative; /* İçindeki elemanlar için */
    z-index: 1; /* Arka plan üzerinde olması için */
}

/* Eski .biography-page-content kurallarını kaldırıyoruz veya güncelliyoruz */
/* Daha önceki .biography-page-content stilleri burada temizlendi veya ilgili sınıflara taşındı */

/* Sidebar içindeki ul, li, a stilleri */
.biography-layout .sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.biography-layout .sidebar ul li {
    margin-bottom: 10px;
}

.biography-layout .sidebar ul li a {
    text-decoration: none;
    color: #e7e7e7; /* Koyu kahverengi - Okunur olması için */
    font-size: 1.2em;
    font-weight: bold;
}

.biography-layout .sidebar ul li a:hover {
    color: #CA7842; /* Vurgu rengi */
}

/* İçerik (content) içindeki stiller */
.biography-layout .content-container .content h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
    color: #4a2e11; /* Koyu kahverengi */
}

.biography-layout .content-container .content h2 {
    font-size: 1.8em;
    color: #4a2e11;
    margin-bottom: 20px;
}

.biography-layout .content-container .content p {
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.biography-layout .content-container .content img {
    height: auto;
    margin-top: 10px; /* Üstten alttan boşluk */
    margin-right: 20px;
    display: block; /* Ortalamak için */

}

.biography-image {
    width: 400px;
    height: auto;
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
    border-radius: 8px;
}

.film-title {
    color: red; /* Film başlıklarını kırmızı yapar */
}

.film-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 4 sütunlu bir düzen */
    gap: 0; /* Kutular arası boşluğu kaldır */
    padding: 0; /* İç dolguyu kaldır */
    max-width: none; /* Maksimum genişliği kaldır */
    margin: 0; /* Ortalamayı kaldır */
}

.film-item {
    background-color: #2c2c2c;
    color: #fff;
    text-align: center;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: none;
    position: relative;
    border: 5px solid #f5f5dc; /* 5 piksel kalınlığında siyah kenarlık */
    box-sizing: border-box; /* Kenarlığın kutu boyutuna dahil olmasını sağlar */
}

.film-item:hover {
    transform: none; /* Hover efektini kaldır */
    box-shadow: none; /* Hover gölgeyi kaldır */
}

.film-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0; /* Köşe yuvarlamayı kaldır */
}

.film-info {
    position: absolute; /* Kutunun altına sabitle */
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Yarı saydam siyah arka plan */
    padding: 10px 15px; /* İç dolgu */
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between; /* Başlığı sola, yılı sağa hizala */
    align-items: center; /* Dikeyde ortala */
}

.film-title {
    font-weight: bold;
    /* display: block; */ /* Flexbox kullandığımız için artık gerekli değil */
    margin-bottom: 0; /* Film-info'daki padding ile boşluk sağlanacak */
    font-size: 11px;
    color: #CA7842;
    text-transform: uppercase;
    text-align: left; /* Başlığı sola hizala */
}

.film-year {
    font-size: 11px;
    color: #bbb;
    text-align: right; /* Yılı sağa hizala */
} 

.kitap-image {
    width: 200px;
    height: auto;
    float: left;
    margin-right: 200px;
    margin-bottom: 10px;
    border-radius: 8px;
}

.kitap-layout {
    display: block; /* Normal akış */
    width: 100%; /* Tam genişlik kullan */
    max-width: 1200px; /* İçerik genişliğini sınırla */
    justify-self: right;

    padding: 0 20px; /* Sağdan soldan boşluk */
    position: relative; /* İçindeki elemanlar için */
}

.kitap-layout .sidebar {
    width: 250px; /* Sidebar genişliği */
    flex-shrink: 0; /* Sidebar'ın küçülmesini engelle */
    position: fixed; /* Sidebar'ı sabitle */
    left: 80px;
    top: 110px; /* Başlık altından başlat */
    bottom: 0; /* Alta kadar uzat */
    padding: 20px; /* İç boşluk */
    z-index: 500; /* İçeriğin üzerinde ama header'ın altında */
    overflow-y: auto; /* Sidebar içeriği kaydırılabilir olsun gerekirse */
    background-color: rgba(245, 245, 220, 0); /* Sidebar arka planı */
}

.kitap-layout .content-container {
    display: block; /* Normal akış */
    background-color: rgba(255, 255, 255, 0.8); /* Yarı saydam beyaz arka plan */
    padding: 20px; /* İç boşluk */
    margin-left: 80px;
    margin-top: 80px; /* Üstten boşluk */

    max-width: 1000px; /* İçerik konteynerinin maksimum genişliği */
    position: relative; /* İçindeki elemanlar için */
    z-index: 1; /* Arka plan üzerinde olması için */
}

/* Eski .biography-page-content kurallarını kaldırıyoruz veya güncelliyoruz */
/* Daha önceki .biography-page-content stilleri burada temizlendi veya ilgili sınıflara taşındı */

/* Sidebar içindeki ul, li, a stilleri */
.kitap-layout .sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kitap-layout .sidebar ul li {
    margin-bottom: 10px;
}

.kitap-layout .sidebar ul li a {
    text-decoration: none;
    color: #e7e7e7; /* Koyu kahverengi - Okunur olması için */
    font-size: 1.2em;
    font-weight: bold;
}

.kitap-layout .sidebar ul li a:hover {
    color: #CA7842; /* Vurgu rengi */
}

/* İçerik (content) içindeki stiller */
.kitap-layout .content-container .content h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
    color: #4a2e11; /* Koyu kahverengi */
    margin-left: 100px;

}

.kitap-layout .content-container .content h2 {
    font-size: 1.8em;
    color: #4a2e11;
    margin-bottom: 20px;
}

.kitap-layout .content-container .content p {
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 15px;
    margin-top: 40px;
}

.kitap-layout .content-container .content img {
    height: auto;
    margin-top: 10px; /* Üstten alttan boşluk */
    margin-right: 100px;
    margin-left: 100px;
    display: block; /* Ortalamak için */

}

.kitap-image {
    width: 230px;
    height: auto;
    float: left;
    margin-right: 200px;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* Mobil için films-page-main düzenlemeleri */
@media screen and (max-width: 768px) {
    .films-page-main {
        overflow-y: auto; /* Mobilde kaydırmayı etkinleştir */
        height: auto; /* Sabit yüksekliği kaldır */
        min-height: calc(100vh - 61px);
        padding-top: 60px; /* Mobilde daha az üst boşluk */
        margin: 5px; /* Mobilde daha az kenar boşluğu */
    }
}