/*
Theme Name: RJS Journal Theme
Theme URI: https://example.com/rjs-journal-theme
Author: Rami Journal Team
Description: Professional companion theme for Rami Journal System. It gives the RJS Journal Website Builder a polished academic shell with RTL/LTR support, modern journal homepage, dropdown navigation, and scholarly front-end layouts.
Version: 2.0.6
Text Domain: rjs-journal-theme
Requires at least: 6.0
Requires PHP: 7.4
*/

:root{--rjs-site-primary:#12305a;--rjs-site-secondary:#0f766e;--rjs-site-accent:#c9972b;--rjs-site-bg:#f3f6fb;--rjs-site-surface:#fff;--rjs-site-text:#102033;--rjs-site-width:1380px;--rjs-site-wide-width:1380px;--rjs-site-boxed-width:1180px;--rjs-site-radius:10px}*{box-sizing:border-box}body{margin:0;background:var(--rjs-site-bg);color:var(--rjs-site-text);font-family:"Estedad","Vazirmatn",Tahoma,Arial,sans-serif;line-height:1.65}a{color:#2563eb}.rjs-theme-shell{min-height:100vh;background:linear-gradient(180deg,#eef4fb 0,#f8fafc 50%,#fff 100%)}.rjs-theme-wrap{max-width:var(--rjs-site-width);margin:0 auto;padding:22px}.rjs-theme-content{min-height:58vh}.wp-site-blocks{min-height:100vh}.rjs-theme-content>.rjs-journal-site{padding:0}.rjs-theme-skip{position:absolute;top:-80px;right:16px;background:#fff;color:#111827;padding:10px 14px;border-radius:8px;z-index:999}.rjs-theme-skip:focus{top:16px}@media(max-width:760px){.rjs-theme-wrap{padding:12px}}


/* RJS v8.4 controlled layout widths */
.rjs-theme-wrap{max-width:var(--rjs-site-wide-width,1380px)}
.rjs-layout-wide{max-width:var(--rjs-site-wide-width,1380px)!important;margin-left:auto!important;margin-right:auto!important;width:100%!important}
.rjs-layout-boxed{max-width:var(--rjs-site-boxed-width,1180px)!important;margin-left:auto!important;margin-right:auto!important}
body,.rjs-theme-shell,.rjs-theme-wrap,.rjs-journal-site,.rjs-public-header,.rjs-public-footer{font-family:"Estedad","Vazirmatn",Tahoma,Arial,sans-serif!important}


/* RJS v8.5 professional classic academic polish */
:root{--rjs-site-wide-width:1380px;--rjs-site-boxed-width:1180px;--rjs-site-radius:10px}
.rjs-theme-shell{background:linear-gradient(180deg,#f2f5f9 0,#f8fafc 42%,#ffffff 100%)}
.rjs-theme-wrap{max-width:var(--rjs-site-wide-width,1380px);padding:18px}
.rjs-theme-content{padding-top:0}
.rjs-classic-header{border-radius:12px!important;border-color:#d7dee9!important;box-shadow:0 8px 26px rgba(15,23,42,.06)!important}
.rjs-header-top{padding:14px 18px!important}.rjs-header-nav-row{padding:0 14px!important}
.rjs-public-brand strong{letter-spacing:-.01em}.rjs-public-nav a,.rjs-public-nav button{font-weight:700}
.rjs-classic-hero{border-radius:16px!important;background:linear-gradient(135deg,#0f2748 0%,#173d68 62%,#0f766e 100%)!important;box-shadow:0 16px 48px rgba(18,48,90,.18)!important}
.rjs-feature-card,.rjs-service-grid a,.rjs-site-page{border-radius:12px!important;box-shadow:0 8px 24px rgba(15,23,42,.05)!important}
.rjs-classic-footer{border-radius:14px!important}
.rjs-theme-panel-route .rjs-journal-panel-frame{max-width:var(--rjs-site-wide-width,1380px);margin:0 auto 28px}

/* RJS v8.5.3 RTL/LTR, full-width layout and language switcher bridge */
.rjs-language-switcher{position:relative;display:inline-flex;align-items:center;z-index:60}
.rjs-language-current{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(148,163,184,.35);background:#fff;border-radius:8px;padding:7px 11px;color:var(--rjs-site-primary);font:inherit;font-size:13px;cursor:pointer;line-height:1.4}
.rjs-language-menu{position:absolute;top:calc(100% + 8px);inset-inline-end:0;min-width:150px;background:#fff;color:#102033;border:1px solid #dbe3ef;border-radius:10px;box-shadow:0 16px 38px rgba(15,23,42,.14);padding:6px;display:none;z-index:999}
.rjs-language-switcher:hover .rjs-language-menu,.rjs-language-switcher:focus-within .rjs-language-menu{display:grid}
.rjs-language-menu a{display:block;text-decoration:none;color:#102033;border-radius:8px;padding:9px 10px;font-size:13px;white-space:nowrap}
.rjs-language-menu a:hover,.rjs-language-menu a.active{background:#eef2ff;color:var(--rjs-site-primary)}
.rjs-classic-hero:after{pointer-events:none!important;z-index:0!important}
.rjs-classic-hero>*{position:relative;z-index:1}
.rjs-site-actions,.rjs-site-actions a,.rjs-journal-search{position:relative;z-index:2}
@media(max-width:760px){.rjs-language-menu{inset-inline-start:0;inset-inline-end:auto}}


/* RJS v8.5.3 RTL/LTR + 3 layout modes */
.rjs-dir-rtl{direction:rtl;text-align:right}.rjs-dir-ltr{direction:ltr;text-align:left}
.rjs-theme-shell.rjs-layout-full .rjs-theme-wrap,.rjs-theme-wrap.rjs-layout-full{max-width:none!important;width:100%!important;padding-left:clamp(12px,2vw,32px)!important;padding-right:clamp(12px,2vw,32px)!important}
.rjs-theme-shell.rjs-layout-wide .rjs-theme-wrap,.rjs-theme-wrap.rjs-layout-wide{max-width:var(--rjs-site-wide-width,1380px)!important;width:100%!important}
.rjs-theme-shell.rjs-layout-boxed .rjs-theme-wrap,.rjs-theme-wrap.rjs-layout-boxed{max-width:var(--rjs-site-boxed-width,1180px)!important;width:100%!important}
.rjs-layout-full.rjs-public-header,.rjs-layout-full.rjs-public-footer,.rjs-layout-full.rjs-classic-hero,.rjs-layout-full.rjs-home-sections,.rjs-layout-full.rjs-service-grid,.rjs-layout-full.rjs-site-page{max-width:none!important;width:calc(100% - clamp(24px,4vw,64px))!important}
.rjs-layout-full.rjs-journal-site{max-width:none!important;width:100%!important;margin:0!important;padding-left:clamp(12px,2vw,32px)!important;padding-right:clamp(12px,2vw,32px)!important}
.rjs-nav-dropdown{right:auto!important;inset-inline-start:0!important}
.rjs-language-switcher:after{content:"";position:absolute;top:100%;inset-inline:0;height:10px;z-index:998}
.rjs-language-menu{top:calc(100% + 8px)!important}
.rjs-dir-rtl .rjs-public-nav,.rjs-dir-ltr .rjs-public-nav{direction:inherit}
@media(max-width:760px){.rjs-theme-shell.rjs-layout-full .rjs-theme-wrap,.rjs-theme-wrap.rjs-layout-full{padding-left:12px!important;padding-right:12px!important}.rjs-layout-full.rjs-public-header,.rjs-layout-full.rjs-public-footer,.rjs-layout-full.rjs-classic-hero,.rjs-layout-full.rjs-home-sections,.rjs-layout-full.rjs-service-grid,.rjs-layout-full.rjs-site-page{width:100%!important}}

/* RJS v8.5.3 smart header actions, full-width equal gutters, and homepage layouts */
.rjs-public-actions .rjs-user-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #d7dee9;background:#f8fafc;color:#102033;border-radius:8px;padding:7px 11px;font-size:13px;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rjs-public-actions .rjs-panel-link{background:#10233f!important;color:#fff!important;border-color:#10233f!important}
.rjs-public-actions .rjs-logout-link{color:#64748b!important;background:#fff!important}
.rjs-theme-wrap.rjs-layout-full,.rjs-theme-shell.rjs-layout-full .rjs-theme-wrap{padding-left:clamp(14px,2vw,32px)!important;padding-right:clamp(14px,2vw,32px)!important}
.rjs-theme-wrap.rjs-layout-full>.rjs-public-header,.rjs-theme-wrap.rjs-layout-full>.rjs-public-footer,.rjs-layout-full.rjs-public-header,.rjs-layout-full.rjs-public-footer,.rjs-layout-full.rjs-classic-hero,.rjs-layout-full.rjs-home-sections,.rjs-layout-full.rjs-service-grid,.rjs-layout-full.rjs-site-page{width:100%!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important}
.rjs-layout-full.rjs-journal-site{padding-left:0!important;padding-right:0!important}
.rjs-home-sections.rjs-home-editorial-focus,.rjs-home-sections.rjs-home-issue-showcase{grid-template-columns:1.25fr .85fr;align-items:stretch}
.rjs-feature-wide{grid-row:span 2}
.rjs-home-layout-editorial-focus .rjs-service-grid,.rjs-home-layout-issue-showcase .rjs-service-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:900px){.rjs-home-sections.rjs-home-editorial-focus,.rjs-home-sections.rjs-home-issue-showcase{grid-template-columns:1fr}.rjs-feature-wide{grid-row:auto}.rjs-public-actions .rjs-user-chip{max-width:100%}.rjs-home-layout-editorial-focus .rjs-service-grid,.rjs-home-layout-issue-showcase .rjs-service-grid{grid-template-columns:1fr}}


/* RJS v8.5.4 smart account menu and equal full-width gutters */
.rjs-theme-shell{--rjs-site-gutter:clamp(14px,2vw,32px)}
.rjs-theme-wrap{padding-left:var(--rjs-site-gutter)!important;padding-right:var(--rjs-site-gutter)!important}
.rjs-theme-wrap.rjs-layout-full,.rjs-theme-shell.rjs-layout-full .rjs-theme-wrap{max-width:none!important;width:100%!important}
.rjs-layout-full.rjs-public-header,.rjs-layout-full.rjs-public-footer,.rjs-layout-full.rjs-classic-hero,.rjs-layout-full.rjs-home-sections,.rjs-layout-full.rjs-service-grid,.rjs-layout-full.rjs-site-page{width:100%!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important}
.rjs-language-menu,.rjs-account-dropdown{top:100%!important;margin-top:0!important}
.rjs-language-switcher:after,.rjs-account-menu:after{content:"";position:absolute;top:100%;inset-inline:0;height:12px}
.rjs-account-menu{position:relative;display:inline-flex;align-items:center;z-index:70}
.rjs-account-trigger{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(148,163,184,.35);background:#fff;border-radius:8px;padding:6px 10px;color:var(--rjs-site-primary);font:inherit;font-size:13px;cursor:pointer;line-height:1.4;max-width:220px}
.rjs-account-trigger img{width:28px;height:28px;border-radius:999px;display:block}
.rjs-account-name{max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rjs-account-dropdown{position:absolute;inset-inline-end:0;min-width:230px;background:#fff;color:#102033;border:1px solid #dbe3ef;border-radius:12px;box-shadow:0 18px 42px rgba(15,23,42,.16);padding:8px;display:none;z-index:999}
.rjs-account-menu:hover .rjs-account-dropdown,.rjs-account-menu:focus-within .rjs-account-dropdown{display:grid;gap:4px}
.rjs-account-dropdown a{display:block;text-decoration:none;color:#102033;border-radius:8px;padding:9px 10px;font-size:13px;white-space:nowrap}
.rjs-account-dropdown a:hover{background:#eef2ff;color:var(--rjs-site-primary)}
.rjs-account-summary{border-bottom:1px solid #e5e7eb;margin-bottom:5px;padding:6px 8px 9px}
.rjs-account-summary strong,.rjs-account-summary small{display:block}
.rjs-account-summary small{color:#64748b;font-size:11px}
.rjs-account-dropdown .rjs-submit-link{background:var(--rjs-site-accent)!important;color:#3b2500!important}
.rjs-public-actions>.rjs-panel-link,.rjs-public-actions>.rjs-logout-link,.rjs-public-actions>.rjs-user-chip{display:none!important}
@media(max-width:760px){.rjs-account-dropdown{inset-inline-start:0;inset-inline-end:auto}.rjs-account-trigger{max-width:100%}}


/* RJS v8.5.7 Modern Minimal companion-template polish */
.rjs-template-modern-minimal.rjs-theme-shell{background:linear-gradient(180deg,#ffffff 0%,#f8fafc 55%,#f1f5f9 100%)!important}
.rjs-template-modern-minimal.rjs-public-header{background:rgba(255,255,255,.92)!important;border:1px solid #e5e7eb!important;border-radius:18px!important;box-shadow:0 12px 38px rgba(15,23,42,.055)!important;backdrop-filter:blur(12px);margin-bottom:22px!important}
.rjs-template-modern-minimal .rjs-classic-hero{background:linear-gradient(135deg,#ffffff 0%,#f8fafc 58%,#eef6ff 100%)!important;color:#111827!important;border:1px solid #e5e7eb!important;border-radius:28px!important;box-shadow:0 18px 55px rgba(15,23,42,.07)!important}
.rjs-template-modern-minimal .rjs-classic-hero:after{display:none!important}
.rjs-template-modern-minimal .rjs-kicker{background:#eff6ff!important;border-color:#dbeafe!important;color:#2563eb!important;border-radius:999px!important;font-weight:900}
.rjs-template-modern-minimal .rjs-classic-hero h1{color:#0f172a!important;letter-spacing:-.045em!important}
.rjs-template-modern-minimal .rjs-classic-hero p{color:#475569!important}
.rjs-template-modern-minimal .rjs-journal-search{background:#fff!important;border:1px solid #e2e8f0!important;border-radius:999px!important;box-shadow:0 10px 34px rgba(15,23,42,.06)!important}
.rjs-template-modern-minimal .rjs-journal-search button{background:#111827!important;color:#fff!important;border-radius:999px!important}
.rjs-template-modern-minimal .rjs-site-actions a{background:#fff!important;color:#111827!important;border:1px solid #e2e8f0!important;border-radius:999px!important}
.rjs-template-modern-minimal .rjs-site-actions a.primary,.rjs-template-modern-minimal .rjs-public-actions .rjs-submit-link{background:#111827!important;border-color:#111827!important;color:#fff!important}
.rjs-template-modern-minimal .rjs-hero-panel{background:#fff!important;color:#111827!important;border:1px solid #e5e7eb!important;border-radius:24px!important;box-shadow:0 18px 46px rgba(15,23,42,.08)!important;backdrop-filter:none!important}
.rjs-template-modern-minimal .rjs-hero-panel dl div{background:#f8fafc!important;border:1px solid #eef2f7!important;border-radius:16px!important}
.rjs-template-modern-minimal .rjs-hero-panel dt{color:#64748b!important}.rjs-template-modern-minimal .rjs-hero-panel dd{color:#111827!important}
.rjs-template-modern-minimal .rjs-identifier-badges span{background:#f8fafc!important;border:1px solid #e2e8f0!important;color:#334155!important;border-radius:999px!important}
.rjs-template-modern-minimal .rjs-feature-card,.rjs-template-modern-minimal .rjs-service-grid a,.rjs-template-modern-minimal .rjs-site-page{background:#fff!important;border:1px solid #e5e7eb!important;border-radius:24px!important;box-shadow:none!important}
.rjs-template-modern-minimal.rjs-classic-footer{background:#fff!important;color:#475569!important;border:1px solid #e5e7eb!important;border-radius:24px!important;box-shadow:0 14px 38px rgba(15,23,42,.055)!important}
.rjs-template-modern-minimal.rjs-classic-footer h4,.rjs-template-modern-minimal.rjs-classic-footer strong{color:#111827!important}
.rjs-template-modern-minimal.rjs-classic-footer a{color:#475569!important}


/* RJS v8.5.8 global dropdown layer + Modern Minimal motion/compact hero */
.rjs-public-header,.rjs-classic-header,.rjs-minimal-header{position:relative!important;z-index:50000!important;overflow:visible!important}
.rjs-header-top,.rjs-header-nav-row,.rjs-public-nav,.rjs-nav-group,.rjs-public-actions,.rjs-language-switcher,.rjs-account-menu,.rjs-minimal-header-inner,.rjs-minimal-nav-wrap,.rjs-minimal-header-actions{position:relative!important;overflow:visible!important}
.rjs-public-nav{z-index:50020!important}.rjs-nav-group{z-index:50030!important}.rjs-nav-group:hover,.rjs-nav-group:focus-within,.rjs-language-switcher:hover,.rjs-language-switcher:focus-within,.rjs-account-menu:hover,.rjs-account-menu:focus-within{z-index:50060!important}
.rjs-nav-dropdown,.rjs-language-menu,.rjs-account-dropdown{z-index:50100!important;transform:translateY(8px);opacity:0;transition:opacity .18s ease,transform .18s ease,visibility .18s ease;visibility:hidden;pointer-events:none}
.rjs-nav-group:hover .rjs-nav-dropdown,.rjs-nav-group:focus-within .rjs-nav-dropdown,.rjs-language-switcher:hover .rjs-language-menu,.rjs-language-switcher:focus-within .rjs-language-menu,.rjs-account-menu:hover .rjs-account-dropdown,.rjs-account-menu:focus-within .rjs-account-dropdown{display:grid!important;opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
.rjs-classic-hero,.rjs-minimal-hero,.rjs-home-sections,.rjs-service-grid,.rjs-site-page,.rjs-minimal-content-grid{position:relative!important;z-index:1!important}
.rjs-minimal-hero{min-height:410px!important;padding:clamp(24px,3.4vw,46px)!important;border-radius:30px!important;gap:20px!important}
.rjs-minimal-hero h1{font-size:clamp(36px,5.3vw,68px)!important;line-height:1.02!important;margin:16px 0 12px!important;max-width:820px!important}
.rjs-minimal-hero p{font-size:clamp(15px,1.35vw,18px)!important;max-width:660px!important}
.rjs-template-modern-minimal .rjs-journal-search{margin:20px 0 14px!important;max-width:700px!important}.rjs-minimal-hero-aside{align-content:center!important}.rjs-minimal-orbit{min-height:150px!important;border-radius:26px!important;background:radial-gradient(circle at 50% 50%,#fff 0,color-mix(in srgb,var(--rjs-site-bg) 86%,#fff) 62%,#fff 100%)!important}.rjs-minimal-orbit:before{inset:26px!important;animation:rjsMinimalRingSpin 18s linear infinite}.rjs-minimal-orbit:after{content:"";position:absolute;inset:48px;border-radius:999px;background:radial-gradient(circle,color-mix(in srgb,var(--rjs-site-secondary) 12%,transparent),transparent 70%);animation:rjsMinimalPulse 3.4s ease-in-out infinite}.rjs-minimal-orbit span{top:50%!important;left:50%!important;right:auto!important;bottom:auto!important;inset-inline-start:auto!important;inset-inline-end:auto!important;width:12px!important;height:12px!important;animation:rjsMinimalDotOrbit 13s linear infinite;--rjs-dot-start:0deg;--rjs-dot-radius:58px}.rjs-minimal-orbit span:nth-child(2){--rjs-dot-start:120deg;--rjs-dot-radius:64px;animation-duration:16s}.rjs-minimal-orbit span:nth-child(3){--rjs-dot-start:240deg;--rjs-dot-radius:50px;animation-duration:11s}.rjs-minimal-metric{border-radius:20px!important;padding:14px 16px!important}.rjs-minimal-metric strong{font-size:16px!important}.rjs-template-modern-minimal .rjs-nav-dropdown,.rjs-template-modern-minimal .rjs-language-menu,.rjs-template-modern-minimal .rjs-account-dropdown{background:rgba(255,255,255,.96)!important;backdrop-filter:blur(16px);border-radius:18px!important;border:1px solid rgba(226,232,240,.92)!important;box-shadow:0 26px 70px rgba(15,23,42,.18)!important}
@keyframes rjsMinimalRingSpin{to{transform:rotate(360deg)}}@keyframes rjsMinimalPulse{0%,100%{opacity:.45;transform:scale(.92)}50%{opacity:.9;transform:scale(1.08)}}@keyframes rjsMinimalDotOrbit{from{transform:translate(-50%,-50%) rotate(var(--rjs-dot-start)) translateX(var(--rjs-dot-radius)) rotate(calc(var(--rjs-dot-start) * -1));opacity:.7}50%{opacity:1;box-shadow:0 0 0 12px color-mix(in srgb,var(--rjs-site-secondary) 18%,transparent),0 0 22px color-mix(in srgb,var(--rjs-site-secondary) 45%,transparent)}to{transform:translate(-50%,-50%) rotate(calc(var(--rjs-dot-start) + 360deg)) translateX(var(--rjs-dot-radius)) rotate(calc((var(--rjs-dot-start) + 360deg) * -1));opacity:.7}}

/* v8.7.5 open access shell structure fix */
.rjs-theme-shell.rjs-template-open-access-international>.rjs-oa-header,
.rjs-theme-shell.rjs-template-open-access-international>.rjs-oa-footer{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;left:auto!important;right:auto!important;border-radius:0!important}
.rjs-theme-shell.rjs-template-open-access-international>.rjs-theme-wrap{max-width:var(--rjs-site-wide-width,1380px)!important;margin-left:auto!important;margin-right:auto!important}
.rjs-theme-shell.rjs-template-open-access-international.rjs-layout-full>.rjs-theme-wrap{max-width:none!important;width:100%!important}
.rjs-theme-shell.rjs-template-open-access-international.rjs-layout-boxed>.rjs-theme-wrap{max-width:var(--rjs-site-boxed-width,1180px)!important}


/* RJS v8.7.6 panel layout width sync */
.rjs-theme-embedded-route.rjs-layout-full{max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:clamp(14px,2vw,32px)!important;padding-right:clamp(14px,2vw,32px)!important}
.rjs-theme-embedded-route.rjs-layout-wide{max-width:var(--rjs-site-wide-width,1380px)!important;width:100%!important;margin-left:auto!important;margin-right:auto!important}
.rjs-theme-embedded-route.rjs-layout-boxed{max-width:var(--rjs-site-boxed-width,1180px)!important;width:100%!important;margin-left:auto!important;margin-right:auto!important}
.rjs-journal-panel-frame.rjs-layout-full{max-width:none!important;width:100%!important}
.rjs-journal-panel-frame.rjs-layout-wide{max-width:var(--rjs-site-wide-width,1380px)!important;width:100%!important}
.rjs-journal-panel-frame.rjs-layout-boxed{max-width:var(--rjs-site-boxed-width,1180px)!important;width:100%!important}
.rjs-panel-embedded.rjs-layout-full{max-width:none!important;width:100%!important}


/* RJS v8.9.0 companion theme finalization */
.rjs-brand-logo{max-height:54px;width:auto;object-fit:contain;display:block}
.rjs-theme-content.rjs-layout-full{max-width:none!important;width:100%!important}
.rjs-theme-content.rjs-layout-wide{max-width:var(--rjs-site-wide-width,1380px)!important}
.rjs-theme-content.rjs-layout-boxed{max-width:var(--rjs-site-boxed-width,1180px)!important}
