/**
 * Judod Real Estate — Blog Encyclopedia & Single Post Stylesheet
 * Ultra-Luxury Styling matching Home Page * Makan Real Estate Blog Styles
 * Deep Navy #0F2742, Calm Gold #C9A45C, Cairo typography
 */

/* ══════════════════════════════════════════════════
   1. BLOG ARCHIVE HERO & HEADER
   ══════════════════════════════════════════════════ */
.judod-blog-hero {
    background: radial-gradient(circle at 50% 30%, #153354 0%, #0F2742 65%, #0A1B2E 100%);
    color: #ffffff;
    padding: 65px 0 50px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.judod-blog-hero__bg {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.judod-blog-hero__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.judod-blog-hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.judod-blog-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.35);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #ffffff;
    backdrop-filter: blur(10px);
    margin-bottom: 16px;
}

.judod-blog-hero__title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.25;
}

.judod-blog-hero__title-gold {
    background: linear-gradient(135deg, #ffffff 30%, #e6ca85 70%, #c5a059 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.judod-blog-hero__desc {
    font-size: 0.92rem;
    color: var(--brand-gold-light);
    line-height: 1.7;
    margin: 0 auto 24px;
    font-weight: 500;
}

.judod-blog-hero__search-wrap {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.judod-blog-hero__search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 100px;
    padding: 5px 6px 5px 18px;
    transition: all 0.25s ease;
}

.judod-blog-hero__search-form:focus-within {
    background: #ffffff;
    border-color: var(--brand-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.judod-blog-hero__search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
}

.judod-blog-hero__search-form:focus-within .judod-blog-hero__search-input {
    color: var(--brand-dark);
}

.judod-blog-hero__search-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.judod-blog-hero__search-form:focus-within .judod-blog-hero__search-input::placeholder {
    color: var(--brand-slate);
}

.judod-blog-hero__search-btn {
    background: var(--brand-plum);
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.judod-blog-hero__search-btn:hover {
    background: var(--brand-plum-dark);
}

/* ══════════════════════════════════════════════════
   2. CATEGORY FILTER TABS
   ══════════════════════════════════════════════════ */
.judod-cat-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.judod-cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 100px;
    background: #ffffff;
    border: 1px solid var(--brand-plum-light);
    color: var(--brand-dark);
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(15, 39, 66, 0.03);
}

.judod-cat-tab:hover {
    border-color: var(--brand-plum);
    color: var(--brand-plum);
    transform: translateY(-1px);
}

.judod-cat-tab.is-active {
    background: var(--brand-plum) !important;
    color: #ffffff !important;
    border-color: var(--brand-plum) !important;
    box-shadow: 0 8px 20px -4px rgba(15, 39, 66, 0.35);
}

.judod-cat-tab__count {
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 100px;
}

.judod-cat-tab.is-active .judod-cat-tab__count {
    background: rgba(255, 255, 255, 0.2);
}

/* ══════════════════════════════════════════════════
   3. FEATURED HIGHLIGHT ARTICLE (HERO CARD)
   ══════════════════════════════════════════ */
.judod-blog-featured-card {
    background: #ffffff;
    border: 1px solid var(--brand-plum-light);
    border-radius: var(--brand-radius-xl);
    overflow: hidden;
    box-shadow: 0 15px 35px -10px rgba(15, 39, 66, 0.08);
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 40px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 900px) {
    .judod-blog-featured-card {
        grid-template-columns: 1.1fr 1fr;
    }
}

.judod-blog-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(15, 39, 66, 0.16);
    border-color: var(--brand-plum);
}

.judod-blog-featured-card__thumb {
    position: relative;
    min-height: 280px;
    overflow: hidden;
}

.judod-blog-featured-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.judod-blog-featured-card:hover .judod-blog-featured-card__thumb img {
    transform: scale(1.05);
}

.judod-blog-featured-card__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--brand-plum);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.judod-blog-featured-card__body {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}

.judod-blog-featured-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--brand-slate);
    margin-bottom: 12px;
}

.judod-blog-featured-card__title {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 900;
    color: var(--brand-plum-dark);
    line-height: 1.35;
    margin: 0 0 14px;
}

.judod-blog-featured-card__title a {
    color: inherit;
    text-decoration: none !important;
}

.judod-blog-featured-card__title a:hover {
    color: var(--brand-plum);
}

.judod-blog-featured-card__excerpt {
    font-size: 0.85rem;
    color: var(--brand-slate);
    line-height: 1.7;
    margin: 0 0 20px;
}

.judod-blog-featured-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-plum);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: var(--brand-radius-sm);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none !important;
    align-self: flex-start;
    transition: background 0.25s ease;
}

.judod-blog-featured-card__btn:hover {
    background: var(--brand-plum-dark);
}

/* ══════════════════════════════════════════════════
   4. 3-COLUMN BLOG CARDS GRID
   ══════════════════════════════════════════ */
.judod-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 40px;
}

@media (min-width: 640px) {
    .judod-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .judod-blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.judod-article-card {
    background: #ffffff;
    border: 1px solid var(--brand-plum-light);
    border-radius: var(--brand-radius-xl);
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(15, 39, 66, 0.05);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.judod-article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -12px rgba(15, 39, 66, 0.16);
    border-color: var(--brand-plum);
}

.judod-article-card__thumb {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.judod-article-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.judod-article-card:hover .judod-article-card__thumb img {
    transform: scale(1.06);
}

.judod-article-card__cat {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--brand-plum);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 100px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.judod-article-card__body {
    padding: 22px;
    text-align: right;
    flex: 1;
}

.judod-article-card__meta {
    font-size: 0.72rem;
    color: var(--brand-slate);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.judod-article-card__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin: 0 0 10px;
    line-height: 1.45;
}

.judod-article-card__title a {
    color: inherit;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.judod-article-card__title a:hover {
    color: var(--brand-plum);
}

.judod-article-card__excerpt {
    font-size: 0.8rem;
    color: var(--brand-slate);
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.judod-article-card__foot {
    padding: 0 22px 20px;
    text-align: right;
    border-top: 1px solid var(--brand-plum-light);
    margin-top: auto;
    padding-top: 14px;
}

.judod-article-card__link {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--brand-plum);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

.judod-article-card__link:hover {
    transform: translateX(-4px);
    color: var(--brand-plum-dark);
}

/* ══════════════════════════════════════════════════
   5. SINGLE BLOG POST LAYOUT (70/30 SPLIT & PROSE)
   ══════════════════════════════════════════════════ */
.single-post-judod {
    padding-top: 24px;
    padding-bottom: 60px;
}

.single-post-judod .judod-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: flex-start;
    width: 100%;
}

@media (min-width: 1024px) {
    .single-post-judod .judod-main-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
    }
}

.single-post-judod .judod-content-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
    width: 100%;
}

.single-post-judod .judod-sidebar-col {
    min-width: 0;
    width: 100%;
}

.single-post-judod .judod-card {
    min-width: 0;
    width: 100%;
}

/* Breadcrumbs */
.judod-breadcrumbs {
    margin-bottom: 24px;
}

.judod-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.judod-breadcrumbs li a {
    color: var(--brand-slate);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.judod-breadcrumbs li a:hover {
    color: var(--brand-plum);
}

.judod-breadcrumbs .sep {
    color: var(--brand-slate);
    opacity: 0.4;
    font-size: 0.65rem;
}

.judod-breadcrumbs .current {
    color: var(--brand-plum-dark);
}

/* Featured Image in Single Article (Responsive, Sharp 16:9, No Stretch) */
.judod-article-hero-img-wrap {
    width: 100%;
    border-radius: var(--brand-radius-xl, 20px);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 12px 32px -10px rgba(15, 39, 66, 0.1);
    background: #14050f;
    aspect-ratio: 16 / 9;
    max-height: 480px;
}

.judod-article-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Suppress redundant in-content plugin TOCs (LuckyWP, EasyTOC, etc.) in favor of Judod Luxury TOC */
.judod-prose .lwptoc,
.judod-prose .ez-toc-container,
.judod-prose #rank-math-toc,
.judod-prose .aqari-toc,
.judod-prose .table-of-contents {
    display: none !important;
}

/* Single Post TOC */
.project-toc {
    background: linear-gradient(135deg, var(--brand-plum-light) 0%, #ffffff 60%, var(--brand-gold-light) 100%);
    border: 1px solid var(--brand-plum-light);
    border-radius: var(--brand-radius-lg);
    padding: 20px 24px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px -6px rgba(15, 39, 66, 0.06);
    transition: all 0.3s ease;
}

.project-toc__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.project-toc__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--brand-plum-dark);
    margin: 0;
}

.project-toc__title i {
    color: var(--brand-plum);
    font-size: 1rem;
}

.project-toc__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #ffffff;
    border: 1px solid var(--brand-plum-light);
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--brand-plum-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-toc__toggle:hover {
    background: var(--brand-plum);
    color: #ffffff;
}

.project-toc__toggle i {
    transition: transform 0.3s ease;
}

.project-toc.is-collapsed .project-toc__toggle i {
    transform: rotate(180deg);
}

.project-toc__list-wrap {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 39, 66, 0.1);
    overflow: hidden;
}

.project-toc.is-collapsed .project-toc__list-wrap {
    display: none;
}

.project-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-toc__item {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.5;
}

.project-toc__item a {
    color: var(--brand-dark);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.project-toc__item a:hover {
    color: var(--brand-plum);
    transform: translateX(-4px);
}

.project-toc__item a::before {
    content: "◆";
    color: var(--brand-gold);
    font-size: 0.65rem;
}

.project-toc__item--h3 {
    margin-inline-start: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-toc__item--h3 a {
    color: var(--brand-slate);
}

.project-toc__item--h3 a::before {
    content: "▫";
    color: var(--brand-plum);
}

/* Editorial Typography */
.judod-prose {
    color: var(--brand-slate);
    font-size: 0.95rem;
    line-height: 1.95;
    font-weight: 500;
    text-align: justify;
}

.judod-prose .lwptoc {
    display: none !important;
}

.judod-prose p {
    margin-top: 0;
    margin-bottom: 20px;
}

.judod-prose strong {
    color: var(--brand-dark);
    font-weight: 800;
}

.judod-prose h2 {
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 900;
    color: var(--brand-plum-dark);
    margin-top: 40px;
    margin-bottom: 18px;
    padding: 10px 16px;
    background: var(--brand-plum-light);
    border-radius: var(--brand-radius-md);
    border-inline-start: 6px solid var(--brand-plum);
    display: flex;
    align-items: center;
    line-height: 1.35;
    scroll-margin-top: 110px;
}

.judod-prose h3 {
    font-size: clamp(1.02rem, 1.4vw, 1.22rem);
    font-weight: 800;
    color: var(--brand-dark);
    margin-top: 30px;
    margin-bottom: 14px;
    padding-inline-start: 12px;
    border-inline-start: 4px solid var(--brand-gold);
    line-height: 1.4;
    scroll-margin-top: 110px;
}

/* Natural Content Lists (Standard Bullet & Numbered Lists) */
.judod-prose ul:not(.lwptoc_items):not(#project-toc-list) {
    margin: 16px 0 24px;
    padding: 0;
    padding-inline-start: 26px;
    list-style: disc outside;
    display: block;
}

.judod-prose ul:not(.lwptoc_items):not(#project-toc-list) > li {
    display: list-item;
    position: static;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--brand-dark, #1D2733);
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
}

.judod-prose ul:not(.lwptoc_items):not(#project-toc-list) > li::before {
    display: none !important;
    content: none !important;
}

.judod-prose ul:not(.lwptoc_items):not(#project-toc-list) > li:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Natural Ordered Lists */
.judod-prose ol:not(.lwptoc_items):not(#project-toc-list) {
    margin: 16px 0 24px;
    padding: 0;
    padding-inline-start: 26px;
    list-style: decimal outside;
    display: block;
}

.judod-prose ol:not(.lwptoc_items):not(#project-toc-list) > li {
    display: list-item;
    position: static;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--brand-dark, #1D2733);
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
}

.judod-prose ol:not(.lwptoc_items):not(#project-toc-list) > li::before {
    display: none !important;
    content: none !important;
}

.judod-prose ol:not(.lwptoc_items):not(#project-toc-list) > li:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Nested lists */
.judod-prose ul ul,
.judod-prose ol ol,
.judod-prose ul ol,
.judod-prose ol ul {
    margin: 6px 0 8px;
    padding-inline-start: 22px;
    list-style-type: circle;
}

.judod-prose ol ol {
    list-style-type: lower-latin;
}

.judod-prose ul ul > li,
.judod-prose ol ol > li {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 6px !important;
    font-size: 0.98rem;
}

.judod-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: var(--brand-radius-md);
    overflow: hidden;
    border: 1px solid var(--brand-plum-light);
    font-size: 0.86rem;
}

.judod-prose table th {
    background: var(--brand-plum-light);
    color: var(--brand-plum-dark);
    padding: 14px 16px;
    font-weight: 800;
    text-align: right;
    border-bottom: 1px solid var(--brand-plum-light);
}

.judod-prose table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--brand-plum-light);
    color: var(--brand-dark);
    font-weight: 600;
}

.judod-prose blockquote {
    margin: 24px 0;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--brand-plum-light) 0%, #ffffff 100%);
    border-inline-start: 5px solid var(--brand-plum);
    border-radius: var(--brand-radius-md);
    font-style: italic;
    color: var(--brand-plum-dark);
    font-weight: 700;
}

.judod-prose img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--brand-radius-lg);
    box-shadow: 0 8px 24px rgba(15, 39, 66, 0.08);
    margin: 20px auto;
    display: block;
}

/* Single Post Sidebar */
.single-post-judod .judod-sidebar {
    position: sticky;
    top: 100px;
}

.single-post-judod .judod-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--brand-plum-light);
    border-radius: var(--brand-radius-xl);
    padding: 24px;
    box-shadow: 0 20px 40px -10px rgba(15, 39, 66, 0.08);
}

