/* ======================================== */
/* blog / readings                          */
/* ======================================== */

.panel {
    position: relative;
    padding: 26px 0 40px;
    isolation: isolate;
}

.panel::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 220px;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 50%, rgba(66, 133, 120, 0.10), transparent 32%),
        radial-gradient(circle at 80% 50%, rgba(27, 74, 67, 0.12), transparent 34%);
    filter: blur(10px);
    pointer-events: none;
}

.panel-box {
    position: relative;
    overflow: hidden;
    padding: 34px 28px 32px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.22) 100%),
        linear-gradient(135deg, #dce8e4 0%, #cddad6 48%, #c2d1cc 100%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 22px 60px rgba(23, 48, 44, 0.12),
        0 10px 24px rgba(23, 48, 44, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    isolation: isolate;
}

.panel-box::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 68%);
    pointer-events: none;
}

.panel-box::after {
    content: "";
    position: absolute;
    left: -70px;
    bottom: -90px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(63, 128, 116, 0.12) 0%, rgba(63, 128, 116, 0) 72%);
    pointer-events: none;
}

.section-head {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 26px;
}

.section-head-title {
    margin: 0;
    color: #163a35;
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.4px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.section-head-sub {
    margin: 10px 0 0;
    color: rgba(22, 58, 53, 0.68);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.8;
}

/* اگر cards--3 و card از قبل استایل دارند، این بخش ظاهرشان را ارتقا می‌دهد */
.cards.cards--3 {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 12px 12px 16px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 249, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        0 18px 40px rgba(17, 39, 36, 0.10),
        0 8px 18px rgba(17, 39, 36, 0.06);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;
    isolation: isolate;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent 34%, transparent 66%, rgba(70, 140, 127, 0.08));
    pointer-events: none;
    z-index: 0;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(104, 175, 161, 0.34);
    box-shadow:
        0 26px 50px rgba(17, 39, 36, 0.14),
        0 12px 26px rgba(17, 39, 36, 0.08);
}

.card > * {
    position: relative;
    z-index: 1;
}

.card-img {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
    cursor: pointer;

    /* تصویر کمی به سمت راست */
    object-position: 62% center;

    border-radius: 18px;
    box-shadow:
        0 14px 24px rgba(12, 29, 27, 0.12),
        0 4px 10px rgba(12, 29, 27, 0.06);
    transition:
        transform 0.55s ease,
        filter 0.35s ease;
    filter: saturate(1.02) contrast(1.03);
}

.card:hover .card-img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.05);
}

.card-title {
    margin: 18px 4px 10px;
    color: #173b36;
    font-size: 19px;
    font-weight: 850;
    line-height: 1.7;
    letter-spacing: -0.2px;
}

.card-text {
    margin: 0 4px 18px;
    color: rgba(23, 59, 54, 0.74);
    font-size: 14px;
    font-weight: 500;
    line-height: 2;
    flex-grow: 1;
}

.btn.btn--soft {
    cursor: pointer;
    align-self: flex-start;
    margin: 0 4px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: #12433c;
    font-size: 14px;
    font-weight: 800;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(236, 245, 242, 0.92) 100%);
    border: 1px solid rgba(89, 158, 145, 0.20);
    box-shadow:
        0 10px 18px rgba(18, 67, 60,);
}
