﻿/* =========================
           Default.aspx (Rebuild - Modern Compact)
           ========================= */
:root {
    --sb-b: rgba(17,24,39,.08);
    --sb-bg: rgba(255,255,255,.92);
    --sb-shadow: 0 10px 24px rgba(0,0,0,.05);
    --sb-shadow-h: 0 14px 34px rgba(0,0,0,.07);
    --sb-card-h: 520px; /* ارتفاع ثابت برای هماهنگی دو ستون */
}

.sb-page-pad {
    padding-left: 12px;
    padding-right: 12px;
}

@media (min-width:992px) {
    .sb-page-pad {
        padding-left: 22px;
        padding-right: 22px;
    }
}

/* HERO */


 .swiper {
    height: 380px !important;
}
.sb-hero-wrap {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,.08);
}

    .sb-hero-wrap .swiper-slide {
        height: 380px !important ;
        background-size: cover;
        background-position: center;
    }

@media (max-width:576px) {
    .sb-hero-wrap .swiper-slide {
        height: 320px;
    }
}

/* Section heading */
.sb-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

    .sb-hd .sb-hd-title {
        display: flex;
        align-items: center;
        gap: .55rem;
    }

        .sb-hd .sb-hd-title .dot {
            width: 8px;
            height: 34px;
            border-radius: 999px;
            background: rgba(105,108,255,.35);
        }

    .sb-hd h4 {
        margin: 0;
        font-weight: 900;
        font-size: 1.02rem;
        letter-spacing: -.2px;
    }

.sb-sub {
    margin-top: .1rem;
    font-size: .8rem;
    color: rgba(17,24,39,.55);
}

.sb-status {
    font-size: .75rem;
    border-radius: .85rem;
    padding: .33rem .55rem;
}

/* Search card */
.sb-search-card {
    border: 1px solid var(--sb-b);
    border-radius: 1.1rem;
    background: var(--sb-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--sb-shadow);
}

    .sb-search-card .card-body {
        padding: .85rem .9rem;
    }

.sb-search-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .55rem;
}

    .sb-search-top .left {
        display: flex;
        align-items: center;
        gap: .6rem;
        min-width: 0;
    }

        .sb-search-top .left .ic {
            width: 34px;
            height: 34px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(105,108,255,.10);
            border: 1px solid rgba(105,108,255,.18);
            flex: 0 0 auto;
        }

            .sb-search-top .left .ic i {
                font-size: 1.05rem;
                color: #696cff;
            }

        .sb-search-top .left .txt {
            min-width: 0;
        }

            .sb-search-top .left .txt .t1 {
                font-weight: 900;
                font-size: .92rem;
                line-height: 1.4;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

    .sb-search-top .right {
        display: flex;
        gap: .4rem;
        flex: 0 0 auto;
    }

/* Buttons */
.sb-btn {
    padding: .32rem .6rem;
    font-size: .78rem;
    border-radius: .85rem;
    line-height: 1.1;
}

/* Inputs compact */
.sb-ig .input-group-text {
    border-radius: .85rem;
    font-size: .8rem;
}

.sb-ig .form-control {
    border-radius: .85rem;
    font-size: .8rem;
    padding-top: .42rem;
    padding-bottom: .42rem;
}

/* Alpha collapse */
.sb-alpha-box {
    margin-top: .65rem;
    border-radius: 1rem;
    border: 1px dashed rgba(17,24,39,.16);
    background: rgba(255,255,255,.70);
    padding: .65rem .65rem .55rem .65rem;
}

.sb-alpha-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .45rem;
}

    .sb-alpha-head .lbl {
        font-size: .8rem;
        color: rgba(17,24,39,.65);
        font-weight: 800;
    }

        .sb-alpha-head .lbl b {
            color: #696cff;
            font-weight: 900;
        }

.sb-alpha-scroll {
    display: flex;
    gap: .3rem;
    flex-wrap: wrap;
}

.sb-alpha-btn {
    min-width: 32px;
    height: 30px;
    padding: 0 .5rem;
    border-radius: .75rem;
    border: 1px solid rgba(17,24,39,.12);
    background: #fff;
    font-weight: 900;
    font-size: .82rem;
}

    .sb-alpha-btn:hover {
        background: #f3f4f6;
    }

    .sb-alpha-btn.is-active {
        background: rgba(105,108,255,.12);
        border-color: rgba(105,108,255,.35);
        color: #2b2ff2;
    }

/* Shohada */
#secShohada {
    scroll-margin-top: 120px;
}

.sb-pager {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: .85rem;
}

    .sb-pager .btn {
        border-radius: .85rem;
        padding: .32rem .6rem;
        font-size: .78rem;
    }

/* Shohada card */
#Table_List .sb-mcard {
    border: 1px solid var(--sb-b);
    border-radius: 1.1rem;
    overflow: hidden;
    background: var(--sb-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--sb-shadow);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    height: 100%;
}

    #Table_List .sb-mcard:hover {
        transform: translateY(-2px);
        box-shadow: var(--sb-shadow-h);
        border-color: rgba(105,108,255,.25);
    }

#Table_List .sb-mimg-wrap {
    display: block;
    height: 170px;
    background: #fff;
    overflow: hidden;
}

@media (min-width:992px) {
    #Table_List .sb-mimg-wrap {
        height: 185px;
    }
}

#Table_List img.sb-mimg {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    object-position: center !important;
    display: block !important;
    max-width: none !important;
}

#Table_List .sb-mcard .card-body {
    padding: .5rem .65rem .6rem .65rem !important;
}

#Table_List .sb-mcard .card-text {
    margin: 0 !important;
    font-size: .82rem;
    line-height: 1.6;
    font-weight: 800;
}

    #Table_List .sb-mcard .card-text a {
        color: #111827;
        text-decoration: none;
    }

        #Table_List .sb-mcard .card-text a:hover {
            color: #696cff;
        }

/* ===== Two Column Equal Height (Month + Blog) ===== */
.sb-eq-card {
    border: 1px solid rgba(17,24,39,.08);
    border-radius: 1.1rem;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(0,0,0,.05);
    min-height: var(--sb-card-h);
    display: flex;
    flex-direction: column;
}

@media (max-width:991.98px) {
    .sb-eq-card {
        min-height: unset;
    }
}

/* scroll area inside cards */
.sb-eq-body {
    flex: 1 1 auto;
    overflow: hidden; /* PerfectScrollbar */
    position: relative;
    border-radius: 1rem;
}

.sb-eq-inner {
    max-height: calc(var(--sb-card-h) - 120px); /* هدر و فوتر تقریبی */
    overflow: hidden; /* PerfectScrollbar */
}

@media (max-width:991.98px) {
    .sb-eq-inner {
        max-height: 420px;
    }
}

/* Month list item */
#secMonthMartyrs .sb-mrow {
    padding: .7rem .75rem;
    gap: .75rem;
}

    #secMonthMartyrs .sb-mrow:hover {
        background: rgba(105,108,255,.06);
    }

#secMonthMartyrs .sb-mavatar {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(17,24,39,.10);
    background: #fff;
    overflow: hidden;
    flex: 0 0 auto;
}

    #secMonthMartyrs .sb-mavatar img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        object-position: center !important;
        display: block !important;
        max-width: none !important;
    }

#secMonthMartyrs .sb-minfo {
    min-width: 0;
}

#secMonthMartyrs .sb-mname {
    margin: 0;
    font-weight: 900;
    font-size: .8rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111827;
}

#secMonthMartyrs .sb-mmeta {
    margin-top: .15rem;
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
    font-size: .78rem;
    color: rgba(17,24,39,.65);
}

#secMonthMartyrs .sb-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .12rem .45rem;
    border-radius: .7rem;
    border: 1px solid rgba(17,24,39,.10);
    background: rgba(17,24,39,.03);
    max-width: 100%;
}

    #secMonthMartyrs .sb-chip span {
        display: inline-block;
        max-width: 300px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width:576px) {
    #secMonthMartyrs .sb-chip span {
        max-width: 190px;
    }
}

/* Blog list */
#secLastBlog .sb-blog-item {
    padding: .75rem .75rem;
    gap: .65rem;
}

    #secLastBlog .sb-blog-item:hover {
        background: rgba(105,108,255,.06);
    }

#secLastBlog .sb-blog-title {
    margin: 0;
    font-weight: 900;
    font-size: .92rem;
    line-height: 1.45;
    color: #111827;
}

#secLastBlog .sb-blog-excerpt {
    margin-top: .15rem;
    font-size: .8rem;
    color: rgba(17,24,39,.65);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

#secLastBlog .sb-blog-meta {
    margin-top: .25rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    font-size: .76rem;
    color: rgba(17,24,39,.65);
}

#secLastBlog .sb-bchip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .1rem .45rem;
    border-radius: .7rem;
    border: 1px solid rgba(17,24,39,.10);
    background: rgba(17,24,39,.03);
    max-width: 100%;
}

    #secLastBlog .sb-bchip span {
        display: inline-block;
        max-width: 240px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* CTA inside blog column */
.sb-cta-mini {
    border-top: 1px dashed rgba(17,24,39,.12);
    padding-top: .75rem;
    margin-top: .5rem;
}

/* Accessibility & micro UX */
:focus-visible {
    outline: 3px solid rgba(105,108,255,.35);
    outline-offset: 2px;
    border-radius: .6rem;
}

a, button {
    transition: transform .12s ease, box-shadow .12s ease;
}

    a:active, button:active {
        transform: translateY(1px);
    }

.spinner-border {
    vertical-align: -2px;
}

/* Floating Go Top */
.sb-fab-top {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1050;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(17,24,39,.10);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 34px rgba(0,0,0,.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .sb-fab-top i {
        font-size: 1.3rem;
    }

    .sb-fab-top:hover {
        transform: translateY(-2px);
    }

#swiper-3d-coverflow-effect .swiper-slide {
    position: relative;
}

#swiper-3d-coverflow-effect .swiper-slide .slide-link {
    position: absolute;
    inset: 0;
    display: block;
    text-indent: -9999px; /* هیچ متنی دیده نشه */
}

