/* ============================================================
   RAS Real Estate — Insight Detail (Article) Page
   Design system: Cormorant Garamond + DM Sans
   Brand colour: #2C6E4E
   ============================================================ */


/* ══════════════════════════════════════════════════
   1. ARTICLE HERO
══════════════════════════════════════════════════ */
.ib-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    color: var(--white);
}

.ib-hero__img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transform: scale(1.06);
    transition: transform 7s ease;
}
.ib-hero__img.loaded { transform: scale(1); }

.ib-hero__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8,8,8,0.92) 0%,
        rgba(8,8,8,0.55) 45%,
        rgba(8,8,8,0.20) 100%
    );
}

.ib-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    padding: 100px 5% 64px;
    width: 100%;
}

.ib-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.ib-hero__breadcrumb a {
    color: rgba(255,255,255,0.45);
    transition: color .2s;
}
.ib-hero__breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.ib-hero__breadcrumb-sep { color: rgba(255,255,255,0.25); }

.ib-hero__date {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--green);
    display: block;
    margin-bottom: 16px;
}

.ib-hero__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(30px, 4.5vw, 56px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--white);
    margin-bottom: 22px;
    max-width: 800px;
}

.ib-hero__desc {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255,255,255,0.65);
    max-width: 640px;
}


/* ══════════════════════════════════════════════════
   2. ARTICLE BODY
══════════════════════════════════════════════════ */
.ib-body {
    background: var(--white);
    padding: 80px 0 100px;
}

.ib-body__inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 5%;
}


/* ── CKEditor Content Typography ───────────────── */
.ib-content { color: #1a1a1a; }

.ib-content > * + * { margin-top: 1.4em; }

.ib-content h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--black);
    margin-top: 2.2em;
    margin-bottom: 0.5em;
    letter-spacing: -0.01em;
}

.ib-content h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 600;
    line-height: 1.25;
    color: var(--black);
    margin-top: 1.8em;
    margin-bottom: 0.4em;
}

.ib-content h4 {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--black);
    margin-top: 1.6em;
    margin-bottom: 0.4em;
}

.ib-content p {
    font-size: 17px;
    line-height: 1.88;
    color: #2e2e2e;
}

.ib-content strong { font-weight: 500; color: var(--black); }
.ib-content em { font-style: italic; }

.ib-content a {
    color: var(--green);
    border-bottom: 1px solid rgba(44,110,78,0.3);
    padding-bottom: 1px;
    transition: border-color .2s, color .2s;
}
.ib-content a:hover {
    color: #22573D;
    border-bottom-color: #22573D;
}

.ib-content ul,
.ib-content ol {
    padding-left: 1.5em;
    font-size: 17px;
    line-height: 1.88;
    color: #2e2e2e;
}
.ib-content ul { list-style: none; padding-left: 0; }
.ib-content ul li {
    position: relative;
    padding-left: 1.4em;
}
.ib-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}
.ib-content ol { list-style: decimal; }
.ib-content li + li { margin-top: 0.5em; }

.ib-content blockquote {
    border-left: 3px solid var(--green);
    margin: 2em 0;
    padding: 20px 28px;
    background: var(--cream);
    border-radius: 0 8px 8px 0;
}
.ib-content blockquote p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 21px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: var(--black);
    margin: 0;
}

.ib-content img {
    width: 100%;
    border-radius: 10px;
    margin: 2em 0;
    object-fit: cover;
}

.ib-content figure { margin: 2em 0; }
.ib-content figcaption {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-align: center;
    margin-top: 10px;
}

.ib-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin: 2em 0;
}
.ib-content th {
    background: var(--black);
    color: var(--white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.ib-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: #2e2e2e;
}
.ib-content tr:last-child td { border-bottom: none; }

.ib-content pre {
    background: #0f0f0f;
    border-radius: 8px;
    padding: 20px 24px;
    overflow-x: auto;
    margin: 2em 0;
}
.ib-content code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e5e5e5;
    background: rgba(0,0,0,0.07);
    padding: 2px 6px;
    border-radius: 4px;
}
.ib-content pre code {
    background: none;
    padding: 0;
    color: #e5e5e5;
}

/* ── Share row ──────────────────────────────────── */
.ib-share {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.ib-share__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    flex-shrink: 0;
}

.ib-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1.5px solid var(--border);
    color: var(--black);
    background: transparent;
    cursor: pointer;
    transition: all .2s;
}
.ib-share__btn:hover {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
}
.ib-share__btn--wa:hover {
    border-color: #25D366;
    background: #25D366;
    color: var(--white);
}
.ib-share__btn svg { width: 14px; height: 14px; flex-shrink: 0; }


/* ══════════════════════════════════════════════════
   3. INVESTMENT CTA
══════════════════════════════════════════════════ */
.ib-cta {
    background: var(--black);
    padding: 90px 5%;
    text-align: center;
}

.ib-cta__label {
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--green);
    display: block;
    margin-bottom: 20px;
}

.ib-cta__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(28px, 3.6vw, 46px);
    font-weight: 500;
    color: var(--white);
    line-height: 1.12;
    margin-bottom: 14px;
}
.ib-cta__title em {
    font-style: italic;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
}

.ib-cta__sub {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    max-width: 440px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.ib-cta__btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ══════════════════════════════════════════════════
   4. RELATED INSIGHTS
══════════════════════════════════════════════════ */
.ib-related {
    padding: 90px 0 110px;
    background: var(--cream);
}

.ib-related__head {
    margin-bottom: 48px;
}

.ib-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ib-related-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--white);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.ib-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,.08);
    border-color: transparent;
}

.ib-related-card__img {
    overflow: hidden;
    flex-shrink: 0;
}
.ib-related-card__img img {
    width: 100%; height: 190px;
    object-fit: cover;
    transition: transform .5s;
    display: block;
}
.ib-related-card:hover .ib-related-card__img img { transform: scale(1.04); }

.ib-related-card__body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ib-related-card__date {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 8px;
    display: block;
}

.ib-related-card__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--black);
    margin-bottom: 10px;
    flex: 1;
}

.ib-related-card__read {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--black);
    border-bottom: 1px solid rgba(0,0,0,.2);
    padding-bottom: 2px;
    display: inline-block;
    transition: opacity .2s;
    margin-top: 12px;
}
.ib-related-card:hover .ib-related-card__read { opacity: .45; }


/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .ib-related__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .ib-hero__inner { padding: 80px 5% 48px; }
    .ib-hero__title { font-size: clamp(26px, 9vw, 38px); }
    .ib-body { padding: 52px 0 72px; }
    .ib-content p,
    .ib-content ul,
    .ib-content ol { font-size: 16px; }
    .ib-content h2 { font-size: clamp(22px, 7vw, 30px); }
    .ib-share { flex-wrap: wrap; gap: 10px; }
    .ib-related__grid { grid-template-columns: 1fr; }
    .ib-cta { padding: 70px 5%; }
}
