
/*
Theme Name: Rashidi Persian Motif Final
Theme URI: https://example.com/
Author: OpenAI
Description: قالب فارسی شخصی با صفحه اصلی نزدیک به مرجع تصویری، مناسب راه‌اندازی سریع در وردپرس.
Version: 1.2.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: rashidi-motif-exact
*/
:root{--navy:#0d3d5a;--gold:#c79a45;--cream:#f5ecdc;--beige:#efe3cc;--ink:#15384e;--shadow:0 12px 32px rgba(0,0,0,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#ede3d2;color:var(--ink);direction:rtl;font-family:Vazirmatn,Tahoma,Arial,sans-serif}a{text-decoration:none;color:inherit}img{max-width:100%;height:auto;display:block}.site-wrap{min-height:100vh;background:#f2e8d8}.rm-container{width:min(1260px,calc(100% - 34px));margin:0 auto}.rm-header{position:sticky;top:0;z-index:50;background:linear-gradient(to bottom,rgba(239,227,210,.94),rgba(239,227,210,.88));backdrop-filter:blur(8px)}.admin-bar .rm-header{top:32px}.rm-navbar{display:grid;grid-template-columns:170px 1fr 260px;align-items:center;gap:18px;padding:14px 18px;border-radius:0 0 26px 26px;background:#fbf9f4;border:1px solid #ecddc6;box-shadow:var(--shadow)}.rm-home-btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 18px;border-radius:28px;background:linear-gradient(135deg,#b27a24,#d7ab5d);color:#fff;font-weight:800;font-size:14px}.rm-nav-right{display:flex;align-items:center;gap:10px}.rm-mobile-toggle{display:none;border:0;background:#fff3dd;color:#7d5714;border-radius:12px;padding:10px 12px;font-size:18px}.rm-nav{justify-self:center}.rm-nav .rm-menu,.rm-nav{display:flex;align-items:center;gap:26px;list-style:none;padding:0;margin:0}.rm-nav a{font-size:15px;font-weight:700;color:#274458}.rm-nav a:hover{color:#af7b26}.rm-brand-block{text-align:right}.rm-logo{font-size:34px;line-height:1;font-weight:900;color:#123a53}.rm-tagline{margin-top:8px;font-size:14px;color:#6f6b5f;font-weight:600}.rm-home-main{padding-bottom:34px}.rm-exact-hero{padding-top:22px}.rm-hero-image-wrap{border-radius:24px;overflow:hidden;box-shadow:0 16px 38px rgba(26,37,52,.11);background:#ead7b7}.rm-hero-full{width:100%;height:auto}.rm-features-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:14px}.rm-feature-card{display:grid;grid-template-columns:54px 1fr 74px;gap:12px;align-items:center;padding:16px 18px;border-radius:18px;border:1px solid #ead9bf;box-shadow:0 6px 16px rgba(51,52,30,.06);min-height:115px}.rm-feature-card img{width:68px;height:68px;object-fit:cover;border-radius:12px;justify-self:end}.rm-feature-icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;font-size:24px;background:#be8b35;color:#fff}.rm-feature-body h3{margin:0 0 6px;font-size:17px;color:#173b55}.rm-feature-body p{margin:0;font-size:13px;line-height:1.9;color:#6f6b63}.tone-cream{background:linear-gradient(180deg,#f9efe0,#f5e8d4)}.tone-warm{background:linear-gradient(180deg,#efe7da,#e9f4ef)}.tone-gold{background:linear-gradient(180deg,#f7eedf,#f6e9db)}.tone-olive{background:linear-gradient(180deg,#f7ebdd,#f3edd8)}.rm-content-grid{display:grid;grid-template-columns:1fr 1.08fr 1fr;gap:16px;margin-top:16px}.rm-panel{background:#fbf8f2;border:1px solid #eadcc6;border-radius:22px;box-shadow:var(--shadow);padding:18px}.rm-panel h2{margin:0;color:#143952;font-size:33px}.rm-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.rm-panel-head h2{font-size:18px}.rm-more-link{font-size:13px;font-weight:800;background:#f2f0eb;border:1px solid #e0daca;padding:8px 12px;border-radius:16px;color:#183852}.rm-story-item{display:grid;grid-template-columns:95px 1fr;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #eae2d2}.rm-story-item:last-child{border-bottom:0}.rm-story-thumb{width:95px;height:76px;border-radius:12px;object-fit:cover}.rm-story-title{display:block;font-size:14px;font-weight:900;color:#15384d;line-height:1.9}.rm-story-excerpt{font-size:12px;color:#7d786f;line-height:1.9}.rm-story-date{font-size:11px;color:#9e987f;margin-top:6px}.rm-center-panel{padding:0;overflow:hidden}.rm-shiraz-card{display:grid;grid-template-columns:48% 52%;min-height:100%}.rm-shiraz-art{background:#ddc39a}.rm-shiraz-art img{width:100%;height:100%;object-fit:cover}.rm-shiraz-copy{padding:28px 24px;background:linear-gradient(135deg,#fbf3e8,#f6e5c9)}.rm-shiraz-copy h2{font-size:28px;line-height:1.7}.rm-shiraz-copy p{font-size:16px;line-height:2.4;color:#3f4f5c;margin:14px 0 22px}.rm-gold-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:28px;padding:13px 24px;background:linear-gradient(135deg,#af7823,#d3aa61);color:#fff;font-weight:800}.rm-priority-panel h2{font-size:20px;margin-bottom:12px}.rm-priority-item{display:grid;grid-template-columns:42px 1fr;gap:12px;align-items:flex-start;padding:14px 0;border-bottom:1px solid #ebdfcd}.rm-priority-item:last-child{border-bottom:0}.rm-priority-item span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#c89947;color:#fff;font-size:19px}.rm-priority-item strong{display:block;font-size:15px;line-height:1.9;color:#173a54}.rm-priority-item small{display:block;font-size:12px;color:#7d7a71;line-height:1.8}.rm-footer-banner-wrap{margin-top:18px}.rm-footer-banner{background:linear-gradient(90deg,rgba(7,40,59,.92),rgba(16,65,87,.82)),url(assets/images/footer-ref.jpg) center/cover;border-radius:22px;padding:26px 26px;display:grid;grid-template-columns:220px 1fr 220px;gap:18px;align-items:end;color:#fff;min-height:188px;box-shadow:var(--shadow)}.rm-footer-title h2{font-size:60px;line-height:1;margin:0;color:#efbc61}.rm-footer-title p{margin:8px 0 0;font-size:20px;font-weight:800}.rm-footer-boxes{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.rm-footer-box{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);border-radius:18px;padding:18px 12px;text-align:center;font-size:17px;font-weight:700}.rm-footer-box small{display:block;font-size:12px;color:#d7e1e8;margin-top:8px}.rm-footer-cta{text-align:left;align-self:center;font-size:24px;font-weight:700}.rm-footer-cta strong{display:block;font-size:38px;color:#f2be64}.rm-lower-sections{margin-top:18px}.rm-section{background:#fbf8f2;border:1px solid #eadcc6;border-radius:20px;box-shadow:var(--shadow);padding:22px 24px;margin-bottom:14px}.rm-section h2{margin:0 0 8px;font-size:24px;color:#143b52}.rm-section p{margin:0;font-size:15px;line-height:2.5;color:#42515d}.rm-footer{background:#f4ead9;border-top:1px solid #e7d9c4;padding:24px 0;text-align:center;color:#6c675d;font-size:13px}.rm-footer small{display:block;margin-top:6px}
@media (max-width:1100px){.rm-navbar{grid-template-columns:150px 1fr 220px}.rm-nav .rm-menu,.rm-nav{gap:14px}.rm-nav a{font-size:13px}.rm-features-row{grid-template-columns:repeat(2,1fr)}.rm-content-grid{grid-template-columns:1fr}.rm-footer-banner{grid-template-columns:1fr;align-items:start}.rm-footer-boxes{grid-template-columns:repeat(2,1fr)}}
@media (max-width:782px){.admin-bar .rm-header{top:46px}.rm-navbar{grid-template-columns:1fr;gap:12px;padding:14px;border-radius:0 0 18px 18px}.rm-nav-right{justify-content:space-between}.rm-mobile-toggle{display:inline-flex}.rm-nav{display:none}.rm-nav.open{display:block}.rm-nav .rm-menu,.rm-nav{flex-direction:column;gap:10px;align-items:stretch;background:#fff;padding:14px;border-radius:16px;border:1px solid #ecdeca}.rm-brand-block{text-align:center}.rm-logo{font-size:28px}.rm-tagline{font-size:13px}.rm-container{width:min(100% - 18px,1260px)}.rm-features-row{grid-template-columns:1fr}.rm-feature-card{grid-template-columns:50px 1fr 56px;padding:14px}.rm-feature-card img{width:56px;height:56px}.rm-shiraz-card{grid-template-columns:1fr}.rm-shiraz-copy h2{font-size:23px}.rm-footer-boxes{grid-template-columns:1fr}.rm-footer-title h2{font-size:44px}.rm-footer-cta{font-size:20px;text-align:right}.rm-footer-cta strong{font-size:30px}}

/* ===== v1.2: all hero text and controls are real HTML, no embedded buttons ===== */
.rm-header{position:relative!important;top:auto!important;background:#f6ecde!important}
.admin-bar .rm-header{top:auto!important}
.rm-navbar{grid-template-columns:180px minmax(0,1fr) 220px!important;padding:12px 17px!important}
.rm-logo{font-size:26px!important;white-space:nowrap}.rm-tagline{font-size:11px!important}
.rm-nav a{font-size:12px!important}.rm-nav,.rm-nav .rm-menu{gap:12px!important}
.rm-hero-v12{height:470px;margin:0 auto;max-width:1260px;position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(100deg,#09324a 0%,#efd1a3 40%,#fcf5e6 73%,#f7ecd6);border-radius:0 0 23px 23px;box-shadow:0 10px 30px #1c355016}
.rm-hero-v12:before{content:'';position:absolute;inset:0;z-index:0;background:linear-gradient(to left,#fbf5e8 0%,#f9f0dfba 27%,transparent 50%),linear-gradient(to right,#063a52c9 0%,transparent 35%)}
.rm-hero-scene{position:absolute;top:0;bottom:0;left:0;width:63%;background:url(assets/images/hafezieh-clean.jpg) center 45%/cover no-repeat;z-index:-1;mask-image:linear-gradient(to right,#000 50%,transparent 100%);-webkit-mask-image:linear-gradient(to right,#000 50%,transparent 100%)}
.rm-hero-profile{position:absolute;z-index:2;bottom:-10px;left:28%;width:35%;height:95%;display:flex;justify-content:center;align-items:end}
.rm-hero-profile img{height:100%;width:100%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 0 18px #d6b684a3);mask-image:linear-gradient(to top,#000 85%,#000 93%,transparent 100%);-webkit-mask-image:linear-gradient(to top,#000 85%,#000 93%,transparent 100%)}
.rm-hero-heading{position:absolute;z-index:3;right:4%;top:15%;width:39%;text-align:right}
.rm-overline-v12{display:inline-block;background:#ecc887;border-radius:40px;padding:8px 18px;font-size:13px;font-weight:800;color:#233a45}
.rm-hero-heading h1{font-size:clamp(33px,4.5vw,62px);font-weight:900;color:#123c53;line-height:1.28;letter-spacing:-1.2px;margin:24px 0 12px;text-shadow:0 3px 0 #fff6}
.rm-hero-heading p{font-size:17px;line-height:2;color:#203f4b;max-width:420px;font-weight:700}
.rm-hero-ornament{position:absolute;right:-22px;top:-65px;font-size:260px;color:#d5a25730;z-index:0;pointer-events:none}
.rm-quote-card{position:absolute;left:0;bottom:0;width:25%;height:67%;background:linear-gradient(145deg,#07384cda,#053451f5);border-radius:0 110px 0 0;z-index:4;padding:38px 25px 23px;color:#fff;display:flex;flex-direction:column;justify-content:center;text-align:center}
.rm-quote-symbol{font-size:60px;color:#edbb62;line-height:.7}.rm-quote-card p{font-size:15px;line-height:2.3;font-weight:650;margin:20px 0}
.rm-hero-tags{position:absolute;z-index:6;right:4%;bottom:0;display:flex;align-items:center;justify-content:center;width:52%;background:#fff9eff2;box-shadow:0 -7px 27px #85652d24;border-radius:48px 48px 0 0;padding:12px 10px;gap:0}
.rm-hero-tags span{font-size:23px;color:#af8035;display:flex;flex-direction:column;align-items:center;min-width:0;flex:1;text-align:center;border-left:1px solid #e6d6bd}
.rm-hero-tags span:last-child{border:0}.rm-hero-tags b{font-size:10px;color:#1d4056;font-weight:700;line-height:1.5}
.rm-feature-card{grid-template-columns:45px minmax(0,1fr)!important;min-height:113px!important;overflow:hidden;position:relative}
.rm-feature-card img{display:none!important}.rm-feature-icon{height:43px;width:43px;font-size:21px}.rm-feature-body h3{font-size:15px}.rm-feature-body p{font-size:11px}
.rm-center-panel .rm-shiraz-card{grid-template-columns:46% 54%!important;min-height:390px}
.rm-shiraz-art{order:2;overflow:hidden}.rm-shiraz-copy{order:1;padding:20px 15px!important;background:linear-gradient(140deg,#fbf7ed,#f5e2c5)}
.rm-shiraz-art img{width:100%;height:100%;object-fit:cover;object-position:48% center}
.rm-shiraz-copy h2{font-size:25px!important;line-height:1.6}.rm-shiraz-copy p{font-size:13px!important;line-height:2.2!important}
.rm-panel{min-height:400px}.rm-priority-item{padding:8px 0}.rm-priority-item strong{font-size:12px}.rm-priority-item small{font-size:11px}.rm-priority-item span{width:34px;height:34px;font-size:15px}.rm-priority-item{grid-template-columns:34px 1fr}
.rm-story-item{grid-template-columns:75px minmax(0,1fr)}.rm-story-thumb{width:75px;height:68px}.rm-story-title{font-size:12px}.rm-story-excerpt{font-size:11px}.rm-empty-news{padding:32px 10px;text-align:center;color:#70685e;line-height:2.2}
.rm-footer-banner{background:linear-gradient(90deg,#05334ccf,#153f57b5),url(assets/images/shiraz-footer-clean.jpg) center/cover no-repeat;min-height:170px}.rm-footer-box{font-size:13px}.rm-footer-cta{font-size:20px}.rm-footer-cta strong{font-size:29px}
.rm-lower-sections{max-width:1260px}.rm-section{padding:18px 24px}.rm-section h2{font-size:20px}.rm-section p{font-size:13px;line-height:2.25}
@media(max-width:1100px){.rm-navbar{grid-template-columns:145px 1fr 175px!important}.rm-nav,.rm-nav .rm-menu{gap:8px!important}.rm-logo{font-size:20px!important}.rm-hero-v12{height:440px}.rm-hero-heading{right:3%;width:42%}.rm-hero-heading h1{font-size:36px}.rm-hero-profile{left:26%;width:38%}.rm-quote-card{width:27%}.rm-hero-tags{right:3%;width:60%}.rm-content-grid{grid-template-columns:1fr 1fr!important}.rm-priority-panel{grid-column:1/-1}.rm-center-panel .rm-shiraz-card{min-height:340px}}
@media(max-width:782px){.rm-navbar{grid-template-columns:1fr!important}.rm-hero-v12{height:650px;border-radius:0 0 20px 20px}.rm-hero-scene{width:100%;height:58%;bottom:auto;mask-image:linear-gradient(to bottom,#000 55%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 55%,transparent 100%)}.rm-hero-heading{top:4%;right:5%;width:91%;text-align:right}.rm-hero-heading h1{font-size:32px;margin:12px 0}.rm-hero-heading p{font-size:13px;max-width:300px}.rm-overline-v12{font-size:11px}.rm-hero-profile{width:80%;height:62%;left:9%;bottom:30px}.rm-quote-card{display:none}.rm-hero-tags{width:100%;right:0;border-radius:25px 25px 0 0;padding:10px 5px}.rm-hero-tags b{font-size:8px}.rm-hero-tags span{font-size:16px}.rm-content-grid{grid-template-columns:1fr!important}.rm-priority-panel{grid-column:auto}.rm-footer-banner{grid-template-columns:1fr}.rm-footer-boxes{grid-template-columns:repeat(2,1fr)}.rm-navbar .rm-nav.open{display:block}.rm-logo{font-size:23px!important}}

/* Final alignment: match reference (news at left, priorities at right) */
.rm-content-grid{direction:ltr!important}.rm-content-grid>.rm-panel{direction:rtl!important}
.rm-features-row{direction:ltr!important}.rm-features-row>.rm-feature-card{direction:rtl!important}
