
/* Public-facing visual system — emerald, warm ivory and muted gold */
@font-face{font-family:Vazirmatn;src:url('../fonts/Vazirmatn-Regular.woff2') format('woff2');font-weight:400;font-display:swap}@font-face{font-family:Vazirmatn;src:url('../fonts/Vazirmatn-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
:root{--pub-ink:#18352d;--pub-green:#176b50;--pub-deep:#104735;--pub-mint:#e8f3ed;--pub-gold:#c49a52;--pub-paper:#fbfaf6;--pub-muted:#718078;--pub-line:#e3e9e3}
body{font-family:Vazirmatn,Tahoma,sans-serif}.public-site{background:var(--pub-paper);color:var(--pub-ink);min-height:100vh;overflow:hidden}.site-header{background:rgba(255,255,255,.94);border-bottom:1px solid #e8ede8;position:relative;z-index:5}.site-header-inner{max-width:1190px;margin:auto;padding:15px 24px;display:flex;align-items:center;gap:28px}.site-brand{display:flex;align-items:center;gap:12px;color:var(--pub-ink);text-decoration:none;min-width:250px}.site-brand-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:15px;color:#fff;font-size:27px;box-shadow:0 7px 18px #155d4430}.site-brand b{display:block;font-size:15px;font-weight:800}.site-brand small{display:block;font-size:11px;color:var(--pub-muted);margin-top:3px}.site-nav{display:flex;align-items:center;gap:23px;margin-inline-start:auto}.site-nav a{color:#52645b;text-decoration:none;font-size:13px;font-weight:600;transition:.2s}.site-nav a:hover{color:var(--pub-green)}.site-actions{display:flex;gap:9px;align-items:center}.site-actions .btn{white-space:nowrap;text-decoration:none;border-radius:11px;padding:11px 15px;font-size:12px}.site-login{background:#f1f5f1;color:var(--pub-ink)}.site-menu-toggle{display:none;background:#f0f4f0;border:0;border-radius:10px;padding:10px;color:var(--pub-ink);font-size:19px}.site-main{max-width:1190px;margin:auto;padding:0 24px}.site-footer{background:#102f26;color:#e6f1eb;margin-top:75px;padding:42px 24px 0}.site-footer-inner{max-width:1142px;margin:auto;display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:50px;padding-bottom:35px}.footer-brand{color:#fff}.footer-brand small,.site-footer p,.site-footer span{color:#a7c0b4}.site-footer p{font-size:12px;line-height:2;margin:15px 0 0}.site-footer-inner>div:not(:first-child){display:flex;flex-direction:column;gap:12px;font-size:12px}.site-footer-inner>div>b{font-size:14px;color:#fff;margin-bottom:5px}.site-footer a:not(.site-brand){color:#b9d0c5;text-decoration:none}.site-footer a:hover{color:#fff}.site-copyright{border-top:1px solid #ffffff1a;max-width:1142px;margin:auto;padding:17px 0;display:flex;justify-content:space-between;gap:20px;font-size:11px;color:#b4c9bf}.home-hero{display:grid;grid-template-columns:1.03fr .97fr;align-items:center;gap:30px;min-height:500px;padding:45px 20px 36px;position:relative}.hero-copy{position:relative;z-index:2}.eyebrow-pill{display:inline-flex;align-items:center;gap:9px;border:1px solid #d9e8df;background:#f1f8f3;border-radius:30px;padding:8px 13px;font-size:11px;color:var(--pub-green);font-weight:700}.eyebrow-pill i{width:7px;height:7px;border-radius:50%;background:#2c956d;box-shadow:0 0 0 4px #2c956d20}.hero-copy h1{font-size:clamp(34px,4.2vw,53px);line-height:1.45;letter-spacing:-1.3px;margin:21px 0 14px;font-weight:900;color:#183c30}.hero-copy h1 em{font-style:normal;color:var(--pub-green)}.hero-copy>p{max-width:510px;color:#6b7b72;font-size:15px;line-height:2.2;margin:0}.hero-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:26px}.hero-cta,.join-cta{background:var(--pub-green);color:#fff!important;padding:14px 20px;border-radius:13px;text-decoration:none;box-shadow:0 9px 20px #176b5030;display:inline-flex;gap:22px;align-items:center}.hero-cta span,.join-cta span,.outline-btn span{font-size:18px}.hero-link{font-size:12px;color:#536a5d;text-decoration:none}.hero-trust{display:flex;gap:18px;flex-wrap:wrap;margin-top:25px;color:#718078;font-size:11px}.hero-trust span:first-letter{color:var(--pub-green)}.hero-art{height:380px;position:relative;display:grid;place-items:center}.art-glow{position:absolute;width:350px;height:350px;border-radius:50%;background:radial-gradient(circle,#d8eadb 0,#e9f2e9 54%,#f8f8f0 72%)}.art-mosque{width:300px;height:270px;position:relative;z-index:1;filter:drop-shadow(0 22px 14px #164c3520)}.mosque-body{position:absolute;bottom:28px;left:42px;right:42px;height:125px;background:linear-gradient(145deg,#27765a,#15513b);border-radius:100px 100px 8px 8px;box-shadow:inset 0 8px 0 #ffffff16}.dome{position:absolute;z-index:2;left:86px;top:29px;width:128px;height:112px;background:linear-gradient(140deg,#d5b574,#b78c45);border-radius:80px 80px 8px 8px;clip-path:polygon(50% 0,100% 100%,0 100%)}.dome:after{content:'';position:absolute;top:-16px;left:60px;height:20px;width:3px;background:#b78c45}.minaret{position:absolute;z-index:3;bottom:30px;width:24px;height:190px;background:linear-gradient(90deg,#e1c68b,#c3a35e);border-radius:5px 5px 0 0}.minaret:before{content:'';position:absolute;top:-25px;left:-8px;width:40px;height:32px;background:#c7a65f;border-radius:24px 24px 4px 4px}.minaret:after{content:'';position:absolute;top:-42px;left:10px;width:3px;height:20px;background:#b48d43}.m1{left:27px}.m2{right:27px;transform:scale(.84);transform-origin:bottom}.mosque-door{position:absolute;bottom:0;left:calc(50% - 22px);width:44px;height:69px;background:#e5d3a7;border-radius:30px 30px 0 0}.mosque-window{position:absolute;bottom:50px;width:23px;height:34px;border:3px solid #e0c98e;border-radius:15px 15px 4px 4px}.w1{left:35px}.w2{right:35px}.w3{left:calc(50% - 11px);bottom:84px}.mosque-ground{position:absolute;bottom:15px;left:0;right:0;height:10px;background:#d0b375;border-radius:50%}.floating-note{position:absolute;z-index:4;display:flex;align-items:center;gap:11px;padding:13px 16px;border:1px solid #fff;background:#ffffffed;box-shadow:0 14px 35px #1a49351a;border-radius:15px}.floating-note>span{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;background:#eaf5ee;font-size:20px}.floating-note b{font-size:12px;display:block}.floating-note small{display:block;color:#819087;font-size:10px;margin-top:5px}.note-one{top:40px;right:0}.note-two{bottom:30px;left:0}.feature-strip{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--pub-line);border-radius:20px;box-shadow:0 15px 40px #234c3510;padding:23px 12px;margin:0 0 62px}.feature-strip>div{display:grid;grid-template-columns:38px 1fr;column-gap:12px;align-items:center;padding:4px 20px;border-left:1px solid #e9eee9}.feature-strip>div:last-child{border-left:0}.feature-strip>div>span{grid-row:span 2;width:38px;height:38px;border-radius:12px;background:#eef6f0;color:var(--pub-green);display:grid;place-items:center;font-size:12px;font-weight:800}.feature-strip b{font-size:13px}.feature-strip small{font-size:10px;color:#819087;margin-top:5px}.public-section{margin:0 0 70px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.section-kicker{font-size:11px;font-weight:800;color:#a67d36;letter-spacing:.2px}.section-heading h2,.archive-hero h1{font-size:30px;margin:7px 0;color:var(--pub-ink);font-weight:900}.section-heading p,.archive-hero>p{margin:0;color:#819087;font-size:12px;line-height:2}.outline-btn{display:inline-flex;align-items:center;gap:15px;padding:11px 15px;border:1px solid #cddbd1;color:var(--pub-green);border-radius:11px;text-decoration:none;font-size:12px;font-weight:700;background:#fff;white-space:nowrap}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.gallery-card{position:relative;min-height:225px;background:#e8eee8;border-radius:17px;overflow:hidden;isolation:isolate}.gallery-card img{width:100%;height:250px;object-fit:cover;display:block;transition:transform .4s}.gallery-card:hover img{transform:scale(1.04)}.gallery-featured{grid-row:span 2}.gallery-featured img{height:100%;min-height:492px}.gallery-caption{position:absolute;inset:auto 0 0;padding:40px 16px 14px;display:flex;align-items:center;gap:10px;background:linear-gradient(transparent,#0d2b20d9);color:white}.gallery-caption span{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#ffffff25;border:1px solid #ffffff55;font-weight:800}.gallery-caption p{font-size:12px;margin:0;font-weight:700}.empty-public{grid-column:1/-1;min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#fff;border:1px dashed #cddbd1;border-radius:18px;padding:30px}.empty-public>span{font-size:30px;color:#83a891;margin-bottom:10px}.empty-public b{font-size:14px}.empty-public p{font-size:12px;color:#819087;margin:8px 0 0}.empty-public.compact{min-height:140px}.news-section{padding:0 0 5px}.news-list{background:#fff;border:1px solid var(--pub-line);border-radius:18px;overflow:hidden}.news-row{display:flex;align-items:center;gap:18px;padding:17px 20px;border-bottom:1px solid #edf0ec}.news-row:last-child{border-bottom:0}.news-row>img,.news-placeholder{width:104px;height:86px;object-fit:cover;border-radius:12px;flex-shrink:0}.news-placeholder{display:grid;place-items:center;background:linear-gradient(135deg,#eaf4ed,#f5edda);color:#a77e37;font-size:28px}.news-row-copy{min-width:0;flex:1}.news-date{color:#a18043;font-size:10px}.news-row h3{margin:6px 0;font-size:15px}.news-row h3 a{color:#234b3b;text-decoration:none}.news-row h3 a:hover{color:var(--pub-green)}.news-row p{margin:0;color:#819087;font-size:11px;line-height:1.9}.news-arrow{width:37px;height:37px;border:1px solid #e0e9e1;border-radius:50%;display:grid;place-items:center;color:var(--pub-green);text-decoration:none;flex-shrink:0}.join-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(115deg,#154a36,#1d7051);border-radius:22px;padding:30px 34px;color:white;position:relative;overflow:hidden}.join-banner>div,.join-cta{position:relative;z-index:1}.join-banner>div>span{color:#c7dfce;font-size:11px}.join-banner h2{margin:8px 0 0;font-size:20px}.join-cta{background:#fff;color:#18533c!important;box-shadow:none}.archive-hero{padding:45px 8px 28px}.archive-hero h1{font-size:34px;margin:10px 0}.breadcrumbs{display:flex;align-items:center;gap:10px;margin-top:20px;font-size:11px;color:#91a096}.breadcrumbs a{color:var(--pub-green);text-decoration:none}.archive-content{padding:0 8px}.archive-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.archive-gallery .gallery-card img{height:280px}.archive-news{margin-bottom:15px}.archive-news .news-row{padding:23px}.text-link{display:inline-block;color:var(--pub-green);font-size:11px;text-decoration:none;margin-top:10px}.article-shell{max-width:850px;margin:0 auto 55px;background:#fff;border:1px solid var(--pub-line);border-radius:22px;padding:30px}.article-cover{width:100%;max-height:430px;object-fit:cover;border-radius:15px;margin-bottom:25px}.article-shell h1{font-size:30px;line-height:1.7;margin:12px 0 20px}.article-body{font-size:14px;line-height:2.4;color:#42584c;margin-bottom:30px;overflow-wrap:anywhere}.article-body img{max-width:100%;height:auto}.register-layout{display:grid;grid-template-columns:.75fr 1.25fr;gap:22px;align-items:start;padding:0 8px 25px}.register-aside{background:linear-gradient(155deg,#154c38,#1c7554);color:white;border-radius:20px;padding:27px;position:sticky;top:20px}.register-aside-icon{width:57px;height:57px;display:grid;place-items:center;border-radius:17px;background:#ffffff18;font-size:29px}.register-aside h2{font-size:22px;line-height:1.7;margin:20px 0 8px}.register-aside>p{color:#c0d9cb;font-size:12px;line-height:2.2}.register-step{display:flex;gap:12px;align-items:center;border-top:1px solid #ffffff22;padding:17px 0 0;margin-top:17px}.register-step>span{width:33px;height:33px;border-radius:11px;background:#ffffff1b;display:grid;place-items:center;color:#e7d1a1}.register-step b{font-size:12px;display:block}.register-step small{font-size:10px;color:#b4d0c0;display:block;margin-top:4px}.register-form-card{background:#fff;border:1px solid var(--pub-line);border-radius:20px;padding:27px}.form-title{margin-bottom:22px}.form-title h2{font-size:20px;margin:7px 0}.form-title p{font-size:11px;color:#819087}.register-form{gap:18px}.register-form label{font-size:12px;color:#40574b;font-weight:700}.register-form label small{color:#819087;font-weight:400}.register-form input,.register-form select,.register-form textarea{display:block;width:100%;margin-top:8px;background:#fbfcfa;border:1px solid #dfe7df;border-radius:10px;padding:12px 13px;font:inherit;font-size:12px;color:#254738;outline:none;transition:.2s}.register-form input:focus,.register-form select:focus,.register-form textarea:focus{border-color:#5b9a78;box-shadow:0 0 0 3px #5b9a781c;background:white}.register-form .wide{grid-column:1/-1}.form-divider{display:flex;align-items:center;gap:12px;color:#9a7b43;font-size:12px;font-weight:800;margin-top:2px}.form-divider:after{content:'';height:1px;background:#e7ece6;flex:1}.form-submit-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:5px}.form-submit-row p{font-size:10px;color:#819087;line-height:1.8}.form-submit-row .btn{border:0;cursor:pointer;display:flex;gap:14px;align-items:center;padding:13px 17px;border-radius:11px}
@media(max-width:900px){.site-header-inner{gap:14px}.site-brand{min-width:unset}.site-nav{gap:13px}.site-nav a{font-size:11px}.site-actions .btn{padding:10px;font-size:11px}.home-hero{grid-template-columns:1fr 1fr;padding-inline:0}.hero-art{transform:scale(.88)}.feature-strip>div{padding:4px 10px}.register-layout{grid-template-columns:1fr}.register-aside{position:static}.register-aside h2{margin-top:12px}.register-step{display:inline-flex;margin-inline-end:12px;vertical-align:top}.site-footer-inner{gap:25px}}
@media(max-width:680px){.site-header-inner{padding:12px 16px;flex-wrap:wrap}.site-brand b{font-size:12px}.site-brand small{font-size:9px}.site-brand-icon{width:40px;height:40px}.site-actions{margin-inline-start:auto}.site-actions .site-login{display:inline-flex}.site-menu-toggle{display:block}.site-nav{display:none;order:4;width:100%;flex-direction:column;align-items:stretch;gap:0;padding:8px 0}.site-nav.is-open{display:flex}.site-nav a{padding:12px;border-top:1px solid #edf0ed;font-size:13px}.site-main{padding:0 16px}.home-hero{display:flex;flex-direction:column;align-items:stretch;padding:38px 3px 24px;gap:5px}.hero-copy h1{font-size:38px}.hero-copy>p{font-size:13px}.hero-art{height:300px;transform:scale(.82);transform-origin:top center;margin-bottom:-40px}.note-one{right:-4px}.note-two{left:-5px}.feature-strip{grid-template-columns:1fr 1fr;gap:16px;padding:18px;margin-bottom:45px}.feature-strip>div{border-left:0;padding:4px 3px}.feature-strip>div:nth-child(odd){border-left:1px solid #e9eee9}.public-section{margin-bottom:48px}.section-heading{align-items:start}.section-heading h2{font-size:25px}.section-heading p{max-width:220px}.section-heading .btn{font-size:10px;padding:10px;gap:5px}.gallery-grid,.archive-gallery{grid-template-columns:1fr 1fr;gap:10px}.gallery-card{min-height:155px}.gallery-card img,.archive-gallery .gallery-card img{height:175px}.gallery-featured{grid-row:auto}.gallery-featured img{min-height:0;height:175px}.gallery-caption{padding:28px 10px 10px}.gallery-caption p{font-size:10px}.gallery-caption span{width:25px;height:25px}.news-row{padding:13px;gap:12px}.news-row>img,.news-placeholder{width:75px;height:75px}.news-row h3{font-size:12px}.news-row p{font-size:10px}.news-arrow{width:29px;height:29px}.join-banner{padding:23px;align-items:flex-start;flex-direction:column}.join-banner h2{font-size:17px}.site-footer{margin-top:50px;padding:32px 20px 0}.site-footer-inner{grid-template-columns:1fr 1fr;gap:25px}.site-footer-inner>div:first-child{grid-column:1/-1}.site-copyright{flex-direction:column;gap:5px;line-height:1.8}.archive-hero{padding:32px 0 20px}.archive-hero h1{font-size:28px}.archive-content{padding:0}.archive-news .news-row{padding:13px}.article-shell{padding:20px 16px;border-radius:16px}.article-shell h1{font-size:23px}.register-layout{padding:0 0 15px}.register-form-card{padding:20px 15px}.register-form{grid-template-columns:1fr;gap:15px}.register-form .wide{grid-column:auto}.form-submit-row{align-items:stretch;flex-direction:column}.form-submit-row .btn{justify-content:center}}

.gallery-slider-wrap{position:relative}.gallery-slider{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:16px;padding:2px 2px 12px}.gallery-slider::-webkit-scrollbar{display:none}.gallery-slider .gallery-card{flex:0 0 calc(33.333% - 11px);scroll-snap-align:start;min-height:255px}.gallery-slider .gallery-card img,.gallery-slider .gallery-featured img{height:255px;min-height:0}.gallery-slider .gallery-featured{grid-row:auto}.gallery-scroll{position:absolute;z-index:2;top:45%;width:39px;height:39px;border:1px solid #dce7de;border-radius:50%;background:#fff;color:#176b50;box-shadow:0 5px 15px #1c4c321c;font-size:24px;cursor:pointer}.gallery-scroll.prev{right:-17px}.gallery-scroll.next{left:-17px}@media(max-width:680px){.gallery-slider .gallery-card{flex:0 0 78%;min-height:210px}.gallery-slider .gallery-card img,.gallery-slider .gallery-featured img{height:210px}.gallery-scroll.prev{right:-8px}.gallery-scroll.next{left:-8px}}

/* Refined photographic hero */
.hero-art.hero-photo{height:390px;border-radius:28px;overflow:hidden;isolation:isolate;background:#173f32 url('../images/mosque-hero.jpg') center/cover no-repeat;box-shadow:0 22px 55px #173f3228}
.hero-photo-shade{position:absolute;inset:0;background:linear-gradient(90deg,#0b2c22b8 0%,#0b2c2245 55%,#0b2c2208 100%);z-index:0}
.hero-photo-caption{position:absolute;z-index:2;right:8px;bottom:32px;color:#fff;display:flex;flex-direction:column;gap:8px;text-shadow:0 2px 12px #001d14}
.hero-photo-caption span{font-size:12px;color:#e3d0a1}.hero-photo-caption b{font-size:25px}.hero-photo-caption small{font-size:12px;color:#e4eee8}
.hero-art.hero-photo .floating-note{backdrop-filter:blur(8px)}

/* Collaboration request form and responsive photographic hero */
@media(max-width:680px){
  .home-hero{grid-template-columns:minmax(0,1fr)!important;padding-left:8px!important;padding-right:8px!important;gap:24px!important}
  .hero-art.hero-photo{width:100%!important;max-width:none!important;grid-column:1/-1!important;height:390px!important}
  .hero-photo-caption{right:14px!important;left:14px!important}
  .hero-photo-caption b{font-size:clamp(20px,6vw,26px)!important}
}
.join-banner>div{max-width:760px}
.join-banner p{margin:10px 0 0;color:#d4e5da;font-size:12px;line-height:2}
.collaboration-layout{grid-template-columns:.7fr 1.3fr}
.collaboration-form .repeat-list{display:grid;gap:12px}
.repeat-row{display:grid;grid-template-columns:1fr 1fr 38px;gap:12px;align-items:end;background:#f8faf7;border:1px solid #e5ece5;border-radius:13px;padding:13px}
.repeat-remove{height:40px;border:1px solid #ecd7d3;border-radius:10px;background:#fff5f3;color:#a94438;font-size:22px;cursor:pointer}
.repeat-actions{margin-top:-7px}
.repeat-actions .btn{font-size:11px;padding:9px 13px}
.char-count{display:block;text-align:left;color:#87958b;font-size:10px;margin-top:5px}
.status-pill{display:inline-flex;align-items:center;padding:6px 10px;border-radius:30px;background:#edf5ef;color:#426b53;font-size:11px;white-space:nowrap}
.status-pill.unread{background:#fff2df;color:#94621c}
.detail-panel{padding:25px}
.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
.detail-grid>div{padding:14px;border:1px solid #e7ece7;border-radius:12px;background:#fbfcfa;display:flex;flex-direction:column;gap:7px;min-width:0}
.detail-grid small{color:#829087;font-size:10px}
.detail-grid b{font-size:13px;overflow-wrap:anywhere}
.detail-section{border-top:1px solid #e9eee9;padding-top:18px;margin-top:20px}
.detail-section h3{font-size:14px;margin:0 0 12px}
.detail-section>p,.experience-detail p{font-size:12px;line-height:2.2;color:#52675a}
.experience-detail{padding:12px 14px;background:#f8faf7;border-radius:11px;margin:8px 0}
.experience-detail p{margin:5px 0 0}
.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:680px){
 .collaboration-layout{grid-template-columns:1fr}
 .repeat-row{grid-template-columns:1fr;gap:8px}
 .repeat-remove{width:100%;height:34px}
 .detail-grid{grid-template-columns:1fr}
 .detail-panel{padding:17px}
}

/* Final mobile hero sizing: remove inherited scale that made the photo narrower */
@media (max-width:680px){
  .home-hero{display:flex!important;flex-direction:column!important;align-items:stretch!important;padding-inline:0!important;gap:18px!important}
  .hero-art.hero-photo{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    align-self:stretch!important;
    flex:0 0 auto!important;
    box-sizing:border-box!important;
    transform:none!important;
    transform-origin:center!important;
    margin:0!important;
    height:390px!important;
  }
}

/* Unread collaboration requests stand out in the superadmin sidebar */
nav a.has-unread,nav a.has-unread span{font-weight:900!important}
.table-actions,.detail-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.table-actions form,.detail-actions form{margin:0}
.btn.danger{background:#fff2f0!important;color:#a43e35!important;border:1px solid #f0d1cc!important}
.btn.danger:hover{background:#ffe7e3!important}


/* News images: preserve original aspect ratio */

/* تصاویر خبر در صفحه اصلی و آرشیو */
.news-row>img {
    object-fit: contain;
    background: #f4f6f2;
}

/* تصویر اصلی در صفحه جزئیات خبر */
.article-cover {
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}
