/* ============================================================
   Sakshi Upvan — Blog post pages
   ============================================================ */

.su-post {
    padding-block: 90px;
}

.su-post-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 44px;
}

.su-post-hero img {
    display: block;
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.su-post-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 1, 1, 0) 40%, rgba(8, 1, 1, .78) 100%);
}

.su-post-hero-txt {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    padding: 40px;
}

.su-post-meta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.su-post-meta .su-post-date {
    background: var(--main-600);
    color: var(--heading);
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 22px;
    font-size: 14px;
}

.su-post-meta .su-post-by {
    color: rgba(255, 255, 255, .9);
    font-size: 15px;
}

.su-post-title {
    color: #fff;
    font-size: 46px;
    line-height: 1.15;
    font-weight: 400;
    margin: 0;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .45);
}

.su-post-wrap {
    max-width: 820px;
    margin-inline: auto;
}

.su-post-body {
    font-size: 17px;
    line-height: 1.85;
    color: var(--body-color, #2a3152);
}

.su-post-body h2 {
    font-size: 30px;
    font-weight: 500;
    color: var(--heading);
    margin: 42px 0 16px;
    line-height: 1.25;
}

.su-post-body h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--heading);
    margin: 30px 0 12px;
    line-height: 1.35;
}

.su-post-body p {
    margin-bottom: 20px;
}

.su-post-body ul,
.su-post-body ol {
    margin: 0 0 24px;
    padding-inline-start: 22px;
}

.su-post-body li {
    margin-bottom: 10px;
}

.su-post-body li::marker {
    color: var(--main-600);
}

.su-post-body strong {
    color: var(--heading);
    font-weight: 600;
}

.su-post-body a {
    color: var(--main-600);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.su-post-body blockquote {
    margin: 30px 0;
    padding: 22px 26px;
    border-inline-start: 4px solid var(--main-600);
    background: #fff;
    border-radius: 0 14px 14px 0;
    font-size: 18px;
    font-style: italic;
    color: var(--heading);
}

.su-post-body img {
    border-radius: 16px;
    width: 100%;
    height: auto;
    margin: 8px 0 26px;
}

.su-post-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 28px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    font-size: 16px;
}

.su-post-table th,
.su-post-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(26, 31, 82, .08);
}

.su-post-table th {
    background: var(--main-600);
    color: var(--heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: .04em;
}

.su-post-table tr:last-child td {
    border-bottom: none;
}

.su-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 34px 0;
}

.su-post-tags a {
    background: #fff;
    border: 1px solid rgba(26, 31, 82, .1);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    color: var(--heading);
    transition: .25s ease;
}

.su-post-tags a:hover {
    background: var(--main-600);
    border-color: var(--main-600);
}

.su-post-cta {
    background: var(--main-300);
    border-radius: 22px;
    padding: 40px;
    margin-top: 46px;
    text-align: center;
}

.su-post-cta h3 {
    font-size: 26px;
    color: var(--heading);
    margin-bottom: 12px;
}

.su-post-cta p {
    font-size: 17px;
    margin-bottom: 24px;
}

.su-post-related {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(26, 31, 82, .1);
}

.su-post-related h3 {
    font-size: 26px;
    color: var(--heading);
    margin-bottom: 24px;
}

.su-post-rel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.su-post-rel-card {
    display: block;
    background: #fff;
    border: 1px solid rgba(26, 31, 82, .08);
    border-radius: 16px;
    overflow: hidden;
    transition: .3s ease;
}

.su-post-rel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(26, 31, 82, .12);
}

.su-post-rel-card img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.su-post-rel-card .su-post-rel-txt {
    padding: 18px 20px 22px;
}

.su-post-rel-card h4 {
    font-size: 18px;
    color: var(--heading);
    font-weight: 500;
    line-height: 1.4;
}

.su-post-rel-card span {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: var(--main-600);
}

@media screen and (max-width: 767px) {
    .su-post {
        padding-block: 60px;
    }

    .su-post-hero {
        border-radius: 18px;
        margin-bottom: 30px;
    }

    .su-post-hero img {
        height: 260px;
    }

    .su-post-hero-txt {
        padding: 22px;
    }

    .su-post-title {
        font-size: 28px;
    }

    .su-post-body {
        font-size: 16px;
        line-height: 1.8;
    }

    .su-post-body h2 {
        font-size: 23px;
        margin-top: 32px;
    }

    .su-post-body h3 {
        font-size: 19px;
    }

    .su-post-cta {
        padding: 28px 22px;
    }

    .su-post-table {
        font-size: 14px;
    }

    .su-post-table th,
    .su-post-table td {
        padding: 10px 12px;
    }
}
