/* blog-index.css - card grid for the blog hub pages.
   Lifted out of blog/index.php so the translated hubs (blog/{lang}/index.php)
   share one stylesheet instead of each carrying its own copy. */
/* ============================================================
   BLOG INDEX PAGE STYLES
   ============================================================ */

/* --- Hero --- */
.pg-blog-idx-hero__inner {
    padding: 7rem 0 4rem;
    width: 100%;
    position: relative;
    z-index: 2;
    text-align: center;
}
.pg-blog-idx-hero__badge {
    margin-bottom: 1rem;
}
.pg-blog-idx-hero__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0 auto 1rem;
    max-width: 760px;
    text-align: center;
}
.pg-blog-idx-hero__sub {
    color: rgba(255,255,255,.72);
    font-size: 1.08rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Blog Index Section --- */
.pg-blog-index {
    padding: 4.5rem 0 5rem;
    background: var(--bg, #f4f6f9);
    direction: rtl;
}

/* --- Section intro --- */
.pg-blog-index__intro {
    text-align: center;
    margin-bottom: 3rem;
}
.pg-blog-index__intro p {
    color: #666;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Grid --- */
.pg-blog-index__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
@media (max-width: 900px) {
    .pg-blog-index__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .pg-blog-index__grid { grid-template-columns: 1fr; }
}

/* --- Module Card --- */
.pg-blog-module-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 2px 18px rgba(0,0,0,.07);
    border: 1px solid rgba(0,0,0,.06);
    position: relative;
    overflow: hidden;
    transition: transform .32s ease, box-shadow .32s ease, background .32s ease;
    display: flex;
    flex-direction: column;
}
.pg-blog-module-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, #283896, #5ec4a8);
    opacity: 0;
    transition: opacity .32s ease;
}
.pg-blog-module-card:hover {
    transform: translateY(-7px) scale(1.01);
    box-shadow: 0 20px 56px rgba(40,56,150,.15);
    background: #fdfdff;
}
.pg-blog-module-card:hover::before { opacity: 1; }
.pg-blog-module-card__head {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1.1rem;
    padding-bottom: .9rem;
    border-bottom: 2px solid rgba(94,196,168,.35);
}
.pg-blog-module-card__icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}
.pg-blog-module-card__icon i[class^="ti"] {
    font-size: 2rem;
    color: var(--accent, #5ec4a8);
    display: block;
    line-height: 1;
}
.pg-blog-module-card__module {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent-dark, #2a9d82);
    margin-bottom: .15rem;
}
.pg-blog-module-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-darker, #0c5a8a);
    line-height: 1.3;
}
.pg-blog-module-card__articles {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}
.pg-blog-module-card__articles li {
    border-bottom: 1px solid #f2f2f2;
    padding: .5rem 0;
    display: flex;
    align-items: flex-start;
    gap: .45rem;
}
.pg-blog-module-card__articles li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.pg-blog-module-card__articles li::before {
    content: "›";
    color: var(--accent, #5ec4a8);
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: -.05rem;
    line-height: 1.45;
}
.pg-blog-module-card__articles a {
    font-size: .9rem;
    color: #444;
    text-decoration: underline;
    text-underline-offset: 3px;
    line-height: 1.45;
    transition: color .2s;
}
.pg-blog-module-card__articles a:hover { color: var(--primary, #1a8bc4); }
.pg-blog-module-card__lp {
    margin-top: 1.1rem;
    padding-top: .9rem;
    border-top: 1px dashed rgba(94,196,168,.4);
}
.pg-blog-module-card__lp a {
    font-size: .8rem;
    color: var(--accent-dark, #2a9d82);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    transition: color .2s;
}
.pg-blog-module-card__lp a:hover { color: var(--primary, #1a8bc4); }
.pg-blog-module-card__lp a::after { content: " ←"; }
