/*
Theme Name: Melisakarahan
Theme URI: https://melisakarahan.av.tr
Author: Your Name
Author URI: https://melisakarahan.av.tr
Description: Avukat Melisa Karahan için özel tasarlanmış WordPress teması.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: melisakarahan
*/

/* Genel Sıfırlama ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 15px; /* Temel font boyutu */
    scroll-behavior: smooth; /* Yumuşak kaydırma efekti */
}

/* Genel Body Ayarları */
body {
    font-family: sans-serif;
    font-size: 15px;
    line-height: 1.7; /* Satır yüksekliği */
    color: #656565; /* Metin rengi */
    background-color: transparent !important; /* Arka plan rengi */
    overflow-x: hidden; /* Yatay kaydırmayı engelle */
    margin: 0 auto;
    max-width: 100%; /* Maksimum genişlik */
    padding: 0; /* Yanlarda boşluk */
    -webkit-font-smoothing: antialiased; /* Font smoothing */
    -moz-osx-font-smoothing: grayscale; /* Font smoothing */
}


p {
    margin-bottom: 1.2rem; /* Paragraflar arası boşluk */
}

/* Başlıklar */
h1 {
    font-family: sans-serif;
    font-size: 1.6rem;
    line-height: 1.1;
    color: #1b2c50; /* Başlık rengi */
    font-weight: normal; /* Normal ağırlık */
    margin-bottom: 1.2rem; /* Başlıklar arası boşluk */
}

h2, h3, h4, h5, h6 {
    font-family: sans-serif;
    font-weight: normal; /* Normal ağırlık */
    color: #1b2c50; /* Başlık rengi */
    margin-bottom: 1rem; /* Başlıklar arası boşluk */
}

h2 {
    font-size: 1.4rem;
    line-height: 1.25;
}

h3 {
    font-size: 1.3rem;
    line-height: 1.25;
}

h4 {
    font-size: 1.2rem;
    line-height: 1.5;
}

h5 {
    font-size: 1rem;
    line-height: 1.6;
}

h6 {
    font-size: 0.7rem;
    line-height: 1.72;
    letter-spacing: 2px; /* Harf aralığı */
}


/* Linkler ve Butonlar */
a {
    color: #00529b; /* Link rengi */
    text-decoration: none; /* Alt çizgiyi kaldır */
    transition: color 0.3s ease; /* Renk geçiş efekti */
}

a:hover {
    color: #1b2c50; /* Hover rengi */
}


/* Tüm unordered list (ul) öğeleri için klasik madde işareti */
ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

/* Alt listelerde de klasik madde işareti kullan */
ul ul {
    list-style-type: disc;
    padding-left: 20px;
}

ul ul ul {
    list-style-type: disc;
    padding-left: 20px;
}


/* accent color #00529b */


/* Header Genel Stiller */
.site-header {
    width: 100%;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
}
.header-container {
    margin: 0 auto;
    padding: 50px 50px;
    align-items: center;
}
.inner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 0;
	padding-left: 0;
	padding-top: 0;
	padding-bottom: 20px;
    /* İstenen Kenarlık Eklendi */
    border-bottom: 1px solid #ffffff33; 
}
.header-left {
    display: flex;
    align-items: center;
}
.site-logo img {
    max-height: 20px;
}
.header-right {
    display: flex;
    align-items: center;
}
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0;
}
.main-navigation ul li {
    margin: 0;
}
.main-navigation ul li a {
    font-size: 15px !important;
    font-weight: 500;
    text-decoration: none;
    color: #f2f2f2;
}

/* Mobil Menü Butonu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 2px;
}
.menu-toggle .bar {
    width: 35px;
    height: 1px;
    background-color: #f2f2f2;
}

/* Mobil Menü */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff !important;
    z-index: 999;
    align-items: center;
    justify-content: center;
}
.mobile-navigation ul {
    list-style: none;
    text-align: center;
}
.mobile-navigation ul li a {
    color: #1b2c50;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .header-container {
        padding: 50px 50px;
    }
    .inner-header {
        padding-top: 0;
		padding-bottom: 20px;
		padding-right: 0;
		padding-left: 0;
        /* Mobil/Tablet görünümde de border'ın geçerli olması için buraya da eklenmesi gerekir */
        border-bottom: 1px solid #ffffff33; 
    }
    .main-navigation {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .site-logo img {
    max-height: 20px;
}
}

@media (max-width: 768px) {
    .header-container {
        padding: 35px 35px;
    }
      padding-top: 0;
		padding-bottom: 20px;
		padding-right: 0;
		padding-left: 0;
        /* Mobil/Tablet görünümde de border'ın geçerli olması için buraya da eklenmesi gerekir */
        border-bottom: 1px solid #ffffff33; 
    .site-logo img {
    max-height: 20px;
    }
}

/* Mobil menü stilini kontrol et */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.mobile-menu-overlay.active {
    display: flex;
}

/* Footer Genel Yapı */
.footer {
    width: 100%;
    background-color: #ffffff33;
    padding: 50px 0;
}

/* İç Konteyner */
.footer-container {
    width: 100%;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Sol ve Sağ Konteyner */
.footer-left, .footer-right {
    display: flex;
    align-items: center;
    width: 50%;
}

.footer-left {
    justify-content: flex-start;
    flex-direction: column; /* Mobil için logonun üstte olması */
}

.footer-right {
    justify-content: flex-end;
}

/* Site Logosu */
.footer-logo {
    display: flex;
    justify-content: flex-start; /* Logoyu sola hizala */
    width: 100%;
}

.footer-logo img {
    height: 50px; /* Masaüstü ve tablet için */
}

/* Footer Menü */
.footer-menu {
    display: flex;
    gap: 35px;
    list-style: none; /* Yuvarlak işaretleri kaldır */
    padding: 0;
    margin: 0;
}

.footer-menu a {
    font-size: 15px;
    text-decoration: none;
    color: #1b2c50 !important;
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .footer-container {
        padding: 0 50px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 35px;
    }
    
    .footer-left, .footer-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .footer-left {
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
    }

    .footer-logo {
        margin-bottom: 10px; /* Menü ile logo arasına boşluk */
    }

    .footer-menu {
        flex-direction: column;
        align-items: flex-start; /* Mobilde menüyü sola yasla */
        gap: 15px;
    }
    
    .footer-menu a {
        display: block; /* Linkleri alt alta getir */
    }
}

.haber-outer-container {
    width: 100%;
    min-height: 400px !important;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    background-color: #1b2c50;

}

.haber-inner-container {
    width: 100%;
    height: 100%;
    padding: 0 50px 30px; /* Varsayılan (Büyük Ekran) */
    display: flex;
    flex-direction: column; /* İçeriğin yukarıdan aşağıya akması için */
    justify-content: flex-end;
    align-items: flex-end;
    text-align: left;
}

.haber-inner-container .haber-title {
    font-family: sans-serif !important;
    font-size: 32px; /* Varsayılan (Büyük Ekran) */
    font-weight: 400;
    color: #f1f1f1;
    text-decoration: none;
    width: 100%;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Tablet Ekranlar (1024px ve altı) */
@media (max-width: 1024px) {
    .haber-inner-container {
        padding: 0 50px 30px;
    }
}

/* Mobil Ekranlar (768px ve altı) */
@media (max-width: 768px) {
    .haber-inner-container {
        padding: 0 35px 30px;
    }

    .haber-inner-container .haber-title {
        font-size: 30px;
    }
}
	
/* --- Base Styling for .haber-posts container --- */
.haber-posts {
    /* Set up the grid container */
    display: grid;
    /* On mobile, use a single column */
    grid-template-columns: 1fr;
    gap: 30px; /* Space between the grid items (posts) */
    padding-left: 35px;
    padding-right: 35px;
	padding-top: 50px;
    margin-bottom: 50px; /* Add some space below the content */
}

/* --- Tablet and Desktop (Two-Column Layout) --- */
@media (min-width: 768px) {
    .haber-posts {
        /* On tablet and desktop, use two columns with equal width */
        grid-template-columns: 1fr 1fr;
        /* Apply 50px padding on tablet and desktop */
        padding-left: 50px;
        padding-right: 50px;
		padding-top: 50px;
    }

    /* Optional: Ensure the separator in each column doesn't span the whole width of the container */
    .haber-post {
        margin-bottom: 0; /* Since the gap handles vertical spacing */
    }
}


/* --- Styling for the Individual Posts --- */
.haber-post {
    /* Ensures the article takes up its grid area */
    display: block;
}

.haber-post-title {
    font-size: 24px; /* Adjust size as needed */
    line-height: 1.3;
    margin-bottom: 10px;
}

.haber-post-title a {
    color: #333; /* Dark color for the title */
    text-decoration: none; /* Remove underline */
    transition: color 0.2s ease;
}

.haber-post-title a:hover {
    color: #007bff; /* Change color on hover for visual feedback */
}


/* Optional: Better to hide the separator on mobile and let the gap handle it, or style it as a bottom border */
@media (max-width: 767px) {
    .separator {
        /* Use a full-width light border to separate posts on mobile */
        width: 100%;
        height: 1px;
        background-color: #eee;
        margin-bottom: 30px; /* Align with the gap */
    }
}

.blog-posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: %100;
    padding: 80px 50px;
    margin: 0 auto;
}

/* Tablet styles (adjusts padding for screens up to 768px wide) */
@media (max-width: 768px) {
    .blog-posts-container {
        padding-left: 50px;
        padding-right: 50px;
    }
}

/* Mobile styles (adjusts padding for screens up to 480px wide) */
@media (max-width: 480px) {
    .blog-posts-container {
        padding-left: 35px;
        padding-right: 35px;
    }
}

.haber-post-container {
    border-bottom: 1px solid #ddd;
    padding-bottom: 50px;
	padding-right: 50px;
	padding-left: 50px;
	padding-top: 50px;
}

.haber-post-title {
    font-size: 28px;
    margin: 10px 0;
}

.haber-post-title a {
    text-decoration: none;
    color: #333;
}

.haber-post-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.haber-post-excerpt {
    font-size: 16px;
    color: #444;
}

.haber-post-container img {
    width: 100%;
    height: 333px;
    object-fit: cover;
}