/* ====================================================
   RICHIFYNOW â€” 2026 PREMIUM UI UPGRADE LAYER
   ==================================================== */

/* â”€â”€ Font stack â”€â”€ */
body {
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
}
h1, h2, h3, h4, h5 {
    font-family: 'Sora', 'Inter', sans-serif;
}

/* â”€â”€ Reading Progress Bar â”€â”€ */
#rn-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-blue), var(--primary-light));
    background-size: 200% 100%;
    z-index: 9999;
    transition: width 0.08s linear;
    pointer-events: none;
}

/* â”€â”€ Back to Top â”€â”€ */
#rn-back-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(153,0,252,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px) scale(0.85);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
    z-index: 998;
    font-size: 20px;
    line-height: 1;
}
#rn-back-top.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}
#rn-back-top:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 28px rgba(153,0,252,0.5);
}

/* â”€â”€ Navbar scrolled state â”€â”€ */
.rn-header {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.rn-header-scrolled {
    background: rgba(255,255,255,0.98) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08) !important;
}

/* â”€â”€ Hamburger â†’ X morph â”€â”€ */
.rn-menu-btn span {
    transition: transform 0.3s ease, opacity 0.25s ease;
}
.rn-menu-btn.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.rn-menu-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.rn-menu-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* â”€â”€ Nav link underline slide â”€â”€ */
.rn-nav a:not(.rn-nav-cta) {
    position: relative;
}
.rn-nav a:not(.rn-nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}
.rn-nav a:not(.rn-nav-cta):hover::after,
.rn-nav a.active:not(.rn-nav-cta)::after {
    transform: scaleX(1);
}

/* â”€â”€ Buttons â”€â”€ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(153,0,252,0.28);
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(153,0,252,0.42);
    text-decoration: none;
}
.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--primary) !important;
    border: 1.5px solid var(--border-medium);
    transition: all 0.25s ease;
}
.btn-secondary:hover {
    background: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(153,0,252,0.15);
    text-decoration: none;
}

/* â”€â”€ Post image zoom on card hover â”€â”€ */
.rn-post-image {
    transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
    will-change: transform;
}
.rn-post-card:hover .rn-post-image {
    transform: scale(1.05);
}

/* â”€â”€ Post card lift â”€â”€ */
.rn-post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}
.rn-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(153,0,252,0.12), 0 4px 12px rgba(0,0,0,0.06);
    border-color: rgba(153,0,252,0.2);
}
.rn-post-card:hover .rn-post-title a {
    color: var(--primary);
}
.rn-post-title a {
    transition: color 0.25s ease;
}

/* â”€â”€ Category pill hover â”€â”€ */
.rn-post-category {
    transition: all 0.25s ease;
}
.rn-post-category:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

/* â”€â”€ Hero card tilt support (transform via JS) â”€â”€ */
.rn-home-hero-card {
    transition: transform 0.15s ease, box-shadow 0.3s ease;
}
.rn-home-hero-card:hover {
    box-shadow: 0 24px 56px rgba(153,0,252,0.18);
}

/* â”€â”€ Featured item slide â”€â”€ */
.rn-home-featured-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.rn-home-featured-item:hover {
    transform: translateX(5px);
    border-color: rgba(153,0,252,0.25);
    box-shadow: 0 8px 24px rgba(153,0,252,0.1);
}
.rn-home-featured-item h3 {
    transition: color 0.25s ease;
}
.rn-home-featured-item:hover h3 {
    color: var(--primary);
}

/* â”€â”€ Category card lift â”€â”€ */
.rn-category-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.rn-category-card:hover {
    transform: translateY(-7px) scale(1.01);
    box-shadow: 0 22px 50px rgba(0,0,0,0.2);
}
.rn-category-name {
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: bottom 0.3s ease;
}
.rn-category-card:hover .rn-category-name {
    bottom: 18px;
}

/* â”€â”€ Author card hover â”€â”€ */
.rn-author-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.rn-author-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(153,0,252,0.13);
    border-color: rgba(153,0,252,0.25);
}
.rn-author-card img {
    transition: transform 0.4s ease;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(153,0,252,0.15);
}
.rn-author-card:hover img {
    transform: scale(1.06);
}
.rn-author-card a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease, color 0.2s ease;
}
.rn-author-card a::after {
    content: 'â†’';
    font-size: 13px;
    transition: transform 0.2s ease;
}
.rn-author-card a:hover {
    gap: 8px;
}
.rn-author-card a:hover::after {
    transform: translateX(2px);
}

/* â”€â”€ Eyebrow tag â”€â”€ */
.rn-eyebrow {
    background: linear-gradient(90deg, var(--primary), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.12em;
}

/* â”€â”€ Panel top accent bar â”€â”€ */
.rn-panel {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.rn-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    border-radius: 3px 3px 0 0;
}
.rn-panel:hover::before {
    transform: scaleX(1);
}
.rn-panel:hover {
    box-shadow: 0 8px 28px rgba(153,0,252,0.1);
}

/* â”€â”€ Read more arrow â”€â”€ */
.rn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.25s ease, gap 0.25s ease;
}
.rn-read-more::after {
    content: 'â†’';
    transition: transform 0.25s ease;
    font-size: 14px;
}
.rn-read-more:hover {
    gap: 10px;
    color: var(--primary-dark);
    text-decoration: none;
}
.rn-read-more:hover::after {
    transform: translateX(3px);
}

/* â”€â”€ Link list hover arrows â”€â”€ */
.rn-link-list a {
    display: inline-flex;
    align-items: center;
    gap: 0;
    transition: color 0.2s ease, gap 0.2s ease, padding-left 0.2s ease;
    padding: 2px 0;
}
.rn-link-list a:hover {
    color: var(--primary);
    gap: 6px;
    padding-left: 2px;
}

/* â”€â”€ Contact form focus â”€â”€ */
.rn-contact-form input:focus,
.rn-contact-form textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(153,0,252,0.08);
    outline: none;
}
.rn-contact-form input,
.rn-contact-form textarea {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* â”€â”€ Contact highlights â”€â”€ */
.rn-contact-highlights article {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
}
.rn-contact-highlights article:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(153,0,252,0.1);
    border-color: rgba(153,0,252,0.2);
}
.rn-contact-highlights strong {
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;
}

/* â”€â”€ Footer bar animated gradient â”€â”€ */
.rn-footer-bar {
    background: linear-gradient(90deg,
        var(--primary), var(--accent-blue), var(--primary-light), var(--primary));
    background-size: 300% 100%;
    animation: footerBarSlide 5s linear infinite;
}
@keyframes footerBarSlide {
    0%   { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}

/* â”€â”€ Footer link arrows â”€â”€ */
.rn-footer-links-block a {
    display: inline-flex;
    align-items: center;
    transition: color 0.25s ease, padding-left 0.25s ease;
}
.rn-footer-links-block a:hover {
    padding-left: 5px;
}

/* â”€â”€ Footer social pills â”€â”€ */
.rn-footer-socials a {
    transition: all 0.25s ease;
}
.rn-footer-socials a:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(153,0,252,0.3);
}

/* â”€â”€ Newsletter button â”€â”€ */
.rn-newsletter-form button {
    transition: all 0.3s ease;
}
.rn-newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(153,0,252,0.3);
}
.rn-footer-newsletter {
    transition: box-shadow 0.3s ease;
}
.rn-footer-newsletter:hover {
    box-shadow: 0 8px 32px rgba(153,0,252,0.12);
}

/* â”€â”€ Article share â”€â”€ */
.rn-article-share a {
    transition: all 0.25s ease;
}
.rn-article-share a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}
.rn-article-tags a {
    transition: all 0.25s ease;
}
.rn-article-tags a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(153,0,252,0.25);
    background: var(--primary);
    color: #fff;
}

/* â”€â”€ Split media hover â”€â”€ */
.rn-split-media img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.rn-split-media img:hover {
    transform: scale(1.015);
    box-shadow: 0 20px 48px rgba(153,0,252,0.14);
}

/* â”€â”€ Search button â”€â”€ */
.rn-search-form button {
    transition: all 0.3s ease;
}
.rn-search-form button:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(153,0,252,0.3);
}
.rn-search-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(153,0,252,0.08);
    outline: none;
}

/* â”€â”€ Pagination â”€â”€ */
.rn-page-link {
    transition: all 0.25s ease;
}
.rn-page-link:hover:not(.is-disabled):not(.is-active) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(153,0,252,0.15);
    border-color: var(--primary);
    color: var(--primary);
}

/* â”€â”€ Alert animated in â”€â”€ */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    animation: alertSlideIn 0.4s ease-out;
}
@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* â”€â”€ Hero copy stagger â”€â”€ */
.rn-home-hero-copy > * {
    animation: heroFadeUp 0.65s ease-out both;
}
.rn-home-hero-copy .rn-eyebrow         { animation-delay: 0.05s; }
.rn-home-hero-copy .rn-page-title      { animation-delay: 0.15s; }
.rn-home-hero-copy .rn-page-subtitle   { animation-delay: 0.25s; }
.rn-home-hero-copy .rn-home-hero-actions { animation-delay: 0.35s; }
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rn-home-hero-media {
    animation: heroMediaIn 0.8s ease-out 0.15s both;
}
@keyframes heroMediaIn {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* â”€â”€ Decorative blobs â”€â”€ */
.rn-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.rn-blob-1 {
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(153,0,252,0.07) 0%, transparent 70%);
    animation: blobFloat 7s ease-in-out infinite;
}
.rn-blob-2 {
    bottom: -60px; left: -60px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(78,205,196,0.07) 0%, transparent 70%);
    animation: blobFloat 9s ease-in-out infinite reverse;
}
@keyframes blobFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33%       { transform: translate(12px,-18px) scale(1.04); }
    66%       { transform: translate(-8px,12px) scale(0.97); }
}

/* â”€â”€ Author Page â”€â”€ */
.rn-author-page-hero {
    padding: 56px 0 48px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg,
        rgba(153,0,252,0.04) 0%,
        rgba(78,205,196,0.04) 100%);
    border-bottom: 1px solid var(--border-light);
}
.rn-author-page-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.rn-author-page-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 28px rgba(153,0,252,0.22);
    flex-shrink: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.rn-author-page-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 36px rgba(153,0,252,0.32);
}
.rn-author-page-info h1 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3.5vw, 40px);
    color: var(--text-primary);
}
.rn-author-page-info p {
    margin: 0 0 16px;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
}
.rn-author-socials-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.rn-author-social-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-medium);
    background: #fff;
    overflow: hidden;
    transition: all 0.25s ease;
    justify-content: center;
}
.rn-author-social-pill:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(153,0,252,0.2);
}
.rn-author-social-pill img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* â”€â”€ Categories Page Hero â”€â”€ */
.rn-categories-page-hero {
    padding: 56px 0 44px;
    background: linear-gradient(135deg,
        rgba(153,0,252,0.04) 0%,
        rgba(78,205,196,0.04) 100%);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

/* â”€â”€ Skeleton loader â”€â”€ */
.rn-skeleton {
    background: linear-gradient(90deg,
        var(--bg-tertiary) 25%,
        #eef0f4 50%,
        var(--bg-tertiary) 75%);
    background-size: 400% 100%;
    animation: skeletonAnim 1.4s ease infinite;
    border-radius: 8px;
}
@keyframes skeletonAnim {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* â”€â”€ Mobile tweaks â”€â”€ */
@media (max-width: 600px) {
    #rn-back-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    .rn-author-page-inner {
        flex-direction: column;
        text-align: center;
    }
    .rn-author-socials-row {
        justify-content: center;
    }
    .rn-author-page-info p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1400px) {
    .rn-home-hero-card img { height: 400px; }
    .rn-post-image { height: 240px; }
}

/* ----------------------------------------------
   FINAL POLISH ADDITIONS
   ---------------------------------------------- */

/* Footer contact links — flex with icon support */
.rn-footer-contact a,
.rn-footer-contact span {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.25s ease, padding-left 0.2s ease;
    line-height: 1.5;
}
.rn-footer-contact a:hover {
    color: var(--primary);
    padding-left: 2px;
}

/* Author directory card hover */
.rn-author-directory-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.rn-author-directory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(153,0,252,0.11);
    border-color: rgba(153,0,252,0.22);
}
.rn-author-directory-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}
.rn-author-directory-card a::after {
    content: "?";
    font-size: 13px;
    transition: transform 0.2s ease;
}
.rn-author-directory-card a:hover {
    gap: 8px;
}
.rn-author-directory-card a:hover::after {
    transform: translateX(3px);
}

/* Search form — better mobile */
@media (max-width: 500px) {
    .rn-search-form {
        grid-template-columns: 1fr;
    }
}

/* rn-home-hero: ensure overflow is hidden for blobs */
.rn-home-hero {
    overflow: hidden;
}

/* Contact form: add row gap for label+input pairs */
.rn-contact-form > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rn-contact-form > div label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Blob position: relative on page-hero sections */
.rn-categories-page-hero,
.rn-author-page-hero {
    position: relative;
    overflow: hidden;
}

/* rn-page-hero-section z-index content */
.rn-categories-page-hero .main-container,
.rn-author-page-hero .main-container {
    position: relative;
    z-index: 1;
}

/* Author directory grid spacing */
.rn-author-directory-grid {
    margin-top: 8px;
}

/* rn-footer-links-block headings */
.rn-footer-links-block h4 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.rn-footer-links-block h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-blue));
    border-radius: 2px;
}

/* rn-footer-newsletter heading */
.rn-footer-newsletter h4 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.rn-footer-newsletter h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-blue));
    border-radius: 2px;
}

/* Post grid: overflow hidden for image zoom */
.rn-post-card .rn-post-image-link {
    overflow: hidden;
    display: block;
}

/* Pagination: slightly more padding */
.rn-pagination {
    margin-top: 32px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

/* Blog/Author hero: tighter on mobile */
@media (max-width: 700px) {
    .rn-author-page-inner {
        gap: 20px;
    }
    .rn-author-page-avatar {
        width: 88px;
        height: 88px;
    }
    .rn-author-page-info h1 {
        font-size: 24px;
    }
    .rn-categories-page-hero,
    .rn-author-page-hero {
        padding: 40px 0 36px;
    }
}

/* rn-contact-highlights: ensure three equal columns on medium */
@media (max-width: 500px) {
    .rn-contact-highlights {
        grid-template-columns: 1fr;
    }
}

/* Thin scroll track */
::-webkit-scrollbar {
    width: 8px;
}

/* Article featured image: smooth load */
.rn-article-featured {
    transition: opacity 0.5s ease;
}

/* Ensure back-top doesn't overlap mobile nav */
@media (max-width: 400px) {
    #rn-back-top {
        bottom: 16px;
        right: 16px;
    }
}

/* ----------------------------------------------
   PREMIUM REDESIGN: POST & CATEGORY CARDS
   ---------------------------------------------- */

/* --- Post Cards --- */
.rn-post-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(153, 0, 252, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0,0,0,0.02);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.rn-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(153, 0, 252, 0.12), 0 8px 16px rgba(0,0,0,0.06);
    border-color: rgba(153, 0, 252, 0.25);
}

.rn-post-card .rn-post-image-link {
    position: relative;
    padding-top: 60%; /* 16:9 aspect ratio-ish */
    overflow: hidden;
}

.rn-post-card .rn-post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rn-post-card:hover .rn-post-image {
    transform: scale(1.08);
}

/* Floating Category Pill */
.rn-post-card .rn-post-category {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 2;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.4);
}

.rn-post-card:hover .rn-post-category {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(153,0,252,0.4);
    transform: translateY(-2px);
}

.rn-post-card .rn-post-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rn-post-title {
    font-size: 1.4rem;
    line-height: 1.35;
    margin-bottom: 12px;
    margin-top: 8px;
    font-weight: 700;
}

.rn-post-title a {
    color: #1a1a1a;
    background-image: linear-gradient(var(--primary), var(--primary));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.rn-post-card:hover .rn-post-title a {
    color: var(--primary);
    background-size: 100% 2px;
}

.rn-post-excerpt {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.rn-post-meta {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 16px;
    margin-top: auto;
}

/* --- Category Cards --- */
.rn-category-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: flex-end;
    text-decoration: none;
}

.rn-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(153, 0, 252, 0.2);
}

.rn-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    z-index: 3;
    pointer-events: none;
}

.rn-category-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.rn-category-card:hover .rn-category-image {
    transform: scale(1.1);
}

.rn-category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(153,0,252,0.4) 50%, rgba(0,0,0,0) 100%);
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.rn-category-card:hover .rn-category-overlay {
    opacity: 0.95;
    background: linear-gradient(to top, rgba(153,0,252,0.9) 0%, rgba(153,0,252,0.2) 60%, rgba(0,0,0,0) 100%);
}

.rn-category-name {
    position: relative;
    z-index: 3;
    width: calc(100% - 32px);
    margin: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.4s ease;
    bottom: 0 !important; /* Override previous bottom: 18px */
}

.rn-category-card:hover .rn-category-name {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ----------------------------------------------
   FAQ ACCORDION SECTION
   ---------------------------------------------- */

.rn-faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.rn-faq-item {
    background: #ffffff;
    border: 1px solid rgba(153, 0, 252, 0.15);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.3s ease;
}

.rn-faq-item:hover {
    border-color: rgba(153, 0, 252, 0.4);
    box-shadow: 0 6px 20px rgba(153, 0, 252, 0.08);
}

.rn-faq-item[open] {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(153, 0, 252, 0.12);
}

.rn-faq-question {
    padding: 20px 24px;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none; /* Hide default arrow in modern browsers */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease, background 0.3s ease;
}

/* Hide default arrow in webkit */
.rn-faq-question::-webkit-details-marker {
    display: none;
}

/* Custom Plus/Minus Arrow */
.rn-faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.3s ease;
    display: inline-block;
    width: 24px;
    text-align: center;
}

.rn-faq-item[open] .rn-faq-question::after {
    content: '\2212'; /* Minus sign */
    transform: rotate(180deg);
}

.rn-faq-item[open] .rn-faq-question {
    color: var(--primary);
    border-bottom: 1px solid rgba(153, 0, 252, 0.1);
    background: rgba(153, 0, 252, 0.02);
}

.rn-faq-answer {
    padding: 20px 24px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    background: #ffffff;
    animation: faqSlideDown 0.3s ease-out;
}

.rn-faq-answer p {
    margin: 0;
}

@keyframes faqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------------
   REVIEWS / TESTIMONIALS SECTION
   ---------------------------------------------- */

.rn-review-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(153, 0, 252, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.rn-review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(153, 0, 252, 0.12);
    border-color: rgba(153, 0, 252, 0.25);
}

.rn-review-stars {
    color: #FFB800; /* Gold color for stars */
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.rn-review-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 24px;
    flex: 1; /* Pushes author to the bottom if text varies in height */
}

.rn-review-author {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 20px;
}

.rn-review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, var(--primary), var(--accent-blue)) border-box;
}

.rn-review-author div {
    display: flex;
    flex-direction: column;
}

.rn-review-author strong {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 700;
}

.rn-review-author span {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}
