/* ==========================================================================
   08 — BLOG
   Yazı listesi kartları ve yazı sayfası
   ========================================================================== */

.posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.post-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--teal);
}

.post-cover {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy), var(--dark));
}

.post-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

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

/* Görsel yüklenmemiş yazılar için markalı kapak */
.post-cover-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    text-align: center;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.post-cover-fallback::before {
    content: "";
    position: absolute;
    right: -40px;
    top: -60px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(24, 185, 176, .45), transparent 65%);
}

.post-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 22px;
}

.post-city {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--teal-deep);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.post-body h2 {
    font-size: 19px;
    line-height: 1.35;
    color: var(--navy);
}

.post-body h2 a {
    transition: color .2s ease;
}

.post-card:hover .post-body h2 a {
    color: var(--teal-deep);
}

.post-body p {
    margin-top: 11px;
    color: var(--muted);
    font-size: 14.5px;
}

.post-body .service-link {
    margin-top: auto;
    padding-top: 18px;
}

.blog-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 42px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Yazı sayfası
   -------------------------------------------------------------------------- */

.post-head h1 {
    color: var(--navy);
    font-size: clamp(30px, 4.2vw, 46px);
    margin-top: 16px;
}

.post-lead {
    margin-top: 18px;
    font-size: 18.5px;
    color: var(--muted);
}

.post-meta {
    margin-top: 20px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 700;
}

.post-figure {
    margin: 30px 0 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.post-content {
    margin-top: 30px;
}

.post-content h2 {
    font-size: 26px;
    margin-top: 42px;
}

.post-content h3 {
    font-size: 19px;
    margin-top: 32px;
}

/* Yazı sonundaki dönüşüm kutusu */
.post-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 26px;
    align-items: center;
    margin-top: 52px;
    padding: 32px;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(120deg, var(--navy), var(--dark));
    box-shadow: var(--shadow);
}

.post-cta h2 {
    color: #fff;
    font-size: 24px;
}

.post-cta p {
    margin-top: 10px;
    color: #c7d8e2;
    font-size: 15px;
}

.post-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-cta-actions .btn {
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Duyarlı
   -------------------------------------------------------------------------- */

@media (max-width: 1050px) {
    .posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .post-cta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .posts {
        grid-template-columns: 1fr;
    }

    .post-lead {
        font-size: 16.5px;
    }

    .post-cta {
        padding: 24px;
    }
}
