.sponsored-banner{position:relative;margin-top:16px;margin-bottom:16px;overflow:hidden}
.sponsored-banner:not(.sponsored-banner-slot):not(.sponsored-banner-photo){border:1px solid #e8ebe6;border-radius:12px;background:#fafbf9;box-shadow:0 2px 12px rgba(36,52,44,.04)}
.sponsored-banner.sponsored-banner-photo{border:0;background:transparent;box-shadow:none;border-radius:0;overflow:visible}
.sponsored-banner a{display:flex;gap:12px;align-items:center;justify-content:center;min-height:72px;padding:16px 20px;text-decoration:none;color:#344054}
.sponsored-banner-photo a{display:block;min-height:0;padding:0;gap:0}
.sponsored-banner:not(.sponsored-banner-photo) img{display:block;width:100%;max-height:120px;object-fit:contain}
.sponsored-banner.sponsored-banner-photo img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;border-radius:0}
.home-filters-column .sponsored-banner.sponsored-banner-photo,
.home-filter-ad .sponsored-banner.sponsored-banner-photo{display:block;width:100%;height:auto}
.sponsored-banner.sponsored-banner-photo .sponsored-banner-slide{position:relative;width:100%}
.home-filters-column .sponsored-banner.sponsored-banner-photo .sponsored-banner-slide,
.home-filters-column .sponsored-banner.sponsored-banner-photo a,
.home-filter-ad .sponsored-banner.sponsored-banner-photo .sponsored-banner-slide,
.home-filter-ad .sponsored-banner.sponsored-banner-photo a{display:block;width:100%;height:auto;min-height:0;padding:0}
.home-filters-column .sponsored-banner.sponsored-banner-photo img,
.home-filter-ad .sponsored-banner.sponsored-banner-photo img{max-height:250px}
.sponsored-banner.sponsored-banner-photo .sponsored-label{display:none}
.sponsored-banner .sponsored-label{position:absolute;top:5px;right:8px;font-size:9px;font-weight:600;letter-spacing:.02em;color:#8a9a92;background:rgba(255,255,255,.92);padding:2px 6px;border-radius:4px;z-index:2;line-height:1.4}
.sponsored-banner-slot{border:1px dashed #cddbe1;border-radius:8px;background:linear-gradient(135deg,#f3f5f2 0%,#ecefe8 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.sponsored-slot-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:72px;padding:18px 16px;text-align:center;color:#6f8678}
.sponsored-slot-placeholder strong{font-size:13px;font-weight:700;color:#4b5a52}
.sponsored-slot-placeholder>span{font-size:11px;color:#8a9a92;line-height:1.5}
.sponsored-banner-flush{margin-inline:0}
.home-filters-column .sponsored-banner{margin:0 0 12px}
.home-filters-column .sponsored-banner:last-child{margin:12px 0 0}
.sponsored-banner-carousel{padding-bottom:0}
.sponsored-banner-dots{display:none!important}
.sponsored-banner-stack{display:flex;flex-direction:column;gap:12px;padding-bottom:0}
.sponsored-banner-stack.sponsored-banner-photo{overflow:visible}
.sponsored-banner-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-bottom:0}
.sponsored-banner-columns.sponsored-banner-photo{overflow:visible}
.sponsored-banner-columns .sponsored-banner-slide{min-width:0}
@media(max-width:700px){
.sponsored-banner-columns{grid-template-columns:minmax(0,1fr)}
}
.sponsored-banner-slide[hidden]{display:none!important}
.sponsored-banner-dots{position:absolute;inset-inline:0;bottom:6px;display:flex;justify-content:center;gap:6px;z-index:2}
.sponsored-banner-dot{width:7px;height:7px;border:0;border-radius:999px;padding:0;background:#d0d5dd;cursor:pointer}
.sponsored-banner-dot.is-on{background:#2f6b4f;width:16px}

/* تبلیغ HTML / سازنده — مطابق footer-banner standalone */
.sponsored-banner-text{border:0;background:transparent;box-shadow:none;overflow:visible;padding-bottom:0}
.sponsored-banner-text .sponsored-label{display:none}
.sponsored-banner-text a.myedu-iran-banner,
.sponsored-banner-text a.myedu-html-banner,
.sponsored-banner-text .myedu-html-banner{
  display:block;width:100%;min-height:0;padding:0;gap:0;color:inherit;text-decoration:none;
  justify-content:unset;align-items:unset;
}
/* لینک‌های داخل HTML نباید استایل flex تبلیغ تصویری را بگیرند */
.sponsored-banner-text .myedu-html-banner__content a{
  display:inline-flex;min-height:0;padding:unset;gap:unset;align-items:unset;justify-content:unset;
  width:auto;max-width:100%;color:inherit;
}
.sponsored-banner-html{overflow:visible}
.myedu-iran-banner,
.myedu-iran-banner *{box-sizing:border-box}
.myedu-iran-banner{
  --banner-teal:#0d9488;
  --banner-gold:#f59e0b;
  --banner-accent:#34d399;
  --banner-bg-start:#022c22;
  --banner-bg-middle:#0f172a;
  --banner-bg-end:#042f2e;
  --banner-title-start:#6ee7b7;
  --banner-title-end:#fde68a;
  --banner-description:#cbd5e1;
  --banner-sparkle:#f5d08a;
  --banner-glow:#0d948859;
  --banner-gold-glow:#f59e0b40;
  --banner-sparkle-glow:#f5d08a99;
  display:block;direction:rtl;position:relative;isolation:isolate;overflow:hidden;
  width:100%;max-width:100%;margin-inline:auto;padding:2px;border-radius:16px;
  background:var(--banner-teal);box-shadow:0 0 28px var(--banner-glow);font-family:inherit;
  clip-path:inset(0 round 16px);
}
.myedu-iran-banner::before{
  content:"";position:absolute;z-index:0;left:50%;top:50%;width:220%;aspect-ratio:1;
  background:conic-gradient(from 0deg,var(--banner-teal),var(--banner-gold),var(--banner-accent),var(--banner-teal));
  transform:translate(-50%,-50%) rotate(0deg);animation:myedu-banner-spin 7s linear infinite;pointer-events:none;
}
.myedu-iran-banner--preview,.myedu-html-banner--preview{pointer-events:none;cursor:default}
.myedu-iran-banner__inner{
  position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
  width:100%;overflow:hidden;padding:16px 20px;border-radius:14px;text-align:center;
  background:linear-gradient(135deg,var(--banner-bg-start),var(--banner-bg-middle),var(--banner-bg-end));
}
.myedu-iran-banner__inner::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(circle at 25% 20%,var(--banner-glow),transparent 55%),
             radial-gradient(circle at 80% 85%,var(--banner-gold-glow),transparent 55%);
}
.myedu-iran-banner__flag{
  position:relative;display:block;flex:0 0 auto;width:40px;height:30px;object-fit:contain;
  filter:drop-shadow(0 2px 6px rgb(0 0 0 / 40%));transform-origin:70% 70%;
  animation:myedu-banner-wave 2.6s ease-in-out infinite;
}
.myedu-iran-banner__copy{position:relative;min-width:0;width:100%;text-align:center}
.myedu-iran-banner__title{
  margin:0;color:var(--banner-title-start);font-size:18px;font-weight:900;line-height:1.8;text-align:center;
  background:linear-gradient(to left,var(--banner-title-start),var(--banner-title-end),var(--banner-title-start));
  background-size:200% auto;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  animation:myedu-banner-shine 3.5s linear infinite;
}
.myedu-iran-banner__description{margin:4px 0 0;color:var(--banner-description);font-size:11px;font-weight:500;line-height:1.9;text-align:center}
.myedu-iran-banner__detail{margin:2px 0 0;color:var(--banner-description);font-size:10px;font-weight:500;line-height:1.8;opacity:.82;text-align:center}
.myedu-iran-banner__sparkle{
  position:absolute;width:5px;height:5px;border-radius:50%;background:var(--banner-sparkle);
  box-shadow:0 0 8px 2px var(--banner-sparkle-glow);pointer-events:none;
  animation:myedu-banner-sparkle 2.6s ease-in-out infinite;
}
.myedu-iran-banner__sparkle--1{top:18%;right:14%}
.myedu-iran-banner__sparkle--2{bottom:22%;right:32%;animation-delay:.9s}
.myedu-iran-banner__sparkle--3{top:30%;left:12%;animation-delay:1.7s}
@keyframes myedu-banner-spin{to{transform:translate(-50%,-50%) rotate(360deg)}}
@keyframes myedu-banner-shine{to{background-position:200% center}}
@keyframes myedu-banner-wave{
  0%,100%{transform:rotate(-6deg) translateY(0)}
  50%{transform:rotate(6deg) translateY(-4px)}
}
@keyframes myedu-banner-sparkle{
  0%,100%{opacity:0;transform:scale(.4)}
  50%{opacity:1;transform:scale(1.15)}
}
@media(min-width:640px){
  .myedu-iran-banner__inner{gap:14px}
  .myedu-iran-banner__copy{text-align:center}
}
@media(min-width:768px){
  .myedu-iran-banner__inner{padding:20px 32px}
  .myedu-iran-banner__flag{width:48px;height:36px}
  .myedu-iran-banner__title{font-size:20px}
  .myedu-iran-banner__description{font-size:14px}
  .myedu-iran-banner__detail{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
  .myedu-iran-banner::before,
  .myedu-iran-banner__title,
  .myedu-iran-banner__flag,
  .myedu-iran-banner__sparkle{animation:none}
  .myedu-iran-banner__sparkle{opacity:0}
}
.myedu-html-banner{display:block;width:100%;color:inherit;text-decoration:none}
.myedu-html-banner__content{display:block;width:100%;max-width:100%}
.myedu-html-banner__content > *{max-width:100%}
.myedu-html-banner__content .myedu-iran-banner{max-width:100%;margin:0}
.myedu-html-banner__content img{max-width:100%;height:auto}
.home-hero-ad .myedu-iran-banner__inner{padding:12px 14px;gap:10px}
.home-hero-ad .myedu-iran-banner__title{font-size:15px}
.home-hero-ad .myedu-iran-banner__description{font-size:11.5px;margin-top:4px;-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
.home-hero-ad .myedu-iran-banner__detail{font-size:10.5px;margin-top:2px;-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
.home-hero-ad .myedu-iran-banner__flag{width:36px;height:27px}
/* هیرو: بنر متنی فشرده و وسط‌چین */
.listing-hero-ad .sponsored-banner-text,
.listing-hero-ad .sponsored-banner-html,
.home-hero-ad .sponsored-banner-text,
.home-hero-ad .sponsored-banner-html{
  overflow:hidden;border:0;background:transparent;box-shadow:none;
  backdrop-filter:none;-webkit-backdrop-filter:none;
}
.listing-hero-ad .sponsored-banner-text .sponsored-banner-slide,
.listing-hero-ad .sponsored-banner-html .sponsored-banner-slide,
.listing-hero-ad .sponsored-banner-text .myedu-html-banner,
.listing-hero-ad .sponsored-banner-text a.myedu-iran-banner,
.home-hero-ad .sponsored-banner-text .sponsored-banner-slide,
.home-hero-ad .sponsored-banner-html .sponsored-banner-slide{
  min-height:0;padding:0;
}
.home-hero-ad{
  width:min(100%,720px);
  max-width:720px;
  margin-inline:auto;
}
.home-hero-ad .sponsored-banner-text,
.home-hero-ad .sponsored-banner-html{
  max-height:96px;
}
