/* ══════════════════════════════════════════════════════════════
   app.css — RegTech Focus Component Styles
   Bootstrap 5 + Custom Components
   ══════════════════════════════════════════════════════════════ */

@import "./theme.css";


/* ── UTILITY HELPERS ──────────────────────────────────────── */

.fw-600  { font-weight: 600 !important; }
.fw-700  { font-weight: 700 !important; }
.fw-800  { font-weight: 800 !important; }

.font-monospace { font-family: var(--rf-font-mono) !important; }

.letter-spacing-wide { letter-spacing: 0.06em; }

.rf-gradient-text {
    background: linear-gradient(135deg, var(--rf-accent) 0%, #f97316 50%, var(--rf-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rf-accent-dot {
    background: linear-gradient(135deg, var(--rf-accent), #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4em;
    line-height: 0;
}

.py-6  { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }
.py-lg-6 { }
@media (min-width: 992px) { .py-lg-6 { padding-top: 5.5rem !important; padding-bottom: 5.5rem !important; } }


/* ── PILLS / BADGES ───────────────────────────────────────── */

.rf-pill-accent {
    background: var(--rf-accent-subtle) !important;
    color: var(--rf-accent) !important;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    border: 1px solid rgba(245, 158, 11, .15);
}

.rf-pill-muted {
    background: var(--rf-surface-2) !important;
    color: var(--rf-text-secondary) !important;
    font-weight: 600;
    font-size: 0.75rem;
    border: 1px solid var(--rf-border);
}

.rf-badge-cat {
    background: var(--rf-accent-subtle) !important;
    color: var(--rf-accent) !important;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
}

[data-bs-theme="light"] .rf-badge-cat {
    background: rgba(217, 119, 6, .10) !important;
    color: #92400e !important;
}


/* ══════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════ */

.rf-navbar {
    background: rgba(13, 17, 23, .85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--rf-border);
    transition: background var(--rf-trans);
}

[data-bs-theme="light"] .rf-navbar {
    background: rgba(255, 255, 255, .88) !important;
}

.rf-navbar .navbar-brand {
    font-family: var(--rf-font-heading);
    font-size: 1.4rem;
    letter-spacing: -0.03em;
}

.rf-navbar .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem !important;
    border-radius: var(--rf-radius-sm);
    transition: all var(--rf-trans);
}

.rf-navbar .nav-link:hover,
.rf-navbar .nav-link.active {
    color: var(--rf-accent) !important;
    background: var(--rf-accent-subtle);
}

.rf-nav-icon {
    font-size: 1rem;
    padding: 0.4rem 0.6rem !important;
    border-radius: var(--rf-radius-sm);
    color: var(--rf-text-secondary) !important;
    transition: all var(--rf-trans);
    border: none !important;
    box-shadow: none !important;
}

.rf-nav-icon:hover {
    color: var(--rf-accent) !important;
    background: var(--rf-accent-subtle);
}

/* Offcanvas mobile menu */
.rf-offcanvas {
    background: var(--rf-bg) !important;
    border-left: 1px solid var(--rf-border) !important;
}

@media (min-width: 992px) {
    .rf-offcanvas {
        background: none !important;
        border: none !important;
    }
}


/* ══════════════════════════════════════════════════════════════
   1. HERO SECTION
   ══════════════════════════════════════════════════════════════ */

.rf-hero {
    background: var(--rf-bg);
    min-height: 420px;
    display: flex;
    align-items: center;
}

/* Subtle grid pattern */
.rf-hero__pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 158, 11, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, .03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 100%);
}

/* Radial glow behind hero */
.rf-hero__glow {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 500px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(245, 158, 11, .06) 0%, transparent 70%);
    pointer-events: none;
}

.rf-hero__title {
    font-family: var(--rf-font-heading);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.rf-hero__subtitle {
    line-height: 1.7;
}

/* Stats card in hero */
.rf-hero__stats-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 2.5rem;
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    box-shadow: var(--rf-shadow-md);
}

.rf-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.rf-hero__stat-value {
    font-family: var(--rf-font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--rf-accent);
    line-height: 1;
}

.rf-hero__stat-label {
    font-size: 0.75rem;
    color: var(--rf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}


/* ══════════════════════════════════════════════════════════════
   2. TICKER BAR
   ══════════════════════════════════════════════════════════════ */

.rf-ticker {
    background: var(--rf-surface);
    border-top: 1px solid var(--rf-border);
    border-bottom: 1px solid var(--rf-border);
    padding: 0.75rem 0;
    overflow: hidden;
    position: relative;
    /* CSS mask-image fade on both sides */
    mask-image: linear-gradient(to right,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%);
    -webkit-mask-image: linear-gradient(to right,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%);
}

.rf-ticker__track {
    display: flex;
    gap: 2.5rem;
    animation: rf-ticker-scroll 35s linear infinite;
    width: max-content;
}

.rf-ticker__track:hover {
    animation-play-state: paused;
}

@keyframes rf-ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.rf-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    padding: 0.25rem 0;
    color: var(--rf-text) !important;
    transition: color var(--rf-trans);
}

.rf-ticker__item:hover {
    color: var(--rf-accent) !important;
}

.rf-ticker__symbol {
    font-family: var(--rf-font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--rf-accent);
}

.rf-ticker__name {
    font-size: 0.8rem;
}

.rf-ticker__badge {
    font-size: 0.6rem;
    padding: 0.15em 0.5em;
    background: var(--rf-surface-2) !important;
    color: var(--rf-text-muted) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--rf-radius-sm);
}


/* ══════════════════════════════════════════════════════════════
   3. POST CARDS
   ══════════════════════════════════════════════════════════════ */

.rf-post-card {
    background: var(--rf-surface) !important;
    border-radius: var(--rf-radius) !important;
    overflow: hidden;
    transition: transform var(--rf-duration-slow) var(--rf-ease),
                box-shadow var(--rf-duration-slow) var(--rf-ease);
}

.rf-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rf-shadow-lg);
}

/* Thumbnail area */
.rf-post-card__thumb {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--rf-surface-2);
}

.rf-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--rf-ease);
}

.rf-post-card:hover .rf-post-card__thumb img {
    transform: scale(1.06);
}

/* Gradient placeholder when no image */
.rf-post-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.rf-post-card__placeholder i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, .5);
}

/* Rank badge */
.rf-post-card__rank {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 28px;
    height: 28px;
    border-radius: var(--rf-radius-sm);
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(8px);
    color: var(--rf-accent);
    font-family: var(--rf-font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Title */
.rf-post-card__title {
    font-family: var(--rf-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.rf-post-card__title a {
    color: var(--rf-text);
}

.rf-post-card:hover .rf-post-card__title a {
    color: var(--rf-accent);
}

/* Excerpt — max 2 lines then ellipsis */
.rf-post-card__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* Read more link */
.rf-post-card__readmore {
    color: var(--rf-accent);
    transition: gap var(--rf-trans);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.rf-post-card:hover .rf-post-card__readmore {
    gap: 0.5rem;
}


/* ══════════════════════════════════════════════════════════════
   4. CATEGORY CARDS
   ══════════════════════════════════════════════════════════════ */

.rf-categories-section {
    background: var(--rf-bg-raised);
}

.rf-cat-card {
    background: var(--rf-surface) !important;
    border-radius: var(--rf-radius) !important;
    transition: transform var(--rf-trans), box-shadow var(--rf-trans);
}

.rf-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rf-shadow-md);
}

.rf-cat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--rf-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.rf-cat-card__icon i {
    font-size: 1.3rem;
    color: #fff;
}

.rf-cat-card h3 {
    color: var(--rf-text);
}

.rf-cat-card:hover h3 {
    color: var(--rf-accent);
}

.rf-cat-card p {
    line-height: 1.5;
}


/* ══════════════════════════════════════════════════════════════
   SEARCH OVERLAY
   ══════════════════════════════════════════════════════════════ */

.rf-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 18vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.rf-search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.rf-search-overlay__inner {
    width: 100%;
    max-width: 580px;
    padding: 0 1.25rem;
    transform: translateY(-16px);
    transition: transform 0.25s ease;
}

.rf-search-overlay.active .rf-search-overlay__inner {
    transform: translateY(0);
}

.rf-search-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    padding: 0.85rem 1.25rem;
    box-shadow: var(--rf-shadow-xl);
}

.rf-search-form__icon {
    font-size: 1.1rem;
    color: var(--rf-text-muted);
    flex-shrink: 0;
}

.rf-search-form__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 1.1rem;
    color: var(--rf-text);
    font-family: var(--rf-font-heading);
}

.rf-search-form__input::placeholder {
    color: var(--rf-text-muted);
}

.rf-search-form__kbd {
    background: var(--rf-surface-2);
    border: 1px solid var(--rf-border);
    border-radius: 4px;
    padding: 0.1em 0.5em;
    font-size: 0.7rem;
    color: var(--rf-text-muted);
    font-family: var(--rf-font-mono);
}


/* ══════════════════════════════════════════════════════════════
   SCROLL TO TOP
   ══════════════════════════════════════════════════════════════ */

.rf-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--rf-border);
    background: var(--rf-surface);
    color: var(--rf-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all var(--rf-trans-slow);
    box-shadow: var(--rf-shadow-sm);
    font-size: 1rem;
}

.rf-scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.rf-scroll-top:hover {
    border-color: var(--rf-accent);
    background: var(--rf-accent-subtle);
    color: var(--rf-accent);
}


/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */

.rf-footer {
    background: var(--rf-surface);
    border-top: 1px solid var(--rf-border);
}

.rf-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rf-footer-links a {
    color: var(--rf-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--rf-trans);
    display: inline-flex;
    align-items: center;
}

.rf-footer-links a:hover {
    color: var(--rf-accent);
}

.rf-social-icons a {
    font-size: 1.1rem;
    transition: color var(--rf-trans);
}

.rf-social-icons a:hover {
    color: var(--rf-accent) !important;
}

.rf-tagline {
    font-style: italic;
    opacity: 0.7;
}


/* ══════════════════════════════════════════════════════════════
   READING PROGRESS BAR
   ══════════════════════════════════════════════════════════════ */

.rf-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--rf-accent), #f97316);
    z-index: 9999;
    transition: width 0.1s linear;
}


/* ══════════════════════════════════════════════════════════════
   POST DETAIL — ARTICLE
   ══════════════════════════════════════════════════════════════ */

.rf-article__title {
    font-family: var(--rf-font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .rf-article__title { font-size: 2.6rem; }
}

/* Meta row */
.rf-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rf-border);
}

.rf-article__author {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.rf-article__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rf-accent), #f97316);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.rf-article__meta-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--rf-text-muted);
    flex-shrink: 0;
}

/* Featured image */
.rf-article__cover {
    margin: 1.5rem 0;
}

.rf-article__cover-img {
    width: 100%;
    border-radius: var(--rf-radius);
    object-fit: cover;
    max-height: 480px;
}

/* Excerpt blockquote */
.rf-article__excerpt {
    font-style: italic;
    color: var(--rf-text-secondary);
    border-left: 3px solid var(--rf-accent);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--rf-surface);
    border-radius: 0 var(--rf-radius-sm) var(--rf-radius-sm) 0;
    line-height: 1.7;
}

/* Tags */
.rf-article__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--rf-border);
    margin-top: 2rem;
}


/* ══════════════════════════════════════════════════════════════
   POST DETAIL — SOCIAL SHARING
   ══════════════════════════════════════════════════════════════ */

.rf-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--rf-border);
    border-bottom: 1px solid var(--rf-border);
    margin: 1rem 0 1.5rem;
}

.rf-share__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rf-text-secondary);
    white-space: nowrap;
}

.rf-share__buttons {
    display: flex;
    gap: 0.5rem;
}

.rf-share__btn {
    width: 38px;
    height: 38px;
    border-radius: var(--rf-radius-sm);
    border: 1px solid var(--rf-border);
    background: var(--rf-surface);
    color: var(--rf-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--rf-trans);
    text-decoration: none;
}

.rf-share__btn:hover {
    border-color: var(--rf-accent);
    color: var(--rf-accent);
    background: var(--rf-accent-subtle);
}

.rf-share__btn--copy.copied {
    border-color: #22c55e;
    color: #22c55e;
    background: rgba(34, 197, 94, .1);
}


/* ══════════════════════════════════════════════════════════════
   POST DETAIL — PREV / NEXT NAV
   ══════════════════════════════════════════════════════════════ */

.rf-post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.rf-post-nav__link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rf-text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
    transition: all var(--rf-trans);
}

.rf-post-nav__link:hover {
    color: var(--rf-accent);
    border-color: var(--rf-accent);
    background: var(--rf-accent-subtle);
}


/* ══════════════════════════════════════════════════════════════
   POST DETAIL — COMMENTS
   ══════════════════════════════════════════════════════════════ */

.rf-comments {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rf-border);
}

.rf-comments__title {
    font-family: var(--rf-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.rf-comments__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.rf-comment {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
}

.rf-comment__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--rf-surface-2);
    color: var(--rf-accent);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.rf-comment__body {
    flex: 1;
    min-width: 0;
}

.rf-comment__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.rf-comment__text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--rf-text-secondary);
}

/* Comment form */
.rf-comment-form {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
}

.rf-comment-form .form-control {
    border-color: var(--rf-border);
    color: var(--rf-text);
}

.rf-comment-form .form-control:focus {
    border-color: var(--rf-accent);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, .15);
}


/* ══════════════════════════════════════════════════════════════
   POST DETAIL — SIDEBAR
   ══════════════════════════════════════════════════════════════ */

.rf-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rf-sidebar__card {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    padding: 1.25rem;
}

.rf-sidebar__heading {
    font-family: var(--rf-font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--rf-border);
    display: flex;
    align-items: center;
}

/* Table of Contents */
.rf-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rf-toc__list li a {
    display: block;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    color: var(--rf-text-secondary);
    text-decoration: none;
    border-left: 2px solid transparent;
    border-radius: 0 var(--rf-radius-sm) var(--rf-radius-sm) 0;
    transition: all var(--rf-trans);
    line-height: 1.4;
}

.rf-toc__list li a:hover,
.rf-toc__list li a.active {
    color: var(--rf-accent);
    border-left-color: var(--rf-accent);
    background: var(--rf-accent-subtle);
}

.rf-toc__list li.h3 a {
    padding-left: 1.5rem;
    font-size: 0.75rem;
}

/* Related posts */
.rf-related {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rf-related__item {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--rf-radius-sm);
    transition: background var(--rf-trans);
}

.rf-related__item:hover {
    background: var(--rf-surface-2);
}

.rf-related__thumb {
    width: 64px;
    height: 48px;
    border-radius: var(--rf-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.rf-related__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rf-related__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rf-related__placeholder i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, .6);
}

.rf-related__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.rf-related__title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rf-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rf-related__item:hover .rf-related__title {
    color: var(--rf-accent);
}

.rf-related__date {
    font-size: 0.7rem;
    color: var(--rf-text-muted);
    margin-top: 0.2rem;
}


/* ══════════════════════════════════════════════════════════════
   POST CONTENT (article body typography)
   ══════════════════════════════════════════════════════════════ */

.post-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.post-content p:empty {
    display: none;
}

.post-content br + br {
    display: none;
}

.post-content h2,
.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--rf-border);
    padding-bottom: 0.5rem;
    font-family: var(--rf-font-heading);
    font-weight: 700;
}

.post-content h2 {
    font-size: 1.5rem;
}

.post-content h3 {
    font-size: 1.25rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--rf-radius-sm);
    margin: 1rem 0;
}

.post-content a {
    color: var(--rf-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content a:hover {
    color: #f97316;
}

.post-content blockquote {
    border-left: 3px solid var(--rf-accent);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--rf-surface);
    border-radius: 0 var(--rf-radius-sm) var(--rf-radius-sm) 0;
    color: var(--rf-text-secondary);
    font-style: italic;
}

.post-content pre {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.post-content code {
    font-family: var(--rf-font-mono);
    font-size: 0.875em;
}

.post-content :not(pre) > code {
    background: var(--rf-surface-2);
    border: 1px solid var(--rf-border);
    border-radius: 4px;
    padding: 0.15em 0.4em;
    color: var(--rf-accent);
}

.post-content ul,
.post-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.post-content li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.post-content th,
.post-content td {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--rf-border);
    text-align: left;
}

.post-content th {
    background: var(--rf-surface);
    font-weight: 600;
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--rf-border);
    margin: 2rem 0;
}


/* ══════════════════════════════════════════════════════════════
   PAGE HERO (shared by about, contact, projects)
   ══════════════════════════════════════════════════════════════ */

.rf-page-hero {
    background: var(--rf-bg);
    padding: 3.5rem 0 3rem;
}


/* ══════════════════════════════════════════════════════════════
   404 ERROR PAGE
   ══════════════════════════════════════════════════════════════ */

.rf-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 3rem 0;
}

.rf-error__code {
    font-family: var(--rf-font-heading);
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--rf-accent) 0%, #f97316 50%, var(--rf-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .rf-error__code { font-size: 12rem; }
}

.rf-error__title {
    font-family: var(--rf-font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.rf-error__desc {
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.7;
}

.rf-error__code--danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}


/* ══════════════════════════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════════════════════════ */

.rf-about__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rf-accent), #f97316);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin: 0 auto;
}

/* Stat cards */
.rf-stat-card {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform var(--rf-trans), box-shadow var(--rf-trans);
}

.rf-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rf-shadow-md);
}

.rf-stat-card__icon {
    font-size: 1.25rem;
    color: var(--rf-text-muted);
    margin-bottom: 0.5rem;
}

.rf-stat-card__value {
    font-family: var(--rf-font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--rf-accent);
    line-height: 1;
}

.rf-stat-card__label {
    font-size: 0.75rem;
    color: var(--rf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-top: 0.35rem;
}

/* Skill cards */
.rf-skill-card {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform var(--rf-trans), box-shadow var(--rf-trans);
}

.rf-skill-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rf-shadow-md);
}

.rf-skill-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--rf-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.3rem;
    color: #fff;
}

/* Timeline */
.rf-timeline {
    position: relative;
    padding-left: 2rem;
}

.rf-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--rf-border);
}

.rf-timeline__item {
    position: relative;
    padding-bottom: 2rem;
}

.rf-timeline__item:last-child {
    padding-bottom: 0;
}

.rf-timeline__dot {
    position: absolute;
    left: -2rem;
    top: 0.35rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--rf-accent);
    border: 3px solid var(--rf-bg);
    z-index: 1;
}

.rf-timeline__content {
    padding-left: 0.5rem;
}


/* ══════════════════════════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════════════════════════ */

.rf-contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    transition: all var(--rf-trans);
}

.rf-contact-card:hover {
    border-color: var(--rf-accent);
    transform: translateY(-2px);
    box-shadow: var(--rf-shadow-sm);
}

.rf-contact-card--highlight {
    background: linear-gradient(135deg, rgba(245, 158, 11, .04), rgba(139, 92, 246, .04));
    border-color: rgba(245, 158, 11, .15);
}

.rf-contact-card__icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: var(--rf-radius-sm);
    background: var(--rf-accent-subtle);
    border: 1px solid rgba(245, 158, 11, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--rf-accent);
}

.rf-form-card {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    padding: 2rem;
}

.rf-form-card .form-control,
.rf-form-card .form-select {
    border-color: var(--rf-border);
    color: var(--rf-text);
}

.rf-form-card .form-control:focus,
.rf-form-card .form-select:focus {
    border-color: var(--rf-accent);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, .15);
}


/* ══════════════════════════════════════════════════════════════
   PROJECTS PAGE
   ══════════════════════════════════════════════════════════════ */

.rf-project-card {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform var(--rf-trans), box-shadow var(--rf-trans);
}

.rf-project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rf-shadow-lg);
}

.rf-project-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.rf-project-card__num {
    width: 36px;
    height: 36px;
    border-radius: var(--rf-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--rf-font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}


/* ══════════════════════════════════════════════════════════════
   CTA CARD (shared)
   ══════════════════════════════════════════════════════════════ */

.rf-cta-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, .04), rgba(139, 92, 246, .04));
    border: 1px solid rgba(245, 158, 11, .12);
    border-radius: var(--rf-radius-lg);
    padding: 3rem 2rem;
}
