/* ============================================================
   RADY, TIPY A NOVINKY — Blog sekcia
   ============================================================ */

.custom-blog-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 128px;
    gap: 48px;
    width: 100%;
    box-sizing: border-box;
    background: #FFFFFF;
}

/* Header */
.custom-blog-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.custom-blog-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 48px;
    text-align: center;
    text-transform: uppercase;
    color: #14141F;
    margin: 0;
}

/* Grid */
.custom-blog-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
    justify-content: flex-start;
}

/* Card */
.custom-blog-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 0;
    flex: 0 0 320px;
    width: 320px;
    max-width: 320px;
    height: 481px;
    background: #F1F1F6;
    border: 1px solid #B7B7CF;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.custom-blog-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Image wrapper */
.custom-blog-card__image {
    position: relative;
    width: 100%;
    height: 225px;
    flex-shrink: 0;
}

.custom-blog-card__image img {
    width: 100%;
    height: 207px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

/* Category badge — nad obrázkom */
.custom-blog-card__category {
    position: absolute;
    bottom: 0;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    background: #FFFFFF;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: #EF1022;
    white-space: nowrap;
}

/* Body */
.custom-blog-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 24px 24px;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    min-height: 0;
}

.custom-blog-card__title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 32px;
    color: #111827;
    margin: 0;
    align-self: stretch;
}

.custom-blog-card__desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #3D3D5C;
    margin: 0;
    flex: 1;
    align-self: stretch;
    overflow: hidden;
}

/* Button  */
.custom-blog-card__btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 16px 26px;
    gap: 10px;
    width: 100%;
    height: 48px;
    min-height: 48px;
    flex-shrink: 0;
    box-sizing: border-box;
    border: 1px solid #CD0E1D;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    text-transform: uppercase;
    color: #14141F;
    align-self: stretch;
    transition: background 0.2s ease, color 0.2s ease;
   
}

.custom-blog-card:hover .custom-blog-card__btn {
    background: #CD0E1D;
    color: #FFFFFF;
    border-color: #CD0E1D;
}

/* ── Responzívnosť ──────────────────────────────────────── */
@media (max-width: 1280px) {
    .custom-blog-section {
        padding: 48px 32px;
    }
}

@media (max-width: 900px) {
    .custom-blog-grid {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .custom-blog-card {
        flex: 0 0 320px !important;
        width: 320px !important;
        max-width: 320px !important;
        height: auto;
        min-height: 420px;
    }

    .custom-blog-title {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .custom-blog-section {
        padding: 32px 16px;
    }

    .custom-blog-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        min-height: 0;
    }

    .custom-blog-title {
        font-size: 24px;
    }
}