/* ======================================== */
/* content                                  */
/* ======================================== */

.blog-section {
    position: relative;
    direction: rtl;
    overflow: hidden;
    padding: 0px 0 110px;
    font-family: "IRANSansWeb", "IRANSans", Tahoma, sans-serif;
    color: #102f2a;
    isolation: isolate;
}

.blog-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(26, 74, 66, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 74, 66, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
    pointer-events: none;
}

.blog-section::after {
    content: "";
    position: absolute;
    top: -220px;
    left: -160px;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.12) 65%, transparent 72%);
    pointer-events: none;
}

.blog-section .container {
    position: relative;
    z-index: 2;
}

.blog-grid {
    display: grid;
    gap: 34px;
}

.blog-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: stretch;
    overflow: hidden;
    min-height: 300px;
    border-radius: 38px;
    direction: ltr;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(238, 245, 242, 0.58));
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow:
        0 30px 72px rgba(16, 47, 42, 0.13),
        0 10px 28px rgba(16, 47, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    transition:
        transform 0.34s ease,
        box-shadow 0.34s ease,
        border-color 0.34s ease;
}

.blog-card::before {
    content: "";
    position: absolute;
    top: -130px;
    right: -110px;
    width: 310px;
    height: 310px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(26, 74, 66, 0.15), rgba(26, 74, 66, 0.03) 68%, transparent 74%);
    pointer-events: none;
}

.blog-card::after {
    content: "";
    position: absolute;
    top: 36px;
    bottom: 36px;
    right: 420px;
    width: 1px;
    background:
        linear-gradient(to bottom, transparent, rgba(26, 74, 66, 0.16), transparent);
    pointer-events: none;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(26, 74, 66, 0.22);
    box-shadow:
        0 40px 92px rgba(16, 47, 42, 0.18),
        0 16px 36px rgba(16, 47, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

/* ======================================== */
/* image                                    */
/* ======================================== */

.blog-card-image-wrapper {
    position: relative;
    z-index: 2;
    grid-column: 2;
    grid-row: 1;
    overflow: hidden;
    min-height: 264px;
    margin: 18px;
    border-radius: 30px;
    background: #dfeae6;
    box-shadow:
        0 22px 46px rgba(16, 47, 42, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.blog-card-image-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(16, 47, 42, 0.22), transparent 58%),
        linear-gradient(180deg, transparent 45%, rgba(16, 47, 42, 0.30));
    pointer-events: none;
}

.blog-card__img {
    width: 100%;
    height: 100%;
    min-height: 264px;
    display: block;
    object-fit: cover;
    transition:
        transform 0.55s ease,
        filter 0.55s ease;
}

.blog-card:hover .blog-card__img {
    transform: scale(1.07);
    filter: saturate(1.08) contrast(1.04);
}

/* ======================================== */
/* content                                  */
/* ======================================== */

.blog-card-content {
    position: relative;
    z-index: 2;
    grid-column: 1;
    grid-row: 1;
    direction: rtl;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 42px 46px 42px 40px;
    text-align: right;
}

.blog-card-title {
    margin: 0 0 18px;
    color: #102f2a;
    font-size: 27px;
    font-weight: 950;
    line-height: 1.6;
    letter-spacing: -0.7px;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.blog-card-title a:hover {
    color: #1a4a42;
}

.blog-card-excerpt {
    max-width: 680px;
    margin: 0 0 28px;
    color: rgba(16, 47, 42, 0.68);
    font-size: 15px;
    font-weight: 500;
    line-height: 2.15;
    text-align: justify;
}

.blog-card-more {
    position: relative;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    overflow: hidden;
    padding: 11px 21px;
    border-radius: 999px;
    color: #ffffff;
    background:
        linear-gradient(135deg, #102f2a 0%, #1a4a42 55%, #245f55 100%);
    box-shadow:
        0 16px 32px rgba(16, 47, 42, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 900;
    line-height: 1.8;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        filter 0.28s ease;
}

.blog-card-more::before {
    content: "";
    position: absolute;
    top: 0;
    right: -85%;
    width: 65%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
    transform: skewX(-18deg);
    transition: right 0.6s ease;
}

.blog-card-more span {
    position: relative;
    z-index: 2;
}

.blog-card-more .arrow {
    transition: transform 0.28s ease;
}

.blog-card-more:hover {
    transform: translateY(-3px);
    filter: saturate(1.06);
    box-shadow:
        0 22px 44px rgba(16, 47, 42, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.blog-card-more:hover::before {
    right: 125%;
}

.blog-card-more:hover .arrow {
    transform: translateX(-5px);
}

.blog-section a:focus-visible {
    outline: 3px solid rgba(26, 74, 66, 0.24);
    outline-offset: 4px;
    border-radius: 14px;
}
