/* Post Page Plugin - Binori Town Style Q&A Listing */

.ppp-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 15px;
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Mehr Nastaliq', serif;
    direction: rtl;
}

/* Breadcrumbs */
.ppp-breadcrumbs {
    padding: 10px 0 15px 0;
    font-size: 14px;
    color: #888;
    text-align: right;
}

.ppp-breadcrumbs a {
    color: #671A30;
    text-decoration: none;
}

.ppp-breadcrumbs a:hover {
    text-decoration: underline;
}

.ppp-breadcrumb-sep {
    margin: 0 5px;
    color: #ccc;
}

.ppp-breadcrumb-current {
    color: #333;
    font-weight: 100;
}

/* Title */
.ppp-title {
    text-align: center;
    color: #671A30;
    font-size: 28px;
    font-weight: 100;
    margin-bottom: 25px;
    padding-bottom: 0;
}

/* Category Description */
.ppp-category-desc {
    text-align: center;
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Post count badge */
.ppp-count {
    font-size: 13px;
    color: #999;
    font-family: Arial, Helvetica, sans-serif;
}

/* Questions List */
.ppp-questions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Each Question Item */
.ppp-question-item {
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.2s ease;
}

.ppp-question-item:first-child {
    border-top: 1px solid #e8e8e8;
}

.ppp-question-item:hover {
    background-color: #faf6f0;
}

/* Question Link - RTL: icon on RIGHT, text on LEFT */
.ppp-question-link {
    display: flex;
    align-items: center;
    padding: 14px 15px;
    text-decoration: none;
    color: #333;
    gap: 12px;
    direction: rtl;
}

.ppp-question-link:hover {
    color: #671A30;
    text-decoration: none;
}

.ppp-question-link:visited {
    color: #555;
}

/* Question Text */
.ppp-question-text {
    flex: 1;
    font-size: 17px;
    line-height: 2;
    text-align: right;
}

/* Question Mark / Icon Box - on the RIGHT side in RTL */
.ppp-question-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background-color: #671A30;
    color: #F6C491;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 100;
    border-radius: 3px;
    flex-shrink: 0;
    line-height: 1;
    order: -1;
}

/* Book emoji icon for volumes */
.ppp-icon-book {
    background-color: transparent;
    color: inherit;
    font-size: 22px;
    width: 30px;
    height: 30px;
    min-width: 30px;
}

/* Bullet dot icon for topics/sub-categories */
.ppp-icon-dot {
    background-color: transparent;
    color: #671A30;
    font-size: 12px;
    width: 28px;
    height: 28px;
    min-width: 28px;
}

.ppp-question-item:hover .ppp-question-mark:not(.ppp-icon-book):not(.ppp-icon-dot) {
    background-color: #4a1122;
}

/* ========================
   Pagination
   ======================== */
.ppp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 35px;
    padding-top: 20px;
    direction: ltr;
    flex-wrap: wrap;
}

.ppp-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 4px 10px;
    background-color: #f0e8de;
    color: #671A30;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 100;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid #ddd3c5;
}

.ppp-page-link:hover {
    background-color: #671A30;
    color: #F6C491;
    text-decoration: none;
    border-color: #671A30;
}

/* Current/Active page */
.ppp-page-current {
    background-color: #671A30;
    color: #F6C491;
    border-color: #671A30;
    cursor: default;
}

/* Navigation arrows (« ‹ › ») */
.ppp-page-nav {
    font-size: 16px;
    font-weight: 100;
}


/* ========================
   Responsive
   ======================== */
@media (max-width: 768px) {
    .ppp-wrapper {
        padding: 10px;
    }

    .ppp-title {
        font-size: 22px;
    }

    .ppp-question-link {
        padding: 12px 10px;
    }

    .ppp-question-text {
        font-size: 15px;
        line-height: 1.9;
    }

    .ppp-question-mark {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 13px;
    }

    .ppp-page-link {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }

    .ppp-breadcrumbs {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ppp-question-text {
        font-size: 14px;
        line-height: 1.8;
    }

    .ppp-question-link {
        padding: 10px 8px;
        gap: 8px;
    }

    .ppp-pagination {
        gap: 4px;
    }

    .ppp-page-link {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 2px 6px;
    }
}
