/* Makale Kart Yapısı */
.makale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.makale-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.makale-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #0073aa;
}

.makale-item h3 {
    font-size: 1.15rem;
    line-height: 1.5;
    margin: 0 0 15px 0;
    color: #1d2327;
    font-weight: 700;
}

.makale-item p {
    font-size: 0.95rem;
    color: #50575e;
    line-height: 1.6;
    flex-grow: 1; /* Açıklamalar farklı uzunlukta olsa da butonlar hizalı kalır */
}

.makale-item a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #0073aa;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s;
}

.makale-item a:hover {
    background: #005177;
}

/* Sayfalama (Pagination) */
.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination .page-numbers {
    padding: 8px 16px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #0073aa;
    border-radius: 4px;
}

.pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.dp-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: sans-serif;
    align-items: flex-start;
}

/* Sol Panel */
.dp-sidebar {
    width: 300px;
    position: sticky;
    top: 20px;
}

.filter-box {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.filter-box label {
    display: block;
    margin-bottom: 8px;
    color: #888;
    font-size: 14px;
}

.filter-box select, .filter-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f8f8;
}

.btn-filter {
    width: 100%;
    padding: 12px;
    background: #a82323; /* Bordo */
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.btn-register {
    display: block;
    margin-top: 20px;
    padding: 15px;
    background: #a82323;
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

/* Sağ Kartlar */
.dp-content {
    flex: 1;
}

.dp-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #eee;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.dp-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.dp-number {
    width: 50px;
    height: 50px;
    background: #f8f8f8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.dp-details {
    flex: 1;
}

.dp-details h3 {
    margin: 0 0 5px 0;
    font-size: 17px;
    color: #111;
    text-transform: uppercase;
}

.dp-excerpt {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

.dp-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-detail, .btn-catalog {
    padding: 8px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    min-width: 100px;
}

.btn-detail {
    background: #a82323;
    color: #fff !important;
}

.btn-catalog {
    background: #fff;
    color: #333 !important;
    border: 1px solid #ddd;
}

/* Sayfalama */
.pagination {
    margin-top: 30px;
}
.pagination .page-numbers {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 5px;
    text-decoration: none;
    color: #333;
}
.pagination .current {
    background: #a82323;
    color: #fff;
}

/* --- MOBİL TASARIM (768px ve altı) --- */
@media (max-width: 768px) {
    .dp-container {
        flex-direction: column; /* Yan yana olan yapıyı alt alta getirir */
        padding: 10px;
    }

    /* Sol Sidebar Düzenlemesi */
    .dp-sidebar {
        width: 100%;
        position: static; /* Mobilde sabit durmasın */
        margin-bottom: 20px;
    }

    /* Kart Yapısı Düzenlemesi */
    .dp-card {
        flex-direction: column; /* Kart içindeki öğeleri alt alta diz */
        align-items: flex-start;
        padding: 15px;
        position: relative;
    }

    /* Numara kutusunu sağ üst köşeye veya başlık yanına alalım */
    .dp-number {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .dp-details {
        width: 100%;
        padding-right: 40px; /* Numara ile çakışmaması için */
    }

    .dp-details h3 {
        font-size: 16px;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    /* Butonları yan yana genişletelim */
    .dp-actions {
        flex-direction: row; /* Butonları yan yana getir */
        width: 100%;
        gap: 10px;
        margin-top: 15px;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }

    .btn-detail, .btn-catalog {
        flex: 1; /* Butonlar eşit genişlikte olsun */
        padding: 12px 5px;
        font-size: 14px;
        min-width: 0; /* Genişlik kısıtlamasını kaldır */
    }
}

/* Küçük Telefonlar İçin (480px ve altı) */
@media (max-width: 480px) {
    .dp-details h3 {
        font-size: 15px;
    }
    
    .dp-actions {
        flex-direction: column; /* Çok küçük ekranlarda butonlar yine alt alta olsun */
    }
}
