figcaption {
    text-align: center;
    margin: 5px 0;
}

.ih-single-main {
    width: 100%;
    /* padding: 60px 0 0 0; */
    box-sizing: border-box;
    margin-top: 100px;
    margin-bottom: 50px;
}

.ih-content-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5px;
    box-sizing: border-box;
    width: 100%;
}

.ih-single-card {
    background: #fff;
    padding: 20px 15px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    flex: 1 1 calc(70% - 30px);
    min-width: 0;
}


/* ========================================
   Blog Table of Contents
======================================== */

.alp-blog-toc {
    width: 100%;
    margin-block: 0 35px;
    padding: 24px 26px;

    background: #f7f8fa;

    border: 1px solid #e9eaf0;
    border-radius: 12px;
}


/* Header */

.alp-blog-toc-header {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 18px;
}


.alp-blog-toc-accent {
    flex: 0 0 auto;

    width: 4px;
    height: 28px;

    background: #ff0101;

    border-radius: 10px;
}


.alp-blog-toc-title {
    margin: 0;

    color: #202020;

    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.5;
}


/* List */

.alp-blog-toc-list {
    list-style: none;

    margin: 0;
    padding: 0;
}


.alp-blog-toc-item {
    margin: 0;
    padding: 0;

    border-bottom: 1px solid #e5e7ec;
}


.alp-blog-toc-item:last-child {
    border-bottom: 0;
}


/* Link */

.alp-blog-toc-link {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;

    padding-block: 11px;
    padding-inline: 18px 4px;

    color: #404040;

    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.8;

    text-decoration: none;

    transition:
        color 0.2s ease,
        padding-inline-start 0.2s ease;
}


/* Red Dot */

.alp-blog-toc-link::before {
    content: "";

    position: absolute;

    inset-inline-start: 0;

    width: 6px;
    height: 6px;

    background: #ff0101;

    border-radius: 50%;
}


/* Hover */

.alp-blog-toc-link:hover {
    color: #ff0101;

    padding-inline-start: 22px;
}


/* Active Heading */

.alp-blog-toc-link.is-active {
    color: #ff0101;
}

.alp-blog-content h2 {
    scroll-margin-top: 110px;
}


/* Mobile */

@media (max-width: 600px) {

    .alp-blog-toc {
        padding: 20px 18px;
        margin-bottom: 28px;
    }

    .alp-blog-toc-title {
        font-size: 1.1rem;
    }

    .alp-blog-toc-link {
        font-size: 0.94rem;
    }

    }
/* table of content */


.ih-post-title {
    margin: 0 0 20px 0;
    /* font-size: 1.8rem; */
    line-height: 1.4;
    position: relative;
    padding-bottom: 15px;
}

.ih-post-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    width: 95%;
    background: #e0e0e0;
}


.ih-post-title a {
    text-decoration: none;
    color: #1b1b1b;
    transition: color 0.3s ease;
}

.ih-post-title a:hover {
    color: #a70000;
}



.ih-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 40px;
}

.ih-edit-meta a {
    color: #1F4E3D;
    text-decoration: none;
    margin-inline-start: 5px;
}

.ih-post-body {
    line-height: 2;
    color: #333;
    margin-bottom: 50px;
}

.ih-post-body img {
    border-radius: 8px;
	border: 1px solid #dbdbdb;
}

.ih-post-body p {
    text-align: justify;
}

.ih-post-body * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.ih-post-body ul {
    padding-right: 2rem;
}

.ih-post-body a:hover {
    color: #bd2424;
}


.ih-post-footer {
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.ih-metalinks strong {
    display: block;
    margin-bottom: 15px;
    color: #1b1b1b;
}

.ih-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ih-tags-wrap a {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ih-tags-wrap a:hover {
    border-color: #983434;
    color: #983434;
    background-color: rgba(31, 78, 61, 0.05);
}

.ih-single-sidebar {
    flex: 1 1 30%;
    min-width: 280px;
    box-sizing: border-box;
    /* margin-top:100px; */
}

@media (max-width: 768px) {
    .ih-single-main {
        padding: 30px 0;
        margin-top: 100px;
    }

    .ih-single-card {
        padding: 25px 20px;
        border-radius: 12px;
    }
}

@media (max-width: 992px) {
    .ih-single-sidebar {
        flex: 1 1 100%;
        width: 100% !important;
        position: static;
        margin-top: 10px;
    }

    .ih-post-title {
        font-size: 1.6rem;
    }

    .ih-post-body {
        font-size: 1rem;
        margin-bottom: 35px;
    }
}



/* ==========================================================================
     (Sidebar)
   ========================================================================== */
.ih-sidebar {
    width: 100%;
    max-width: 520px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 22px 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    clear: both;
    box-sizing: border-box;
}

.ih-sidebar-title {
    color: #1b1b1b;
    padding-inline: 10px;
    margin-bottom: 14px;
    padding-top: 8px;
}

.ih-sidebar-line {
    width: 90%;
    height: 2px;
    background-color: #e0e0e0;
    margin-inline-start: 10px;
    margin-bottom: 30px;
}

.ih-sidebar-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================================================
    (Cards)
   ========================================================================== */
.ih-sidebar-card {
    display: block;
    text-decoration: none;
    background-color: #eaeaea;
    /* border: 1px solid #c2c2c2; */
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ih-sidebar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
}

.ih-card-thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.ih-card-content {
    padding: 15px 12px;
    text-align: center;

}

.ih-card-title {
    color: #1b1b1b;
    line-height: 1.4;
    margin-bottom: 10px;
    min-height: 2.8rem;
    overflow: hidden;
    text-align: center;
}



/* ==========================================================================
     (Responsive Fix)
   ========================================================================== */
@media (max-width: 480px) {
    .ih-sidebar {
        max-width: 100%;
        width: 100%;
        margin-inline: auto;
        border-radius: 0;
        padding: 15px 10px;
    }

}




/* =========================
   Single Blog Sidebar Card
   ========================= */

.alp-single-sidebar {
    width: 100%;
    position: sticky;
    top: 150px;
    padding: 0 10px;
    margin-top: 20px;
}

.alp-single-sidebar h2 {
    text-align: center;

}

.alp-sidebar-card {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.alp-sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.11);
}


/* Image */

.alp-sidebar-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.alp-sidebar-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Content */

.alp-sidebar-content {
    padding: 22px;
    text-align: center;
}

.alp-sidebar-title {
    margin: 0 0 12px;
    color: #404b87;
    font-size: 21px;
    line-height: 1.6;
    font-weight: 700;
}

.alp-sidebar-description {
    margin: 0 0 20px;
    color: #555;
    font-size: 15px;
    line-height: 2;
}


/* Button */

.alp-sidebar-button {
    display: block;
    width: 80%;
    margin: auto;
    padding: 11px 18px;
    background: #dc0000;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    transition: background-color 0.2s ease;
}

.alp-sidebar-card:hover .alp-sidebar-button {
    background: #d90000;
}


/* =========================
   Mobile
   ========================= */

@media (max-width: 767px) {

    .alp-single-sidebar {
        position: static;
    }

    .alp-sidebar-card {
        border-radius: 10px;
    }

    .alp-sidebar-content {
        padding: 18px;
    }

    .alp-sidebar-title {
        font-size: 19px;
    }

    .alp-sidebar-description {
        font-size: 14px;
        line-height: 1.9;
    }

}





.related-posts-section {
    margin-top: 40px;
    padding: 40px 20px 50px 20px;
    width: 100%;
    background: linear-gradient(to bottom, #f6f0d9 0%, #ffffff 100%);
    margin-inline: auto;
}

.related-title {
    font-size: 2rem;
    margin-bottom: 35px;
    color: #333;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-inline: auto;
    width: 100%;
    max-width: 1280px;
}

.related-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.related-post-card:hover {
    transform: translateY(-5px);
}

.related-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* عکس پست */
.related-post-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* اطلاعات پست */
.related-post-info {
    padding: 15px;
}

.related-post-title {
    font-size: 0.95rem;
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #222;
}

/* ==========================================
   Alpha Tables
========================================== */
.ih-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 30px 0;
    -webkit-overflow-scrolling: touch;
}


.ih-table {
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #d2d2d2;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Header */
.ih-table thead th {
    background: #d96868;
    color: #292929;
    padding: 18px 16px;
    font-size: 1rem;
    font-weight: 700;
    border-bottom: 1px solid #d96868;
}

.ih-table thead th:not(:last-child) {
    border-inline-end: 1px solid rgba(27, 62, 56, 0.18);
}

/* Cells */
.ih-table tbody td {
    padding: 16px;
    color: #444;
    border-bottom: 1px solid #ececec;
}

.ih-table tbody td:not(:last-child) {
    border-inline-end: 1px solid #ececec;
}

.ih-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.ih-table tbody tr:nth-child(even) {
    background: #fff8f8;
}

/* Hover */
.ih-table tbody tr {
    transition: 0.25s;
}

.ih-table tbody tr:hover {
    background: #f6eeee;
}

.ih-table tbody tr:hover td {
    color: #3e1b1b;
}

.ih-table tbody tr:last-child td {
    border-bottom: none;
}



/* Mobile */
@media (max-width: 768px) {
    .ih-table {
        min-width: 420px;
    }

    .ih-table thead th,
    .ih-table tbody td {
        padding: 14px 12px;
        font-size: 0.95rem;
    }
}

blockquote {
    border-inline-start: 3px solid #d90000;
    background: #fafafa;
    padding: 30px 28px 22px;
    border-radius: 7px;
    font-style: italic;
    color: #555;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

blockquote::before {
    content: "“";
    position: absolute;
    top: -10px;
    inset-inline-start: 20px;
    font-size: 100px;
    font-family: Georgia, serif;
    color: #d90000;
    opacity: 0.25;
    line-height: 1;
}