/* ===== RHA Blog Shared Styles ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black: #050510;
    --white: #ffffff;
    --accent: #2060ff;
    --accent-dark: #1a4ecc;
    --accent-readable: #5a8fff;
    --cyan: #00d4ff;
    --silver: #9b9b9b;
    --glass-border: rgba(32, 96, 255, 0.15);
    --glass-bg: linear-gradient(180deg, rgba(16, 32, 72, 0.95) 0%, rgba(8, 16, 42, 0.98) 100%);
    --glass-bg-flat: rgba(10, 22, 55, 0.95);
    --glass-border-top: rgba(100, 170, 255, 0.50);
    --glass-border-side: rgba(32, 96, 255, 0.18);
    --glass-border-bottom: rgba(32, 96, 255, 0.08);
    --glass-shadow:
        inset 0 1px 0 rgba(150, 200, 255, 0.55),
        inset 0 2px 0 rgba(100, 170, 255, 0.30),
        inset 0 8px 24px rgba(32, 96, 255, 0.25),
        inset 0 0 60px rgba(32, 96, 255, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 12px 24px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(32, 96, 255, 0.06);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --radius-card: 20px;
    --radius-btn: 12px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Instrument Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--black);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(32, 96, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(0, 212, 255, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 100%, rgba(32, 96, 255, 0.06) 0%, transparent 50%);
    color: var(--white);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

/* ===== NAV ===== */
.site-nav {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    width: calc(100% - 48px); max-width: 1200px; padding: 8px;
    background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; transition: background 0.3s;
}
.site-nav.scrolled { background: rgba(0, 0, 0, 0.8); border-color: rgba(255, 255, 255, 0.12); }
.site-nav .nav-logo { height: 44px; width: auto; margin-left: 12px; }
.nav-links { display: flex; gap: 24px; align-items: center; list-style: none; }
.nav-links a {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.8rem; font-weight: 500;
    color: rgba(255, 255, 255, 0.6); text-decoration: none; transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 0.875rem; font-weight: 600; text-decoration: none;
    padding: 12px 24px;
    background: linear-gradient(180deg, #2868ff 0%, #1a50dd 100%);
    color: var(--white); border: 1px solid rgba(90, 160, 255, 0.45);
    border-radius: var(--radius-btn); transition: all 0.3s; white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(180, 210, 255, 0.5), inset 0 0 20px rgba(80, 140, 255, 0.2), 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 35px rgba(32, 96, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.nav-cta:hover {
    background: linear-gradient(180deg, #3478ff 0%, #2060ff 100%);
    border-color: rgba(120, 180, 255, 0.6);
    box-shadow: inset 0 1px 0 rgba(200, 225, 255, 0.6), 0 0 0 1px rgba(60, 130, 255, 0.4), 0 8px 30px rgba(32, 96, 255, 0.35);
}
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: var(--white); transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
    display: none; position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 48px); max-width: 1200px; z-index: 999; flex-direction: column;
    background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 8px 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    padding: 16px 24px; color: rgba(255, 255, 255, 0.7); text-decoration: none;
    font-size: 0.95rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--white); }
.mobile-menu .mobile-cta {
    margin: 12px 16px; padding: 14px 24px; text-align: center;
    background: linear-gradient(180deg, #2868ff 0%, #1a50dd 100%);
    border-radius: var(--radius-btn); font-weight: 600; color: var(--white); border-bottom: none;
}
@media (max-width: 900px) { .nav-links { display: none; } .nav-cta { display: none; } .hamburger { display: flex; } }
@media (min-width: 901px) { .hamburger { display: none !important; } .mobile-menu { display: none !important; } }

/* ===== BLOG LISTING ===== */
.blog-header { padding: 160px 0 60px; text-align: center; }
.blog-header h1 {
    font-size: clamp(2.4rem, 5vw, 3.5rem); margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #e0eaff 50%, #9abdff 80%, #5a8fff 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.blog-header p { font-size: 1.15rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

.blog-grid {
    max-width: 1200px; margin: 0 auto 100px; padding: 0 24px;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}

.blog-card {
    display: flex; flex-direction: column;
    background: var(--glass-bg-flat); border: 1px solid var(--glass-border);
    border-top-color: var(--glass-border-top); border-radius: var(--radius-card);
    overflow: hidden; text-decoration: none; transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--glass-shadow);
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 1px 0 rgba(180, 220, 255, 0.70), inset 0 2px 0 rgba(120, 185, 255, 0.45),
        inset 0 10px 30px rgba(32, 96, 255, 0.35), 0 12px 40px rgba(32, 96, 255, 0.2);
}
.blog-card-image { aspect-ratio: 16 / 9; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.blog-card-meta span { font-size: 0.8rem; color: var(--text-tertiary); }
.blog-card-meta .blog-card-author { color: var(--accent-readable); font-weight: 600; }
.blog-card-body h2 { font-size: 1.2rem; color: var(--white); margin-bottom: 12px; line-height: 1.25; }
.blog-card-body p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.read-more { color: var(--accent-readable); font-weight: 600; font-size: 0.9rem; transition: color 0.2s; }
.blog-card:hover .read-more { color: var(--white); }
@media (max-width: 700px) { .blog-grid { grid-template-columns: 1fr; } }

/* ===== ARTICLE ===== */
.article-hero { padding: 140px 0 0; max-width: 800px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.article-breadcrumb { font-size: 0.85rem; color: var(--text-tertiary); margin-bottom: 24px; }
.article-breadcrumb a { color: var(--accent-readable); text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.article-meta span { font-size: 0.85rem; color: var(--text-tertiary); }
.article-meta .author { color: var(--accent-readable); font-weight: 600; }
.article-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #e0eaff 50%, #9abdff 80%, #5a8fff 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.12;
}
.article-hero-image { width: 100%; max-width: 800px; margin: 40px auto 0; display: block; padding: 0 24px; }
.article-hero-image img { width: 100%; border-radius: var(--radius-card); border: 1px solid var(--glass-border); }

.article-body { max-width: 720px; margin: 60px auto 0; padding: 0 24px 80px; }
.article-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 56px 0 20px; color: var(--white); }
.article-body h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 40px 0 16px; color: var(--white); }
.article-body h4 { font-size: 1.1rem; margin: 32px 0 12px; color: var(--white); }
.article-body p { color: var(--text-secondary); margin-bottom: 20px; line-height: 1.75; }
.article-body ul, .article-body ol { margin: 0 0 24px 24px; color: var(--text-secondary); }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body strong, .article-body b { color: var(--white); font-weight: 600; }
.article-body a { color: var(--accent-readable); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--white); }
.article-body img {
    max-width: 100%; height: auto; border-radius: 12px;
    border: 1px solid var(--glass-border); margin: 24px 0;
}
.article-body blockquote {
    border-left: 3px solid var(--accent); padding: 16px 24px; margin: 24px 0;
    background: rgba(32, 96, 255, 0.06); border-radius: 0 12px 12px 0;
}
.article-body blockquote p { color: var(--text-secondary); margin-bottom: 0; }
.article-body .table-wrap { overflow-x: auto; margin: 32px 0; border-radius: 12px; border: 1px solid var(--glass-border); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.article-body th {
    background: rgba(32, 96, 255, 0.12); padding: 14px 16px; text-align: left;
    font-weight: 600; color: var(--white); border-bottom: 1px solid var(--glass-border);
}
.article-body td { padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-secondary); }

/* CTA Banner */
.article-cta { max-width: 720px; margin: 0 auto 80px; padding: 0 24px; }
.cta-box {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-top-color: var(--glass-border-top); border-radius: var(--radius-card);
    padding: 48px 40px; text-align: center; box-shadow: var(--glass-shadow);
    position: relative; overflow: hidden;
}
.cta-box::after {
    content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(150, 200, 255, 0.4), transparent);
}
.cta-box h2 { font-size: 1.8rem; margin-bottom: 16px; }
.cta-box p { color: var(--text-secondary); max-width: 500px; margin: 0 auto 28px; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: 'Instrument Sans', sans-serif; font-size: 1rem; font-weight: 600;
    text-decoration: none; padding: 18px 36px;
    background: linear-gradient(180deg, #2868ff 0%, #1a50dd 100%);
    color: var(--white); border: 1px solid rgba(90, 160, 255, 0.45);
    border-radius: var(--radius-btn);
    box-shadow: inset 0 1px 0 rgba(180, 210, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(32, 96, 255, 0.3);
    transition: all 0.3s; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(180deg, #3478ff 0%, #2060ff 100%); transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(200, 225, 255, 0.6), 0 0 0 1px rgba(60, 130, 255, 0.4), 0 12px 40px rgba(32, 96, 255, 0.4);
}

/* Related Posts */
.related-section { max-width: 1000px; margin: 0 auto 100px; padding: 0 24px; }
.related-section h2 { font-size: 1.8rem; margin-bottom: 32px; text-align: center; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card {
    background: var(--glass-bg-flat); border: 1px solid var(--glass-border);
    border-top-color: var(--glass-border-top); border-radius: var(--radius-card);
    overflow: hidden; text-decoration: none; transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--glass-shadow);
}
.related-card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(180, 220, 255, 0.70), 0 12px 40px rgba(32, 96, 255, 0.2); }
.related-card img { width: 100%; height: 180px; object-fit: cover; }
.related-card-body { padding: 20px; }
.related-card-body .related-date { font-size: 0.8rem; color: var(--text-tertiary); }
.related-card-body h3 { font-size: 1.05rem; color: var(--white); margin: 8px 0; line-height: 1.3; }
.related-card-body p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } .cta-box { padding: 36px 24px; } }

/* ===== FOOTER ===== */
footer { padding: 60px 0 40px; border-top: 1px solid var(--border-subtle); text-align: center; }
footer p { font-size: 0.85rem; color: var(--text-tertiary); }
footer a { color: var(--text-tertiary); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--white); }
.footer-logo { margin-bottom: 24px; }
.footer-logo img { height: 32px; opacity: 0.6; }
.footer-links {
    display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 24px; list-style: none;
}
.footer-links a { font-size: 0.85rem; color: var(--text-tertiary); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
