/* Blog modülü — mevcut style.css değişkenleriyle uyumlu */
.blog-page-header,
.blog-post-header {
    padding: 140px 0 50px;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--gray-dark) 100%);
    color: var(--white);
    text-align: center;
}

.blog-page-header .page-title,
.blog-post-header .page-title {
    color: var(--primary-yellow);
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.blog-page-header .page-subtitle,
.blog-post-header .page-subtitle {
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin: 0 auto;
}

.blog-main {
    padding: 60px 0 80px;
    background: var(--gray-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-yellow);
    box-shadow: 0 16px 36px rgba(255, 215, 0, 0.18);
}

.blog-card-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.04);
}

.blog-card-body {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-black);
    background: var(--primary-yellow);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
    width: fit-content;
}

.blog-card-title {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 10px;
}

.blog-card-title a {
    color: var(--primary-black);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--yellow-dark);
}

.blog-card-excerpt {
    color: var(--gray-medium);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 14px;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: #777;
    margin-bottom: 16px;
}

.blog-card-btn {
    align-self: flex-start;
    font-size: 0.88rem;
    padding: 10px 18px;
}

.blog-empty {
    text-align: center;
    padding: 48px 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px dashed #ddd;
}

/* Detay */
.blog-post-wrap {
    padding: 120px 0 70px;
    background: var(--gray-light);
}

.blog-post-layout {
    max-width: 860px;
    margin: 0 auto;
}

.blog-breadcrumb {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 18px;
}

.blog-breadcrumb a {
    color: var(--gray-medium);
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    color: var(--primary-yellow);
}

.blog-post-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-black);
    margin-bottom: 14px;
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #666;
}

.blog-post-cover {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 28px;
    border: 2px solid rgba(255, 215, 0, 0.35);
    background: #111;
}

.blog-post-cover img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-content {
    background: var(--white);
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    color: var(--gray-medium);
    line-height: 1.75;
}

.blog-content h2,
.blog-content h3 {
    color: var(--primary-black);
    margin: 1.6em 0 0.7em;
    line-height: 1.3;
}

.blog-content h2 { font-size: 1.45rem; border-left: 4px solid var(--primary-yellow); padding-left: 12px; }
.blog-content h3 { font-size: 1.2rem; }

.blog-content p { margin-bottom: 1em; }
.blog-content ul, .blog-content ol { margin: 0 0 1em 1.2em; }
.blog-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1em 0; }
.blog-content blockquote {
    border-left: 4px solid var(--primary-yellow);
    padding: 12px 16px;
    margin: 1.2em 0;
    background: #fffbea;
    color: #444;
}
.blog-content pre {
    background: #111;
    color: #f5f5f5;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.2em 0;
    font-size: 0.88rem;
}
.blog-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.blog-content pre code { background: transparent; padding: 0; }
.blog-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.92rem; }
.blog-content th, .blog-content td { border: 1px solid #ddd; padding: 10px; text-align: left; }
.blog-content th { background: #111; color: var(--primary-yellow); }

.blog-related {
    margin-top: 48px;
}

.blog-related-title {
    font-size: 1.5rem;
    color: var(--primary-black);
    margin-bottom: 22px;
    text-align: center;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.blog-cta {
    margin-top: 48px;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.35);
}

.blog-cta h2 {
    color: var(--primary-yellow);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.blog-cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 22px;
}

.blog-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.blog-cta-actions .btn-hero-whatsapp {
    background: #25D366;
    color: #fff;
}

.blog-home-section {
    padding: 70px 0;
    background: var(--white);
}

.blog-home-section .section-title {
    text-align: center;
    margin-bottom: 8px;
}

.blog-home-section .section-subtitle {
    text-align: center;
    margin-bottom: 36px;
}

@media (max-width: 768px) {
    .blog-home-section {
        padding: 36px 0;
    }

    .blog-home-section .section-subtitle {
        margin-bottom: 1.25rem;
    }

    .blog-grid,
    .blog-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .blog-home-section .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .blog-home-section .blog-card-excerpt,
    .blog-home-section .blog-card-meta {
        display: none;
    }

    .blog-home-section .blog-card-body {
        padding: 12px;
    }

    .blog-home-section .blog-card-title {
        font-size: 0.92rem;
        margin-bottom: 8px;
    }

    .blog-home-section .blog-card-btn {
        width: 100%;
        text-align: center;
        padding: 8px 10px;
        font-size: 0.78rem;
    }

    .blog-main .blog-grid,
    .blog-related-grid {
        grid-template-columns: 1fr;
    }

    .blog-content {
        padding: 22px 18px;
    }
}
