/* ==========================================================================
   ایاک نعبد – theme.css
   طراحی مطابق اپ: سبز زمردی + طلایی، فونت وزیرمتن، کارت‌های ملایم
   ========================================================================== */
:root{
  --primary:#0F5C4E;--primary-dark:#0A3E34;--primary-deep:#062822;--primary-light:#167A68;
  --accent-green:#2E8B75;--pale-green:#F0F7F4;--pale-green-border:#D3E4DC;--pale-green-hover:#E4F1EB;--pale-mint:#E8F5EF;
  --gold:#C9A75D;--gold-light:#EFE7D2;--gold-dark:#9A7730;
  --canvas:#FAFCFA;--card:#fff;--border:#DDE8E2;
  --text:#0F1715;--text-2:#334A42;--text-muted:#5C756B;
  --header-h:56px;--bottomnav-h:64px;
  --safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px);
  --radius:20px;
  --shadow-islamic:0 4px 20px -2px rgba(15,92,78,.06),0 2px 6px -1px rgba(15,92,78,.03);
  --shadow-islamic-lg:0 10px 25px -3px rgba(15,92,78,.08),0 4px 10px -2px rgba(15,92,78,.04);
  --container:1180px;
}
@media (min-width:640px){:root{--header-h:64px}}

*,*::before,*::after{box-sizing:border-box}
html{font-size:18px;-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (min-width:640px){html{font-size:16px}}
body{
  margin:0;direction:rtl;
  font-family:'Vazirmatn FD','Vazirmatn',-apple-system,BlinkMacSystemFont,'Segoe UI',Tahoma,Roboto,sans-serif;
  font-feature-settings:'locl' 1;font-size:1rem;line-height:1.6;letter-spacing:-.01em;
  color:var(--text);background:var(--canvas);overflow-x:hidden;overscroll-behavior-y:none;
  -webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;
}
body.has-bottom-nav{padding-bottom:calc(var(--bottomnav-h) + var(--safe-b))}
input,button,select,textarea{font-family:inherit;font-size:inherit;-webkit-tap-highlight-color:transparent}
img{max-width:100%;height:auto}
a{color:var(--primary);text-decoration:none}
a:hover{color:var(--primary-dark)}
::selection{background:var(--primary);color:#fff}
h1,h2,h3,h4,h5,h6{line-height:1.45;font-weight:800;color:var(--text);margin:0 0 .5em}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link:focus{position:fixed;top:8px;inset-inline-start:8px;z-index:9999;background:#fff;padding:10px 16px;border-radius:12px;width:auto;height:auto;clip:auto}
.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}
.no-scrollbar::-webkit-scrollbar{display:none}
.eyy-ico{width:1.25em;height:1.25em;flex:none;vertical-align:-.2em}
.eyy-ico.flip{transform:scaleX(-1)}
.font-quran{font-family:'Amiri Quran','Amiri','Traditional Arabic',serif!important;font-size:1.3em;line-height:2.2}
.font-amiri{font-family:'Amiri','Vazirmatn FD',serif!important;font-size:1.15em;line-height:2}

.eyy-container{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:14px}
@media (min-width:640px){.eyy-container{padding-inline:24px}}
.eyy-container--narrow{max-width:860px}
.eyy-main{min-height:60vh;padding-block:14px 32px}
@media (min-width:1024px){.eyy-main{padding-block:28px 56px}}

/* ---------- Header ---------- */
.eyy-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
  border-bottom:1px solid var(--pale-green-border);box-shadow:0 4px 24px rgba(15,92,78,.05);
  padding-top:var(--safe-t);
}
.admin-bar .eyy-header{top:32px}
@media (max-width:782px){.admin-bar .eyy-header{top:46px}}
.eyy-header__hairline{height:2px;background:linear-gradient(90deg,transparent,rgba(201,167,93,.35),transparent)}
.eyy-header__bar{height:var(--header-h);display:flex;align-items:center;justify-content:space-between;gap:12px}
.eyy-brand{display:flex;align-items:center;gap:10px;min-width:0;color:var(--text)}
.eyy-emblem{
  width:36px;height:36px;border-radius:16px;flex:none;overflow:hidden;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  border:1px solid rgba(201,167,93,.4);display:flex;align-items:center;justify-content:center;
  color:var(--gold-light);transition:transform .2s;
}
@media (min-width:640px){.eyy-emblem{width:40px;height:40px}}
.eyy-brand:active .eyy-emblem{transform:scale(.95)}
.eyy-emblem .eyy-ico{width:20px;height:20px}
.eyy-emblem--img{background:#fff}
.eyy-emblem--img img,.eyy-emblem--img .custom-logo-link{display:block;width:100%;height:100%}
.eyy-emblem--img img{object-fit:cover}
.eyy-brand__text{display:flex;flex-direction:column;min-width:0}
.eyy-brand__name{font-weight:900;font-size:.875rem;line-height:1;letter-spacing:-.02em;transition:color .2s}
@media (min-width:640px){.eyy-brand__name{font-size:1rem}}
.eyy-brand:hover .eyy-brand__name{color:var(--primary)}
.eyy-brand__tag{font-size:10px;color:var(--text-muted);font-weight:600;line-height:1.2;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (min-width:640px){.eyy-brand__tag{font-size:11px}}

.eyy-desknav{display:none}
@media (min-width:900px){
  .eyy-desknav{display:block;flex:1;min-width:0}
  .eyy-desknav__list,.eyy-desknav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}
  .eyy-desknav li{position:relative}
  .eyy-desknav a{display:block;padding:8px 14px;border-radius:12px;font-weight:700;font-size:.875rem;color:var(--text-2);transition:background .2s,color .2s}
  .eyy-desknav a:hover{background:var(--pale-green);color:var(--primary)}
  .eyy-desknav .current-menu-item>a,.eyy-desknav .current_page_item>a,.eyy-desknav .current-menu-ancestor>a{background:var(--pale-mint);color:var(--primary)}
  .eyy-desknav .sub-menu{display:none;position:absolute;top:100%;inset-inline-start:0;min-width:200px;background:#fff;border:1px solid var(--pale-green-border);border-radius:16px;box-shadow:var(--shadow-islamic-lg);padding:6px;flex-direction:column;align-items:stretch;gap:2px;z-index:10}
  .eyy-desknav li:hover>.sub-menu,.eyy-desknav li:focus-within>.sub-menu{display:flex}
}

.eyy-header__actions{display:flex;align-items:center;gap:8px;flex:none}
.eyy-iconbtn,.eyy-growthbtn{
  height:36px;border-radius:12px;border:1px solid var(--pale-green-border);color:var(--primary);
  display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:all .2s;cursor:pointer;
  box-shadow:0 1px 2px rgba(15,92,78,.04);
}
.eyy-iconbtn{width:36px;background:rgba(255,255,255,.8)}
.eyy-growthbtn{padding-inline:10px;background:rgba(232,245,239,.9);border-color:rgba(15,92,78,.25);font-size:.75rem;font-weight:700}
.eyy-iconbtn:hover{background:var(--pale-green);border-color:rgba(15,92,78,.5)}
.eyy-growthbtn:hover{background:var(--pale-green-border)}
.eyy-iconbtn:active,.eyy-growthbtn:active{transform:scale(.95)}
.eyy-growthbtn__label{display:none}
@media (min-width:640px){.eyy-iconbtn,.eyy-growthbtn{height:40px}.eyy-iconbtn{width:40px}.eyy-growthbtn{padding-inline:14px}.eyy-growthbtn__label{display:inline}}
@media (min-width:900px){.eyy-iconbtn{display:none}}

/* ---------- Search ---------- */
.eyy-stickysearch{position:sticky;top:calc(var(--header-h) + var(--safe-t) + 2px);z-index:20;padding:8px 0;margin-bottom:12px;background:rgba(250,252,250,.95);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-bottom:1px solid rgba(0,0,0,.03)}
.admin-bar .eyy-stickysearch{top:calc(var(--header-h) + 34px)}
.eyy-search{position:relative;display:flex;align-items:center;background:#fff;border:1px solid var(--pale-green-border);border-radius:16px;box-shadow:0 1px 2px rgba(15,92,78,.04);transition:border-color .2s,box-shadow .2s}
.eyy-search:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px rgba(15,92,78,.12)}
.eyy-search__ico{padding-inline:14px 0;color:var(--text-muted);display:flex}
.eyy-search input[type=search]{flex:1;min-width:0;border:0;outline:0;background:transparent;padding:12px 10px;color:var(--text);height:46px;-webkit-appearance:none;appearance:none}
.eyy-search input::placeholder{color:var(--text-muted);opacity:.8}
.eyy-search__btn{margin:5px;height:36px;padding-inline:16px;border:0;border-radius:12px;background:var(--primary);color:#fff;font-weight:700;font-size:.8125rem;cursor:pointer;transition:background .2s}
.eyy-search__btn:hover{background:var(--primary-dark)}
.eyy-main>.eyy-container>.eyy-stickysearch{margin-top:-4px}

/* ---------- Sections ---------- */
.eyy-section{margin-top:20px}
.eyy-section--divider{padding-top:18px;border-top:1px solid #E8ECE9;margin-top:28px}
.eyy-sechead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 12px;padding-inline:4px}
.eyy-sechead__title{display:flex;align-items:center;gap:8px;font-size:.875rem;font-weight:700;margin:0;color:var(--text)}
.eyy-sechead__title .eyy-ico{color:var(--primary);width:18px;height:18px}
.eyy-sechead__count{font-size:.75rem;color:#3B4D46}
.eyy-center{text-align:center;margin:24px 0 0}

.eyy-pagehead{margin:8px 0 18px;padding:20px;border-radius:var(--radius);background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;position:relative;overflow:hidden;border:1px solid rgba(201,167,93,.35)}
.eyy-pagehead::after{content:"";position:absolute;inset:0;background-image:radial-gradient(circle at 50% 50%,rgba(239,231,210,.1) 1.5px,transparent 1.5px);background-size:26px 26px;pointer-events:none}
.eyy-pagehead h1{color:#fff;margin:0;font-size:1.25rem;position:relative;z-index:1}
.eyy-pagehead__desc{margin-top:6px;color:var(--gold-light);font-size:.875rem;position:relative;z-index:1}
@media (min-width:900px){.eyy-pagehead{padding:30px 34px}.eyy-pagehead h1{font-size:1.6rem}}

/* ---------- Chips ---------- */
.eyy-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 4px 8px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.eyy-chip{flex:none;scroll-snap-align:start;padding:7px 14px;border-radius:999px;border:1px solid var(--pale-green-border);background:#fff;color:var(--text-2);font-size:.8125rem;font-weight:600;white-space:nowrap;transition:all .2s}
.eyy-chip:hover{background:var(--pale-green);color:var(--primary);border-color:rgba(15,92,78,.4)}
.eyy-chip.is-active{background:var(--primary);color:#fff;border-color:var(--primary);box-shadow:0 4px 14px -4px rgba(15,92,78,.5)}
@media (min-width:900px){.eyy-chips{flex-wrap:wrap;overflow:visible}}

/* ---------- Cards ---------- */
.eyy-grid{display:grid;grid-template-columns:1fr;gap:14px}
@media (min-width:640px){.eyy-grid{grid-template-columns:repeat(2,1fr);gap:16px}}
@media (min-width:1024px){.eyy-grid{grid-template-columns:repeat(3,1fr);gap:20px}}
@media (min-width:1280px){.eyy-grid{grid-template-columns:repeat(4,1fr)}}

.eyy-card{--c-bg:#F7FAF8;--c-border:#D9EAE1;--c-hover:rgba(15,92,78,.6);--c-tag-bg:#EBF5EF;--c-tag:#0F5C4E;--c-thumb1:#E8F5EF;--c-thumb2:#D2E7DE;
  background:var(--c-bg);border:1px solid var(--c-border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-islamic);transition:transform .25s,border-color .2s,box-shadow .25s;height:100%}
.eyy-card:hover{border-color:var(--c-hover);box-shadow:var(--shadow-islamic-lg);transform:translateY(-2px)}
.eyy-card:active{transform:scale(.99)}
.eyy-card--t1{--c-bg:#FAF8F3;--c-border:#EFE7D5;--c-hover:rgba(201,167,93,.6);--c-tag-bg:#F7F1E1;--c-tag:#8A671A;--c-thumb1:#FAF3E0;--c-thumb2:#EFE1BD}
.eyy-card--t2{--c-bg:#F6F9FA;--c-border:#DCE6ED;--c-hover:rgba(31,110,140,.6);--c-tag-bg:#EAF2F6;--c-tag:#1F5C7A;--c-thumb1:#E8F2F8;--c-thumb2:#CFE2EE}
.eyy-card--t3{--c-bg:#F8FAF5;--c-border:#E0E9D5;--c-hover:rgba(75,107,40,.6);--c-tag-bg:#EDF4E4;--c-tag:#3E5C1C;--c-thumb1:#EDF5E3;--c-thumb2:#D5E6C3}
.eyy-card--t4{--c-bg:#FAF8F6;--c-border:#EDE3DC;--c-hover:rgba(150,84,61,.6);--c-tag-bg:#F6ECE5;--c-tag:#85432D;--c-thumb1:#F8ECE5;--c-thumb2:#E8D4C8}
.eyy-card--t5{--c-bg:#F9F7FA;--c-border:#E6E0EB;--c-hover:rgba(103,79,140,.6);--c-tag-bg:#EFE9F5;--c-tag:#583E7D;--c-thumb1:#F1EAF7;--c-thumb2:#DDD2EA}
.eyy-card__link{display:flex;flex-direction:row;gap:12px;padding:10px;color:inherit;height:100%}
.eyy-card__link:hover{color:inherit}
.eyy-card__thumb{flex:none;width:104px;height:104px;border-radius:16px;overflow:hidden;background:linear-gradient(135deg,var(--c-thumb1),var(--c-thumb2));display:flex;align-items:center;justify-content:center;color:var(--c-tag)}
.eyy-card__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.eyy-card__ph .eyy-ico{width:34px;height:34px;opacity:.7}
.eyy-card__body{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;padding-block:2px}
.eyy-chip-tag{align-self:flex-start;display:inline-block;padding:2px 9px;border-radius:8px;font-size:11px;font-weight:700;background:var(--c-tag-bg,#EBF5EF);color:var(--c-tag,#0F5C4E)}
.eyy-card__title{font-size:.9375rem;font-weight:800;margin:0;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--text)}
.eyy-card__excerpt{font-size:.75rem;color:var(--text-muted);line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.eyy-card__meta{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:8px}
.eyy-meta{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--text-muted);font-weight:600}
.eyy-meta .eyy-ico{width:14px;height:14px}
.eyy-card__arrow{width:28px;height:28px;border-radius:10px;background:var(--c-tag-bg);color:var(--c-tag);display:inline-flex;align-items:center;justify-content:center;transition:transform .2s}
.eyy-card__arrow .eyy-ico{width:16px;height:16px}
.eyy-card:hover .eyy-card__arrow{transform:translateX(-3px)}
/* wider screens: stacked cards with large thumbnail */
@media (min-width:640px){
  .eyy-card__link{flex-direction:column;padding:0;gap:0}
  .eyy-card__thumb{width:100%;height:auto;aspect-ratio:16/10;border-radius:0}
  .eyy-card__body{padding:14px 16px 14px;gap:6px}
}
@media (max-width:639px){.eyy-grid .eyy-card__thumb{width:96px;height:96px}}

.eyy-hscroll{display:flex;gap:14px;overflow-x:auto;padding:4px 2px 12px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.eyy-hscroll__item{flex:none;width:min(82%,340px);scroll-snap-align:start}
@media (min-width:1024px){.eyy-hscroll__item{width:300px}}
.eyy-hscroll .eyy-card__link{flex-direction:column;padding:0;gap:0}
.eyy-hscroll .eyy-card__thumb{width:100%;height:auto;aspect-ratio:16/10;border-radius:0}
.eyy-hscroll .eyy-card__body{padding:12px 14px 14px}

/* ---------- Buttons ---------- */
.eyy-btn,.button,input[type=submit],.wp-block-button__link,.comment-form .submit{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;cursor:pointer;
  padding:11px 22px;border-radius:14px;background:var(--primary);color:#fff;font-weight:700;font-size:.875rem;
  box-shadow:0 6px 18px -6px rgba(15,92,78,.55);transition:all .2s;
}
.eyy-btn:hover,.button:hover,input[type=submit]:hover,.wp-block-button__link:hover{background:var(--primary-dark);color:#fff;transform:translateY(-1px)}
.eyy-btn:active{transform:scale(.97)}
.eyy-btn--ghost{background:#fff;color:var(--primary);border:1px solid var(--pale-green-border);box-shadow:none}
.eyy-btn--ghost:hover{background:var(--pale-green);color:var(--primary)}

/* ---------- Empty ---------- */
.eyy-empty{text-align:center;padding:40px 20px;background:#fff;border:1px dashed var(--pale-green-border);border-radius:var(--radius);display:flex;flex-direction:column;align-items:center;gap:6px}
.eyy-empty__ico{width:64px;height:64px;border-radius:22px;background:var(--pale-mint);color:var(--primary);display:flex;align-items:center;justify-content:center}
.eyy-empty__ico .eyy-ico{width:28px;height:28px}
.eyy-empty h3{margin:8px 0 0;font-size:1rem}
.eyy-empty p{margin:0 0 12px;color:var(--text-muted);font-size:.875rem}
.eyy-empty__big{font-size:3rem;color:var(--gold-dark);margin:6px 0 0;letter-spacing:0}
.eyy-empty .eyy-search{width:100%;max-width:420px;margin-bottom:10px}

/* ---------- Pagination ---------- */
.eyy-pagination{margin:28px 0 8px}
.eyy-pagination ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.eyy-pagination a,.eyy-pagination span{min-width:40px;height:40px;padding-inline:10px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;border:1px solid var(--pale-green-border);background:#fff;font-weight:700;font-size:.875rem;color:var(--text-2)}
.eyy-pagination a:hover{background:var(--pale-green);color:var(--primary)}
.eyy-pagination .current{background:var(--primary);border-color:var(--primary);color:#fff}
.eyy-pagination .dots{border:0;background:none}

/* ---------- Article ---------- */
.eyy-article{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:20px 18px;box-shadow:var(--shadow-islamic)}
@media (min-width:640px){.eyy-article{padding:32px 36px}}
.eyy-article__title{font-size:1.4rem;margin:10px 0 8px}
@media (min-width:640px){.eyy-article__title{font-size:1.8rem}}
.eyy-article__meta{display:flex;align-items:center;gap:6px;color:var(--text-muted);font-size:.8125rem;margin:0 0 16px}
.eyy-article__thumb{margin:0 0 20px;border-radius:16px;overflow:hidden}
.eyy-article__thumb img{display:block;width:100%}
.eyy-postnav{display:flex;justify-content:space-between;gap:12px;margin-top:28px;padding-top:16px;border-top:1px solid var(--border);font-size:.875rem;font-weight:700}

.prose,.entry-content{font-size:1.05rem;line-height:2.05;color:var(--text)}
.prose p,.entry-content p{margin:.75em 0;line-height:2.1}
.prose a,.entry-content a{text-decoration:underline;text-decoration-color:rgba(15,92,78,.35);text-underline-offset:4px}
.prose h2,.entry-content h2{font-size:1.35rem;margin-top:1.6em}
.prose h3,.entry-content h3{font-size:1.15rem;margin-top:1.4em}
.prose blockquote,.entry-content blockquote{margin:1.2em 0;padding:14px 18px;border-inline-start:4px solid var(--gold);background:var(--pale-green);border-radius:0 14px 14px 0;font-size:1.15rem;line-height:2.1}
.prose ul,.prose ol,.entry-content ul,.entry-content ol{padding-inline-start:1.4em}
.prose img,.entry-content img{border-radius:14px}
.prose table,.entry-content table{width:100%;border-collapse:collapse;display:block;overflow-x:auto}
.prose th,.prose td,.entry-content th,.entry-content td{border:1px solid var(--border);padding:8px 12px}
.prose th,.entry-content th{background:var(--pale-green)}
.entry-content pre{direction:ltr;text-align:left;overflow:auto;background:#0b1f1b;color:#e6f3ee;padding:14px;border-radius:14px}
.alignwide{max-width:1100px}.alignfull{width:100vw;margin-inline:calc(50% - 50vw)}
.wp-caption,.wp-block-image figcaption{font-size:.8125rem;color:var(--text-muted);text-align:center}
.eyy-pagelinks{margin-top:18px;font-weight:700}

/* ---------- Comments / forms ---------- */
.eyy-comments{margin-top:24px;background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:20px}
.eyy-comments__title{font-size:1.05rem}
.eyy-comments__list{list-style:none;margin:0 0 20px;padding:0}
.eyy-comments__list .comment-body{padding:14px 0;border-bottom:1px solid var(--border)}
.eyy-comments__list .children{list-style:none;padding-inline-start:20px}
.eyy-comments__list .avatar{border-radius:50%;float:right;margin-inline-start:12px}
.comment-meta{font-size:.8125rem;color:var(--text-muted)}
input[type=text],input[type=email],input[type=url],input[type=password],input[type=number],input[type=tel],textarea,select{
  width:100%;padding:11px 14px;border:1px solid var(--pale-green-border);border-radius:14px;background:#fff;color:var(--text);outline:0;transition:border-color .2s,box-shadow .2s}
input:focus,textarea:focus,select:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(15,92,78,.12)}
.comment-form p{margin:0 0 12px}
.comment-form label{display:block;font-weight:600;font-size:.875rem;margin-bottom:4px}

/* ---------- Category page template ---------- */
.eyy-catgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
@media (min-width:640px){.eyy-catgrid{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1024px){.eyy-catgrid{grid-template-columns:repeat(4,1fr);gap:16px}}
.eyy-cat{--c-bg:#F7FAF8;--c-border:#D9EAE1;--c-tag-bg:#EBF5EF;--c-tag:#0F5C4E;--c-thumb1:#E8F5EF;--c-thumb2:#D2E7DE;
  display:flex;flex-direction:column;gap:6px;padding:16px;border-radius:var(--radius);background:var(--c-bg);border:1px solid var(--c-border);color:var(--text);transition:transform .2s,box-shadow .2s}
.eyy-cat:hover{transform:translateY(-2px);box-shadow:var(--shadow-islamic-lg);color:var(--text)}
.eyy-cat__ico{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--c-thumb1),var(--c-thumb2));color:var(--c-tag);display:flex;align-items:center;justify-content:center}
.eyy-cat__name{font-weight:800;font-size:.9375rem}
.eyy-cat__count{font-size:.75rem;color:var(--text-muted)}

/* ---------- Footer ---------- */
.eyy-footer{border-top:1px solid var(--pale-green-border);background:#fff;padding:28px 0 24px;margin-top:20px}
.eyy-footer__widgets{display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));margin-bottom:20px}
.widget-title{font-size:.9375rem}
.eyy-footer__nav ul{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px}
.eyy-footer__nav a{font-size:.8125rem;font-weight:600;color:var(--text-2)}
.eyy-footer__copy{margin:0;font-size:.75rem;color:var(--text-muted)}

/* ---------- Bottom nav (mobile / tablet) ---------- */
.eyy-bottomnav{display:none}
body.has-bottom-nav .eyy-bottomnav{
  display:block;position:fixed;inset-inline:0;bottom:0;z-index:60;
  background:rgba(255,255,255,.78);-webkit-backdrop-filter:blur(28px) saturate(1.4);backdrop-filter:blur(28px) saturate(1.4);
  border-top:1px solid rgba(255,255,255,.6);box-shadow:0 -8px 32px rgba(15,92,78,.1);padding-bottom:var(--safe-b);
}
body.has-bottom-nav .eyy-bottomnav::before{content:"";position:absolute;top:0;inset-inline:0;height:1.5px;background:linear-gradient(90deg,transparent,rgba(15,92,78,.25),transparent)}
.eyy-bottomnav__inner{max-width:560px;margin-inline:auto;height:var(--bottomnav-h);display:grid;grid-template-columns:repeat(5,1fr);padding-inline:6px}
.eyy-bottomnav__item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--text-muted);font-weight:600;transition:transform .2s,color .2s}
.eyy-bottomnav__item:active{transform:scale(.94)}
.eyy-bottomnav__ico{display:flex;align-items:center;justify-content:center;width:40px;height:28px;border-radius:12px;transition:background .2s}
.eyy-bottomnav__ico .eyy-ico{width:20px;height:20px}
.eyy-bottomnav__label{font-size:11px;line-height:1.2;white-space:nowrap}
.eyy-bottomnav__item.is-active{color:var(--primary);font-weight:800}
.eyy-bottomnav__item.is-active .eyy-bottomnav__ico{background:rgba(15,92,78,.1);box-shadow:0 2px 14px rgba(15,92,78,.12)}
.eyy-bottomnav__item.is-active::before{content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);height:3px;width:28px;border-radius:999px;background:linear-gradient(90deg,#059669,var(--gold),#059669);box-shadow:0 1px 8px rgba(15,92,78,.45)}
@media (min-width:900px){
  body.has-bottom-nav{padding-bottom:0}
  body.has-bottom-nav .eyy-bottomnav{display:none}
}
body.eyy-lesson .eyy-bottomnav{display:none!important}

/* ---------- Elementor ---------- */
.eyy-elementor-wrap{width:100%}
.eyy-main:has(.eyy-fullwidth),.eyy-main:has(.eyy-elementor-wrap){padding-block:0}
.elementor-page .eyy-main{padding-block:0}
.elementor-widget-container{max-width:100%}
.elementor-widget-text-editor,.elementor-widget-heading .elementor-heading-title{font-family:inherit}

/* ---------- WP core ---------- */
.sticky .eyy-card{border-color:var(--gold)}
.bypostauthor{display:block}
.gallery{display:grid;gap:10px}
.wp-block-quote{border-inline-start:4px solid var(--gold);padding-inline-start:16px}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Mobile app-like polish */
@media (max-width:639px){
  .eyy-pagehead{border-radius:18px;padding:16px}
  .eyy-article{border-radius:18px}
  .eyy-search__btn{display:none}
  .eyy-search input[type=search]{padding-inline:12px}
}

/* ---------- PWA install bar ---------- */
.eyy-install{position:fixed;inset-inline:12px;bottom:calc(var(--bottomnav-h) + var(--safe-b) + 12px);z-index:70;display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--primary-deep);color:var(--gold-light);border:1px solid rgba(201,167,93,.4);border-radius:16px;box-shadow:0 12px 32px rgba(0,0,0,.25);font-size:.8125rem;font-weight:600;max-width:480px;margin-inline:auto}
.eyy-install span{flex:1}
.eyy-install__go{background:var(--gold);color:var(--primary-deep);border:0;border-radius:10px;padding:7px 16px;font-weight:800;cursor:pointer}
.eyy-install__x{background:none;border:0;color:inherit;opacity:.7;cursor:pointer;padding:4px 6px}
@media (min-width:900px){.eyy-install{bottom:20px}}
.eyy-header.is-scrolled{box-shadow:0 6px 28px rgba(15,92,78,.1)}


/* ==========================================================================
   v1.4.0 — اصلاح صفحهٔ اصلی، کارت‌ها، هدر و فوتر
   ========================================================================== */
/* عرض صفحه: هرگز مثل موبایل باریک نشود (حتی اگر CSS اضافهٔ سایت بدنه را محدود کرده باشد) */
html body.eyy.eyy{max-width:none;width:100%;margin-inline:0;border:0;box-shadow:none}
html body.eyy.eyy .eyy-header,html body.eyy.eyy .eyy-main,html body.eyy.eyy .eyy-footer{max-width:none;width:100%}

/* هدر: منوی دسکتاپ هیچ‌وقت چندخطی نشود */
.eyy-header__bar{min-height:var(--header-h)}
@media (min-width:900px){
  .eyy-desknav__list,.eyy-desknav ul{flex-wrap:nowrap}
  .eyy-desknav a{white-space:nowrap}
}

/* صفحهٔ اصلی روی دسکتاپ */
@media (min-width:900px){
  .eyy-home .eyy-stickysearch{max-width:720px;margin-inline:auto}
  .eyy-home .eyy-chips{justify-content:center}
}

/* کارت‌ها: فقط تصویر، نام، تعداد درس و «مشاهده سرفصل‌ها» */
.eyy-card__excerpt,.eyy-card .eyy-chip-tag{display:none!important}
.eyy-card__title{-webkit-line-clamp:3;min-height:0;font-size:.9375rem}
.eyy-card__cta{display:inline-flex;align-items:center;gap:4px;padding:6px 10px;border-radius:10px;background:var(--c-tag-bg);color:var(--c-tag);font-size:11px;font-weight:800;white-space:nowrap;transition:transform .2s}
.eyy-card__cta .eyy-ico{width:14px;height:14px}
.eyy-card:hover .eyy-card__cta{transform:translateX(-3px)}
@media (min-width:640px){.eyy-card__body{min-height:96px}.eyy-card__meta{padding-top:6px}}
@media (min-width:1280px){.eyy-grid{grid-template-columns:repeat(4,1fr)}}

/* فوتر */
.eyy-footer{margin-top:36px;padding:34px 0 22px;background:linear-gradient(180deg,#fff,var(--pale-green));border-top:1px solid var(--pale-green-border)}
.eyy-footer__grid{display:grid;gap:26px;grid-template-columns:1fr}
@media (min-width:760px){.eyy-footer__grid{grid-template-columns:1.4fr 1fr 1fr;gap:40px}}
.eyy-footer__about{margin:12px 0 0;font-size:.8125rem;line-height:2;color:var(--text-muted);max-width:34rem}
.eyy-footer__h{font-size:.875rem;font-weight:900;margin:0 0 10px;color:var(--text)}
.eyy-footer__nav ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.eyy-footer__nav a{font-size:.8125rem;font-weight:700;color:var(--text-2)}
.eyy-footer__nav a:hover{color:var(--primary)}
.eyy-footer__copy{margin:26px 0 0;padding-top:16px;border-top:1px solid var(--pale-green-border);text-align:center;font-size:.75rem;color:var(--text-muted)}
.eyy-footer .widget{font-size:.8125rem}

/* پیام خالی‌بودن متن درس */
.eyy-l-empty h4{font-weight:800}
.eyy-footer .widget-title,.eyy-footer .wp-block-heading,.eyy-footer h2{font-size:.875rem;font-weight:900;margin:0 0 10px}
.eyy-footer .widget{margin:0 0 16px}
.eyy-footer .widget ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.eyy-footer .widget a{font-size:.8125rem;font-weight:700;color:var(--text-2)}

/* ==========================================================================
   v1.4.3 — هدر تمام‌عرض و چسبیده؛ بدون فاصلهٔ اضافه؛ کادر جستجو روی کارت‌ها نیفتد
   ========================================================================== */
html{margin-bottom:0}
body.eyy{overflow-x:clip;padding-top:0!important;margin-top:0!important}
body.eyy>.eyy-header,body.eyy .eyy-header{margin:0!important;border-radius:0!important;width:100%!important;max-width:none!important;inset-inline:0;transform:none}
body.eyy>.eyy-header{position:sticky;top:0}
body.admin-bar>.eyy-header{top:32px}
@media (max-width:782px){body.admin-bar>.eyy-header{top:46px}}
/* زیر ۶۰۱px نوار مدیریت وردپرس ثابت نیست و با اسکرول بالا می‌رود: هدر باید بچسبد به بالای صفحه */
@media (max-width:600px){body.admin-bar>.eyy-header,body.admin-bar .eyy-header,.admin-bar .eyy-header{top:0!important}.admin-bar .eyy-stickysearch{top:calc(var(--header-h) + var(--safe-t) + 2px)}}
@media (min-width:601px) and (max-width:782px){.admin-bar .eyy-stickysearch{top:calc(var(--header-h) + 48px)}}
body.eyy>a.skip-link{height:0;margin:0;padding:0}
/* جستجوی صفحهٔ اصلی: روی دسکتاپ ثابت نشود (روی کارت‌ها و هدر می‌افتاد) */
@media (min-width:900px){
  .eyy-stickysearch,.admin-bar .eyy-stickysearch{position:static;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;border:0;padding:0;margin:4px auto 18px}
}

/* ==========================================================================
   v1.4.4 — فونت یکدست در همهٔ صفحه‌ها (درس‌ها، متن‌های واردشده از ورد، Tutor، المنتور…)
   متنی که با style="font-family:…" یا افزونه فونت دیگری گرفته بود، دوباره وزیرمتن می‌شود.
   آیکن‌ها، کد، اعداد پلیر و کلاس‌های .font-quran / .font-amiri مستثنا هستند.
   ========================================================================== */
:root{--eyy-font:'Vazirmatn FD','Vazirmatn','Amiri',-apple-system,BlinkMacSystemFont,'Segoe UI',Tahoma,sans-serif}
body.eyy:not(.eyy-no-forcefont) *:not(#wpadminbar):not(#wpadminbar *):not(i):not(svg):not(svg *):not(code):not(pre):not(kbd):not(samp):not(.font-quran):not(.font-quran *):not(.font-amiri):not(.font-amiri *):not([class*="icon"]):not([class*="eicon"]):not(.dashicons):not(.fa):not(.fas):not(.far):not(.fab):not([class*="material-"]):not(.eyy-vp__time):not(.eyy-vp__b--pill):not(.eyy-ap__c--speed):not(.eyy-l-cdbtn__n){font-family:var(--eyy-font)!important}
/* قلم‌های ریز واردشده از ورد/ویرایشگر داخل متن درس */
body.eyy:not(.eyy-no-forcefont) .eyy-prose span[style*="font-size"],body.eyy:not(.eyy-no-forcefont) .eyy-prose font{font-size:1em!important}
body.eyy .eyy-prose [style*="font-family"]{font-family:var(--eyy-font)!important}

/* ==========================================================================
   v1.4.6 — نوار ناوبری پایین همیشه روی همهٔ صفحه‌ها (از جمله صفحهٔ اصلی و المنتور) در موبایل/تبلت دیده شود
   ========================================================================== */
@media (max-width:899px){
  body.has-bottom-nav>.eyy-bottomnav,body.has-bottom-nav .eyy-bottomnav{display:block!important;position:fixed!important;inset-inline:0!important;left:0;right:0;bottom:0!important;z-index:99990!important;visibility:visible!important;opacity:1!important;transform:none}
  body.has-bottom-nav{padding-bottom:calc(var(--bottomnav-h) + var(--safe-b))!important}
  body.has-bottom-nav .eyy-footer{margin-bottom:0}
}

/* ---------- v1.4.8: کنترل نمایش فوتر (سفارشی‌سازی › ظاهر و برند › نمایش فوتر) ---------- */
body.eyy-nofooter .eyy-footer,body.eyy-nofooter #colophon,body.eyy-nofooter .elementor-location-footer,body.eyy-nofooter [data-elementor-type="footer"]{display:none!important}
@media (max-width:899px){body.eyy-nofooter-m .eyy-footer,body.eyy-nofooter-m #colophon,body.eyy-nofooter-m .elementor-location-footer,body.eyy-nofooter-m [data-elementor-type="footer"]{display:none!important}}

/* ==========================================================================
   v1.5.3 — نتایج جستجو: فهرست تمیز، بدون تصویر
   ========================================================================== */
.eyy-sr-wrap{padding-bottom:40px}
.eyy-sr-search{margin:14px 0 6px}
.eyy-sr-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 2px 10px}
.eyy-sr-head h1{margin:0;font-size:1.15rem;font-weight:800;line-height:1.7}
.eyy-sr-head h1 span{color:var(--primary)}
.eyy-sr-count{font-size:.8125rem;font-weight:700;color:var(--text-muted);background:var(--pale-mint);border:1px solid var(--pale-green-border);padding:3px 12px;border-radius:999px}
.eyy-sr-tabs{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 12px;scrollbar-width:none}
.eyy-sr-tabs::-webkit-scrollbar{display:none}
.eyy-sr-tabs a{flex:none;display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:999px;background:#fff;border:1px solid var(--pale-green-border);color:var(--text-2);font-size:.875rem;font-weight:700;white-space:nowrap;transition:.15s}
.eyy-sr-tabs a em{font-style:normal;font-size:.75rem;min-width:22px;height:22px;padding-inline:6px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--pale-mint);color:var(--primary)}
.eyy-sr-tabs a:hover{border-color:var(--primary);color:var(--primary)}
.eyy-sr-tabs a.is-on{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:0 6px 16px rgba(15,92,78,.22)}
.eyy-sr-tabs a.is-on em{background:rgba(255,255,255,.2);color:#fff}
.eyy-sr-list{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.eyy-sr{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:18px;background:#fff;border:1px solid var(--pale-green-border);border-right:4px solid var(--primary);box-shadow:0 1px 2px rgba(0,0,0,.04);color:var(--text);transition:transform .15s,box-shadow .15s,border-color .15s}
.eyy-sr:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,92,78,.12);border-color:var(--primary)}
.eyy-sr.is-lesson{border-right-color:#C9A75D}
.eyy-sr.is-courses{border-right-color:var(--primary)}
.eyy-sr.is-post{border-right-color:#1D6FB8}
.eyy-sr.is-page{border-right-color:#8A94A0}
.eyy-sr__ico{flex:none;width:44px;height:44px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:var(--pale-mint);color:var(--primary)}
.eyy-sr.is-lesson .eyy-sr__ico{background:#FBF4E2;color:#8C6A12}
.eyy-sr.is-post .eyy-sr__ico{background:#E8F1FB;color:#1D6FB8}
.eyy-sr.is-page .eyy-sr__ico{background:#EEF0F2;color:#5B6570}
.eyy-sr__ico .eyy-ico{width:22px;height:22px}
.eyy-sr__main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.eyy-sr__top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.eyy-sr__badge{font-size:.6875rem;font-weight:800;padding:2px 10px;border-radius:999px;background:var(--pale-mint);color:var(--primary)}
.eyy-sr.is-lesson .eyy-sr__badge{background:#FBF4E2;color:#8C6A12}
.eyy-sr.is-post .eyy-sr__badge{background:#E8F1FB;color:#1D6FB8}
.eyy-sr.is-page .eyy-sr__badge{background:#EEF0F2;color:#5B6570}
.eyy-sr__crumb{font-size:.75rem;color:var(--text-muted);font-weight:600}
.eyy-sr__title{font-size:1rem;font-weight:800;line-height:1.8;color:var(--text)}
.eyy-sr__snip{font-size:.8125rem;line-height:1.9;color:var(--text-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.eyy-sr mark{background:#FEF0C7;color:#6B4A00;border-radius:4px;padding:0 3px;font-weight:800}
.eyy-sr__go{flex:none;width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--pale-mint);color:var(--primary);transition:.15s}
.eyy-sr:hover .eyy-sr__go{background:var(--primary);color:#fff;transform:translateX(-3px)}
@media (max-width:520px){.eyy-sr{padding:12px;gap:10px}.eyy-sr__ico{width:38px;height:38px;border-radius:12px}.eyy-sr__go{display:none}.eyy-sr__title{font-size:.9375rem}}
