/*



.page-header {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
    min-height: auto;
}


.blog-list-section {
    padding: 80px 0;
}


.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
}


.blog-main-content {
    width: 100%;
}


.featured-post-card {
    display: flex;
    gap: 30px;
    background-color: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-bottom: 60px;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.featured-post-image {
    width: 250px;
    height: 250px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-post-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-light);
    margin-top: 10px;
    margin-bottom: 15px;
}

.featured-post-content p {
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.7;
}


.latest-posts-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.blog-category {
    color: var(--primary);
}

.blog-date {
    color: var(--text-dark);
}

.blog-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-content p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.read-more i {
    transition: transform 0.3s ease;
}

.blog-card:hover .read-more i, .featured-post-card:hover .read-more i {
    transform: translateX(5px);
}



.blog-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

.sidebar-widget {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.search-form { display: flex; }
.search-form input { width: 100%; background: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 8px 0 0 8px; padding: 12px 15px; color: var(--text-light); outline: none; }
.search-form button { background: var(--primary); border: none; color: #FFF; padding: 0 15px; border-radius: 0 8px 8px 0; cursor: pointer; }

.about-widget { text-align: center; }
.about-logo { width: 50px; margin-bottom: 15px; }
.about-widget p { font-size: 0.9rem; color: var(--text-dark); line-height: 1.6; margin: 0; }

.newsletter-widget p { font-size: 0.9rem; color: var(--text-dark); margin-bottom: 15px; }
.newsletter-form input { width: 100%; padding: 12px; margin-bottom: 10px; border-radius: 8px; border: 1px solid var(--border-color); background-color: var(--bg-dark); color: var(--text-light); }
.newsletter-form .cta-button { width: 100%; padding: 12px; }

.category-list { list-style: none; padding: 0; margin: 0;}
.category-list li a { text-decoration: none; color: var(--text-dark); display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-color); transition: color 0.3s ease; }
.category-list li:first-child a { padding-top: 0; }
.category-list li:last-child a { border-bottom: none; padding-bottom: 0; }
.category-list li a:hover { color: var(--primary); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud span { background: var(--bg-dark); padding: 5px 12px; border-radius: 6px; font-size: 0.85rem; color: var(--text-dark); }



.pagination { margin-top: 40px; display: flex; justify-content: center; gap: 10px; }
.pagination a { color: var(--text-dark); padding: 10px 15px; text-decoration: none; border: 1px solid var(--border-color); border-radius: 8px; transition: all 0.3s ease; }
.pagination a:hover, .pagination a.active { background-color: var(--primary); color: #FFF; border-color: var(--primary); }
.pagination a.disabled { opacity: 0.5; pointer-events: none; }


body.modal-open {
    overflow: hidden;
}


.blog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 5vh 15px;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.blog-modal.is-visible {
    opacity: 1;
    visibility: visible;
}


.modal-container {
    background-color: var(--bg-light); 
    border-radius: 16px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 800px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    overflow: hidden;


    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-modal.is-visible .modal-container {
    transform: translateY(0);
}


.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
    color: var(--text-dark);
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--primary);
    transform: rotate(90deg);
    border-color: var(--primary);
}


.blog-modal .post-full-image {
    width: 100%;
    max-height: 350px;
    background-color: var(--bg-dark); 
    margin: 0;
}


.blog-modal .post-full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


.blog-modal .post-header {
    padding: 40px 40px 20px 40px;
    text-align: center;
}

.blog-modal .post-title {
   
    font-size: clamp(1.8rem, 4vw, 2.5rem); 
    line-height: 1.3;
}


.blog-modal .post-body {
    padding: 20px 40px 40px 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}


.blog-modal .post-body > * {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}



@media (max-width: 768px) {
    .blog-modal {
        padding: 0;
    }

    .modal-container {
        border-radius: 0;
        height: 100%;
        max-height: 100vh;
    }
    
    .blog-modal .post-full-image {
        max-height: 220px;
    }

    .blog-modal .post-header {
        padding: 25px 20px 15px 20px;
    }

    .blog-modal .post-body {
        padding: 15px 20px 30px 20px;
        font-size: 1rem;
    }

    .modal-close-btn {
        top: 10px;
        right: 10px;
    }
} */
 /* ==========================================================================
   BLOG LİSTELEME SAYFASI ÖZEL STİLLERİ (MODAL KODLARI TEMİZLENDİ)
   ========================================================================== */

/* Sayfa başlığı alanı */
.page-header {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
    min-height: auto;
}

/* Ana blog bölümü */
.blog-list-section {
    padding: 80px 0;
}

/* Sayfa düzeni: Ana içerik ve kenar çubuğu */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
}

/* Ana içerik alanı (yazıların olduğu sol taraf) */
.blog-main-content {
    width: 100%;
}

/* --- ÖNE ÇIKAN YAZI KARTI (TEK VE DOĞRU STİL) --- */
.featured-post-card {
    display: flex;
    gap: 30px;
    background-color: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-bottom: 60px;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.featured-post-image {
    width: 250px;
    height: 250px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-post-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-light);
    margin-top: 10px;
    margin-bottom: 15px;
}

.featured-post-content p {
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* --- SON YAZILAR --- */
.latest-posts-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.blog-category {
    color: var(--primary);
}

.blog-date {
    color: var(--text-dark);
}

.blog-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-content p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.read-more i {
    transition: transform 0.3s ease;
}

.blog-card:hover .read-more i, .featured-post-card:hover .read-more i {
    transform: translateX(5px);
}


/* --- KENAR ÇUBUĞU (SIDEBAR) --- */
.blog-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

.sidebar-widget {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.search-form { display: flex; }
.search-form input { width: 100%; background: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 8px 0 0 8px; padding: 12px 15px; color: var(--text-light); outline: none; }
.search-form button { background: var(--primary); border: none; color: #FFF; padding: 0 15px; border-radius: 0 8px 8px 0; cursor: pointer; }

.about-widget { text-align: center; }
.about-logo { width: 50px; margin-bottom: 15px; }
.about-widget p { font-size: 0.9rem; color: var(--text-dark); line-height: 1.6; margin: 0; }

.newsletter-widget p { font-size: 0.9rem; color: var(--text-dark); margin-bottom: 15px; }
.newsletter-form input { width: 100%; padding: 12px; margin-bottom: 10px; border-radius: 8px; border: 1px solid var(--border-color); background-color: var(--bg-dark); color: var(--text-light); }
.newsletter-form .cta-button { width: 100%; padding: 12px; }

.category-list { list-style: none; padding: 0; margin: 0;}
.category-list li a { text-decoration: none; color: var(--text-dark); display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-color); transition: color 0.3s ease; }
.category-list li:first-child a { padding-top: 0; }
.category-list li:last-child a { border-bottom: none; padding-bottom: 0; }
.category-list li a:hover { color: var(--primary); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud span { background: var(--bg-dark); padding: 5px 12px; border-radius: 6px; font-size: 0.85rem; color: var(--text-dark); }


/* --- SAYFALAMA --- */
.pagination { margin-top: 40px; display: flex; justify-content: center; gap: 10px; }
.pagination a { color: var(--text-dark); padding: 10px 15px; text-decoration: none; border: 1px solid var(--border-color); border-radius: 8px; transition: all 0.3s ease; }
.pagination a:hover, .pagination a.active { background-color: var(--primary); color: #FFF; border-color: var(--primary); }
.pagination a.disabled { opacity: 0.5; pointer-events: none; }

/* --- BLOG SAYFASI MOBİL UYUMLULUK --- */
@media (max-width: 992px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; margin-top: 60px; }
}

@media (max-width: 768px) {
    .featured-post-card { flex-direction: column; text-align: center; }
    .featured-post-image { width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .blog-grid { grid-template-columns: 1fr; }
}