:root{
  --shkan-navy:#08182d;
  --shkan-navy2:#102746;
  --shkan-gold:#d6b861;
  --shkan-gold2:#f0d889;
  --shkan-cream:#f8f3e8;
  --shkan-ink:#172033;
  --shkan-red:#b1272f;
  --shkan-green:#1d7f4d;
}
.shkan-bistun-grid{direction:rtl;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin:30px 0;perspective:1400px}
.shkan-bistun-grid.shkan-cols-1{grid-template-columns:1fr}
.shkan-bistun-grid.shkan-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.shkan-bistun-grid.shkan-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}

.shkan-card{
  position:relative;
  overflow:hidden;
  min-width:0;
  isolation:isolate;
  background:linear-gradient(180deg,#fff 0%,#fdfbf6 54%,#f7f1e6 100%);
  border:1px solid rgba(180,145,65,.42);
  border-radius:24px;
  box-shadow:
    0 12px 26px rgba(6,22,43,.08),
    0 26px 56px rgba(6,22,43,.14),
    inset 0 1px 0 rgba(255,255,255,.75);
  transform-style:preserve-3d;
  transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease,filter .35s ease;
}
.shkan-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:24px;
  padding:1px;
  background:linear-gradient(145deg,rgba(240,216,137,.95),rgba(255,255,255,.25),rgba(214,184,97,.7),rgba(8,24,45,.18));
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
  z-index:4;
}
.shkan-card::after{
  content:"";
  position:absolute;
  left:18px;right:18px;bottom:-18px;
  height:34px;
  border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(8,24,45,.22) 0%,rgba(8,24,45,.08) 45%,transparent 72%);
  filter:blur(10px);
  z-index:-1;
  transition:all .35s ease;
}
.shkan-card:hover{
  transform:translateY(-10px) rotateX(4deg) rotateY(-1.2deg);
  box-shadow:
    0 18px 36px rgba(6,22,43,.12),
    0 34px 72px rgba(6,22,43,.2),
    inset 0 1px 0 rgba(255,255,255,.8);
  border-color:rgba(180,145,65,.8);
  filter:saturate(1.03);
}
.shkan-card:hover::after{bottom:-20px;left:10px;right:10px;opacity:.95}

.shkan-card__media{
  display:block;
  position:relative;
  aspect-ratio:16/9;
  background:
    radial-gradient(circle at 78% 18%,rgba(240,216,137,.22),transparent 18%),
    linear-gradient(135deg,var(--shkan-navy),var(--shkan-navy2));
  overflow:hidden;
}
.shkan-card__media::before{
  content:"";
  position:absolute;
  top:14px;left:14px;
  width:68px;height:68px;
  background:transparent url('ina-logo.png') center/contain no-repeat;
  border:0;
  border-radius:0;
  box-shadow:none;
  backdrop-filter:none;
  z-index:3;
}
.shkan-card__media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(255,255,255,.08) 0%,transparent 26%,rgba(3,14,29,.38) 100%),
    linear-gradient(125deg,rgba(255,255,255,.22) 0 18%,transparent 19% 100%);
  pointer-events:none;
}
.shkan-card__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease,filter .5s ease}
.shkan-card:hover .shkan-card__media img{transform:scale(1.05);filter:contrast(1.03) saturate(1.02)}
.shkan-card__badge{
  position:absolute;z-index:3;top:14px;right:14px;
  background:rgba(7,24,45,.88);
  color:var(--shkan-gold2);
  border:1px solid rgba(240,216,137,.45);
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  backdrop-filter:blur(8px);
  box-shadow:0 6px 14px rgba(0,0,0,.15);
}
.shkan-card__body{padding:22px 22px 20px;position:relative;z-index:2}
.shkan-card__body::before{
  content:"";
  position:absolute;
  top:0;left:22px;right:22px;height:1px;
  background:linear-gradient(90deg,transparent,rgba(214,184,97,.6),transparent);
}
.shkan-card__meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#7b6c4e;font-size:12px;margin-bottom:10px}
.shkan-card__meta span+span::before{content:"•";margin-left:8px;color:var(--shkan-gold)}
.shkan-card h3{font-size:20px;line-height:1.65;margin:0 0 10px;font-weight:900;letter-spacing:-.01em}
.shkan-card h3 a{color:var(--shkan-navy);text-decoration:none;background-image:linear-gradient(transparent calc(100% - 2px),rgba(214,184,97,.28) 0);background-size:0 100%;background-repeat:no-repeat;transition:color .2s ease,background-size .25s ease}
.shkan-card h3 a:hover{color:#8d6415;background-size:100% 100%}
.shkan-card p{color:#5c6470;font-size:14px;line-height:2;margin:0 0 18px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;min-height:7.8em}
.shkan-card__footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:15px;border-top:1px solid rgba(8,24,45,.08)}
.shkan-card__author{font-size:12px;color:#7b8491;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shkan-card__read{
  display:inline-flex;align-items:center;gap:7px;
  color:#7e5c18;font-weight:900;font-size:13px;text-decoration:none;white-space:nowrap;
  padding:10px 14px;border-radius:12px;
  background:linear-gradient(135deg,rgba(214,184,97,.18),rgba(240,216,137,.28));
  border:1px solid rgba(214,184,97,.28);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
}
.shkan-card__read span{transition:transform .2s}
.shkan-card__read:hover span{transform:translateX(-4px)}

.shkan-archive{direction:rtl;max-width:1240px;margin:0 auto;padding:54px 24px 70px}
.shkan-archive__hero{position:relative;overflow:hidden;background:radial-gradient(circle at 85% 20%,rgba(214,184,97,.23),transparent 30%),linear-gradient(135deg,#07182d,#102b4d);color:#fff;border-radius:28px;padding:50px 48px 42px;margin-bottom:34px;box-shadow:0 18px 55px rgba(6,22,43,.18)}
.shkan-archive__hero::before{content:"☀";position:absolute;top:18px;left:22px;font-size:44px;color:rgba(240,216,137,.78);text-shadow:0 4px 18px rgba(0,0,0,.22)}
.shkan-archive__hero::after{content:"بیستون";position:absolute;left:22px;bottom:-25px;font-size:110px;font-weight:900;opacity:.035;color:#fff}
.shkan-archive__kicker{color:var(--shkan-gold2);font-size:13px;font-weight:800;letter-spacing:.02em}
.shkan-archive__hero h1{font-size:clamp(30px,5vw,54px);margin:9px 0 10px;color:#fff}
.shkan-archive__hero p{font-size:16px;line-height:2;max-width:780px;color:rgba(255,255,255,.78);margin:0}
.shkan-archive__source{margin-top:16px;font-size:13px}
.shkan-archive__source a{color:var(--shkan-gold2)}

.shkan-single{direction:rtl;max-width:920px;margin:0 auto;padding:50px 24px 80px}
.shkan-single__box{background:#fff;border:1px solid rgba(180,145,65,.35);border-radius:24px;padding:34px;box-shadow:0 15px 45px rgba(7,25,48,.1)}
.shkan-single h1{color:var(--shkan-navy);line-height:1.55}
.shkan-source-cta{display:inline-flex;margin-top:20px;background:linear-gradient(135deg,#af882f,#dfc36d);color:#08182d!important;text-decoration:none!important;padding:12px 18px;border-radius:12px;font-weight:800}

/* Homepage widget enhancement for imported Bistun posts */
.shkan-bistun-enabled .shkh-story.shkan-bistun-card{
  position:relative!important;
  overflow:hidden!important;
  border:1px solid rgba(188,149,61,.42)!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#fff,#faf7f0)!important;
  box-shadow:0 12px 34px rgba(7,25,48,.1),0 22px 48px rgba(7,25,48,.06)!important;
  transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease!important;
}
.shkan-bistun-enabled .shkh-story.shkan-bistun-card::before{
  content:"";position:absolute;inset:0;border-radius:20px;padding:1px;
  background:linear-gradient(145deg,rgba(240,216,137,.92),rgba(255,255,255,.2),rgba(214,184,97,.58));
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;z-index:2;
}
.shkan-bistun-enabled .shkh-story.shkan-bistun-card:hover{transform:translateY(-7px)!important;box-shadow:0 20px 45px rgba(7,25,48,.16),0 35px 70px rgba(7,25,48,.08)!important;border-color:rgba(188,149,61,.7)!important}
.shkan-bistun-enabled .shkh-story.shkan-bistun-card .shkh-story__visual{min-height:205px!important;position:relative!important;overflow:hidden!important;background:linear-gradient(135deg,#08182d,#102746)!important}
.shkan-bistun-enabled .shkh-story.shkan-bistun-card .shkh-story__visual::before{
  content:"";position:absolute;top:12px;left:12px;width:60px;height:60px;
  background:transparent url('ina-logo.png') center/contain no-repeat;
  border:0;border-radius:0;box-shadow:none;backdrop-filter:none;z-index:3
}
.shkan-bistun-enabled .shkh-story.shkan-bistun-card .shkh-story__visual img{transition:transform .45s ease!important}
.shkan-bistun-enabled .shkh-story.shkan-bistun-card:hover .shkh-story__visual img{transform:scale(1.05)!important}
.shkan-bistun-enabled .shkh-story.shkan-bistun-card .shkh-story__body{padding:20px 20px 22px!important}
.shkan-bistun-enabled .shkh-story.shkan-bistun-card .shkh-story__more{font-weight:900!important;background:linear-gradient(135deg,rgba(214,184,97,.18),rgba(240,216,137,.28))!important;padding:10px 14px!important;border-radius:12px!important;display:inline-flex!important}

@media(max-width:980px){
  .shkan-bistun-grid,.shkan-bistun-grid.shkan-cols-3,.shkan-bistun-grid.shkan-cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shkan-archive__hero{padding:36px 28px}
}
@media(max-width:640px){
  .shkan-bistun-grid,.shkan-bistun-grid.shkan-cols-2,.shkan-bistun-grid.shkan-cols-3,.shkan-bistun-grid.shkan-cols-4{grid-template-columns:1fr;gap:18px}
  .shkan-card__body{padding:18px}
  .shkan-card h3{font-size:18px}
  .shkan-card p{min-height:0}
  .shkan-archive{padding:28px 14px 50px}
  .shkan-archive__hero{border-radius:20px;padding:30px 20px}
  .shkan-archive__hero::after{font-size:72px}
  .shkan-card__footer{align-items:flex-start;flex-direction:column}
  .shkan-card__media::before{width:58px;height:58px;top:12px;left:12px}
}
.shkan-empty-state{direction:rtl;background:#fff;border:1px dashed rgba(180,145,65,.5);border-radius:20px;padding:28px;text-align:center;color:#5c6470;box-shadow:0 10px 30px rgba(7,25,48,.05)}
.shkan-empty-state h3{margin:0 0 8px;color:var(--shkan-navy);font-size:20px}
.shkan-empty-state p{margin:0;line-height:2}
.shkan-page-bridge{max-width:1240px!important}


/* Homepage latest analysis cards (SHK Modern Homepage) */
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-grid{align-items:stretch}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card{
  position:relative!important;overflow:hidden!important;border-radius:22px!important;
  border:1px solid rgba(188,149,61,.42)!important;
  background:linear-gradient(180deg,#fff,#faf7f0)!important;
  box-shadow:0 12px 34px rgba(7,25,48,.1),0 22px 48px rgba(7,25,48,.06)!important;
  transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease!important;
  transform-style:preserve-3d;
}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card::before{
  content:"";position:absolute;inset:0;border-radius:22px;padding:1px;z-index:2;pointer-events:none;
  background:linear-gradient(145deg,rgba(240,216,137,.95),rgba(255,255,255,.2),rgba(214,184,97,.62));
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;
}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card::after{
  content:"";position:absolute;left:16px;right:16px;bottom:-16px;height:30px;border-radius:50%;z-index:-1;
  background:radial-gradient(ellipse at center,rgba(8,24,45,.20) 0%,rgba(8,24,45,.07) 45%,transparent 72%);filter:blur(10px);transition:all .3s ease;
}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card:hover{transform:translateY(-9px) rotateX(4deg)!important;box-shadow:0 20px 45px rgba(7,25,48,.16),0 35px 70px rgba(7,25,48,.08)!important;border-color:rgba(188,149,61,.72)!important}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card:hover::after{bottom:-18px;left:10px;right:10px}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card__media{position:relative!important;overflow:hidden!important;min-height:210px;background:linear-gradient(135deg,#08182d,#102746)!important}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card__media::before{
  content:"";position:absolute;top:12px;left:12px;width:60px;height:60px;z-index:3;
  background:transparent url('ina-logo.png') center/contain no-repeat;
  border:0;border-radius:0;box-shadow:none;
}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card__media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.06),transparent 30%,rgba(3,14,29,.34));pointer-events:none}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card__media.has-image{background-size:cover!important;background-position:center!important;transition:transform .45s ease}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card:hover .shkh-editorial-card__media.has-image{transform:scale(1.03)}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card__media span{position:absolute;top:14px;right:14px;z-index:3;background:rgba(7,24,45,.88);color:var(--shkan-gold2);border:1px solid rgba(240,216,137,.45);padding:7px 12px;border-radius:999px;font-size:12px;font-weight:800;backdrop-filter:blur(8px);box-shadow:0 6px 14px rgba(0,0,0,.15)}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card__body{padding:20px 20px 22px!important;position:relative}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card__body small{display:block;color:#7b6c4e!important;font-size:12px!important;margin-bottom:8px}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card__body h3{margin:0 0 10px!important;line-height:1.7!important;font-size:20px!important;font-weight:900!important}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card__body h3 a{color:var(--shkan-navy)!important;text-decoration:none!important;background-image:linear-gradient(transparent calc(100% - 2px),rgba(214,184,97,.28) 0);background-size:0 100%;background-repeat:no-repeat;transition:color .2s ease,background-size .25s ease}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card__body h3 a:hover{color:#8d6415!important;background-size:100% 100%}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card__body p{color:#5c6470!important;line-height:2!important}

.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card__media.shkan-remote-image{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card:hover .shkh-editorial-card__media.shkan-remote-image{transform:scale(1.03)}

/* v2.1.4: exact transparent INA logo — no white/black disc, no border */
.shkan-card__media::before{
  background:transparent url('ina-logo.png') center/contain no-repeat!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  border-radius:0!important;
}
.shkan-bistun-enabled .shkh-story.shkan-bistun-card .shkh-story__visual::before,
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card__media::before{
  background:transparent url('ina-logo.png') center/contain no-repeat!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  border-radius:0!important;
}
/* Real image element injected into Homepage analysis cards. */
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card__media > img.shkan-home-image{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
  z-index:0!important;
  transition:transform .45s ease,filter .45s ease!important;
}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card:hover .shkh-editorial-card__media > img.shkan-home-image{
  transform:scale(1.05)!important;
  filter:contrast(1.03) saturate(1.02)!important;
}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card__media::after{z-index:1!important}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card__media::before{z-index:3!important}
.shkan-bistun-enabled .shkh-editorial .shkh-editorial-card__media > span{z-index:4!important}
