
:root{
  --ex-green:#0c8b75;
  --ex-green-dark:#08715f;
  --ex-green-soft:#eef6f3;
  --ex-cream:#fbf7ef;
  --ex-ink:#24485f;
  --ex-text:#596f7e;
  --ex-line:#dde8e4;
  --ex-white:#fff;
}

.exhibition-page{
  background:#fff;
}

.exhibition-hero{
  padding:46px 0 35px;
  background:
    radial-gradient(circle at 90% 4%,rgba(12,139,117,.055),transparent 28%),
    #fff;
}

.exhibition-breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:24px;
  color:#8b9aa5;
  font-size:11.5px;
  font-weight:550;
}
.exhibition-breadcrumb svg{width:13px;height:13px}
.exhibition-breadcrumb a:hover{color:var(--ex-green)}

.exhibition-title{
  margin-bottom:24px;
  text-align:right;
}
.exhibition-title>span{
  display:block;
  margin-bottom:3px;
  color:#6a998c;
  font-size:11.5px;
  font-weight:700;
}
.exhibition-title h1{
  margin:0;
  color:var(--ex-ink);
  font-size:clamp(30px,3.2vw,42px);
  line-height:1.45;
  font-weight:850;
  letter-spacing:-.45px;
}

/* image right + same-height index left */
.exhibition-top-grid{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(300px,.78fr);
  gap:18px;
  align-items:stretch;
  direction:rtl;
}

.exhibition-main-media,
.content-index{
  height:420px;
}

.exhibition-main-media{
  position:relative;
  overflow:hidden;
  border:1px solid #dae8e3;
  border-radius:27px;
  background:#edf3f0;
  box-shadow:0 18px 45px rgba(31,69,57,.08);
}

.exhibition-main-media>img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transition:transform .5s ease;
}

.exhibition-main-media:hover>img{
  transform:scale(1.018);
}

/* frosted glass share icons */
.share-glass{
  position:absolute;
  right:18px;
  bottom:18px;
  display:flex;
  align-items:center;
  gap:7px;
  max-width:calc(100% - 36px);
  padding:8px;
  border:1px solid rgba(255,255,255,.42);
  border-radius:17px;
  background:rgba(255,255,255,.64);
  box-shadow:0 9px 30px rgba(19,50,42,.11);
  backdrop-filter:blur(15px) saturate(1.15);
  -webkit-backdrop-filter:blur(15px) saturate(1.15);
}

.share-glass__label{
  padding:0 6px;
  color:#4c665f;
  font-size:9.5px;
  font-weight:700;
  white-space:nowrap;
}

.share-app{
  height:38px;
  display:flex;
  align-items:center;
  gap:5px;
  padding:4px 8px 4px 6px;
  border:1px solid rgba(255,255,255,.75);
  border-radius:12px;
  color:#425c56;
  background:rgba(255,255,255,.75);
  font:inherit;
  font-size:9px;
  font-weight:700;
  cursor:pointer;
  transition:transform .17s ease,background .17s ease;
}
.share-app:hover{transform:translateY(-2px);background:#fff}
.share-app__logo{
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:9px;
  color:#fff;
  font-size:11px;
  font-weight:850;
}
.share-app--bale .share-app__logo{background:#19a9df}
.share-app--rubika .share-app__logo{background:linear-gradient(135deg,#7a4eea,#e94a9a)}
.share-app--eitaa .share-app__logo{background:#f19a2a}
.share-app--soroush .share-app__logo{background:#287ec4}

/* index panel */
.content-index{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #dfe9e5;
  border-radius:27px;
  background:#fff;
  box-shadow:0 18px 45px rgba(31,69,57,.06);
}

.content-index__head{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:17px 17px 14px;
  border-bottom:1px solid #e8efec;
  background:linear-gradient(180deg,#f9fbfa,#fff);
}
.content-index__head>span:first-child{display:grid}
.content-index__head small{
  color:#91a099;
  font-size:9.5px;
  font-weight:600;
}
.content-index__head strong{
  margin-top:1px;
  color:var(--ex-ink);
  font-size:14px;
  font-weight:800;
}
.content-index__count{
  padding:5px 8px;
  border-radius:9px;
  color:var(--ex-green);
  background:#eaf5f1;
  font-size:9.5px;
  font-weight:750;
}

.content-index__scroll{
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#bdd5cc transparent;
  padding:6px 8px 9px;
}
.content-index__scroll::-webkit-scrollbar{width:5px}
.content-index__scroll::-webkit-scrollbar-thumb{border-radius:10px;background:#bdd5cc}

.content-index__item{
  display:grid;
  grid-template-columns:45px minmax(0,1fr) 18px;
  align-items:center;
  gap:9px;
  min-height:60px;
  padding:7px 7px;
  border-bottom:1px solid #edf2f0;
  border-radius:12px;
  transition:background .16s ease,transform .16s ease;
}
.content-index__item:last-child{border-bottom:0}
.content-index__item:hover{
  background:#f1f7f4;
  transform:translateX(-2px);
}
.content-index__item img{
  width:45px;
  height:45px;
  object-fit:cover;
  border:1px solid #e1e9e6;
  border-radius:10px;
}
.content-index__item>span{min-width:0;display:grid}
.content-index__item strong{
  overflow:hidden;
  color:#365467;
  font-size:10.5px;
  line-height:1.55;
  font-weight:750;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.content-index__item small{
  margin-top:2px;
  color:#9aa6aa;
  font-size:8.5px;
}
.content-index__item>svg{
  width:14px;
  height:14px;
  color:#8bb7aa;
}

.exhibition-lead{
  margin:19px 0 0;
  padding:14px 17px;
  border-right:3px solid var(--ex-green);
  border-radius:13px 0 0 13px;
  color:#647b75;
  background:#f4faf7;
  font-size:12px;
  line-height:2;
}

/* alternating content */
.showcase-list{
  padding:20px 0 90px;
}

.showcase-list>.container{
  display:grid;
  gap:14px;
}

.showcase-row{
  min-height:250px;
  display:grid;
  grid-template-columns:minmax(190px,.34fr) minmax(0,1fr);
  align-items:stretch;
  gap:24px;
  padding:24px 27px;
  border:1px solid transparent;
  border-radius:25px;
  scroll-margin-top:115px;
}

.showcase-row--green{
  border-color:#deebe6;
  background:var(--ex-green-soft);
}

.showcase-row--cream{
  border-color:#eee8dc;
  background:var(--ex-cream);
}

.showcase-row--reverse .showcase-row__visual{order:2}
.showcase-row--reverse .showcase-row__body{order:1}

.showcase-row__visual{
  display:grid;
  place-items:center;
  min-width:0;
}

.showcase-cover{
  position:relative;
  width:min(180px,100%);
  height:202px;
  display:grid;
  place-items:center;
}

.showcase-cover img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  border-radius:8px;
  filter:drop-shadow(0 14px 15px rgba(38,57,48,.13));
  transition:transform .22s ease;
}

.showcase-row:hover .showcase-cover img{
  transform:translateY(-4px);
}

.showcase-cover__mark{
  position:absolute;
  top:-2px;
  right:0;
  width:35px;
  height:35px;
  display:grid;
  place-items:center;
  border:3px solid rgba(255,255,255,.75);
  border-radius:50%;
  color:#fff;
  background:#df7274;
  box-shadow:0 6px 14px rgba(143,67,67,.13);
  font-size:8.5px;
  font-weight:800;
}

.showcase-row__body{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
}

.showcase-row__kicker{
  margin-bottom:3px;
  color:#6c9b8e;
  font-size:9.5px;
  font-weight:700;
}

.showcase-row h2{
  margin:0;
  color:#284b5c;
  font-size:20px;
  line-height:1.55;
  font-weight:820;
}

.showcase-row p{
  max-width:820px;
  margin:9px 0 0;
  color:#617578;
  font-size:11.5px;
  line-height:2;
  font-weight:500;
}

/* downloads */
.download-group{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:17px;
}

.download-btn{
  min-height:39px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border:1px solid #087765;
  border-radius:11px;
  color:#fff;
  background:var(--ex-green);
  box-shadow:0 7px 16px rgba(12,139,117,.10);
  transition:background .17s ease,transform .17s ease,box-shadow .17s ease;
}

.download-btn:hover{
  transform:translateY(-2px);
  background:var(--ex-green-dark);
  box-shadow:0 10px 20px rgba(12,139,117,.16);
}

.download-btn svg{
  width:17px;
  height:17px;
  flex:0 0 auto;
}

.download-btn>span{
  display:grid;
  color:#fff;
  font-size:10.5px;
  line-height:1.25;
  font-weight:750;
}

.download-btn small{
  margin-bottom:1px;
  color:rgba(255,255,255,.66);
  font-size:7.8px;
  font-weight:550;
}

.download-group--multi .download-btn{
  min-width:126px;
}

/* feedback after share click */
.share-toast{
  position:fixed;
  z-index:9999;
  left:50%;
  bottom:28px;
  max-width:calc(100vw - 30px);
  padding:10px 14px;
  border-radius:12px;
  color:#fff;
  background:#254a43;
  box-shadow:0 10px 25px rgba(19,42,36,.18);
  font-size:11px;
  font-weight:650;
  opacity:0;
  transform:translate(-50%,15px);
  pointer-events:none;
  transition:.2s ease;
}
.share-toast.is-visible{
  opacity:1;
  transform:translate(-50%,0);
}

/* Tablet */
@media(max-width:980px){
  .exhibition-top-grid{
    grid-template-columns:minmax(0,1.45fr) minmax(255px,.75fr);
  }
  .exhibition-main-media,.content-index{height:360px}
  .share-glass__label,.share-app>span:last-child{display:none}
  .share-app{width:36px;padding:4px;justify-content:center}
  .showcase-row{grid-template-columns:175px minmax(0,1fr);padding:21px}
}

/* Mobile */
@media(max-width:700px){
  .exhibition-hero{padding:30px 0 25px}
  .exhibition-title{margin-bottom:17px}
  .exhibition-title h1{font-size:27px}

  .exhibition-top-grid{
    grid-template-columns:1fr;
    gap:12px;
  }
  .exhibition-main-media{height:260px;border-radius:20px}
  .content-index{height:280px;border-radius:20px}

  .share-glass{
    right:10px;
    bottom:10px;
    gap:5px;
    padding:6px;
    border-radius:14px;
  }
  .share-app{width:34px;height:34px;border-radius:10px}
  .share-app__logo{width:24px;height:24px;border-radius:8px}

  .exhibition-lead{font-size:10.8px}

  .showcase-list{padding-top:12px;padding-bottom:65px}
  .showcase-list>.container{gap:11px}

  .showcase-row,
  .showcase-row--reverse{
    min-height:0;
    grid-template-columns:100px minmax(0,1fr);
    gap:13px;
    padding:16px;
    border-radius:18px;
  }

  .showcase-row--reverse .showcase-row__visual{order:1}
  .showcase-row--reverse .showcase-row__body{order:2}

  .showcase-cover{width:95px;height:145px}
  .showcase-cover__mark{width:27px;height:27px;border-width:2px;font-size:7px}

  .showcase-row h2{font-size:14px}
  .showcase-row p{
    display:-webkit-box;
    margin-top:5px;
    overflow:hidden;
    font-size:9.5px;
    line-height:1.8;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
  }

  .showcase-row__kicker{font-size:8px}
  .download-group{gap:5px;margin-top:10px}
  .download-btn{
    min-height:34px;
    gap:5px;
    padding:5px 8px;
    border-radius:9px;
  }
  .download-btn svg{width:14px;height:14px}
  .download-btn>span{font-size:8.8px}
  .download-btn small{display:none}
  .download-group--multi .download-btn{min-width:0}
}

@media(max-width:420px){
  .showcase-row,
  .showcase-row--reverse{
    grid-template-columns:82px minmax(0,1fr);
    gap:10px;
    padding:13px;
  }
  .showcase-cover{width:78px;height:127px}
  .showcase-row h2{font-size:12.5px}
  .showcase-row p{-webkit-line-clamp:2}
  .download-btn>span{font-size:8px}
}


/* =========================================================
   EXHIBITION V2 FIXES
   - real app icons
   - full product PNGs
   - true alternating desktop layout
   - mobile images always right
   - full-width content column
   - no item number badges
   ========================================================= */

/* ---------- Real share app logos ---------- */
.share-app__logo{
  overflow:hidden;
  padding:0 !important;
  background:#fff !important;
  border:1px solid rgba(255,255,255,.7);
}

.share-app__logo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  border-radius:inherit;
}

.share-app--rubika .share-app__logo img{
  object-fit:contain;
}

/* ---------- Sidebar product thumbnails: show full PNG ---------- */
.content-index__item img{
  object-fit:contain !important;
  object-position:center !important;
  padding:2px;
  background:#f8faf9;
}

/* ---------- Remove legacy numbers completely ---------- */
.showcase-cover__mark{
  display:none !important;
}

/* ---------- True desktop alternating layout ---------- */
@media (min-width:701px){

  /*
    Explicit LTR grid areas make physical left/right deterministic.
    All Persian content inside body remains RTL.
    Odd rows: image RIGHT
    Even rows: image LEFT
  */
  .showcase-row{
    direction:ltr !important;
    grid-template-columns:minmax(0,1fr) 215px !important;
    grid-template-areas:"body visual" !important;
    gap:30px !important;
    align-items:stretch !important;
    padding:27px 31px !important;
  }

  .showcase-row.showcase-row--reverse{
    grid-template-columns:215px minmax(0,1fr) !important;
    grid-template-areas:"visual body" !important;
  }

  .showcase-row__visual,
  .showcase-row--reverse .showcase-row__visual{
    grid-area:visual !important;
    order:initial !important;
    width:100% !important;
    min-width:0 !important;
  }

  .showcase-row__body,
  .showcase-row--reverse .showcase-row__body{
    grid-area:body !important;
    order:initial !important;
    width:100% !important;
    min-width:0 !important;
    align-self:stretch !important;
    align-items:stretch !important;
    justify-content:center !important;
    direction:rtl !important;
    text-align:right !important;
  }

  .showcase-row__kicker,
  .showcase-row h2,
  .showcase-row p{
    width:100% !important;
    max-width:none !important;
    text-align:right !important;
  }

  .showcase-row p{
    margin-inline:0 !important;
  }

  .download-group{
    width:100% !important;
    justify-content:flex-start !important;
    align-self:stretch !important;
  }

  /* Product image remains complete, never cropped */
  .showcase-cover{
    width:100% !important;
    max-width:190px !important;
    height:215px !important;
  }

  .showcase-cover img{
    width:100% !important;
    height:100% !important;
    max-width:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
    object-position:center !important;
  }
}

/* ---------- Mobile: every product image is on RIGHT ---------- */
@media (max-width:700px){

  .showcase-row,
  .showcase-row.showcase-row--reverse{
    direction:ltr !important;
    grid-template-columns:minmax(0,1fr) 100px !important;
    grid-template-areas:"body visual" !important;
    gap:13px !important;
  }

  .showcase-row__visual,
  .showcase-row--reverse .showcase-row__visual{
    grid-area:visual !important;
    order:initial !important;
  }

  .showcase-row__body,
  .showcase-row--reverse .showcase-row__body{
    grid-area:body !important;
    order:initial !important;
    width:100% !important;
    min-width:0 !important;
    align-items:stretch !important;
    direction:rtl !important;
    text-align:right !important;
  }

  .showcase-row h2,
  .showcase-row p,
  .showcase-row__kicker{
    width:100% !important;
    max-width:none !important;
    text-align:right !important;
  }

  .showcase-cover{
    width:100px !important;
    height:145px !important;
  }

  .showcase-cover img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
  }

  .download-group{
    width:100% !important;
    justify-content:flex-start !important;
  }
}

@media (max-width:420px){
  .showcase-row,
  .showcase-row.showcase-row--reverse{
    grid-template-columns:minmax(0,1fr) 82px !important;
    grid-template-areas:"body visual" !important;
  }

  .showcase-cover{
    width:82px !important;
    height:127px !important;
  }
}


/* =========================================================
   EXHIBITION V3 — SCALE & TYPOGRAPHY MATCH
   closer to the original reference page proportions
   ========================================================= */

@media (min-width: 701px){

  /* باکس‌ها بلندتر و نزدیک‌تر به نسبت نمونه */
  .showcase-row,
  .showcase-row.showcase-row--reverse{
    min-height: 340px !important;
    padding: 34px 38px !important;
    gap: 38px !important;
  }

  /* ستون تصویر نزدیک‌تر به نمونه اصلی */
  .showcase-row{
    grid-template-columns: minmax(0,1fr) 240px !important;
  }

  .showcase-row.showcase-row--reverse{
    grid-template-columns: 240px minmax(0,1fr) !important;
  }

  .showcase-cover{
    width: 100% !important;
    max-width: 215px !important;
    height: 275px !important;
  }

  .showcase-cover img{
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    filter: drop-shadow(0 16px 18px rgba(38,57,48,.14)) !important;
  }

  /* تایپوگرافی نزدیک‌تر به صفحه فعلی سایت */
  .showcase-row__kicker{
    margin-bottom: 5px !important;
    font-size: 11.5px !important;
    line-height: 1.6 !important;
    font-weight: 700 !important;
  }

  .showcase-row h2{
    margin: 0 !important;
    font-size: 28px !important;
    line-height: 1.55 !important;
    font-weight: 800 !important;
    letter-spacing: -.25px !important;
  }

  .showcase-row p{
    width: 100% !important;
    max-width: none !important;
    margin: 13px 0 0 !important;
    color: #607270 !important;
    font-size: 15.5px !important;
    line-height: 2.15 !important;
    font-weight: 500 !important;
  }

  /* متن کل فضای ستون را پر کند */
  .showcase-row__body{
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    align-items: stretch !important;
  }

  .download-group{
    margin-top: 22px !important;
    gap: 10px !important;
  }

  .download-btn{
    min-height: 48px !important;
    padding: 8px 16px !important;
    border-radius: 12px !important;
  }

  .download-btn svg{
    width: 19px !important;
    height: 19px !important;
  }

  .download-btn > span{
    font-size: 12.5px !important;
    line-height: 1.3 !important;
  }

  .download-btn small{
    font-size: 8.7px !important;
  }
}

/* تبلت: هنوز نسبت تصویر و متن حفظ شود */
@media (min-width:701px) and (max-width:1100px){

  .showcase-row,
  .showcase-row.showcase-row--reverse{
    min-height: 310px !important;
    padding: 28px 30px !important;
    gap: 30px !important;
  }

  .showcase-row{
    grid-template-columns: minmax(0,1fr) 205px !important;
  }

  .showcase-row.showcase-row--reverse{
    grid-template-columns: 205px minmax(0,1fr) !important;
  }

  .showcase-cover{
    max-width: 185px !important;
    height: 240px !important;
  }

  .showcase-row h2{
    font-size: 24px !important;
  }

  .showcase-row p{
    font-size: 14px !important;
    line-height: 2.05 !important;
  }
}

/* موبایل همان فرم قبلی را حفظ می‌کند، فقط کمی خواناتر */
@media (max-width:700px){

  .showcase-row,
  .showcase-row.showcase-row--reverse{
    min-height: 165px !important;
  }

  .showcase-row h2{
    font-size: 14.5px !important;
    line-height: 1.7 !important;
  }

  .showcase-row p{
    font-size: 10.3px !important;
    line-height: 1.9 !important;
  }

  .showcase-cover{
    width: 100px !important;
    height: 145px !important;
  }
}
