/* Extracted verbatim from footer.php (1 inline block(s)).
   Order preserved; enqueue order in functions.php reproduces the original cascade. */

.rn-footer {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: clamp(3rem, 6vw, 5rem) 0 2.5rem;
    background: linear-gradient(180deg, #16162b 0%, #0d0d18 55%, #07070f 100%);
    color: var(--ct-text);
    overflow: hidden;
}

.rn-footer__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(208, 177, 212, 0.25) 0%, transparent 55%),
        radial-gradient(circle at 85% 80%, rgba(191, 171, 211, 0.18) 0%, transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.rn-footer__container {
    position: relative;
    z-index: 2;
    direction: rtl;
}

.rn-footer__logo {
    max-width: clamp(180px, 18vw, 260px);
    height: auto;
    display: inline-block;
}

.rn-footer__desc {
    color: var(--ct-muted);
    line-height: 1.9;
    margin: 0 auto 2.5rem;
    font-size: 1rem;
    text-align: center;
    max-width: clamp(320px, 60vw, 680px);
}

.rn-footer__social {
    direction: rtl;
    justify-content: center;
    align-items: center;
}

.rn-footer__social-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(191, 171, 211, 0.12);
    border: 2px solid rgba(191, 171, 211, 0.32);
    color: var(--ct-accent);
    font-size: 1.3rem;
    transition: all 0.35s ease;
}

.rn-footer__social-btn:hover {
    background: rgba(191, 171, 211, 0.2);
    transform: translateY(-4px);
}

.rn-footer__title {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ct-text);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    text-align: right;
}

.rn-footer__title::after {
    content: '';
    display: block;
    height: 3px;
    width: 45px;
    margin-top: 0.5rem;
    background: linear-gradient(90deg, var(--ct-accent), transparent);
}

.rn-footer__list {
    padding: 0;
    margin: 0;
}

.rn-footer__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
    color: var(--ct-muted);
    text-align: right;
}

.rn-footer__list li i {
    font-size: 1.2rem;
    color: var(--ct-accent);
    margin-top: 0.3rem;
}

.rn-footer__list li div strong {
    color: var(--ct-text);
    font-weight: 600;
}

.rn-footer__divider {
    margin: 2.25rem 0 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(208, 177, 212, 0.35), transparent);
}

.rn-footer__bottom {
    font-size: 0.95rem;
    color: var(--ct-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.rn-footer__bottom-line {
    display: inline-block;
    margin: 0 0.75rem;
}

.rn-footer__bottom a {
    color: var(--ct-accent);
    text-decoration: none;
}

.rn-footer__bottom a:hover {
    text-decoration: underline;
}

.rn-footer__policies {
    direction: rtl;
    font-size: 0.95rem;
}

.rn-footer__policy-link {
    color: var(--ct-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0 0.5rem;
}

.rn-footer__policy-link:hover {
    color: var(--ct-accent);
    text-decoration: underline;
}

.rn-footer__policy-separator {
    color: var(--ct-muted);
    opacity: 0.5;
    padding: 0 0.25rem;
}

@media (max-width: 767.98px) {
    .rn-footer {
        padding-bottom: 2rem;
    }

    .rn-footer__title::after {
        margin-inline: auto 0;
    }
    
    .rn-footer__bottom-line {
        display: block;
        margin: 0.25rem 0;
    }
}

/* Scroll to Top Button */
.rn-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--ct-accent-gradient);
    border: 2px solid #f0b519;
    border-radius: 50%;
    color: #000;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--ct-accent-glow);
    text-decoration: none;
}

.rn-scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.rn-scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(191, 171, 211, 0.45), 0 0 26px rgba(191, 171, 211, 0.35);
    background: linear-gradient(135deg, #dcd2ec 0%, #bfabd3 60%, #a896c3 100%);
}

.rn-scroll-top:active {
    transform: translateY(-2px);
}

@media (max-width: 767.98px) {
    .rn-scroll-top {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}
