/*
Theme Name: GelecekSosyalizm
Description: Gelecek Sosyalizm için özel WordPress teması
Version: 1.0
Author: GelecekBizim
Text Domain: geleceksosyalizm
*/

:root {
    --primary-red: #b71c1a;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --black: #000000;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    width: 100%;
    max-width: 100vw;
}

/* Sadece gerekli yerlerde overflow-x:hidden kullan */
.content-area,
.single-post .entry-content {
    overflow-x: hidden;
}

/* Header Styles */
.site-header {
    background: var(--primary-red);
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: nowrap;
    min-height: 60px;
    height: auto;
}

.site-logo {
    flex: 0 0 auto;
    background: var(--primary-red);
    padding: 10px 15px;
    margin: 0;
    border-radius: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.site-logo .default-logo {
    color: var(--white);
    background: transparent;
    padding: 0;
}

.site-logo .custom-logo-link img {
    filter: brightness(0) invert(1);
}



.header-right {
    flex: 0 0 auto;
    text-align: right;
    background: transparent;
    padding: 10px 20px;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: center;
    min-height: 60px;
}

.header-top-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.contact-btn {
    background: transparent;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.3);
}

.contact-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    border-color: rgba(255,255,255,0.5);
}

.contact-btn i {
    font-size: 18px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    order: 1;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0;
    font-size: 22px;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

/* X (Twitter) özel stil */
.social-links a i.fa-x-twitter {
    font-weight: 900;
    font-family: "Font Awesome 6 Brands";
}

.social-links a:hover {
    color: var(--primary-red);
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

.contact-info {
    background: transparent;
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    order: 2;
}

.search-form {
    display: flex;
    align-items: center;
    margin: 0;
    order: 3;
    max-width: 250px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-form button {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}

.search-form button:hover {
    background: #333;
}


/* Navigation Menu */
.main-navigation {
    background: var(--black);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* WordPress Admin Bar uyumluluğu */
.admin-bar .main-navigation {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .main-navigation {
        top: 46px;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--white);
    text-decoration: none;
    padding: 6px 8px;
    display: block;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background: var(--primary-red);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    text-align: left;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background: #a01816;
}

.menu-toggle i {
    margin-right: 8px;
}

/* Show menu toggle on mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

/* Desktop Menu Visibility */
.desktop-menu {
    display: block;
}

.mobile-menu {
    display: none;
}

/* Dropdown Menu Styles */
.desktop-menu ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--black);
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 999;
}

.desktop-menu li:hover > ul,
.desktop-menu li:focus-within > ul {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    padding: 12px 20px;
    border-bottom: 1px solid #333;
}

.main-navigation ul ul a:hover {
    background: var(--primary-red);
}

/* Single Post Styles */
.single-post {
    background: var(--white);
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.single-post .entry-header {
    text-align: left;
    margin-bottom: 1rem;
    padding-left: 10px;
}

.single-post .upper-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    text-align: left;
}

.single-post .entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-align: left;
}

.single-post .post-meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 0.5rem;
    text-align: left;
}

.single-post .post-meta .post-author,
.single-post .post-meta .post-date {
    font-weight: bold;
}

.single-post .post-thumbnail-large {
    margin: 0.5rem 0 1rem 0;
    text-align: left;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.single-post .post-thumbnail-large img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    background: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: block;
}

.single-post .entry-content {
    font-family: Arial, sans-serif;
    font-size: 20px;
    padding: 10px;
    line-height: 1.6;
    color: var(--text-dark);
    text-align: justify;
    max-width: 100%;
    overflow-x: auto;
    width: 100%;
    box-sizing: border-box;
}

.single-post .entry-content p {
    margin-bottom: 20px;
}

.single-post .entry-content img {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    height: auto;
    margin: 20px 10px;
    border-radius: 6px;
    display: block;
}

.single-post .entry-content a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: bold;
}

.single-post .entry-content a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

/* Contact Modal Styles */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.modal-content {
    background: white;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #b71c1a, #d32f2f);
    color: white;
    padding: 25px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
}

.modal-header h3 i {
    margin-right: 10px;
}

.close-modal {
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

/* Success/Error Messages */
.contact-success,
.contact-error {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.contact-success {
    background: #e8f5e8;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.contact-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.contact-success i,
.contact-error i {
    margin-right: 8px;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.half {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: #b71c1a;
    width: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #b71c1a;
    box-shadow: 0 0 0 3px rgba(183, 28, 26, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.char-counter {
    display: block;
    text-align: right;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

/* Captcha Styles */
.captcha-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.captcha-question {
    background: #b71c1a;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    min-width: 120px;
    text-align: center;
}

.captcha-container input {
    max-width: 100px;
    text-align: center;
    font-weight: bold;
}

.captcha-group small {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 8px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.submit-btn,
.cancel-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-btn {
    background: linear-gradient(135deg, #b71c1a, #d32f2f);
    color: white;
    box-shadow: 0 4px 15px rgba(183, 28, 26, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #9a1715, #b71c1a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(183, 28, 26, 0.4);
}

.cancel-btn {
    background: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .header-right .menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-left: 8px;
        transition: all 0.3s ease;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        position: relative;
        text-indent: -9999px;
        overflow: hidden;
        font-size: 0;
        line-height: 0;
        background: var(--primary-red);
        border-radius: 4px;
    }
    
    .header-right .menu-toggle:hover {
        background: #a01816;
    }
    
    .header-right .menu-toggle i {
        margin: 0;
        padding: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        font-size: 16px;
        text-indent: 0;
        color: white;
    }
}

@media (min-width: 769px) {
    .header-right .menu-toggle {
        display: none !important;
    }
}


/* Admin Banner */
.admin-banner {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.admin-banner img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-banner h1,
.admin-banner h2,
.admin-banner h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.admin-banner p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 15px;
}

.admin-banner a {
    color: var(--black);
    text-decoration: none;
}

.admin-banner a:hover {
    text-decoration: underline;
}

/* Main Content */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.content-area {
    background: var(--white);
    flex: 2.3;
    box-sizing: border-box;
    overflow: hidden;
    min-width: 0;
    width: auto;
}

/* Banner Slider */
.banner-slider {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.banner-slide {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    padding: 30px 20px 20px;
}

.banner-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Post Cards */
.posts-grid {
    display: grid;
    gap: 20px;
}

.post-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.post-card-content {
    padding: 10px;
}

/* Post content row - image and excerpt side by side */
.post-content-row {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.post-image-container {
    flex: 0 0 180px;
}

.post-thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.post-thumbnail.no-image {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    height: 120px;
    border-radius: 6px;
}

.post-thumbnail.no-image i {
    font-size: 32px;
}

.post-excerpt-container {
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.post-excerpt {
    font-family: Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 16px;
    height: 120px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    text-align: justify;
}

.post-title {
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-red);
    text-decoration: none;
    margin-bottom: 5px;
    line-height: 1.3;
}

.post-title:hover {
    color: var(--primary-red);
    text-decoration: none;
}

.post-title a {
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-red);
    text-decoration: none;
    line-height: 1.3;
}

.post-meta {
    font-family: Arial, sans-serif;
    color: var(--text-light);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.post-meta .post-author,
.post-meta .post-date {
    font-weight: bold;
}

.post-meta .post-author strong {
    font-weight: bold;
    font-size: 16px;
}

.post-meta a {
    color: var(--text-light);
    text-decoration: none;
}

.post-meta a:hover {
    color: var(--black);
}

.post-excerpt {
    color: var(--text-dark);
    line-height: 1.5;
    flex-grow: 1;
}

/* Sidebar */
.sidebar {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    flex: 1;
    max-width: 350px;
    box-sizing: border-box;
    min-width: 280px;
    overflow: hidden;
    width: auto;
}

.widget {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.widget-title {
    background: var(--primary-red);
    color: var(--white);
    padding: 5px 5px;
    margin: -20px -20px 20px -20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

/* Featured posts styles removed - using plugin instead */

/* PDF Slider */
.pdf-slider {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 1px;
    z-index: 1;
}

.pdf-slides {
    display: flex;
    transition: transform 0.3s ease;
}

.pdf-slide {
    flex: 0 0 100%;
    text-align: center;
    padding: 0;
}

.pdf-slide img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #f8f9fa;
}

.pdf-slide img:hover {
    transform: scale(1.02);
}

.pdf-slide-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-dark);
    margin-top: 5px;
    line-height: 1.2;
    text-align: center;
}

.pdf-controls {
    text-align: center;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #e0e0e0;
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
}

.pdf-nav {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 8px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pdf-nav:hover {
    background: #a01a18;
    transform: scale(1.1);
}

/* PDF Link Styles */
.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    margin: 5px 0;
    font-weight: 500;
}

.pdf-link:hover {
    background: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(183, 28, 26, 0.3);
}

.pdf-icon {
    color: #d32f2f;
    font-size: 18px;
    flex-shrink: 0;
}

.pdf-link:hover .pdf-icon {
    color: var(--white);
}

.pdf-title {
    font-weight: 600;
    line-height: 1.3;
}

.pdf-download-section {
    margin: 20px 0;
    text-align: center;
}

.pdf-download-section .pdf-link {
    display: inline-flex;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
}

.pdf-download-section .pdf-link:hover {
    background: #a01a18;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(183, 28, 26, 0.4);
}

.pdf-download-section .pdf-icon {
    color: var(--white);
    font-size: 20px;
}



@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Mobile Modal Responsive - moved to main 768px media query */


.archive-description {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Author Page Styles */
.author-description {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    margin: 5px 0 15px 0;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 6px;
}

/* Related Posts Styles */
.related-posts {
    margin-top: 40px;
    padding: 25px 20px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.related-posts h4 {
    color: var(--primary-red);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-post {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(183, 28, 26, 0.15);
}

.related-post img {
    width: 100%;
    
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post:hover img {
    transform: scale(1.05);
}

.related-post h5 {
    padding: 15px 15px 10px 15px;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.related-post h5 a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.related-post h5 a:hover {
    color: var(--primary-red);
}

.related-post-meta {
    padding: 0 15px 15px 15px;
    color: var(--text-light);
    font-size: 13px;
}

/* Link Preview Styles */
.link-preview {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.link-preview:hover {
    box-shadow: 0 4px 15px rgba(183, 28, 26, 0.15);
    text-decoration: none;
}

.link-preview-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.link-preview-content {
    padding: 15px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.link-preview-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-preview-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-preview-url {
    font-size: 12px;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
}


.mobile-search-toggle {
  display: none;
}

@media (min-width: 769px) {
  .mobile-search-toggle {
    display: none !important;
  }
}

/* Responsive Design - Consolidated 768px Media Query */
@media (max-width: 768px) {
    /* Header Styles */
    .header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
        min-height: 65px;
        height: 65px;
        display: flex;
    }
    
    .site-logo {
        margin-bottom: 0;
        text-align: left;
        padding: 0;
        min-height: auto;
        width: auto;
        justify-content: flex-start;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }
    
    .site-logo img {
        max-height: 45px;
        width: auto;
    }
    
    .header-right {
        width: auto;
        justify-content: flex-end;
        margin-left: auto;
        gap: 12px;
        padding: 0;
        flex-direction: row;
        flex-wrap: nowrap;
        min-height: auto;
        align-items: center;
        display: flex;
        height: 100%;
    }
    
    .header-top-row {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-bottom: 0;
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .social-links {
        order: 1;
        gap: 6px;
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .contact-btn {
        order: 2;
        padding: 8px 10px;
        font-size: 14px;
        min-width: auto;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .contact-btn .contact-text {
        display: none;
    }
    
    .contact-btn i {
        margin: 0;
        font-size: 16px;
    }
    
    .mobile-search-toggle {
        order: 3;
        background: var(--primary-red);
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
    }
    
    .search-form {
        display: none;
        order: 4;
        max-width: 100%;
        width: 100%;
        margin-top: 5px;
    }
    
    .search-form.mobile-active {
        display: flex;
    }
    
    /* Navigation */
    .main-navigation {
        position: relative;
    }
    
    .nav-container .menu-toggle {
        display: block;
        width: 100%;
        background: var(--black);
        color: var(--white);
        border: 0;
        padding: 12px 16px;
        text-align: left;
        cursor: pointer;
        font-size: 16px;
    }
    
    .main-navigation .desktop-menu {
        display: none;
    }
    
    .main-navigation .mobile-menu {
        display: block;
    }
    
    .main-navigation .mobile-menu ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--black);
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        z-index: 999;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .main-navigation.toggled .mobile-menu ul {
        display: flex;
    }
    
    .main-navigation a {
        padding: 12px 20px;
        border-bottom: 1px solid #333;
        width: 100%;
        display: block;
    }
    
    .main-navigation ul ul,
    .main-navigation ul.sub-menu {
        display: none;
        background: #1a1a1a;
        padding-left: 0;
        margin: 0;
        box-shadow: none;
        position: static;
        width: 100%;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    /* Mobil alt menü stilleri */
    .main-navigation .menu-item-has-children > a {
        position: relative;
        padding-right: 45px;
    }
    
    .main-navigation .submenu-arrow {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
        cursor: pointer;
        color: #fff;
        font-size: 12px;
        z-index: 10;
    }
    
    .main-navigation .submenu-arrow:hover {
        color: #b71c1a;
    }
    
    .main-navigation .sub-menu li {
        background: #1a1a1a;
        border-bottom: 1px solid #333;
    }
    
    .main-navigation .sub-menu li:last-child {
        border-bottom: none;
    }
    
    .main-navigation .sub-menu a {
        padding: 12px 20px 12px 40px;
        color: #ccc;
        font-size: 14px;
        border-bottom: none;
        background: transparent;
        transition: all 0.3s ease;
    }
    
    .main-navigation .sub-menu a:hover {
        background: #333;
        color: #fff;
        padding-left: 45px;
    }
    
    .main-navigation.toggled ul {
        display: flex;
        flex-direction: column;
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    /* Mobile menu visibility is handled above */
    
    /* Main Content */
    .site-main {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 5px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Post Cards */
    .post-content-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .post-image-container {
        flex: none;
    }
    
    .post-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .post-excerpt {
        height: auto;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }
    
    /* Single Post Tablet Responsive */
    .single-post {
        padding: 8px;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .single-post .entry-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .single-post .upper-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .single-post .entry-header {
        padding-left: 5px;
        margin-bottom: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .single-post .post-meta {
        font-size: 13px;
        margin-bottom: 15px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .single-post .post-thumbnail-large {
        padding: 0 5px;
        margin: 10px 0 15px 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .single-post .entry-content {
        padding: 5px;
        font-size: 16px;
        line-height: 1.6;
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .single-post .entry-content img {
        margin: 20px 10px;
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        border-radius: 6px;
    }
    
    .single-post .entry-content p {
        margin-bottom: 18px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .single-post .entry-content h2 {
        font-size: 22px;
        margin: 25px 0 15px 0;
    }
    
    .single-post .entry-content h3 {
        font-size: 20px;
        margin: 20px 0 12px 0;
    }
    
    .single-post .entry-content h4 {
        font-size: 18px;
        margin: 18px 0 10px 0;
    }
    
    /* Sidebar */
    .sidebar {
        padding: 15px;
        margin-top: 20px;
    }
    
    /* Banner */
    .banner-slide {
        height: 200px;
    }
    
    .banner-title {
        font-size: 20px;
    }
    
    .banner-content h2 {
        font-size: 1.5rem;
    }
    
    .banner-content p {
        font-size: 0.9rem;
    }
    
    /* PDF Archive */
    .pdf-archive-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    /* Modal Responsive */
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-width: none;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    /* General */
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .related-posts-grid,
    .related-pdfs-grid {
        grid-template-columns: 1fr;
    }
    
    .error-404 .page-title {
        font-size: 36px;
    }
    
    .single-post .entry-title,
    .single-page .entry-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .single-post {
        padding: 0px;
        margin-bottom: 20px;
    }
    
    .single-post .entry-title {
        font-size: 24px;
    }
    
    .single-post .entry-content {
        text-align: left;
    }
    
    .post-card-content {
        padding: 5px;
    }
    
    .site-main {
        padding: 15px 10px;
    }
    
        
    .post-title {
        font-size: 18px;
    }
    
    .sidebar {
        padding: 15px;
    }
    
    .share-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .error-404 .page-title {
        font-size: 28px;
    }
    
    .single-post .entry-title,
    .single-page .entry-title {
        font-size: 20px;
    }
    
    .btn-download {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* Single Post Styles - Consolidated */

    .share-btn.facebook { background: #1877f2; }
    .share-btn.twitter { background: #1da1f2; }
    .share-btn.telegram { background: #0088cc; }
    .share-btn.whatsapp { background: #25d366; }

    /* Author Bio */
    .author-bio {
        background: var(--bg-light);
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 30px;
        display: flex;
        gap: 20px;
    }

    .author-avatar img {
        border-radius: 50%;
        width: 80px;
        height: 80px;
    }

.entry-header {
    margin-bottom: 30px;
    text-align: left;
}

.entry-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-red);
    margin-bottom: 15px;
    line-height: 1.2;
}

.entry-meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.entry-meta span {
    margin-right: 20px;
}

.entry-content {
    font-size: 16px;
    line-height: 1.2;
    color: var(--text-dark);
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--primary-red);
    margin: 30px 0 15px 0;
    font-weight: bold;
    text-decoration: none;
}

.entry-content h2 {
    font-size: 24px;
}

.entry-content h3 {
    font-size: 20px;
}

.entry-content h4 {
    font-size: 18px;
}

.entry-content img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
    display: block;
}

.entry-content a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: bold;
}

.entry-content a:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

.entry-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-red);
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

.single-post .entry-content h3 {
    font-size: 20px;
}

.single-post .entry-content h4 {
    font-size: 18px;
}

/* Social Share Buttons */
.social-share {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.social-share h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.share-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    color: var(--white);
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.share-btn:hover {
    opacity: 0.8;
}


/* Author Bio */
.author-bio {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-info h4 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.author-description {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.author-posts-link {
    color: var(--black);
    text-decoration: none;
    font-weight: bold;
}

.author-posts-link:hover {
    text-decoration: underline;
}

/* Related Posts */
.related-posts {
    border-top: 2px solid var(--border-color);
    padding-top: 30px;
}

.related-posts h4 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 20px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-post {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-3px);
}

.related-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post h5 {
    padding: 15px 15px 5px;
    margin: 0;
}

.related-post h5 a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.3;
}

.related-post h5 a:hover {
    color: var(--black);
}

.related-post-meta {
    padding: 0 15px 15px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: bold;
}

/* Page Header */
.page-header {
    text-align: left;
    margin-bottom: 40px;
    padding: 30px 0;
    border-bottom: 2px solid var(--border-color);
}

.page-title {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 0px;
}

.archive-description {
    color: var(--text-light);
    font-size: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.pagination .current {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.no-posts h2 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.no-posts p {
    color: var(--text-light);
    font-size: 16px;
}

/* Search Again */
.search-again {
    margin-top: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.search-again h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Footer Styles */
.site-footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-social {
    margin-top: 20px;
}

.footer-social p {
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-social .social-links a {
    color: var(--white);
    font-size: 20px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-social .social-links a:hover {
    color: var(--black);
}

/* WordPress Core Styles */
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-style: italic; text-align: center; }

/* Comments */
.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.comments-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
}

.comment-author img {
    border-radius: 50%;
    float: left;
    margin-right: 15px;
}

.comment-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.comment-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.reply {
    text-align: right;
}

.reply a {
    color: var(--black);
    text-decoration: none;
    font-size: 14px;
}

.reply a:hover {
    text-decoration: underline;
}

/* Comment Form */
.comment-form {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 30px;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 15px;
}

.comment-form-comment textarea {
    height: 120px;
    resize: vertical;
}

.form-submit input {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.form-submit input:hover {
    background: #a01a18;
}

/* 404 Sayfa Stilleri */
.error-404 {
    text-align: center;
    padding: 40px 20px;
}

.error-404 .page-title {
    font-size: 48px;
    color: var(--black);
    margin-bottom: 20px;
}

.error-404 .page-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-404 .search-section,
.error-404 .recent-posts-404,
.error-404 .categories-404 {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.error-404 h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 18px;
}

.error-404 ul {
    list-style: none;
    padding: 0;
}

.error-404 li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.error-404 li:last-child {
    border-bottom: none;
}

.error-404 li a {
    color: var(--text-dark);
    text-decoration: none;
}

.error-404 li a:hover {
    color: var(--black);
}

.error-404 .post-date,
.error-404 .post-count {
    color: var(--text-light);
    font-size: 14px;
}

.btn-home {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.btn-home:hover {
    background: #a01a18;
    color: var(--white);
}

/* PDF Sayfa Stilleri */
.single-pdf .pdf-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

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

.pdf-cover img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: #f8f9fa;
}

.pdf-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.btn-download {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(183, 28, 26, 0.3);
}

.btn-download:hover {
    background: #a01a18;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(183, 28, 26, 0.4);
}

.btn-download i {
    margin-right: 8px;
}

/* Enhanced PDF Download Button */
.pdf-download-enhanced {
    background: linear-gradient(135deg, #dc3545, #b71c1c);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    margin: 20px 0;
}

.pdf-download-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    color: white;
    text-decoration: none;
}

.pdf-download-enhanced .pdf-icon-enhanced {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Mini PDF Download Button for Archive */
.pdf-download-mini {
    background: linear-gradient(135deg, #dc3545, #b71c1c) !important;
    color: white !important;
    border: none;
    font-weight: 600;
}

.pdf-download-mini:hover {
    background: linear-gradient(135deg, #b71c1c, #a01a18) !important;
    color: white !important;
    transform: translateY(-1px);
}

.pdf-download-mini i {
    margin-right: 5px;
}

/* Sidebar PDF/Book specific spacing */
.widget .pdf-slide-title {
    margin-top: 3px;
    margin-bottom: 0;
    line-height: 1.1;
    font-size: 13px;
}

/* İlgili PDF'ler */
.related-pdfs {
    border-top: 2px solid var(--border-color);
    padding-top: 30px;
    margin-top: 40px;
}

.related-pdfs h4 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 20px;
}

.related-pdfs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.related-pdf {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--border-color);
}

.related-pdf:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-pdf-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.related-pdf-thumb {
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    background: white;
    padding: 10px;
}

.related-pdf:hover .related-pdf-thumb {
    transform: scale(1.05);
}

.related-pdf-content {
    padding: 15px;
}

.related-pdf h5 {
    margin: 0 0 10px 0;
    font-size: 15px;
    line-height: 1.3;
}

.related-pdf h5 a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-pdf h5 a:hover {
    color: var(--primary-red);
}

.related-pdf-meta {
    color: var(--text-light);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.related-pdf-meta i {
    font-size: 12px;
    color: var(--primary-red);
}

/* Sayfa Stilleri */
.single-page .entry-header {
    text-align: center;
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-bottom: 2px solid var(--border-color);
}

.single-page .entry-title {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 0;
}

.single-page .entry-content {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 30px;
}

.single-page .entry-content p {
    margin-bottom: 20px;
}

.single-page .entry-content h2,
.single-page .entry-content h3,
.single-page .entry-content h4 {
    color: var(--text-dark);
    margin: 30px 0 15px 0;
    font-weight: bold;
}

.single-page .entry-content h2 {
    font-size: 24px;
    border-left: 4px solid var(--primary-red);
    padding-left: 15px;
}

.single-page .entry-content h3 {
    font-size: 20px;
}

.single-page .entry-content h4 {
    font-size: 18px;
}

.edit-link {
    text-align: center;
    margin-top: 20px;
}

.edit-link a {
    color: var(--black);
    text-decoration: none;
    font-size: 14px;
}

.edit-link a:hover {
    text-decoration: underline;
}

/* PDF Arşiv Sayfası Stilleri */
.pdf-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pdf-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pdf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.pdf-card-content {
    padding: 20px;
    text-align: center;
}

.pdf-card .pdf-cover {
    margin-bottom: 20px;
}

.pdf-card .pdf-cover img {
    width: 100%;
    max-width: 200px;
    height: 280px;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #f8f9fa;
}

.pdf-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.pdf-title a {
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.3;
}

.pdf-title a:hover {
    color: var(--black);
}

.pdf-meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.pdf-excerpt {
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 14px;
}

.pdf-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-view,
.btn-download-small {
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-view {
    background: var(--primary-red);
    color: var(--white);
}

.btn-view:hover {
    background: #a01a18;
    color: var(--white);
}

.btn-download-small {
    background: var(--text-light);
    color: var(--white);
}

.btn-download-small:hover {
    background: var(--text-dark);
    color: var(--white);
}

/* Logo placeholder */
.site-logo img {
    width: auto;
}

/* Varsayılan logo stilleri */
.default-logo {
    background: var(--primary-red);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
}

.default-logo:hover {
    background: #a01a18;
    color: var(--white);
}

/* Selected Posts Widget Styles */
.selected-posts-widget {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
}

.selected-post-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.selected-post-item:last-child {
    border-bottom: none;
}

.selected-post-item:hover {
    background: var(--bg-light);
}

.selected-post-item h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.3;
}

.selected-post-item h4 a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.selected-post-item h4 a:hover {
    color: var(--primary-red);
}

.selected-post-item .post-author {
    color: var(--text-light);
    font-size: 13px;
    font-style: italic;
    margin: 0;
}

/* ========================================
   RESPONSIVE MEDIA QUERIES
   ======================================== */

/* Tablet ve küçük masaüstü (768px - 1024px) */
@media (max-width: 1024px) {
    .site-main {
        display: flex;
        gap: 20px;
        padding: 15px;
    }
    
    .content-area {
        flex: 2;
    }
    
    .sidebar {
        flex: 1;
        max-width: 300px;
        min-width: 250px;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .posts-grid {
        gap: 20px;
    }
    
    .single-post .entry-title {
        font-size: 2rem;
    }
    
    .single-post .entry-header {
        padding-left: 8px;
    }
    
    .single-post .post-thumbnail-large {
        padding: 0 8px;
    }
    
    .single-post .entry-content img {
        margin: 20px 8px;
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
    }
}

/* Tablet (768px - 1024px) - Consolidated above */

/* Mobil (550px - 768px) */
@media (max-width: 550px) {
    .site-main {
        padding: 0 !important;
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .content-area {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .header-container {
        padding: 0 10px;
    }
    
    .site-logo {
        padding: 10px;
    }
    
    .header-right {
        padding: 8px 10px;
        flex-direction: column;
        gap: 8px;
    }
    
    .header-top-row {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-form {
        width: 100%;
        max-width: none;
        margin-top: 8px;
    }
    
    .social-links {
        justify-content: center;
        gap: 6px;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .contact-btn {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .posts-grid {
        gap: 15px;
    }
    
    .post-card {
        margin-bottom: 5px;
    }
    
    .post-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .post-meta {
        font-size: 12px;
    }
    
    .post-thumbnail {
        height: 150px;
    }
    
    .post-excerpt {
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* Single Post Mobile Responsive */
    .single-post {
        padding: 5px;
        margin: 0;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }
    
    /* Social Share Mobile */
    .social-share {
        padding: 15px 10px;
        margin-bottom: 20px;
    }
    
    .share-buttons {
        gap: 8px;
        justify-content: center;
    }
    
    .share-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 80px;
    }
    
    .single-post .entry-title {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .single-post .upper-title {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .single-post .entry-header {
        padding-left: 8px;
        margin-bottom: 15px;
    }
    
    .single-post .post-meta {
        font-size: 12px;
        margin-bottom: 12px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
  
    
    .single-post .post-thumbnail-large {
        padding: 0 8px;
        margin: 12px 0 15px 0;
    }
    
    .single-post .entry-content {
        padding: 8px;
        font-size: 16px;
        line-height: 1.6;
        text-align: justify;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        overflow-x: hidden;
    }
    
    .single-post .entry-content img {
        margin: 10px 5px;
        width: calc(100% - 10px) !important;
        max-width: calc(100% - 10px) !important;
        border-radius: 4px;
        box-sizing: border-box;
    }
    
    .single-post .entry-content p {
        margin-bottom: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden;
    }
    
    .single-post .entry-content h2 {
        font-size: 20px;
        margin: 20px 0 12px 0;
        line-height: 1.3;
    }
    
    .single-post .entry-content h3 {
        font-size: 18px;
        margin: 18px 0 10px 0;
        line-height: 1.3;
    }
    
    .single-post .entry-content h4 {
        font-size: 16px;
        margin: 16px 0 8px 0;
        line-height: 1.3;
    }
    
    .single-post .entry-content ul,
    .single-post .entry-content ol {
        padding-left: 20px;
        margin-bottom: 16px;
    }
    
    .single-post .entry-content blockquote {
        margin: 16px 0;
        padding: 12px 16px;
        border-left: 3px solid var(--primary-red);
        background: #f9f9f9;
        font-style: italic;
    }
    
    .sidebar {
        padding: 10px;
    }
    
    .widget-title {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    /* Related PDFs Tablet Responsive */
    .related-pdfs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .related-pdf-thumb {
        height: 200px;
    }
    
    .banner-content h2 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .banner-content p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* iOS zoom önleme */
    }
    
    /* Related PDFs Mobile Responsive */
    .related-pdfs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-pdf-thumb {
        height: 180px;
    }
    
    .related-pdf-content {
        padding: 12px;
    }
    
    .related-pdf h5 {
        font-size: 14px;
    }
    
    .related-pdf-meta {
        font-size: 12px;
    }
}

/* Küçük mobil (max 480px) */
@media (max-width: 480px) {
    .site-main {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .content-area {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .single-post {
        padding: 3px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }
    
    .single-post .entry-content {
        padding: 3px !important;
        font-size: 15px;
        line-height: 1.5;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        overflow-x: hidden;
    }
    
    .single-post .entry-content p {
        margin-bottom: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden;
    }
}

/* Çok küçük mobil (max 320px) */
@media (max-width: 320px) {
    .site-main {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .content-area {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Single Post Extra Small Mobile */
    .single-post {
        padding: 3px;
        margin: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Social Share Extra Small Mobile */
    .social-share {
        padding: 12px 8px;
        margin-bottom: 15px;
    }
    
    .social-share h4 {
        font-size: 14px;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .share-buttons {
        gap: 6px;
        justify-content: center;
    }
    
    .share-btn {
        padding: 5px 8px;
        font-size: 12px;
        min-width: 70px;
    }
    
    .single-post .entry-title {
        font-size: 1.3rem;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    
    .single-post .upper-title {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .single-post .entry-header {
        padding-left: 5px;
        margin-bottom: 12px;
    }
    
    .single-post .post-meta {
        font-size: 11px;
        margin-bottom: 10px;
        flex-direction: column;
        gap: 3px;
    }
    
    .single-post .post-thumbnail-large {
        padding: 0 5px;
        margin: 10px 0 12px 0;
    }
    
    .single-post .entry-content {
        font-size: 15px;
        padding: 3px;
        line-height: 1.5;
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        overflow-x: hidden;
    }
    
    .single-post .entry-content img {
        margin: 12px 5px;
        width: calc(100% - 10px) !important;
        max-width: calc(100% - 10px) !important;
    }
    
    .single-post .entry-content p {
        margin-bottom: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .single-post .entry-content h2 {
        font-size: 18px;
        margin: 18px 0 10px 0;
    }
    
    .single-post .entry-content h3 {
        font-size: 16px;
        margin: 16px 0 8px 0;
    }
    
    .single-post .entry-content h4 {
        font-size: 15px;
        margin: 14px 0 6px 0;
    }
    
    .post-title {
        font-size: 1rem;
    }
    
    .social-links a {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .contact-btn {
        font-size: 12px;
        padding: 5px 8px;
    }
}

/* Yatay tablet ve küçük laptop (landscape) */
@media (max-width: 1024px) and (orientation: landscape) {
    .banner-slide {
        height: 250px;
    }
    
    .site-main {
        display: flex;
        flex-direction: row;
    }
}

/* Print stilleri */
@media print {
    .site-header,
    .sidebar,
    .social-share,
    .related-posts,
    .contact-modal {
        display: none !important;
    }
    
    .site-main {
        display: flex;
        flex-direction: column;
        max-width: none;
        padding: 0;
    }
    
    .single-post .entry-content {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    .single-post .entry-title {
        color: black;
        font-size: 18pt;
    }
}

/* ========== KİTAP SİSTEMİ STİLLERİ ========== */

/* Kitap Arşiv Sayfası */
.kitap-archive-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.kitap-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.kitap-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kitap-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.kitap-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kitap-cover {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.kitap-cover img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.kitap-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.kitap-title {
    margin-bottom: 15px;
    font-size: 1.3em;
    line-height: 1.3;
}

.kitap-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.kitap-title a:hover {
    color: var(--primary-red);
}

.kitap-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: var(--text-light);
}

.kitap-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.kitap-excerpt {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.6;
    flex-grow: 1;
}

.kitap-actions {
    margin-top: auto;
}

.btn-read-book {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #8b1a1a 100%);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(183, 28, 26, 0.3);
}

.btn-read-book:hover {
    background: linear-gradient(135deg, #8b1a1a 0%, var(--primary-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(183, 28, 26, 0.4);
    color: var(--white);
}

/* Kitap Tek Sayfa */
article.single-kitap {
    max-width: 1400px;
    margin: 0 auto;
}

article.single-kitap .content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.2;
}

article.single-kitap .entry-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

article.single-kitap .entry-title {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-size: 2.5em;
    line-height: 1.2;
}

article.single-kitap .entry-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.95em;
}

article.single-kitap .entry-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.kitap-main-content {
    display: block;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.kitap-main-content .kitap-cover {
    text-align: center;
    margin-bottom: 30px;
}

.kitap-main-content .kitap-cover img {
    max-width: 250px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.kitap-description {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-red);
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1em;
    line-height: 1.7;
    width: 100%;
    box-sizing: border-box;
}

/* İçindekiler Tablosu */
.kitap-icindekiler {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

.kitap-icindekiler h3 {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icindekiler-listesi {
    list-style: none;
    padding: 0;
}

.icindekiler-item {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.icindekiler-item:last-child {
    border-bottom: none;
}

.icindekiler-item:hover {
    background-color: #f8f9fa;
}

.icindekiler-item.active {
    background-color: rgba(183, 28, 26, 0.1);
    border-left: 4px solid var(--primary-red);
}

.icindekiler-link {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.icindekiler-link:hover {
    color: var(--primary-red);
}

.bolum-numarasi {
    background: var(--primary-red);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-right: 15px;
    min-width: 80px;
    text-align: center;
}

.bolum-baslik {
    font-weight: 500;
    flex-grow: 1;
}

/* Alt Başlıklar (Bölüm İçindeki Başlıklar) */
.alt-basliklar {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    border-left: 2px solid #e0e0e0;
    padding-left: 15px;
}

.alt-baslik-item {
    margin-bottom: 5px;
}

.alt-baslik-link {
    display: block;
    padding: 5px 10px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9em;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.alt-baslik-link:hover {
    background-color: rgba(183, 28, 26, 0.1);
    color: var(--primary-red);
    padding-left: 15px;
}

/* Farklı başlık seviyeleri için girintiler */
.alt-baslik-item.level-1 .alt-baslik-link {
    font-weight: 600;
    color: var(--text-dark);
}

.alt-baslik-item.level-2 .alt-baslik-link {
    padding-left: 20px;
    font-size: 0.85em;
}

.alt-baslik-item.level-3 .alt-baslik-link {
    padding-left: 30px;
    font-size: 0.8em;
    color: #999;
}

.alt-baslik-item.level-2:hover .alt-baslik-link {
    padding-left: 25px;
}

.alt-baslik-item.level-3:hover .alt-baslik-link {
    padding-left: 35px;
}

/* Bölüm İçeriği */
.kitap-bolum-content {
    background: var(--white);
    border-radius: 12px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.bolum-header {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    text-align: center;
}

.bolum-title {
    color: var(--primary-red);
    font-size: 2.2em;
    line-height: 1.3;
    margin-bottom: 15px;
}

.bolum-number {
    display: block;
    font-size: 0.7em;
    color: var(--text-light);
    font-weight: normal;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bolum-icerik {
    font-size: 1.2em;
    line-height: 1.4;
    color: var(--text-dark);
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

/* Başlıklara scroll offset ekle */
.bolum-icerik h1,
.bolum-icerik h2,
.bolum-icerik h3 {
    scroll-margin-top: 100px;
}

.bolum-icerik p {
    margin-bottom: 25px;
    text-indent: 0;
}

.bolum-icerik h1, .bolum-icerik h2, .bolum-icerik h3 {
    color: var(--primary-red);
    margin: 40px 0 20px 0;
    text-align: left;
}

.bolum-icerik h1 {
    font-size: 1.8em;
}

.bolum-icerik h2 {
    font-size: 1.5em;
}

.bolum-icerik h3 {
    font-size: 1.3em;
}

.bolum-icerik ul, .bolum-icerik ol {
    margin: 25px 0;
    padding-left: 40px;
}

.bolum-icerik li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.bolum-icerik blockquote {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-red);
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 8px;
}

/* Bölüm Navigasyonu */
.bolum-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.nav-prev, .nav-next {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-prev:hover, .nav-next:hover {
    background: var(--white);
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-prev span, .nav-next span {
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-prev small, .nav-next small {
    color: var(--text-light);
    font-size: 0.9em;
}

.nav-contents {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 25px;
    background: var(--primary-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(183, 28, 26, 0.3);
}

.nav-contents:hover {
    background: #8b1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(183, 28, 26, 0.4);
    color: var(--white);
}

/* İlgili Kitaplar */
.related-kitaplar {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.related-kitaplar h4 {
    color: var(--primary-red);
    margin-bottom: 25px;
    font-size: 1.5em;
}

.related-kitaplar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-kitap {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.related-kitap:hover {
    transform: translateY(-3px);
}

.related-kitap-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-kitap-content {
    padding: 20px;
}

.related-kitap-content h5 {
    margin-bottom: 10px;
    line-height: 1.3;
}

.related-kitap-content h5 a {
    color: var(--text-dark);
    text-decoration: none;
}

.related-kitap-content h5 a:hover {
    color: var(--primary-red);
}

.related-kitap-meta {
    color: var(--text-light);
    font-size: 0.9em;
    line-height: 1.5;
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .single-kitap {
        max-width: 100%;
    }
    
    .single-kitap .content-area {
        padding: 0 5px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .kitap-bolum-content {
        padding: 40px 30px;
    }
    
    .bolum-icerik {
        font-size: 1.1em;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .single-kitap .content-area {
        padding: 0 10px;
    }
    
    .single-kitap .entry-title {
        font-size: 2em;
    }
    
    .single-kitap .entry-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .kitap-description {
        padding: 20px;
        font-size: 1em;
    }
    
    .kitap-icindekiler {
        padding: 20px;
    }
    
    .bolum-navigation {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
        padding-top: 25px;
    }
    
    .nav-contents {
        order: -1;
    }
    
    .kitap-bolum-content {
        padding: 25px 15px;
    }
    
    .bolum-title {
        font-size: 1.6em;
    }
    
    .bolum-icerik {
        font-size: 1.05em;
        line-height: 1.7;
        text-align: left;
    }
    
    .bolum-icerik p {
        margin-bottom: 20px;
    }
    
    .icindekiler-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }
    
    .bolum-numarasi {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    /* Mobilde alt başlıklar */
    .alt-basliklar {
        padding-left: 10px;
        border-left: 1px solid #e0e0e0;
    }
    
    .alt-baslik-link {
        font-size: 0.85em;
        padding: 4px 8px;
    }
    
    .alt-baslik-item.level-2 .alt-baslik-link {
        padding-left: 15px;
    }
    
    .alt-baslik-item.level-3 .alt-baslik-link {
        padding-left: 20px;
    }


    .kitap-description {
        padding: 20px;
        margin: 0 10px 30px 10px;
        font-size: 1em;
    }
    
    .kitap-icindekiler {
        padding: 20px;
        margin: 0 10px 30px 10px;
    }
    
    .kitap-main-content .kitap-cover img {
        max-width: 200px;
    }
    
    .icindekiler-link {
        padding: 12px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .kitap-description {
        padding: 15px;
        margin: 0 5px 20px 5px;
        font-size: 0.95em;
        line-height: 1.6;
    }
    
    .kitap-icindekiler {
        padding: 15px;
        margin: 0 5px 20px 5px;
    }
    
    .kitap-main-content .kitap-cover img {
        max-width: 150px;
    }
    
    .icindekiler-link {
        padding: 10px;
        font-size: 0.9em;
    }
    
    .kitap-bolum-content {
        padding: 15px 5px;
    }
    
    .bolum-icerik {
        font-size: 0.95em;
    }
    
    .bolum-title {
        font-size: 1.3em;
    }
}

@media (max-width: 320px) {
    .kitap-description {
        padding: 10px;
        margin: 0 3px 15px 3px;
        font-size: 0.9em;
    }
    
    .kitap-icindekiler {
        padding: 10px;
        margin: 0 3px 15px 3px;
    }
    
    .kitap-main-content .kitap-cover img {
        max-width: 120px;
    }
    
    .icindekiler-link {
        padding: 8px;
        font-size: 0.85em;
    }
}

@media (min-width: 769px) {
  header.site-header .header-right .header-top-row .mobile-search-toggle,
  .header-top-row .mobile-search-toggle,
  .mobile-search-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Masaüstünde mobil arama kutusunu da kapat (emin olmak için) */
  #mobile-search {
    display: none !important;
  }

  /* Masaüstünde normal arama çubuğu açık kalsın */
  .header-right .search-form {
    display: flex !important;
  }
}
