﻿/* ===================================================
   POLENSOFT SYSTEM GENERAL CONFIG
====================================================== */
.blog-page .row {
    display: flex !important;
    flex-wrap: wrap !important;
}

    .blog-page .row > div[class*="col-"] {
        display: flex !important;
    }

/* ===================================================
   BLOG LIST PAGE (CARD STYLE)
====================================================== */
.blog-page {
    padding: 20px 0;
}

    .blog-page .blog-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        background: #ffffff;
        border: 1px solid #eaeaea;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.04);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        .blog-page .blog-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
        }

        /* Saran Link Yapısı */
        .blog-page .blog-card a:first-child {
            display: block !important;
            width: 100% !important;
            overflow: visible !important;
        }

        /* KESİN ÇÖZÜM: Blog Resim Kuralları */
        .blog-page .blog-card img.blog-image {
            width: 100% !important;
            height: auto !important; /* Sabit 200px baskısını tamamen kaldırır */
            aspect-ratio: 3 / 2 !important; /* 1536x1024 (3:2) oranını korur */
            object-fit: contain !important; /* Resmi kesmez, çerçevenin içine sığdırır */
            object-position: top center !important; /* Üst kısımdaki başlık yazılarını kilitler */
            background-color: #ffffff !important; /* Arka planı beyaz yapar */
            border-radius: 10px 10px 0 0 !important;
            padding: 0 !important;
            margin: 0 !important;
        }

    /* Blog Card Content */
    .blog-page .blog-content {
        padding: 25px;
        flex-grow: 1 !important; /* Kart alt sınırlarını eşitler */
        display: flex;
        flex-direction: column;
    }

    /* Category label */
    .blog-page .blog-category {
        color: #0d6efd;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 10px;
        text-transform: uppercase;
    }

    /* Blog title */
    .blog-page .blog-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
        line-height: 1.4;
    }

        .blog-page .blog-content h2 a {
            color: #222;
            text-decoration: none;
            transition: 0.2s ease;
        }

            .blog-page .blog-content h2 a:hover {
                color: #0d6efd;
            }

    /* Blog description */
    .blog-page .blog-content p {
        color: #666;
        line-height: 1.7;
        margin-bottom: 0;
    }

    /* Blog footer area */
    .blog-page .blog-footer {
        margin-top: auto; /* İçerik az olsa bile footer alanını alta yaslar */
        padding-top: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Read more button */
    .blog-page .btn-read-more {
        background: #0d6efd;
        color: white;
        padding: 10px 18px;
        border-radius: 8px;
        text-decoration: none;
        transition: 0.2s ease;
    }

        .blog-page .btn-read-more:hover {
            background: #084298;
        }

/* ===================================================
   BLOG DETAIL PAGE (YAZI DETAY)
====================================================== */
.blog-detail-page {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Title */
.blog-detail-header h1 {
    font-size: 48px;
    margin-top: 15px;
    margin-bottom: 20px;
}

/* Meta info */
.blog-meta {
    color: #777;
    margin-bottom: 30px;
}

/* Cover image */
.blog-cover-image img {
    border-radius: 20px;
    margin-bottom: 40px;
    width: 100%;
}

/* Content area */
.blog-content-area {
    font-size: 18px;
    line-height: 1.9;
    color: #333;
}

    /* Headings inside content */
    .blog-content-area h2,
    .blog-content-area h3 {
        margin-top: 35px;
        margin-bottom: 20px;
    }

/* ===================================================
   RESPONSIVE FIX (MOBIL UYUMLULUK)
====================================================== */
@media (max-width: 768px) {
    .blog-page .blog-content {
        padding: 15px;
    }

        .blog-page .blog-content h2 {
            font-size: 18px;
        }

        .blog-page .blog-content p {
            font-size: 14px;
        }

    .blog-detail-header h1 {
        font-size: 28px;
    }

    .blog-content-area {
        font-size: 16px;
        line-height: 1.7;
    }
}
