/*
Theme Name: 168 Property
Theme URI: https://168property.my
Description: Custom theme for 168property.my real estate platform
Author: 168property.my
Version: 2.0.0
License: Private
Text Domain: rp168-theme
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background: #f2f3f5;
    color: #1a2332;
}

#rp168-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#rp168-main {
    flex: 1;
    width: 100%;
}

.rp168-footer {
    background: #3a4f66;
    color: #ffffff;
    padding: 34px 20px 22px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    text-align: center;
}

.rp168-footer__inner {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.rp168-footer__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.rp168-footer__logo {
    display: block;
    width: 142px;
    max-width: 62vw;
    height: auto;
    border: 0;
}

.rp168-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 24px;
}

.rp168-footer__links a {
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.18s ease;
}

.rp168-footer__links a:hover,
.rp168-footer__links a:focus {
    color: #d4af37;
}

.rp168-footer__links a:focus {
    outline: 1px solid #d4af37;
    outline-offset: 4px;
}

.rp168-footer__bottom {
    max-width: 1040px;
    margin: 20px auto 0;
    color: rgba(255,255,255,0.82);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.rp168-footer__bottom p {
    margin: 0;
}

@media (max-width: 640px) {
    .rp168-footer {
        padding: 30px 18px 20px;
    }

    .rp168-footer__inner {
        gap: 20px;
    }

    .rp168-footer__logo {
        width: 128px;
    }

    .rp168-footer__links {
        gap: 9px 16px;
    }
}

body.single-post .rp168-post {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

body.single-post .rp168-post__header,
body.single-post .rp168-post__content,
body.single-post .rp168-post__share,
body.single-post .rp168-post__author,
body.single-post .rp168-post__nav,
body.single-post .rp168-post__related {
    max-width: var(--rp168-post-content-width, 920px);
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

body.single-post .rp168-post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 14px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

body.single-post .rp168-post__meta span + span::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 14px;
    border-radius: 999px;
    background: #d4af37;
    vertical-align: middle;
}

body.single-post .rp168-post__title {
    max-width: var(--rp168-post-content-width, 920px);
    margin: 0 0 24px;
    color: #1a2332;
    font-size: var(--rp168-post-title-size, 34px);
    line-height: 1.18;
    font-weight: 700;
    text-align: left;
}

body.single-post .rp168-post__meta,
body.single-post .entry-meta,
body.single-post .post-meta,
body.single-post .posted-on,
body.single-post .byline,
body.single-post .author,
body.single-post .entry-date,
body.single-post .published,
body.single-post time,
body.single-post .cat-links,
body.single-post .tags-links,
body.single-post .entry-header:not(.rp168-post__header),
body.single-post .page-header,
body.single-post .post-title:not(.rp168-post__title),
body.single-post .single-post-title,
body.single-post .entry-title:not(.rp168-post__title) {
    display: none !important;
}

body.single-post .rp168-post__title {
    display: block !important;
}

body.single-post .rp168-post__featured,
body.single-post .post-thumbnail {
    display: block !important;
    max-width: var(--rp168-post-content-width, 920px);
    margin: 22px auto 34px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
}

body.single-post .rp168-post__featured-img,
body.single-post .rp168-post__featured img,
body.single-post .post-thumbnail img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0;
}

body.single-post .rp168-post__content,
body.single-post .entry-content {
    color: #263244;
    font-size: var(--rp168-post-font-size, 17px);
    line-height: var(--rp168-post-line-height, 1.8);
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

body.single-post .rp168-post__content > * {
    margin-top: 0;
    margin-bottom: 18px;
}

body.single-post .rp168-post__content h2,
body.single-post .rp168-post__content h3,
body.single-post .rp168-post__content h4 {
    color: #1a2332;
    line-height: 1.28;
    font-weight: 700;
}

body.single-post .rp168-post__content h2 {
    margin-top: 34px;
    margin-bottom: 12px;
    font-size: var(--rp168-post-h2-size, 26px);
}

body.single-post .rp168-post__content h3 {
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: var(--rp168-post-h3-size, 21px);
}

body.single-post .rp168-post__content h4 {
    margin-top: 24px;
    font-size: 19px;
}

body.single-post .rp168-post__content a {
    color: #2f5f8f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.single-post .rp168-post__content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

body.single-post .rp168-post__content ul,
body.single-post .rp168-post__content ol {
    padding-left: 1.35em;
}

body.single-post .rp168-post__content li {
    margin-bottom: 8px;
}

body.single-post .rp168-post__page-links,
body.single-post .rp168-post__share,
body.single-post .rp168-post__author,
body.single-post .rp168-post__nav,
body.single-post .rp168-post__related {
    margin-top: 34px;
}

body.single-post .rp168-post__share,
body.single-post .rp168-post__author,
body.single-post .rp168-post__related {
    padding: 22px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #ffffff;
}

body.single-post .rp168-post__share h2,
body.single-post .rp168-post__author h2,
body.single-post .rp168-post__related h2 {
    margin: 0 0 14px;
    color: #1a2332;
    font-size: 18px;
    line-height: 1.3;
}

body.single-post .rp168-post__share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.single-post .rp168-post__share-links a,
body.single-post .rp168-post__page-links a,
body.single-post .rp168-post__page-links span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #cfd8e5;
    border-radius: 999px;
    color: #263244;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

body.single-post .rp168-post__share-links a:hover,
body.single-post .rp168-post__share-links a:focus,
body.single-post .rp168-post__page-links a:hover,
body.single-post .rp168-post__page-links a:focus {
    border-color: #d4af37;
    color: #1a2332;
}

body.single-post .rp168-post__author {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

body.single-post .rp168-post__author-avatar img {
    display: block;
    border-radius: 50%;
}

body.single-post .rp168-post__author-body p {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

body.single-post .rp168-post__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body.single-post .rp168-post__nav-item {
    min-width: 0;
}

body.single-post .rp168-post__nav-item > span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

body.single-post .rp168-post__nav-item a {
    display: block;
    min-height: 72px;
    padding: 16px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    color: #1a2332;
    background: #ffffff;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    text-decoration: none;
}

body.single-post .rp168-post__nav-item--next {
    text-align: right;
}

body.single-post .rp168-post__nav-item a:hover,
body.single-post .rp168-post__nav-item a:focus {
    border-color: #d4af37;
}

body.single-post .rp168-post__related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.single-post .rp168-post__related-card {
    display: block;
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    color: #1a2332;
    background: #ffffff;
    text-decoration: none;
}

body.single-post .rp168-post__related-card:hover,
body.single-post .rp168-post__related-card:focus {
    border-color: #d4af37;
}

body.single-post .rp168-post__related-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    background: #eef2f7;
}

body.single-post .rp168-post__related-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.single-post .rp168-post__related-title,
body.single-post .rp168-post__related-date {
    display: block;
    padding-left: 12px;
    padding-right: 12px;
}

body.single-post .rp168-post__related-title {
    padding-top: 12px;
    color: #1a2332;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

body.single-post .rp168-post__related-date {
    padding-top: 6px;
    padding-bottom: 12px;
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 767px) {
    body.single-post .rp168-post,
    body.single-post article {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
        padding-bottom: 90px !important;
        overflow-x: hidden !important;
    }

    body.single-post .rp168-post__title {
        display: block !important;
        font-size: var(--rp168-post-title-size-mobile, 28px) !important;
        line-height: 1.25 !important;
        margin: 0 0 18px !important;
    }

    body.single-post .rp168-post__featured,
    body.single-post .post-thumbnail {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 16px auto 24px !important;
        aspect-ratio: 16 / 9 !important;
        overflow: hidden !important;
        border-radius: 12px !important;
    }

    body.single-post .rp168-post__featured-img,
    body.single-post .rp168-post__featured img,
    body.single-post .post-thumbnail img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        border-radius: 0 !important;
    }

    body.single-post .rp168-post__content,
    body.single-post .entry-content {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        font-size: min(var(--rp168-post-font-size-mobile, 16px), 15.8px) !important;
        line-height: 1.68 !important;
    }

    body.single-post .rp168-post__content p,
    body.single-post .entry-content p {
        margin-bottom: 15px !important;
    }

    body.single-post .rp168-post__content h2,
    body.single-post .entry-content h2 {
        font-size: min(var(--rp168-post-h2-size, 26px), 24px) !important;
        line-height: 1.28 !important;
        margin-top: 26px !important;
        margin-bottom: 10px !important;
    }

    body.single-post .rp168-post__content h3,
    body.single-post .entry-content h3 {
        font-size: min(var(--rp168-post-h3-size, 21px), 20px) !important;
        line-height: 1.3 !important;
        margin-top: 22px !important;
        margin-bottom: 10px !important;
    }

    body.single-post .rp168-post__share,
    body.single-post .rp168-post__author,
    body.single-post .rp168-post__related {
        padding: 18px;
    }

    body.single-post .rp168-post__author,
    body.single-post .rp168-post__nav,
    body.single-post .rp168-post__related-grid {
        grid-template-columns: 1fr;
    }

    body.single-post .rp168-post__nav-item--next {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .rp168-forum-page,
    .rp168-forum-wrap,
    .rp168-forum-main,
    .rp168-forum-content {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-bottom: 96px !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .rp168-forum-page .rp168-forum-card,
    .rp168-forum-wrap .rp168-forum-card,
    .rp168-forum-main .rp168-forum-card,
    .rp168-forum-content .rp168-forum-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 16px !important;
        border-width: 0 !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
    }
}

.rp168-newsroom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px 72px;
    background: #f4f6f8;
    color: #1a2332;
    border-radius: 18px;
}

.rp168-newsroom__banner {
    overflow: hidden;
    border-radius: 20px;
    background: #3a4f66;
    box-shadow: 0 18px 40px rgba(26,35,50,0.16);
}

.rp168-newsroom__banner-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 54px 36px;
    text-align: center;
}

.rp168-newsroom__banner h1 {
    margin: 0;
    color: #ffffff;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 800;
}

.rp168-newsroom__banner h1::after {
    content: "";
    display: block;
    width: 68px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: #d4af37;
}

.rp168-newsroom__banner p {
    max-width: 760px;
    margin: 18px auto 0;
    color: rgba(255,255,255,0.86);
    font-size: 16.5px;
    line-height: 1.65;
}

.rp168-newsroom__section {
    margin-top: 42px;
}

.rp168-newsroom__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.rp168-newsroom__section-head h2 {
    margin: 0;
    color: #1a2332;
    font-size: 25px;
    line-height: 1.25;
    font-weight: 800;
}

.rp168-newsroom__section-head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(212,175,55,0.65), rgba(212,175,55,0));
}

.rp168-newsroom__category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.rp168-newsroom__category-card {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: center;
    min-height: 104px;
    padding: 20px;
    border: 1px solid rgba(58,79,102,0.12);
    border-radius: 16px;
    background: #ffffff;
    color: #1a2332;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(26,35,50,0.07);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.rp168-newsroom__category-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #d4af37;
}

.rp168-newsroom__category-card:hover,
.rp168-newsroom__category-card:focus {
    border-color: #d4af37;
    box-shadow: 0 16px 34px rgba(26,35,50,0.12);
    transform: translateY(-2px);
}

.rp168-newsroom__category-name {
    display: block;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
}

.rp168-newsroom__category-count {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 650;
}

.rp168-newsroom__post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.rp168-newsroom__post-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 430px;
    border: 1px solid rgba(58,79,102,0.12);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(26,35,50,0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.rp168-newsroom__post-card:hover {
    border-color: rgba(212,175,55,0.58);
    box-shadow: 0 18px 38px rgba(26,35,50,0.12);
    transform: translateY(-3px);
}

.rp168-newsroom__post-image {
    display: block;
    width: 100%;
    height: 190px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef2f7;
}

.rp168-newsroom__post-image img,
.rp168-newsroom__post-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.rp168-newsroom__post-image img {
    object-fit: cover;
    transition: transform 0.22s ease;
}

.rp168-newsroom__post-card:hover .rp168-newsroom__post-image img {
    transform: scale(1.03);
}

.rp168-newsroom__post-placeholder {
    background: linear-gradient(135deg, #3a4f66, #647991);
}

.rp168-newsroom__post-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 18px 20px;
}

.rp168-newsroom__post-category {
    width: max-content;
    max-width: 100%;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(212,175,55,0.14);
    color: #3a4f66;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
}

.rp168-newsroom__post-body h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.34;
    font-weight: 800;
}

.rp168-newsroom__post-body h3 a {
    color: #1a2332;
    text-decoration: none;
}

.rp168-newsroom__post-body h3 a:hover,
.rp168-newsroom__post-body h3 a:focus {
    color: #3a4f66;
}

.rp168-newsroom__post-body p {
    margin: 10px 0 18px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.rp168-newsroom__read-more {
    width: max-content;
    margin-top: auto;
    padding: 10px 15px;
    border-radius: 999px;
    background: #3a4f66;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.rp168-newsroom__read-more:hover,
.rp168-newsroom__read-more:focus {
    background: #d4af37;
    color: #1a2332;
}

.rp168-newsroom__empty {
    margin: 0;
    padding: 22px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #ffffff;
    color: #475569;
}

@media (max-width: 960px) {
    .rp168-newsroom__category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rp168-newsroom__post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rp168-newsroom__post-image {
        height: 180px;
    }
}

@media (max-width: 680px) {
    .rp168-newsroom {
        padding: 28px 16px 48px;
        border-radius: 0;
    }

    .rp168-newsroom__banner-inner {
        padding: 36px 20px;
    }

    .rp168-newsroom__banner h1 {
        font-size: 28px;
    }

    .rp168-newsroom__banner p {
        font-size: 15px;
    }

    .rp168-newsroom__category-grid,
    .rp168-newsroom__post-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rp168-newsroom__category-card {
        min-height: 88px;
    }

    .rp168-newsroom__post-card {
        min-height: 0;
    }

    .rp168-newsroom__post-image {
        height: 178px;
    }

.rp168-newsroom__post-body {
        padding: 16px;
    }
}

.rp168-category-archive {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px 72px;
    color: #1a2332;
}

.rp168-category-archive__header {
    margin-bottom: 34px;
    padding: 42px 32px;
    border-radius: 20px;
    background: #3a4f66;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 18px 40px rgba(26,35,50,0.14);
}

.rp168-category-archive__eyebrow {
    margin: 0 0 10px;
    color: #d4af37;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.rp168-category-archive__header h1 {
    margin: 0;
    color: #ffffff;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 800;
}

.rp168-category-archive__description {
    max-width: 760px;
    margin: 14px auto 0;
    color: rgba(255,255,255,0.86);
    font-size: 15.5px;
    line-height: 1.65;
}

.rp168-category-archive__description p {
    margin: 0;
}

.rp168-category-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.rp168-category-archive__card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 430px;
    border: 1px solid rgba(58,79,102,0.12);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(26,35,50,0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.rp168-category-archive__card:hover {
    border-color: rgba(212,175,55,0.58);
    box-shadow: 0 18px 38px rgba(26,35,50,0.12);
    transform: translateY(-3px);
}

.rp168-category-archive__image {
    display: block;
    width: 100%;
    height: 190px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef2f7;
}

.rp168-category-archive__image img,
.rp168-category-archive__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.rp168-category-archive__image img {
    object-fit: cover;
    transition: transform 0.22s ease;
}

.rp168-category-archive__card:hover .rp168-category-archive__image img {
    transform: scale(1.03);
}

.rp168-category-archive__placeholder {
    background: linear-gradient(135deg, #3a4f66, #647991);
}

.rp168-category-archive__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 18px 20px;
}

.rp168-category-archive__label {
    width: max-content;
    max-width: 100%;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(212,175,55,0.14);
    color: #3a4f66;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
}

.rp168-category-archive__body h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.34;
    font-weight: 800;
}

.rp168-category-archive__body h2 a {
    color: #1a2332;
    text-decoration: none;
}

.rp168-category-archive__body h2 a:hover,
.rp168-category-archive__body h2 a:focus {
    color: #3a4f66;
}

.rp168-category-archive__body p {
    margin: 10px 0 18px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.rp168-category-archive__read-more {
    width: max-content;
    margin-top: auto;
    padding: 10px 15px;
    border-radius: 999px;
    background: #3a4f66;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.rp168-category-archive__read-more:hover,
.rp168-category-archive__read-more:focus {
    background: #d4af37;
    color: #1a2332;
}

.rp168-category-archive__pagination {
    margin-top: 34px;
}

.rp168-category-archive__pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.rp168-category-archive__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #ffffff;
    color: #1a2332;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.rp168-category-archive__pagination .page-numbers.current,
.rp168-category-archive__pagination .page-numbers:hover,
.rp168-category-archive__pagination .page-numbers:focus {
    border-color: #d4af37;
    background: #3a4f66;
    color: #ffffff;
}

.rp168-category-archive__empty {
    padding: 22px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #ffffff;
    color: #475569;
}

.rp168-category-archive__empty p {
    margin: 0;
}

@media (max-width: 960px) {
    .rp168-category-archive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rp168-category-archive__image {
        height: 180px;
    }
}

@media (max-width: 680px) {
    .rp168-category-archive {
        padding: 28px 16px 48px;
    }

    .rp168-category-archive__header {
        padding: 34px 20px;
        border-radius: 16px;
    }

    .rp168-category-archive__header h1 {
        font-size: 28px;
    }

    .rp168-category-archive__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rp168-category-archive__card {
        min-height: 0;
    }

    .rp168-category-archive__image {
        height: 178px;
    }

    .rp168-category-archive__body {
        padding: 16px;
    }
}

body.single-post,
body.category,
.rp168-newsroom,
.rp168-newsroom-premium,
.rp168-category-archive,
.rp168-generic-index,
.rp168-generic-archive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

body.single-post *,
.rp168-newsroom *,
.rp168-newsroom-premium *,
.rp168-category-archive *,
.rp168-generic-index *,
.rp168-generic-archive * {
    box-sizing: border-box !important;
}

body.single-post img,
.rp168-newsroom img,
.rp168-newsroom-premium img,
.rp168-category-archive img,
.rp168-generic-index img,
.rp168-generic-archive img {
    max-width: 100% !important;
}

.rp168-newsroom,
.rp168-newsroom-premium,
.rp168-category-archive,
.rp168-generic-index,
.rp168-generic-archive {
    margin-left: auto !important;
    margin-right: auto !important;
}

.rp168-newsroom__banner,
.rp168-newsroom__section,
.rp168-newsroom__category-grid,
.rp168-newsroom__post-grid,
.rp168-newsroom-premium__inner,
.rp168-newsroom-premium__post-grid,
.rp168-newsroom-premium__category-grid,
.rp168-category-archive__header,
.rp168-category-archive__grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.rp168-newsroom__category-grid,
.rp168-newsroom__post-grid,
.rp168-newsroom-premium__post-grid,
.rp168-newsroom-premium__category-grid,
.rp168-category-archive__grid {
    overflow: hidden !important;
}

.rp168-newsroom__category-card,
.rp168-newsroom__post-card,
.rp168-newsroom__post-body,
.rp168-newsroom-premium__post-card,
.rp168-newsroom-premium__category-card,
.rp168-category-archive__card,
.rp168-category-archive__body {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.rp168-newsroom__category-name,
.rp168-newsroom__category-count,
.rp168-newsroom__post-category,
.rp168-newsroom__post-body h3,
.rp168-newsroom__post-body h3 a,
.rp168-newsroom__post-body p,
.rp168-newsroom__read-more,
.rp168-newsroom-premium__post-title,
.rp168-newsroom-premium__post-excerpt,
.rp168-newsroom-premium__category-name,
.rp168-category-archive__header h1,
.rp168-category-archive__description,
.rp168-category-archive__label,
.rp168-category-archive__body h2,
.rp168-category-archive__body h2 a,
.rp168-category-archive__body p,
.rp168-category-archive__read-more {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.rp168-newsroom__post-category,
.rp168-newsroom__read-more,
.rp168-category-archive__label,
.rp168-category-archive__read-more {
    white-space: normal !important;
}

@media (max-width: 768px) {
    .rp168-newsroom,
    .rp168-newsroom-premium,
    .rp168-category-archive,
    .rp168-generic-index,
    .rp168-generic-archive {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .rp168-newsroom__category-grid,
    .rp168-newsroom__post-grid,
    .rp168-newsroom-premium__post-grid,
    .rp168-newsroom-premium__category-grid,
    .rp168-category-archive__grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .rp168-newsroom__banner-inner,
    .rp168-newsroom__post-body,
    .rp168-category-archive__header,
    .rp168-category-archive__body {
        max-width: 100% !important;
    }
}


/* =========================================================
   168Property Final Mobile Fix
   Desktop remains unchanged. Mobile only.
   Scope: normal WordPress blog/newsroom/category pages.
   ========================================================= */
@media (max-width: 767px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body.single-post,
    body.category,
    .rp168-newsroom,
    .rp168-newsroom-premium,
    .rp168-category-archive,
    .rp168-generic-index,
    .rp168-generic-archive {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body.single-post *,
    body.category *,
    .rp168-newsroom *,
    .rp168-newsroom-premium *,
    .rp168-category-archive *,
    .rp168-generic-index *,
    .rp168-generic-archive * {
        box-sizing: border-box !important;
        max-width: 100%;
    }

    body.single-post img,
    body.category img,
    .rp168-newsroom img,
    .rp168-newsroom-premium img,
    .rp168-category-archive img,
    .rp168-generic-index img,
    .rp168-generic-archive img {
        max-width: 100% !important;
    }

    /* Single post mobile */
    body.single-post .rp168-post {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 24px 16px 88px !important;
        overflow-x: hidden !important;
    }

    body.single-post .rp168-post__header,
    body.single-post .rp168-post__content,
    body.single-post .entry-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden !important;
    }

    body.single-post .rp168-post__title {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 16px !important;
        color: #1a2332 !important;
        font-size: 26px !important;
        line-height: 1.22 !important;
        font-weight: 800 !important;
        letter-spacing: -0.02em !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    body.single-post .rp168-post__featured,
    body.single-post .post-thumbnail {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 16px auto 24px !important;
        aspect-ratio: 16 / 9 !important;
        overflow: hidden !important;
        border-radius: 12px !important;
        background: #e7edf4 !important;
    }

    body.single-post .rp168-post__featured-img,
    body.single-post .rp168-post__featured img,
    body.single-post .post-thumbnail img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 0 !important;
    }

    body.single-post .rp168-post__content,
    body.single-post .entry-content {
        color: #263244 !important;
        font-size: 15.6px !important;
        line-height: 1.68 !important;
        text-align: left !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    body.single-post .rp168-post__content p,
    body.single-post .entry-content p {
        margin: 0 0 15px !important;
    }

    body.single-post .rp168-post__content h1,
    body.single-post .entry-content h1 {
        font-size: 25px !important;
        line-height: 1.25 !important;
        margin: 24px 0 10px !important;
    }

    body.single-post .rp168-post__content h2,
    body.single-post .entry-content h2 {
        font-size: 22px !important;
        line-height: 1.28 !important;
        margin: 24px 0 10px !important;
    }

    body.single-post .rp168-post__content h3,
    body.single-post .entry-content h3 {
        font-size: 19px !important;
        line-height: 1.3 !important;
        margin: 20px 0 8px !important;
    }

    body.single-post .rp168-post__meta,
    body.single-post .entry-meta,
    body.single-post .post-meta,
    body.single-post .posted-on,
    body.single-post .byline,
    body.single-post .author,
    body.single-post .entry-date,
    body.single-post .published,
    body.single-post time,
    body.single-post .cat-links,
    body.single-post .tags-links,
    body.single-post .entry-header:not(.rp168-post__header),
    body.single-post .page-header,
    body.single-post .post-title:not(.rp168-post__title),
    body.single-post .single-post-title,
    body.single-post .entry-title:not(.rp168-post__title) {
        display: none !important;
    }

    /* Newsroom mobile compact cards */
    .rp168-newsroom,
    .rp168-newsroom-premium,
    .rp168-category-archive,
    .rp168-generic-index,
    .rp168-generic-archive {
        margin: 0 auto !important;
        padding: 24px 14px 48px !important;
        border-radius: 0 !important;
    }

    .rp168-newsroom__banner,
    .rp168-newsroom-premium__hero,
    .rp168-category-archive__header {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 18px !important;
        overflow: hidden !important;
    }

    .rp168-newsroom__banner-inner,
    .rp168-newsroom-premium__hero,
    .rp168-category-archive__header {
        padding: 30px 18px !important;
    }

    .rp168-newsroom__banner h1,
    .rp168-newsroom-premium__hero h1,
    .rp168-category-archive__header h1 {
        font-size: 27px !important;
        line-height: 1.18 !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .rp168-newsroom__banner p,
    .rp168-newsroom-premium__hero p,
    .rp168-category-archive__description {
        font-size: 14.2px !important;
        line-height: 1.65 !important;
    }

    .rp168-newsroom__category-grid,
    .rp168-newsroom__post-grid,
    .rp168-newsroom-premium__category-grid,
    .rp168-newsroom-premium__post-grid,
    .rp168-category-archive__grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .rp168-newsroom__category-card,
    .rp168-newsroom-premium__category-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 76px !important;
        padding: 16px !important;
        overflow: hidden !important;
    }

    .rp168-newsroom__post-card,
    .rp168-newsroom-premium__post-card,
    .rp168-category-archive__card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 112px minmax(0, 1fr) !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }

    .rp168-newsroom__post-image,
    .rp168-newsroom-premium__post-image,
    .rp168-category-archive__image {
        width: 112px !important;
        height: 124px !important;
        min-height: 124px !important;
        aspect-ratio: auto !important;
        overflow: hidden !important;
    }

    .rp168-newsroom__post-image img,
    .rp168-newsroom-premium__post-image img,
    .rp168-category-archive__image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .rp168-newsroom__post-body,
    .rp168-newsroom-premium__post-body,
    .rp168-category-archive__body {
        min-width: 0 !important;
        padding: 12px 13px !important;
        overflow: hidden !important;
    }

    .rp168-newsroom__post-body h3,
    .rp168-newsroom__post-title,
    .rp168-newsroom-premium__post-title,
    .rp168-category-archive__body h2 {
        font-size: 15.5px !important;
        line-height: 1.28 !important;
        margin: 0 0 7px !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .rp168-newsroom__post-body p,
    .rp168-newsroom__post-excerpt,
    .rp168-newsroom-premium__post-excerpt,
    .rp168-category-archive__body p {
        font-size: 12.8px !important;
        line-height: 1.5 !important;
        margin: 0 0 10px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .rp168-newsroom__post-category,
    .rp168-newsroom-premium__post-category,
    .rp168-category-archive__label {
        font-size: 9.8px !important;
        line-height: 1.2 !important;
        margin-bottom: 7px !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .rp168-newsroom__read-more,
    .rp168-newsroom-premium__read,
    .rp168-category-archive__read-more {
        padding: 7px 11px !important;
        font-size: 11px !important;
        white-space: normal !important;
    }

    .rp168-category-archive__pagination .nav-links {
        gap: 7px !important;
    }

    .rp168-category-archive__pagination .page-numbers {
        min-width: 34px !important;
        min-height: 34px !important;
        padding: 7px 10px !important;
        font-size: 12px !important;
    }
}
