/* 1. Görsellerin en-boy oranını bozmadan aynı boyuta sabitle */
.archive .wp-block-post-featured-image img,
.archive .post-thumbnail img,
.archive article img {
    height: 240px !important;
    object-fit: cover !important;
    width: 100% !important;
}

/* 2. Kartları yan yana tutan ana ızgarayı (grid) esnek yapıya geçir */
.archive .wp-block-query-loop, 
.archive .posts-loop,
.archive main #main {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
}

/* 3. Her bir yazı kartını dikey olarak kendi içinde eşitle */
.archive .wp-block-post, 
.archive article {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    justify-content: space-between !important;
    background: #ffffff !important; /* Kartların arka planı netleşsin */
    border: 1px solid #f0f0f0 !important; /* Hafif bir çerçeve (isteğe bağlı) */
    padding-bottom: 15px !important;
}

/* 4. Başlık ve metin alanını yukarı sabitle, butonu aşağı it */
.archive .wp-block-post-title,
.archive .entry-title {
    margin-bottom: auto !important;
    padding: 10px 15px !important;
}

.archive .wp-block-post-excerpt,
.archive .entry-summary {
    padding: 0 15px 10px 15px !important;
}
/* Kartların içindeki metin alanını esnet ve butonları en alta hizala */
.archive .wp-block-post, 
.archive article {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
}

/* Başlığın altındaki boşluğu otomatik yaparak butonu tabana iter */
.archive .wp-block-post-title,
.archive .entry-title {
    margin-bottom: auto !important;
    min-height: 75px !important; /* Başlık alanlarına minimum sabit yükseklik vererek alanları eşitler */
}

/* Read More linkini kartın en altına sabitle ve biraz boşluk bırak */
.archive .wp-block-post-excerpt a,
.archive a.more-link,
.archive .read-more {
    margin-top: auto !important;
    display: inline-block !important;
    padding-top: 10px !important;
}
/* 1. Astra teması içindeki tüm öne çıkan görselleri aynı boyuta eşitle ve kırp */
.ast-row .ast-article-inner .post-thumbnail img,
.archive .post-thumbnail img,
.ast-archive-description ~ .ast-row img {
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    object-fit: cover !important;
    width: 100% !important;
}

/* 2. Kartların dış kutularını yakala ve hepsinin boyunu birbirine eşitle */
.ast-row article,
.ast-row .ast-article-inner {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    justify-content: space-between !important;
}

/* 3. Başlık ve özet metin alanını yukarıda tutarak butonları en alta hizala */
.ast-row .entry-content,
.ast-row .entry-summary {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.wp-post-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}
/* =========================================
   KORE MUTFAĞI 101 - TARİF ARŞİV KARTLARI
   Astra Archive
   ========================================= */

/* Tarifleri gerçek 3 sütunlu grid yap */
.archive #primary .ast-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin: 0;
}

/* Astra'nın eski float/flex genişliklerini sıfırla */
.archive #primary .ast-row::before,
.archive #primary .ast-row::after {
    display: none;
}

.archive #primary .ast-row .ast-article-post {
    width: auto;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Kart */
.archive #primary .ast-article-post {
    height: 100%;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Tarif görselleri */
.archive #primary .ast-article-post .post-thumb-img-content img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* Kart içeriği */
.archive #primary .ast-article-post .post-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 20px 20px;
}

/* Başlık */
.archive #primary .ast-article-post .entry-title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 15px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;

    min-height: 57px;
}

/* Read More'u aşağı hizala */
.archive #primary .ast-article-post .entry-content {
    margin-top: auto;
}

/* Read More */
.archive #primary .ast-article-post .entry-content a {
    display: inline-block;
    margin-top: 10px;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 921px) {

    .archive #primary .ast-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }

}


/* =========================================
   MOBİL
   ========================================= */

@media (max-width: 544px) {

    .archive #primary .ast-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .archive #primary .ast-article-post .entry-title {
        font-size: 20px;
    }

}
/* =========================================
   KORE MUTFAĞI 101 - YENİ TARİF KARTI
   ========================================= */

/* Kart görünümü */
.archive #primary .ast-article-post {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Mouse üzerine gelince hafif yükselme */
.archive #primary .ast-article-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}


/* =========================================
   RESİM
   ========================================= */

.archive #primary .ast-article-post .post-thumb-img-content img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

/* Hover'da fotoğraf hafif yaklaşsın */
.archive #primary .ast-article-post:hover .post-thumb-img-content img {
    transform: scale(1.03);
}


/* =========================================
   KART İÇERİĞİ
   ========================================= */

.archive #primary .ast-article-post .post-content {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}


/* =========================================
   BAŞLIK
   ========================================= */

.archive #primary .ast-article-post .entry-title {
    font-size: 20px;
    line-height: 1.35;
    font-weight: 500;
    margin: 0 0 18px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;

    min-height: 54px;
}

/* Başlık linkinin rengini koru */
.archive #primary .ast-article-post .entry-title a {
    color: #17202a;
    text-decoration: none;
}

.archive #primary .ast-article-post .entry-title a:hover {
    color: #555;
}


/* =========================================
   TARİFE GÖZ AT BUTONU
   ========================================= */

.archive #primary .ast-article-post .read-more {
    margin-top: auto;
}

/* Eski "Read More »" yazısını gizle */
.archive #primary .ast-article-post .read-more {
    font-size: 0;
    text-decoration: none;
}

/* Yeni Türkçe buton */
.archive #primary .ast-article-post .read-more::after {
    content: "Tarife Göz At  →";
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.1px;
    color: #222;
    border-bottom: 1px solid #222;
    padding-bottom: 3px;
    transition: all 0.2s ease;
}

/* Hover */
.archive #primary .ast-article-post:hover .read-more::after {
    padding-right: 5px;
}


/* =========================================
   MOBİL
   ========================================= */

@media (max-width: 544px) {

    .archive #primary .ast-article-post .entry-title {
        font-size: 19px;
    }

    .archive #primary .ast-article-post .post-content {
        padding: 18px;
    }

}
