/* ============================================================
   PHUYENTRAVEL — single.css
   Clone layout Disto theme: bố cục, màu sắc, kích thước
   ============================================================ */

/* ── CSS Variables ──────────────────────────────────────────── */
.pht-single-page {
    --pht-main: #dd3333;
    --pht-bg: #ffffff;
    --pht-text: #282828;
    --pht-text-light: #666666;
    --pht-meta: #0a0a0a;
    --pht-line: #e9e9e9;
    --pht-author-bg: rgba(136, 136, 136, 0.1);
    --pht-radius: 13px;
    --pht-radius-sm: 8px;
    --pht-container: 1200px;
    --pht-font-title: 'Poppins', 'Outfit', Verdana, sans-serif;
    --pht-font-body: 'Outfit', 'Oxygen', Verdana, sans-serif;
}

/* ── Reading Progress Bar ───────────────────────────────────── */
.pht-progress-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 99999;
}

.pht-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #8100ff 0%, #8100ff 100%);
    transition: width 0.12s linear;
}

/* ── Container ──────────────────────────────────────────────── */
.pht-single-page {
    background: var(--pht-bg);
}

body[data-theme="dark"] .pht-single-page {
    --pht-bg: #0c1422;
    --pht-text: #e8edf7;
    --pht-text-light: #9ba8bc;
    --pht-meta: #dbe4f1;
    --pht-line: #223046;
    --pht-author-bg: #101b2d;
    background:
        radial-gradient(circle at top left, rgba(221, 51, 51, 0.08), transparent 30%),
        var(--pht-bg);
}

.pht-container {
    max-width: var(--pht-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Main Grid Row ──────────────────────────────────────────── */
.pht-row {
    display: flex;
    gap: 28px;
    padding: 20px 0 24px;
    align-items: stretch;
}

.pht-col-main {
    flex: 0 0 min(100%, 780px);
    min-width: 0;
}

.pht-col-sidebar {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-self: stretch;
}

.pht-row--sidebar-none .pht-col-main {
    flex: 1 1 100%;
    max-width: 860px;
    margin-inline: auto;
}

.pht-post-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================================
   POST HEADER
   ============================================================ */

/* Category badge */
.pht-cat-badge {
    display: inline-block;
    margin-bottom: 6px;
}

.pht-cat-badge a {
    display: inline-block;
    background: var(--pht-main);
    color: #fff;
    font-family: var(--pht-font-title);
    font-size: 12px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 999px;
    text-decoration: none;
    text-transform: capitalize;
    letter-spacing: -0.03em;
    transition: opacity .2s;
}

.pht-cat-badge a:hover {
    opacity: .82;
}

/* H1 Title */
.pht-post-title {
    font-family: var(--pht-font-title);
    font-size: 32px;
    font-weight: 600;
    color: #000;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    max-width: 760px;
}

/* Subtitle */
.pht-post-subtitle {
    font-size: 14px;
    color: var(--pht-text-light);
    line-height: 1.75;
    margin: 10px 0 0;
    font-family: var(--pht-font-body);
    max-width: 740px;
}

/* ── Meta row ── */
.pht-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 12px;
    font-family: var(--pht-font-body);
    font-size: 12px;
    color: var(--pht-meta);
}

.pht-meta-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.pht-author-avatar-sm {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    object-fit: cover;
}

.pht-meta-author a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.pht-meta-author a:hover {
    color: var(--pht-main);
}

body[data-theme="dark"] .pht-meta-author,
body[data-theme="dark"] .pht-meta-author a {
    color: var(--pht-meta);
}

.pht-meta-date,
.pht-meta-time,
.pht-meta-views {
    color: #555;
    font-size: 12px;
}

.pht-meta-time i {
    margin-right: 3px;
    font-size: 11px;
}

/* ── Share icons — top header ── */
.pht-share-head {
    margin-top: 8px;
}

.pht-share-icons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.pht-sh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: #fff !important;
    font-size: 11px;
    text-decoration: none !important;
    transition: opacity .2s, transform .15s;
    position: relative;
}

.pht-sh:hover {
    opacity: .85;
    transform: translateY(-1px);
}

.pht-sh-fb {
    background: #3b5998;
}

.pht-sh-tw {
    background: #000000;
}

.pht-sh-pi {
    background: #bd081c;
}

.pht-sh-wa {
    background: #25d366;
}

.pht-sh-li {
    background: #0077b5;
}

.pht-sh-tg {
    background: #0088cc;
}

.pht-sh-ml {
    background: #888888;
}

.pht-sh-copy {
    background: #555555;
}

/* Copy-link feedback tooltip */
.pht-copied-msg {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    font-family: var(--pht-font-body);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}

.pht-copied-msg::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #222;
}

.pht-sh-copy.pht-copied .pht-copied-msg {
    display: block;
}

/* ============================================================
   FEATURED IMAGE
   ============================================================ */
.pht-feat-img {
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
}

.pht-feat-img img,
.pht-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* ============================================================
   CONTENT AREA (floating share + article)
   ============================================================ */
.pht-content-area {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* Floating share sidebar */
.pht-share-float {
    flex: 0 0 42px;
    position: sticky;
    position: -webkit-sticky;
    top: 20px !important;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-right: 2px;
}

.pht-sf-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: var(--pht-font-title);
    font-size: 11px;
    font-weight: 500;
    color: #999;
    letter-spacing: .02em;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.pht-sf-label i {
    font-size: 14px;
    color: #777;
}

.pht-sf-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.pht-sf-list .pht-sh {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 11px;
}

.pht-sf-list .pht-sh:hover {
    transform: scale(1.1);
}

/* Content body wrapper */
.pht-content-body {
    flex: 1;
    min-width: 0;
}

/* ── Post Content Typography ── */
.pht-content {
    font-family: var(--pht-font-body);
    font-size: 14px;
    line-height: 1.8;
    color: var(--pht-text);
}

.pht-content p {
    margin: 0 0 1.4em;
    font-size: 14px;
    line-height: 1.8;
    color: var(--pht-text);
}

.pht-content h2 {
    font-size: 24px;
}

.pht-content h3 {
    font-size: 20px;
}

.pht-content h4 {
    font-size: 18px;
}

.pht-content h5 {
    font-size: 16px;
}

.pht-content h6 {
    font-size: 14px;
}

.pht-content h2,
.pht-content h3,
.pht-content h4,
.pht-content h5,
.pht-content h6 {
    font-family: var(--pht-font-title);
    font-weight: 600;
    color: #000;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 1.6em 0 .7em;
    text-transform: none;
}

.pht-content strong,
.pht-content b {
    font-weight: 700;
    color: #111;
}

body[data-theme="dark"] .pht-content strong,
body[data-theme="dark"] .pht-content b,
body[data-theme="dark"] .pht-content li strong {
    color: #ffffff;
}

.pht-content blockquote {
    border-left: 4px solid var(--pht-main);
    margin: 1.8em 0;
    padding: 1.1em 1.25em;
    background: #f6f6f6;
    border-radius: 0 12px 12px 0;
}

.pht-content blockquote p {
    font-size: 16px;
    font-style: italic;
    color: #333;
    margin: 0 0 .5em;
}

.pht-content blockquote cite {
    display: block;
    font-size: 13px;
    font-style: normal;
    color: #888;
    margin-top: 6px;
}

.pht-content ul,
.pht-content ol {
    margin: 0 0 1.4em 1.6em;
    font-size: 14px;
    line-height: 1.8;
    color: var(--pht-text);
}

.pht-content li {
    margin-bottom: .5em;
}

.pht-content li strong {
    font-weight: 600;
    color: #000;
}

.pht-content a {
    color: var(--pht-main);
    text-decoration: none;
    transition: opacity .2s;
}

.pht-content a:hover {
    text-decoration: underline;
}

.pht-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--pht-radius-sm);
    margin: 1em 0;
    display: block;
}

.pht-content figure {
    margin: 1.8em 0;
}

.pht-content figure img {
    border-radius: var(--pht-radius);
}

.pht-content figure figcaption {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 8px;
}

.pht-content hr {
    border: 0;
    border-top: 1px solid var(--pht-line);
    margin: 1.8em 0;
}

.pht-content code,
.pht-content kbd,
.pht-content samp {
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    background: #f4f4f4;
    color: #d63333;
    padding: 2px 6px;
    border-radius: 6px;
}

.pht-content pre {
    background: #111827;
    color: #f8fafc;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    line-height: 1.7;
    padding: 16px 18px;
    border-radius: 14px;
    overflow-x: auto;
    margin: 1.6em 0;
}

.pht-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.pht-content .wp-block-table,
.pht-content .table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 1.6em 0;
    border-radius: 14px;
    border: 1px solid var(--pht-line);
    background: #fff;
}

body[data-theme="dark"] .pht-content .wp-block-table,
body[data-theme="dark"] .pht-content .table-responsive {
    background: #101b2d;
}

.pht-content table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

.pht-content thead th {
    background: #111827;
    color: #fff;
    font-family: var(--pht-font-title);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    text-align: left;
}

.pht-content th,
.pht-content td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--pht-line);
    vertical-align: top;
    font-size: 14px;
    line-height: 1.6;
}

.pht-content tbody tr:nth-child(even) {
    background: #fafafa;
}

.pht-content tbody tr:last-child td {
    border-bottom: 0;
}

.pht-content .wp-block-table figcaption {
    margin: 0;
    padding: 10px 14px 12px;
    text-align: left;
    border-top: 1px solid var(--pht-line);
}


/* Drop cap */
.pht-content .has-drop-cap:not(:focus)::first-letter {
    float: left;
    font-size: 4.5em;
    line-height: .72;
    margin: .05em .12em 0 0;
    font-family: var(--pht-font-title);
    font-weight: 700;
    color: var(--pht-main);
}

/* WP Block alignment */
.pht-content .alignleft {
    float: left;
    margin: .5em 1.5em 1em 0;
}

.pht-content .alignright {
    float: right;
    margin: .5em 0 1em 1.5em;
}

.pht-content .aligncenter {
    display: block;
    margin: 1em auto;
}

.pht-content .wp-block-quote {
    border-left: .25em solid var(--pht-main);
    padding-left: 1em;
}

/* ── Post footer (tags) ── */
.pht-post-foot {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--pht-line);
}

.pht-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pht-tag-chip {
    display: inline-block;
    padding: 5px 14px;
    background: #f3f3f3;
    color: #555;
    font-family: var(--pht-font-body);
    font-size: 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all .2s;
}

.pht-tag-chip:hover {
    background: var(--pht-main);
    color: #fff;
}

body[data-theme="dark"] .pht-tag-chip {
    background: #132032;
    color: #d6e0ef;
}

/* ============================================================
   BOTTOM SHARE BAR
   ============================================================ */
.pht-share-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--pht-line);
    border-bottom: 1px solid var(--pht-line);
}

.pht-share-lbl {
    font-family: var(--pht-font-title);
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.pht-share-lbl i {
    margin-right: 5px;
}

.pht-share-icons-lg .pht-sh {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    font-size: 11px;
}

/* ============================================================
   AUTHOR BOX
   ============================================================ */
.pht-author-box {
    padding: 26px 28px;
    background: var(--pht-author-bg);
    border-radius: var(--pht-radius);
}

.pht-author-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.pht-author-ava-wrap {
    flex: 0 0 88px;
}

.pht-author-img {
    width: 88px !important;
    height: 88px !important;
    border-radius: 50% !important;
    object-fit: cover;
    display: block;
}

.pht-author-info {
    flex: 1;
    min-width: 0;
}

.pht-author-written {
    font-family: var(--pht-font-body);
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 4px;
}

.pht-author-name {
    font-family: var(--pht-font-title);
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px;
    line-height: 1.2;
}

.pht-author-name a {
    color: #000;
    text-decoration: none;
}

.pht-author-name a:hover {
    color: var(--pht-main);
}

.pht-author-name span {
    font-family: var(--pht-font-body);
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.pht-author-bio {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
    margin: 0 0 14px;
}

.pht-author-socials {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pht-author-socials li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, .08);
    color: #333;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
}

.pht-author-socials li a:hover {
    background: var(--pht-main);
    color: #fff;
}

body[data-theme="dark"] .pht-author-written,
body[data-theme="dark"] .pht-author-name span,
body[data-theme="dark"] .pht-author-bio {
    color: #9ba8bc;
}

body[data-theme="dark"] .pht-author-name a {
    color: #f8fafc;
}

body[data-theme="dark"] .pht-author-socials li a {
    background: rgba(255, 255, 255, 0.08);
    color: #eef3fb;
}

/* ============================================================
   POST NAVIGATION
   ============================================================ */
.pht-post-nav {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--pht-line);
    border-bottom: 1px solid var(--pht-line);
}

.pht-nav-prev,
.pht-nav-next {
    flex: 1;
    min-width: 0;
}

.pht-nav-next {
    text-align: right;
}

.pht-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: opacity .2s;
}

.pht-nav-next .pht-nav-link {
    flex-direction: row-reverse;
}

.pht-nav-link:hover {
    opacity: .72;
}

.pht-nav-img {
    flex: 0 0 68px;
}

.pht-nav-img img {
    width: 68px;
    height: 68px;
    border-radius: var(--pht-radius-sm);
    object-fit: cover;
    display: block;
}

.pht-nav-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pht-nav-label {
    font-family: var(--pht-font-body);
    font-size: 12px;
    color: #999;
    text-transform: capitalize;
}

.pht-nav-title {
    font-family: var(--pht-font-title);
    font-size: 15px;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   COMMENTS SECTION
   ============================================================ */
.pht-comments-section {
    padding-top: 20px;
}

body[data-theme="dark"] .pht-comments-section {
    padding: 24px;
    border: 1px solid var(--pht-line);
    border-radius: var(--pht-radius);
    background: #101b2d;
}

.pht-comment-head {
    margin-bottom: 20px;
}

.pht-comment-head-title {
    font-family: var(--pht-font-title);
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
    text-transform: capitalize;
}

/* WP comment form styling */
.pht-comment-body .comment-form {
    max-width: 100%;
}

.pht-comment-body .comment-notes,
.pht-comment-body .comment-form p {
    margin-bottom: 16px;
}

.pht-comment-body .comment-form label {
    display: block;
    font-family: var(--pht-font-title);
    font-size: 12px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

body[data-theme="dark"] .pht-comment-body .comment-form label,
body[data-theme="dark"] .pht-comment-body .fn {
    color: #f5f7fb;
}

.pht-comment-body .comment-form textarea,
.pht-comment-body .comment-form input[type="text"],
.pht-comment-body .comment-form input[type="email"],
.pht-comment-body .comment-form input[type="url"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: var(--pht-radius-sm);
    font-family: var(--pht-font-body);
    font-size: 14px;
    background: #fafafa;
    color: #333;
    outline: none;
    transition: border-color .2s, background .2s;
    box-sizing: border-box;
}

body[data-theme="dark"] .pht-comment-body .comment-form textarea,
body[data-theme="dark"] .pht-comment-body .comment-form input[type="text"],
body[data-theme="dark"] .pht-comment-body .comment-form input[type="email"],
body[data-theme="dark"] .pht-comment-body .comment-form input[type="url"] {
    border-color: #2a3950;
    background: #0d1726;
    color: #edf2fb;
}

.pht-comment-body .comment-form textarea:focus,
.pht-comment-body .comment-form input:focus {
    border-color: var(--pht-main);
    background: #fff;
}

body[data-theme="dark"] .pht-comment-body .comment-form textarea:focus,
body[data-theme="dark"] .pht-comment-body .comment-form input:focus {
    background: #122033;
}

.pht-comment-body .comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.pht-comment-body .comment-form input[type="submit"],
.pht-comment-body .comment-form .submit {
    display: inline-block;
    padding: 10px 24px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--pht-font-title);
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize;
    cursor: pointer;
    transition: background .2s;
    letter-spacing: 0;
}

.pht-comment-body .comment-form input[type="submit"]:hover {
    background: var(--pht-main);
}

/* Existing comments list */
.pht-comment-body ol.comment-list {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
}

.pht-comment-body ol.comment-list li.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--pht-line);
}

.pht-comment-body .fn {
    font-weight: 600;
    color: #333;
}

.pht-comment-body .comment-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.pht-comment-body .comment-content p {
    font-size: 15px;
    color: #444;
}

body[data-theme="dark"] .pht-comment-body .comment-content p,
body[data-theme="dark"] .pht-comment-body .comment-notes,
body[data-theme="dark"] .pht-comment-body .comment-form p,
body[data-theme="dark"] .pht-comment-body .logged-in-as,
body[data-theme="dark"] .pht-comment-body .logged-in-as a {
    color: #a9b3c3;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.pht-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 20px !important;
    align-self: flex-start;
    width: 100%;
}

.pht-widget-title {
    font-family: var(--pht-font-title);
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #000;
    text-transform: capitalize;
    letter-spacing: -.03em;
}

body[data-theme="dark"] .pht-widget-title,
body[data-theme="dark"] .pht-recent-title,
body[data-theme="dark"] .pht-recent-title a,
body[data-theme="dark"] .pht-nav-title,
body[data-theme="dark"] .pht-share-lbl {
    color: #f8fafc;
}

body[data-theme="dark"] .pht-recent-date,
body[data-theme="dark"] .pht-nav-label,
body[data-theme="dark"] .pht-related-author,
body[data-theme="dark"] .pht-related-date {
    color: #9ba8bc;
}

/* Recent Posts */
.pht-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pht-recent-inner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.pht-recent-img {
    flex: 0 0 90px;
}

.pht-recent-img img {
    width: 90px;
    height: 65px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform .25s;
}

.pht-recent-img:hover img {
    transform: scale(1.04);
}

.pht-recent-img a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
}

.pht-recent-text {
    flex: 1;
    min-width: 0;
}

.pht-cat-sm a {
    font-size: 11px !important;
    padding: 2px 7px !important;
    border-radius: 5px !important;
}

.pht-recent-title {
    font-family: var(--pht-font-title);
    font-size: 14px;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
    margin: 5px 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pht-recent-title a {
    color: inherit;
    text-decoration: none;
}

.pht-recent-title a:hover {
    color: var(--pht-main);
}

.pht-recent-date {
    font-family: var(--pht-font-body);
    font-size: 12px;
    color: #999;
}

/* Category cards widget */
.pht-cat-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pht-cat-card {
    position: relative;
    border-radius: var(--pht-radius-sm);
    overflow: hidden;
}

.pht-cat-card-link {
    display: block;
    position: relative;
    text-decoration: none;
    line-height: 0;
}

.pht-cat-card-link img,
.pht-cat-card-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    border-radius: var(--pht-radius-sm);
    transition: transform .3s;
}

.pht-cat-card-placeholder {
    background: linear-gradient(135deg, #ccc, #999);
}

.pht-cat-card-link:hover img {
    transform: scale(1.05);
}

.pht-cat-card-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, .6) 0%, transparent 65%);
    border-radius: var(--pht-radius-sm);
    line-height: 1;
}

.pht-cat-card-name {
    font-family: var(--pht-font-title);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-transform: capitalize;
}

.pht-cat-card-count {
    font-family: var(--pht-font-body);
    font-size: 11px;
    color: rgba(255, 255, 255, .75);
    margin-top: 3px;
    display: block;
}

/* Tags cloud */
.pht-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

/* ============================================================
   RELATED ARTICLES
   ============================================================ */
.pht-related-wrap {
    padding: 24px 0 28px;
    background: #fafafa;
    border-top: 1px solid var(--pht-line);
}

body[data-theme="dark"] .pht-related-wrap {
    background: #101b2d;
}

.pht-related-head {
    font-family: var(--pht-font-title);
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pht-line);
    text-transform: capitalize;
    letter-spacing: -.02em;
}

.pht-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.pht-related-img {
    position: relative;
    border-radius: var(--pht-radius);
    overflow: hidden;
    margin-bottom: 14px;
    line-height: 0;
}

.pht-related-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.pht-related-img>a {
    display: block;
}

.pht-related-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #ece8dd 0%, #d5c4a9 100%);
}

.pht-related-item:hover .pht-related-img img {
    transform: scale(1.04);
}

.pht-cat-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    margin: 0;
}

.pht-related-title {
    font-family: var(--pht-font-title);
    font-size: 18px;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pht-related-title a {
    color: inherit;
    text-decoration: none;
}

.pht-related-title a:hover {
    color: var(--pht-main);
}

.pht-related-excerpt {
    font-family: var(--pht-font-body);
    font-size: 14px;
    color: var(--pht-text-light);
    line-height: 1.55;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pht-related-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pht-related-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--pht-font-body);
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

.pht-rel-avatar {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover;
}

.pht-related-author a {
    color: inherit;
    text-decoration: none;
}

.pht-related-author a:hover {
    color: var(--pht-main);
}

.pht-related-date {
    font-family: var(--pht-font-body);
    font-size: 12px;
    color: #999;
}

body[data-theme="dark"] .pht-post-title,
body[data-theme="dark"] .pht-content h2,
body[data-theme="dark"] .pht-content h3,
body[data-theme="dark"] .pht-content h4,
body[data-theme="dark"] .pht-content h5,
body[data-theme="dark"] .pht-content h6,
body[data-theme="dark"] .pht-author-name,
body[data-theme="dark"] .pht-meta-author,
body[data-theme="dark"] .pht-meta-author a,
body[data-theme="dark"] .pht-comment-head-title,
body[data-theme="dark"] .pht-related-head,
body[data-theme="dark"] .pht-related-title,
body[data-theme="dark"] .pht-related-title a {
    color: #f8fafc;
}

body[data-theme="dark"] .pht-post-subtitle,
body[data-theme="dark"] .pht-meta-date,
body[data-theme="dark"] .pht-meta-time,
body[data-theme="dark"] .pht-meta-views,
body[data-theme="dark"] .pht-content p,
body[data-theme="dark"] .pht-content li,
body[data-theme="dark"] .pht-author-bio,
body[data-theme="dark"] .pht-related-excerpt,
body[data-theme="dark"] .pht-related-meta,
body[data-theme="dark"] .pht-comment-body .comment-meta {
    color: #a9b3c3;
}

body[data-theme="dark"] .pht-content blockquote {
    background: #121a27;
}

body[data-theme="dark"] .pht-content blockquote p {
    color: #d8e1ee;
}

body[data-theme="dark"] .pht-content blockquote cite,
body[data-theme="dark"] .pht-content figure figcaption {
    color: #93a1b5;
}

body[data-theme="dark"] .pht-content thead th {
    background: #1c2738;
}

body[data-theme="dark"] .pht-content tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

body[data-theme="dark"] .pht-post-nav,
body[data-theme="dark"] .pht-share-bottom,
body[data-theme="dark"] .pht-post-foot,
body[data-theme="dark"] .pht-comment-body ol.comment-list li.comment {
    border-color: var(--pht-line);
}

body[data-theme="dark"] .pht-page-links span a,
body[data-theme="dark"] .pht-page-links a {
    border-color: var(--pht-line);
    background: #132032;
    color: #eef3fb;
}

body[data-theme="dark"] .pht-content code,
body[data-theme="dark"] .pht-content kbd,
body[data-theme="dark"] .pht-content samp {
    background: #132032;
    color: #ff8f8f;
}

body[data-theme="dark"] .pht-content .ez-toc-container,
body[data-theme="dark"] .pht-content .lwptoc,
body[data-theme="dark"] .pht-content .toc_container,
body[data-theme="dark"] .pht-content .rank-math-toc-block,
body[data-theme="dark"] .pht-content .wp-block-table-of-contents {
    background: #101b2d;
    border: 1px solid var(--pht-line);
    color: #dbe4f1;
    border-radius: var(--pht-radius);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .pht-content .ez-toc-title,
body[data-theme="dark"] .pht-content .lwptoc_title,
body[data-theme="dark"] .pht-content .toc_title,
body[data-theme="dark"] .pht-content .rank-math-toc-title,
body[data-theme="dark"] .pht-content .wp-block-table-of-contents__title,
body[data-theme="dark"] .pht-content .ez-toc-list a,
body[data-theme="dark"] .pht-content .lwptoc_i a,
body[data-theme="dark"] .pht-content .toc_list a,
body[data-theme="dark"] .pht-content .rank-math-toc-block a,
body[data-theme="dark"] .pht-content .wp-block-table-of-contents a {
    color: #eef3fb;
}

body[data-theme="dark"] .pht-content .ez-toc-list a:hover,
body[data-theme="dark"] .pht-content .lwptoc_i a:hover,
body[data-theme="dark"] .pht-content .toc_list a:hover,
body[data-theme="dark"] .pht-content .rank-math-toc-block a:hover,
body[data-theme="dark"] .pht-content .wp-block-table-of-contents a:hover {
    color: var(--pht-main);
}

/* Page links (multi-page posts) */
.pht-page-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 24px 0;
    font-size: 14px;
    font-family: var(--pht-font-title);
}

.pht-page-links span a,
.pht-page-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--pht-line);
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: all .2s;
}

.pht-page-links span a:hover,
.pht-page-links a:hover {
    background: var(--pht-main);
    border-color: var(--pht-main);
    color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet: 769px – 1024px ── */
@media (max-width: 1024px) {
    .pht-row {
        gap: 22px;
        padding: 20px 0 24px;
    }

    .pht-col-main {
        flex: 0 0 calc(64% - 11px);
    }

    .pht-col-sidebar {
        flex: 0 0 calc(36% - 11px);
        min-width: 0;
    }

    .pht-post-title {
        font-size: 30px;
    }

    .pht-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pht-sidebar {
        position: relative !important;
        top: auto !important;
    }
}

/* ── Mobile: ≤ 768px ── */
@media (max-width: 768px) {
    .pht-container {
        padding: 0 15px;
    }

    .pht-row {
        flex-direction: column;
        gap: 0;
        padding: 20px 0 24px;
        align-items: flex-start;
    }

    .pht-col-main,
    .pht-col-sidebar {
        flex: none;
        width: 100%;
    }

    .pht-col-sidebar {
        margin-top: 20px;
    }

    .pht-post-title {
        font-size: 26px;
    }

    .pht-post-subtitle {
        font-size: 15px;
    }

    /* Hide floating share on mobile */
    .pht-share-float {
        display: none;
    }

    .pht-content-area {
        display: block;
    }

    .pht-author-inner {
        flex-direction: column;
    }

    .pht-author-ava-wrap {
        flex: none;
    }

    .pht-post-nav {
        flex-direction: column;
        gap: 14px;
    }

    .pht-nav-next {
        text-align: left;
    }

    .pht-nav-next .pht-nav-link {
        flex-direction: row;
    }

    .pht-share-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pht-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .pht-related-wrap {
        padding: 24px 0;
    }

    .pht-related-head {
        font-size: 20px;
    }

    .pht-cat-cards {
        grid-template-columns: 1fr 1fr 1fr;
    }

}

/* ── Small mobile: ≤ 480px ── */
@media (max-width: 480px) {
    .pht-post-title {
        font-size: 22px;
    }

    .pht-related-grid {
        grid-template-columns: 1fr;
    }

    .pht-cat-cards {
        grid-template-columns: 1fr 1fr;
    }

    .pht-post-nav {
        border: none;
        padding: 16px 0;
    }

    .pht-feat-img img,
    .pht-thumb {
        aspect-ratio: 4 / 3;
    }

    .pht-author-box {
        padding: 20px;
    }

    .pht-content table {
        min-width: 480px;
    }
}
