/* =========================================================
   ARTICLES.CSS – PREMIUM HORIZONTAL ARTICLES
   דף מאמרים + מאמר בודד
========================================================= */

/* =========================================================
   BASE
========================================================= */

.hbc-articles-page,
.hbc-article-single-page{
    direction:rtl;
    background:
        radial-gradient(circle at 12% 8%, rgba(201,146,45,.10), transparent 28%),
        radial-gradient(circle at 88% 10%, rgba(36,59,94,.08), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
    padding:34px 0 78px;
    overflow:hidden;
}

.hbc-articles-page .hbc-wrap,
.hbc-article-single-wrap{
    width:min(1120px, calc(100% - 40px));
    margin-inline:auto;
}

.hbc-article-single-wrap{
    width:min(980px, calc(100% - 40px));
}

/* =========================================================
   HERO / PAGE HEAD
========================================================= */

.hbc-articles-hero,
.hbc-article-single-hero{
    position:relative;
    width:100%;
    margin:0 auto 30px;
    padding:38px 34px;
    border-radius:30px;
    background:
        radial-gradient(circle at 18% 0%, rgba(212,175,55,.18), transparent 34%),
        linear-gradient(135deg, #101827 0%, #16243a 52%, #243b5e 100%);
    color:#fff;
    box-shadow:0 24px 60px rgba(15,23,42,.20);
    overflow:hidden;
    text-align:right;
}

.hbc-articles-hero::after,
.hbc-article-single-hero::after{
    content:"";
    position:absolute;
    inset:auto 9% 0 9%;
    height:1px;
    background:linear-gradient(90deg, transparent, rgba(212,175,55,.75), transparent);
}

.hbc-articles-hero .hbc-section-kicker,
.hbc-article-single-hero .hbc-section-kicker{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:30px;
    padding:0 13px;
    margin:0 0 14px;
    border-radius:999px;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(212,175,55,.35);
    color:#f7d98b;
    font-size:13px;
    font-weight:900;
}

.hbc-articles-hero h1,
.hbc-article-single-hero h1{
    margin:0;
    color:#fff;
    font-size:44px;
    line-height:1.12;
    font-weight:950;
    letter-spacing:-.6px;
}

.hbc-articles-hero p,
.hbc-article-single-hero p{
    max-width:780px;
    margin:14px 0 0;
    color:rgba(255,255,255,.82);
    font-size:17px;
    line-height:1.9;
}

/* =========================================================
   CATEGORIES
========================================================= */

.hbc-articles-cats,
.hbc-article-single-cats,
.hbc-article-row-cats{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
}

.hbc-articles-cats{
    justify-content:flex-start;
    margin:0 0 26px;
    padding:10px;
    border-radius:24px;
    background:rgba(255,255,255,.76);
    border:1px solid rgba(219,228,238,.90);
    box-shadow:0 14px 34px rgba(15,23,42,.06);
    backdrop-filter:blur(8px);
}

.hbc-article-cat-pill,
.hbc-article-card-cat{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:0 14px;
    border-radius:999px;
    background:#fff;
    border:1px solid #dbe4ee;
    color:#334155;
    text-decoration:none;
    font-size:13px;
    font-weight:900;
    transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.hbc-article-cat-pill:hover,
.hbc-article-card-cat:hover{
    background:#f8fafc;
    color:#111827;
    border-color:#cbd5e1;
    transform:translateY(-1px);
}

.hbc-article-cat-pill.is-active{
    background:#111827;
    color:#fff;
    border-color:#111827;
}

/* =========================================================
   ARCHIVE LIST – HORIZONTAL CARDS
========================================================= */

.hbc-articles-list{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:22px;
}

.hbc-article-row{
    position:relative;
    width:100%;
    max-width:980px;
    display:grid;
    grid-template-columns:minmax(0, 1fr) 320px;
    gap:0;
    align-items:stretch;
    min-height:218px;
    background:#fff;
    border:1px solid #e7edf5;
    border-radius:28px;
    overflow:hidden;
    box-shadow:0 18px 48px rgba(15,23,42,.08);
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hbc-article-row:hover{
    transform:translateY(-3px);
    border-color:#d8e1ec;
    box-shadow:0 26px 70px rgba(15,23,42,.12);
}

/* image on right in RTL */
.hbc-article-row-media{
    grid-column:2;
    grid-row:1;
    display:block;
    width:100%;
    height:100%;
    min-height:218px;
    background:#e9eef5;
    overflow:hidden;
}

.hbc-article-row-media img{
    display:block;
    width:100%;
    height:100%;
    min-height:218px;
    object-fit:cover;
    transition:transform .28s ease;
}

.hbc-article-row:hover .hbc-article-row-media img{
    transform:scale(1.035);
}

.hbc-article-row-body{
    grid-column:1;
    grid-row:1;
    min-width:0;
    min-height:218px;
    padding:24px 28px 22px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:10px;
    box-sizing:border-box;
}

.hbc-article-row-title{
    margin:0;
    font-size:28px;
    line-height:1.18;
    font-weight:950;
    color:#0f172a;
    letter-spacing:-.35px;
}

.hbc-article-row-title a{
    color:inherit;
    text-decoration:none;
}

.hbc-article-row-title a:hover{
    color:#9a6b00;
}

.hbc-article-row-meta{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    font-size:13px;
    color:#64748b;
    font-weight:800;
}

.hbc-article-row-excerpt{
    margin:0;
    color:#475569;
    font-size:15px;
    line-height:1.85;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.hbc-article-row-actions{
    margin-top:auto;
    padding-top:10px;
}

/* =========================================================
   BUTTONS
========================================================= */

.hbc-article-readmore,
.hbc-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:0 18px;
    border-radius:14px;
    text-decoration:none;
    font-size:14px;
    font-weight:950;
    line-height:1;
    transition:background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hbc-article-readmore,
.hbc-btn-primary{
    background:linear-gradient(135deg, #d7a33f 0%, #b88427 100%);
    color:#fff;
    border:none;
    box-shadow:0 12px 24px rgba(184,132,39,.24);
}

.hbc-article-readmore:hover,
.hbc-btn-primary:hover{
    background:linear-gradient(135deg, #c9922d 0%, #a8751f 100%);
    color:#fff;
    transform:translateY(-1px);
    box-shadow:0 16px 30px rgba(184,132,39,.30);
}

/* =========================================================
   PAGINATION
========================================================= */

.hbc-articles-pagination{
    margin-top:34px;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
}

.hbc-articles-pagination .page-numbers{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:46px;
    height:46px;
    padding:0 16px;
    border-radius:15px;
    background:#fff;
    border:1px solid #dbe4ee;
    color:#111827;
    text-decoration:none;
    font-size:14px;
    font-weight:900;
    transition:.18s ease;
    box-shadow:0 8px 18px rgba(16,24,40,.05);
}

.hbc-articles-pagination .page-numbers:hover{
    background:#f8fafc;
    border-color:#cfd9e5;
    transform:translateY(-1px);
}

.hbc-articles-pagination .page-numbers.current{
    background:#111827;
    color:#fff;
    border-color:#111827;
    box-shadow:0 12px 26px rgba(15,23,42,.18);
}

.hbc-articles-pagination .prev,
.hbc-articles-pagination .next{
    min-width:110px;
    padding:0 18px;
}

/* =========================================================
   SINGLE ARTICLE
========================================================= */

.hbc-article-single-card{
    background:#fff;
    border:1px solid #e7edf5;
    border-radius:30px;
    overflow:hidden;
    box-shadow:0 18px 55px rgba(16,24,40,.09);
}

.hbc-article-single-image{
    width:100%;
    aspect-ratio:16 / 7;
    background:#e9eef5;
    overflow:hidden;
}

.hbc-article-single-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.hbc-article-single-body{
    padding:34px 34px 36px;
}

.hbc-article-single-cats{
    margin-bottom:14px;
}

.hbc-article-single-title{
    margin:0 0 14px;
    font-size:44px;
    line-height:1.12;
    color:#0f172a;
    font-weight:950;
    letter-spacing:-.5px;
}

.hbc-article-single-meta{
    margin-bottom:20px;
    font-size:14px;
    color:#64748b;
    font-weight:800;
}

.hbc-article-single-intro{
    margin-bottom:26px;
    padding:18px 20px;
    background:#f8fafc;
    border:1px solid #e5edf5;
    border-radius:20px;
    font-size:18px;
    line-height:1.9;
    color:#334155;
    font-weight:800;
}

.hbc-article-single-content{
    font-size:17px;
    line-height:2;
    color:#374151;
}

.hbc-article-single-content h2{
    margin:34px 0 14px;
    font-size:30px;
    line-height:1.2;
    color:#111827;
    font-weight:950;
}

.hbc-article-single-content h3{
    margin:26px 0 12px;
    font-size:24px;
    line-height:1.25;
    color:#111827;
    font-weight:950;
}

.hbc-article-single-content p{
    margin:0 0 18px;
}

.hbc-article-single-content ul,
.hbc-article-single-content ol{
    margin:0 0 22px;
    padding-right:22px;
}

.hbc-article-single-content li{
    margin-bottom:10px;
}

.hbc-article-single-content a{
    color:#9a6b00;
    font-weight:900;
    text-decoration:underline;
}

.hbc-article-single-bottom{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:30px;
    padding-top:24px;
    border-top:1px solid #e7edf5;
}

/* =========================================================
   RELATED
========================================================= */

.hbc-article-related-section{
    margin-top:44px;
}

.hbc-article-related-section .hbc-section-head{
    margin-bottom:20px;
    text-align:center;
}

.hbc-article-related-section .hbc-section-copy{
    max-width:760px;
    margin-inline:auto;
}

.hbc-article-related-section .hbc-section-head h2{
    margin:0 0 8px;
    font-size:32px;
    line-height:1.2;
    color:#111827;
    font-weight:950;
}

.hbc-article-related-section .hbc-section-head p{
    margin:0;
    color:#64748b;
    font-size:15px;
    line-height:1.8;
}

.hbc-article-related-list{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:18px;
}

.hbc-article-related-list .hbc-article-row{
    min-height:190px;
}

.hbc-article-related-list .hbc-article-row-media,
.hbc-article-related-list .hbc-article-row-media img,
.hbc-article-related-list .hbc-article-row-body{
    min-height:190px;
}

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

@media (max-width:1024px){

    .hbc-article-row{
        grid-template-columns:minmax(0, 1fr) 260px;
        max-width:920px;
        min-height:190px;
    }

    .hbc-article-row-media,
    .hbc-article-row-media img,
    .hbc-article-row-body{
        min-height:190px;
    }

    .hbc-article-row-title{
        font-size:23px;
    }
}

/* =========================================================
   MOBILE – HORIZONTAL PREMIUM
========================================================= */

@media (max-width:767px){

    .hbc-articles-page,
    .hbc-article-single-page{
        padding:20px 0 44px;
        background:
            radial-gradient(circle at 50% 0%, rgba(212,175,55,.12), transparent 28%),
            linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
    }

    .hbc-articles-page .hbc-wrap,
    .hbc-article-single-wrap{
        width:calc(100% - 18px);
        max-width:none;
        margin-inline:auto;
    }

    .hbc-articles-hero,
    .hbc-article-single-hero{
        margin-bottom:18px;
        padding:24px 17px;
        border-radius:28px;
        text-align:center;
    }

    .hbc-articles-hero .hbc-section-kicker,
    .hbc-article-single-hero .hbc-section-kicker{
        margin-inline:auto;
    }

    .hbc-articles-hero h1,
    .hbc-article-single-hero h1{
        font-size:33px;
        line-height:1.14;
    }

    .hbc-articles-hero p,
    .hbc-article-single-hero p{
        font-size:15px;
        line-height:1.85;
        margin-top:12px;
    }

    .hbc-articles-cats{
        justify-content:center;
        padding:8px;
        margin-bottom:18px;
        border-radius:22px;
    }

    .hbc-article-cat-pill,
    .hbc-article-card-cat{
        min-height:34px;
        padding:0 12px;
        font-size:12px;
    }

    .hbc-articles-list{
        align-items:center;
        gap:16px;
    }

    .hbc-article-row{
        width:100%;
        max-width:100%;
        display:grid;
        grid-template-columns:42% minmax(0, 1fr);
        min-height:168px;
        border-radius:24px;
        border:1px solid #dfe7f0;
        background:#fff;
        box-shadow:0 14px 34px rgba(15,23,42,.11);
        overflow:hidden;
    }

    .hbc-article-row-media{
        grid-column:1;
        grid-row:1;
        width:100%;
        height:100%;
        min-height:168px;
        background:#e9eef5;
    }

    .hbc-article-row-media img{
        width:100%;
        height:100%;
        min-height:168px;
        object-fit:cover;
    }

    .hbc-article-row-body{
        grid-column:2;
        grid-row:1;
        width:100%;
        min-height:168px;
        padding:13px 14px 13px 12px;
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        text-align:right;
        justify-content:center;
        gap:6px;
    }

    .hbc-article-row-title{
        width:100%;
        font-size:18px;
        line-height:1.25;
        text-align:right;
        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
        overflow:hidden;
    }

    .hbc-article-row-meta{
        width:100%;
        justify-content:flex-start;
        text-align:right;
        font-size:11.5px;
        line-height:1.35;
        gap:5px;
    }

    .hbc-article-row-cats{
        display:none;
    }

    .hbc-article-row-excerpt{
        width:100%;
        font-size:12.5px;
        line-height:1.45;
        -webkit-line-clamp:2;
        color:#64748b;
    }

    .hbc-article-row-actions{
        width:100%;
        margin-top:2px;
        padding-top:2px;
        display:flex;
        justify-content:flex-start;
    }

    .hbc-article-readmore{
        min-height:36px;
        padding:0 13px;
        border-radius:12px;
        font-size:12px;
        white-space:nowrap;
    }

    .hbc-articles-pagination{
        gap:8px;
        margin-top:24px;
    }

    .hbc-articles-pagination .page-numbers{
        min-width:42px;
        height:42px;
        font-size:13px;
        padding:0 14px;
    }

    .hbc-articles-pagination .prev,
    .hbc-articles-pagination .next{
        min-width:92px;
    }

    .hbc-article-single-card{
        border-radius:26px;
    }

    .hbc-article-single-image{
        aspect-ratio:16 / 10;
    }

    .hbc-article-single-body{
        padding:22px 17px 24px;
    }

    .hbc-article-single-cats{
        justify-content:center;
    }

    .hbc-article-single-title{
        font-size:31px;
        text-align:center;
    }

    .hbc-article-single-meta{
        text-align:center;
        font-size:13px;
    }

    .hbc-article-single-intro{
        padding:15px 14px;
        border-radius:18px;
        font-size:16px;
        line-height:1.8;
        text-align:center;
    }

    .hbc-article-single-content{
        font-size:16px;
        line-height:1.9;
    }

    .hbc-article-single-content h2{
        font-size:25px;
    }

    .hbc-article-single-content h3{
        font-size:22px;
    }

    .hbc-article-single-bottom{
        justify-content:center;
    }

    .hbc-article-related-section{
        margin-top:32px;
    }

    .hbc-article-related-section .hbc-section-head h2{
        font-size:25px;
    }
}
