.blog-showcase-section {
    --lime: #C6FF33;
    --violet: #7D53EB;
    --text-dark: #111318;
    --text-soft: #626874;
    --card-bg: #ffffff;

    position: relative;
    padding:clamp(79.2px, 4.297vw, 110px) 20px;
    background: #ffffff;
    overflow: hidden;
}

.blog-showcase-shell {
    max-width: min(1440px, var(--tc-shell-max));
    margin: 0 auto;
}

.blog-showcase-head {
    text-align: center;
    max-width: 860px;
    margin: 0 auto clamp(30px, 5vw, 60px);
}

.blog-showcase-head h2 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size:clamp(2rem, 2.5vw, 4rem);
    line-height: 1;
    text-transform: uppercase;
    font-weight: 900;
    color: var(--text-dark);
}

.blog-showcase-head h2 span {
    color: var(--violet);
}

.blog-showcase-head p {
    margin: 15px 0 0;
    color: #000000;
    font-size:clamp(0.9rem, 0.656vw, 1.05rem);
    line-height: normal;
    font-weight: 500;
}

.blog-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.blog-card {
    position: relative;
    min-height: 100%;
}

.blog-card-link {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 34px;
    overflow: hidden;
    text-decoration: none;
    background: var(--card-bg);
    border: 1px solid rgba(125,83,235,0.14);
    box-shadow: none;
    transition:
        transform 0.38s ease,
        border-color 0.38s ease;
}

.blog-card-link:hover {
    transform: translateY(-10px) rotate(-0.6deg);
    border-color: rgba(125,83,235,0.30);
    box-shadow: none;
}

.blog-card-link::before {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 1px solid rgba(125,83,235,0.16);
    background: rgba(125,83,235,0.03);
    z-index: 0;
    pointer-events: none;
}

.blog-card-link::after {
    content: "";
    position: absolute;
    top: 34px;
    right: 34px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(125,83,235,0.20);
    z-index: 0;
    pointer-events: none;
}

.blog-card-media-wrap {
    --mouse-x: 50%;
    --mouse-y: 50%;
    position: relative;
    z-index: 1;
    margin: 14px 14px 0;
    padding: 2px;
    border-radius: 26px;
    clip-path: polygon(0 0, 100% 0, 100% 82%, 90% 100%, 0 100%);
    overflow: hidden;
}

.blog-card-media-wrap::before,
.blog-card-media-wrap::after {
    content: "";
    position: absolute;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    clip-path: inherit;
}

.blog-card-media-wrap::before {
    inset: -2px;
    z-index: 1;
    background: radial-gradient(
        340px circle at var(--mouse-x) var(--mouse-y),
        rgba(125, 83, 235, 0.95),
        rgba(125, 83, 235, 0.32) 22%,
        rgba(125, 83, 235, 0.08) 34%,
        transparent 52%
    );
}

.blog-card-media-wrap::after {
    inset: 2px;
    z-index: 2;
    background: radial-gradient(
        480px circle at var(--mouse-x) var(--mouse-y),
        rgba(125, 83, 235, 0.13),
        transparent 42%
    );
}

.blog-card-link:hover .blog-card-media-wrap::before,
.blog-card-link:hover .blog-card-media-wrap::after {
    opacity: 1;
}

.blog-card-media {
    position: relative;
    aspect-ratio: 1.15 / 0.82;
    overflow: hidden;
    border-radius: 24px;
    clip-path: polygon(0 0, 100% 0, 100% 82%, 90% 100%, 0 100%);
    background: #0f1116;
    z-index: 3;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s ease;
}

.blog-card-link:hover .blog-card-media img {
    transform: scale(1.08);
}

.blog-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.16) 100%);
    pointer-events: none;
}

.blog-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 4;
    padding: 10px 15px;
    border-radius: 999px;
    background: rgba(255,255,255,0.76);
    color: var(--violet);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(125,83,235,0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.blog-card-body {
    position: relative;
    z-index: 1;
    padding: 24px 24px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    color: #787d89;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.blog-card h3 {
    margin: 0 0 12px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.28rem;
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
    color: #111318;
    max-width: 90%;
}

.blog-card p {
    margin: 0 0 20px;
    font-family: "Inter", sans-serif;
    color: var(--text-soft);
    font-size: 0.96rem;
    line-height: 1.72;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}

.blog-card-meta {
    font-family: "Inter", sans-serif;
}

.blog-card-readmore {
    font-family: "Inter", sans-serif;
}

.blog-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8px;
}

.blog-card-readmore {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    color: #111318;
    border: 1.5px solid rgba(125,83,235,0.34);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.blog-card-readmore i {
    color: var(--violet);
    transition: transform 0.3s ease;
}

.blog-card-link:hover .blog-card-readmore {
    transform: translateY(-2px);
    border-color: var(--violet);
    background: rgba(125,83,235,0.06);
}

.blog-card-link:hover .blog-card-readmore i {
    transform: translateX(4px);
}

.blog-card.soft-card .blog-card-link {
    background: #fcfcff;
}

.blog-card:nth-child(2n) .blog-card-link:hover {
    transform: translateY(-10px) rotate(0.6deg);
}

@media (max-width: 1280px) {
    .blog-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .blog-showcase-section {
        padding: 80px 0;
    }

    .blog-showcase-head {
        padding: 0 16px;
    }

    .blog-showcase-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 16px 16px 24px 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        position: relative;
    }

    .blog-showcase-grid::-webkit-scrollbar {
        display: none;
    }

    .blog-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        position: relative;
        z-index: 1;
    }

    .blog-card:hover,
    .blog-card:focus-within,
    .blog-card:active {
        z-index: 10;
    }

    .blog-card h3 {
        font-size: 1.14rem;
        line-height: 1.06;
        font-weight: 700;
        max-width: 100%;
    }

    .blog-card p {
        font-size: 0.96rem;
        line-height: 1.72;
        font-weight: 400;
    }

    .blog-card-link:hover,
    .blog-card:nth-child(2n) .blog-card-link:hover {
        transform: translateY(-6px);
    }
}
