/*
 * Europatrans Tema - Blog Yazı Şablonu CSS Stilleri
 * 9-3 kolonlu tasarım, sağ widget ve yan görseller için
 */

/* Breadcrumbs Hero Alanı (Move1 temasından entegre edilmiştir) */
.breadcrumbs-area {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    margin-bottom: 50px;
    color: #fff;
}

.breadcrumbs-overlay {
    background: rgba(4, 51, 102, 0.85);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.breadcrumbs-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.breadcrumbs-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.breadcrumbs-links ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumbs-links li {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.breadcrumbs-links li:not(:last-child)::after {
    content: "/";
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs-links a:hover {
    color: #fff;
}

.breadcrumbs-links .active {
    color: #ffc107;
    font-weight: 600;
}

/* Ana Sayfa Yapısı - Grid Sistemi */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.post-page {
    padding: 60px 0;
}

/* Row ve Col sınıfları Bootstrap olmadan flexbox ile */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    align-items: flex-start;
    /* Üstten hizala */
}

/* İçerik alanı (9 kolon) */
.col-lg-9 {
    flex: 0 0 75%;
    max-width: 75%;
    padding-right: 30px;
    padding-left: 15px;
    box-sizing: border-box;
}

/* Sidebar alanı (3 kolon) */
.col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding-right: 15px;
    padding-left: 0;
    box-sizing: border-box;
}

/* Benzer yazılar için 3 kolon düzeni */
.related-posts .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding-right: 10px;
    padding-left: 10px;
    box-sizing: border-box;
}

/* Form düzeni */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 10px;
    padding-left: 10px;
    box-sizing: border-box;
}

.post-content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    min-height: 600px;
    /* Layout shift önleme - artırıldı */
    contain: content
        /* Layout shift izolasyonu */
}

/* Meta Bilgileri */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.post-meta span i {
    margin-right: 6px;
    color: #043366;
}

.post-meta a {
    color: #043366;
    text-decoration: none;
    transition: color 0.3s;
}

.post-meta a:hover {
    text-decoration: underline;
}

/* Yazı Açıklaması */
.post-description {
    display: none;
    /* Kaldırıldı */
}

/* Yazı Görseli */
.post-image {
    margin-bottom: 25px;
}

.featured-image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    max-height: 450px;
}

.featured-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 450px;
}

.featured-image-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #043366;
    color: #fff;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    z-index: 1;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.featured-image-wrapper:hover .image-overlay {
    opacity: 1;
}

.image-overlay .post-meta span,
.image-overlay .post-meta a {
    color: #fff;
}

/* İçerik Stili */
.post-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    color: #043366;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-body h2 {
    font-size: 28px;
}

.post-body h3 {
    font-size: 24px;
}

.post-body h4 {
    font-size: 20px;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.post-body ul,
.post-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-body blockquote {
    border-left: 4px solid #043366;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    font-style: italic;
}

/* Etiketler */
.post-tags {
    margin-top: 30px;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tags-title {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    display: inline-block;
    padding: 6px 15px;
    background: #f0f4f8;
    color: #043366;
    border-radius: 30px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-link:hover {
    background: #043366;
    color: #fff;
}

/* Paylaşım Butonları */
.post-share {
    margin: 30px 0;
    padding: 25px 0;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.post-share .share-title {
    margin-bottom: 20px;
    font-size: 20px;
    color: #043366;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.post-share .share-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #043366;
    border-radius: 3px;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.share-buttons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.share-buttons .facebook {
    background: #3b5998;
}

.share-buttons .twitter {
    background: #1da1f2;
}

.share-buttons .linkedin {
    background: #0077b5;
}

.share-buttons .whatsapp {
    background: #25d366;
}

/* Benzer Yazılar */
.related-posts {
    margin: 40px 0;
}

.related-posts h3 {
    margin-bottom: 25px;
    font-size: 22px;
    color: #043366;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.related-posts h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #043366;
    border-radius: 3px;
}

.related-post-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
    background: #fff;
}

.related-post-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-post-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-post-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.related-post-item:hover img {
    transform: scale(1.05);
}

.related-post-item h4 {
    padding: 15px 15px 5px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 5px;
}

.related-post-item .date {
    display: block;
    padding: 0 15px 15px;
    font-size: 13px;
    color: #777;
}

/* Popüler Yazılar */
.sidebar h3 {
    margin: 25px 0 15px;
    font-size: 20px;
    color: #043366;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.sidebar h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #043366;
    border-radius: 3px;
}

.sidebar-image {
    display: block;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 25px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.sidebar a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.sidebar a:hover {
    color: #043366;
}

.sidebar .text-decoration-none {
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.sidebar .small {
    font-size: 12px;
}

/* Responsive */
@media (max-width: 992px) {
    .related-post-item img {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .share-buttons {
        flex-wrap: wrap;
    }

    .related-post-item {
        margin-bottom: 15px;
    }

    .related-post-item img {
        height: 140px;
    }
}

@media (max-width: 576px) {

    .post-share h4,
    .related-posts h3,
    .sidebar h3 {
        font-size: 18px;
    }

    .related-post-item h4 {
        font-size: 15px;
    }
}

/* Responsive Stiller */
@media (max-width: 991px) {
    .row {
        flex-direction: column;
    }

    .col-lg-9,
    .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .sidebar {
        margin-top: 40px;
        position: static;
    }

    .breadcrumbs-content h1 {
        font-size: 28px;
    }

    .breadcrumbs-area {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }

    .breadcrumbs-content h1 {
        font-size: 24px;
    }

    .breadcrumbs-area {
        padding: 40px 0;
    }

    .section-title {
        font-size: 20px;
    }

    .post-body h2 {
        font-size: 24px;
    }

    .post-body h3 {
        font-size: 20px;
    }

    .post-body h4 {
        font-size: 18px;
    }

    .col-md-4,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .form-row {
        flex-direction: column;
    }
}

/* Blog Post Sayfası Stilleri */

/* Makale İçerik Stilleri */
.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    font-size-adjust: 0.5;
    /* CLS önleme */
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 25px 0 15px;
    font-weight: 600;
    color: #222;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-content blockquote {
    border-left: 4px solid #0074d9;
    padding: 15px 20px;
    margin: 20px 0;
    background-color: #f9f9f9;
    font-style: italic;
    color: #555;
}

.post-content ul,
.post-content ol {
    margin: 20px 0 20px 20px;
}

.post-content li {
    margin-bottom: 10px;
}

/* Yan Menü Stilleri */
.sidebar {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.sidebar h3 {
    font-size: 18px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #0074d9;
    position: relative;
    font-weight: 600;
}

.sidebar .sidebar-image {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar .sidebar-image:hover {
    transform: translateY(-5px);
}

/* Mobil Responsive */
@media (max-width: 991px) {
    .sidebar {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .post-content {
        font-size: 15px;
    }

    .related-post-item {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .post-content h2 {
        font-size: 22px;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .share-buttons a {
        margin-bottom: 10px;
    }
}