/* =========================
   Post Detail (post.html)
========================= */

.post-page {
    background: #f7f8fa;
    padding: 20px 0 80px;
}

.post-page.is-manage-view .post-aside a,
.post-page.is-manage-view .post-aside button {
    opacity: 0.6;
    cursor: not-allowed;
}

.post-container {
    max-width: 1200px;
}

/* .post-topbar {
    margin: 6px 0 14px;
} */

.list-more .material-symbols-outlined {
    font-size: 22px;
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 22px;
    align-items: start;
}

.post-article {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.post-header {
    padding: 28px 28px 14px;
}

.post-h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
    margin: 10px 0 12px;
}

.post-meta--detail .material-symbols-outlined {
    font-size: 18px;
    color: #111;
}

.post-divider {
    border: 0;
    height: 1px;
    background: #eef0f3;
    margin: 0;
}

.post-body {
    padding: 18px 28px 28px;
    line-height: 1.8;
}

.content-section {
    margin: 18px 0 24px;
}

.content-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
}

.sec-bar {
    width: 4px;
    height: 18px;
    border-radius: 4px;
    background: #06b7aa;
    display: inline-block;
}

.content-p {
    margin: 0 0 10px;
}

.content-h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 14px 0 8px;
    color: #111;
}

.content-ul {
    list-style: none;
    padding-left: 0;
    margin-left: 15px;
}

.content-ul li {
    position: relative;
    padding-left: 14px;
    line-height: 1.6;
}

.content-ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    background: #111;
    border-radius: 50%;
}

.content-h4 {
    margin: 0 0 8px;
    font-weight: 600;
}

.content-ol {
    margin: 0 0 0 18px;
}

/* Attachments */
.attach-section {
    margin-top: 24px;
    padding: 18px 18px 16px;
    background: #f7f8fa;
    border: 1px solid #eef0f3;
    border-radius: 12px;
}

.attach-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.attach-title .material-symbols-outlined {
    font-size: 18px;
}

.attach-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
}

.attach-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    padding: 12px 12px;
}

.attach-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.attach-left .material-symbols-outlined {
    font-size: 20px;
    color: #667085;
}

.attach-name {
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attach-btn {
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    color: #111;
    font-weight: 700;
    text-decoration: none;
}

/* Actions */
.post-actions {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #eef0f3;
    display: flex;
    gap: 10px;
    font-size: 15px;
    flex-wrap: wrap;
    
}

.post-actions-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #e6e8eb;
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.action-btn .material-symbols-outlined {
    font-size: 18px;
}

.action-like {
}

.action-like.is-liked {
    color: #e11d48;
    border-color: #f3c6d1;
}

/* ±âº»: ºñ¾îÀÖ´Â ÇÏÆ® */
.action-like .material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'opsz' 24;
}

/* Å¬¸¯ ÈÄ: Ã¤¿öÁø ÇÏÆ® */
.action-like.is-liked .material-symbols-outlined {
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'opsz' 24;
}

.action-share {
    color: #111;
}

/* Like heart SVG (outline -> filled) */
.action-like .like-ico path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.action-like.is-liked .like-ico path {
    fill: currentColor;
    stroke: currentColor;
}

.action-like .like-ico {
    transition: transform 0.12s ease;
}

.action-like:active .like-ico {
    transform: scale(0.92);
}

/* Aside */
.post-aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    align-self: flex-start;
}

.consult-card,
.related-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    padding: 32px 18px 20px;
}

.consult-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef0f3;
    margin-bottom: 14px;
    text-align: center;
}

.consult-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #bff1df, #2bb8a4);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 26px;
}

.consult-name {
    font-weight: 500;
    font-size: 17px;
}

.consult-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #111;
    font-weight: 700;
}

.stars {
    letter-spacing: 1px;
    font-size: 14px;
}

.rating-num {
    color: #667085;
    font-weight: 500;
    font-size: 15px;
}

.consult-row {
    display: grid;
    gap: 12px;
    padding: 10px 0;
}

.consult-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #111;
    font-weight: 600;
    font-size: 15px;
}

.consult-label .material-symbols-outlined {
    font-size: 18px;
    color: #06b7aa;
}

.consult-value {
    color: #344054;
    font-size: 14px;
    line-height: 1.55;
}

.consult-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    margin-top: 14px;
    border-top: 1px solid #eef0f3;
    font-size: 15px;
}

/* Related */
.related-title {
    margin: 0px 0 20px;
    font-size: 16px;
    font-weight: 700;
}

.related-item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 12px 12px;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 10px;
}

.related-badges {
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
}

.related-name {
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    font-size: 15px;
}

.related-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #111;
    font-size: 12px;
}

.related-meta .material-symbols-outlined {
    font-size: 18px;
}

.related-more {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px 0 10px;
    text-decoration: none;
    color: #06b7aa;
    font-weight: 600;
    font-size: 15px;
}

.related-more:hover .material-symbols-outlined {
    transform: translateX(6px);
    transition: transform 0.15s ease;
}

.post-page .consult-card .consultant-avatar {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
    .post-aside {
        order: 2;
    }
}

@media (max-width: 768px) {
    .post-actions {
        font-size: 14px;
    }
    .attach-list {
        font-size: 14px;
    }
    .post-header {
        padding: 18px 0 12px;
    }
    .post-body {
        padding: 14px 0 18px;
    }
    .post-h1 {
        font-size: 20px;
    }
    .post-article {
        box-shadow: none;
    }
    .post-page {
        background: #fff;
        padding: 10px 0 80px;
    }
    .consult-card {
        border: 1px solid #eef0f3;
    }
    .consult-actions {
        font-size: 14px;
    }
    .consult-name {
        font-size: 15px;
    }
    .consult-label .material-symbols-outlined {
        font-size: 16px;
    }
    .consult-label{
        font-size: 14px;
    }
    .consult-row {
        gap: 8px;
    }

    /* Actions */
    .action-btn .btn-text {
        display: none;
    }

    .action-btn{
        height: 30px;
        padding: 0 10px;
        border-radius: 8px;
        gap: 5px;
    }
}
