/* Sepahan Gostar — shared site chrome (header + footer), used by the homepage AND all inner pages (sg-chrome v3).
   Everything is scoped to .sg-header / .sg-footer-wrap / .sg-btn so it is safe next to Bootstrap 3 and the old theme. */
@font-face{font-family:Vazirmatn;font-weight:400;font-display:swap;src:url(/Themes/Public/Fonts/vazirmatn/Vazirmatn-Regular.woff2) format('woff2')}
@font-face{font-family:Vazirmatn;font-weight:500;font-display:swap;src:url(/Themes/Public/Fonts/vazirmatn/Vazirmatn-Medium.woff2) format('woff2')}
@font-face{font-family:Vazirmatn;font-weight:700;font-display:swap;src:url(/Themes/Public/Fonts/vazirmatn/Vazirmatn-Bold.woff2) format('woff2')}
@font-face{font-family:Vazirmatn;font-weight:800 900;font-display:swap;src:url(/Themes/Public/Fonts/vazirmatn/Vazirmatn-ExtraBold.woff2) format('woff2')}
@font-face{font-family:sg-fa-digits;font-weight:100 500;font-display:swap;unicode-range:U+0030-0039;src:url(/Themes/Public/Fonts/iranian-sans-fontface/IRANSansWeb.woff2) format('woff2')}
@font-face{font-family:sg-fa-digits;font-weight:600 900;font-display:swap;unicode-range:U+0030-0039;src:url(/Themes/Public/Fonts/iranian-sans-fontface/IRANSansWeb_Bold.woff2) format('woff2')}

:root{
  --ink:#142127;--dark:#101d23;--text:#2c3a40;--muted:#65737b;--teal:#397f89;--teal-d:#2b6670;--mint:#a2e2d8;
  --paper:#f7f8f6;--tint:#eef5f4;--line:#e5e9e7;--r:22px;--r-sm:14px;
  --font:sg-fa-digits,Vazirmatn,Tahoma,sans-serif;
  --shadow:0 1px 2px rgba(16,29,35,.04),0 12px 34px rgba(16,29,35,.08);
}

.sg-container{width:min(1180px,calc(100% - 40px));margin-inline:auto;box-sizing:border-box}
.sg-header *,.sg-footer-wrap *{box-sizing:border-box}

/* buttons */
.sg-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 24px;border-radius:12px;font-family:var(--font);font-weight:700;font-size:14px;line-height:1.4;border:1px solid transparent;text-decoration:none!important;transition:transform .2s,background .2s,color .2s,border-color .2s;cursor:pointer}
.sg-btn:hover{transform:translateY(-2px)}
.sg-btn-dark,.sg-btn-dark:focus{background:var(--dark);color:#fff!important}
.sg-btn-dark:hover{background:var(--teal);color:#fff!important}
.sg-btn-light,.sg-btn-light:focus{background:#fff;color:var(--ink)!important}
.sg-btn-light:hover{background:var(--mint);color:var(--ink)!important}
.sg-btn-ghost,.sg-btn-ghost:focus{border-color:rgba(255,255,255,.45);color:#fff!important}
.sg-btn-ghost:hover{background:rgba(255,255,255,.1);border-color:#fff;color:#fff!important}

/* ================= header ================= */
.sg-header{position:relative;z-index:30;font-family:var(--font);direction:rtl;line-height:1.6;
  background:radial-gradient(120% 220% at 0% 0%,rgba(57,127,137,.55) 0%,rgba(57,127,137,0) 55%),linear-gradient(135deg,#101d23 0%,#142a31 100%);padding:16px 0}
.sg-header--overlay{position:absolute;top:20px;inset-inline:0;background:none;padding:0}
.sg-header a{text-decoration:none!important}
.sg-nav{display:flex;align-items:center;gap:20px;padding:10px 14px 10px 22px;background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.6);border-radius:18px;box-shadow:0 14px 40px rgba(0,0,0,.14);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.sg-brand{display:flex;align-items:center;flex-shrink:0;min-height:44px}
.sg-brand img{display:block;height:35px;width:auto;max-width:220px;object-fit:contain}
.sg-brand-text{font-size:20px;font-weight:900;color:var(--ink)}
.sg-brand img+.sg-brand-text{display:none}

/* CMS menu (Module MenuMultiResponsive, PublicId 4) — override the old theme's !important rules */
.sg-header .sg-menu{flex:1;min-width:0}
.sg-header .sg-menu .rmm,.sg-header .sg-menu .rmm.style{float:none!important;background:none!important;width:auto!important;margin:0!important;padding:0!important;max-width:none!important}
.sg-header .sg-menu .rmm ul,.sg-header .sg-menu .rmm.style ul{display:flex;flex-wrap:wrap;gap:4px 4px;list-style:none;margin:0!important;padding:0!important;background:none!important;box-shadow:none!important;border:0!important;width:auto!important;position:static;float:none!important}
.sg-header .sg-menu .rmm ul li,.sg-header .sg-menu .rmm.style ul li{position:relative;margin:0!important;padding:0!important;list-style:none;float:none!important;background:none!important;border:0!important;width:auto!important;display:block}
.sg-header .sg-menu .rmm ul li a,.sg-header .sg-menu .rmm.style ul li a{display:block;padding:8px 12px!important;border-radius:10px;font-family:var(--font)!important;font-size:14px!important;font-weight:600!important;line-height:1.7!important;color:var(--ink)!important;white-space:nowrap;background:none!important;text-shadow:none!important;border:0!important;transition:background .2s,color .2s}
.sg-header .sg-menu .rmm ul li a span{font:inherit!important;color:inherit!important}
.sg-header .sg-menu .rmm ul li:hover,.sg-header .sg-menu .rmm.style ul li:hover{background:none!important}
.sg-header .sg-menu .rmm ul li a:hover,.sg-header .sg-menu .rmm ul li:hover>a{background:var(--tint)!important;color:var(--teal-d)!important}
.sg-header .sg-menu .rmm ul ul{display:none;position:absolute;top:100%;right:0;min-width:220px;flex-direction:column;flex-wrap:nowrap;background:#fff!important;border:1px solid var(--line)!important;border-radius:14px;box-shadow:var(--shadow)!important;padding:8px!important;z-index:40}
.sg-header .sg-menu .rmm ul ul li a{white-space:normal}
.sg-header .sg-menu .rmm ul li:hover>ul,.sg-header .sg-menu .rmm ul li:focus-within>ul{display:flex}
.sg-header .sg-menu .rmm-toggled,.sg-header .sg-menu .rmm-toggled-button,.sg-header .sg-menu .rmm-toggled-controls{display:none!important}
/* the CMS menu script switches the list to "mobile" mode when it thinks it does not fit — always show the list; our own toggle handles small screens */
.sg-header .sg-menu .rmm>ul,.sg-header .sg-menu .rmm>ul.rmm-mobile{display:flex!important;position:static!important;top:auto!important;left:auto!important;right:auto!important}
.sg-nav-cta{flex-shrink:0;min-height:42px;padding:9px 18px}
.sg-menu-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;border:1px solid var(--line);background:#fff;border-radius:12px;cursor:pointer;padding:0 11px}
.sg-menu-toggle span{display:block;height:2px;border-radius:2px;background:var(--ink);transition:transform .2s,opacity .2s}
.sg-header.open .sg-menu-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.sg-header.open .sg-menu-toggle span:nth-child(2){opacity:0}
.sg-header.open .sg-menu-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* account bar (only has content for logged-in users: profile, tickets, cart, exit) */
.sg-header .header_top{background:none!important;color:#cfe1e3!important;padding:0!important;margin:0 auto 10px!important;width:min(1180px,calc(100% - 40px))!important;float:none!important;font-family:var(--font)}
.sg-header .header_top:not(:has(#ctl00_Plcresponsepage,#ctl00_advertisingGuest)){display:none!important}
.sg-header .my_header_links{display:flex!important;flex-wrap:wrap;gap:4px 14px;float:none!important;width:auto!important;padding:0!important;margin:0!important}
.sg-header .my_header_links li{list-style:none;display:inline-block!important;background:none!important;padding:0!important;font-size:12.5px!important}
.sg-header .header_top a,.sg-header #header_top a{color:#cfe1e3!important;font-size:12.5px!important;padding:2px 0!important}
.sg-header .header_top a:hover{color:#fff!important}

/* header buttons from CMS image group 24 (sg-chrome v3) */
.sg-nav-links{display:flex;align-items:center;gap:2px;flex-shrink:0}
.sg-header .sg-nav-link{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 10px;border-radius:10px;font-size:13.5px;font-weight:700;line-height:1.5;color:var(--ink)!important;white-space:nowrap;transition:background .2s,color .2s}
.sg-header .sg-nav-link:hover{background:var(--tint);color:var(--teal-d)!important}
.sg-nav-link svg{flex-shrink:0;width:18px;height:18px;fill:none;stroke:var(--teal);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* ================= footer (CMS Info 9 / Info 2) ================= */
footer.sg-footer-wrap,.sg-footer-wrap{display:block;float:none!important;width:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:var(--dark)!important;color:#b9c7ca!important;font-family:var(--font);font-size:14.5px;line-height:2;direction:rtl;clear:both}
.sg-footer-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:40px;padding:64px 0 40px}
.sg-footer-wrap a{color:#cfdcde!important;text-decoration:none!important}
.sg-footer-wrap a:hover{color:#fff!important}
.sg-footer-cms .info-txt,.sg-footer-cms .Main{display:block;background:none!important;color:inherit!important}
.sg-footer-cms h2,.sg-footer-cms h3,.sg-footer-cms h4{color:#fff!important;font-family:var(--font)!important;font-weight:800;line-height:1.7}
.sg-footer-cms h2{font-size:22px!important;margin:0 0 6px}
.sg-footer-cms h3{font-size:16px!important;margin:22px 0 8px}
.sg-footer-cms p,.sg-footer-cms li,.sg-footer-cms span{font-family:var(--font)!important}
.sg-footer-cms ul{list-style:none;margin:0;padding:0}
.sg-footer-cms li{margin:0 0 4px}
.sg-seals{display:flex;gap:12px;align-items:flex-start}
.sg-seals a{display:block}
.sg-seals img{width:92px!important;height:auto;border-radius:12px;background:#fff;padding:6px;cursor:pointer;position:static!important;float:none!important}
.sg-seals .sg-ecunion{background:#565656}
.sg-footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding:18px 0;font-size:13px;color:#8fa1a5;text-align:center}
.sg-footer-bottom .info-txt{display:block;background:none!important;color:inherit!important}

/* ================= responsive ================= */
@media (max-width:1320px){ .sg-header .sg-nav-link span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap} .sg-header .sg-nav-link{padding:6px 9px} }
@media (max-width:1100px){ .sg-nav-cta{display:none} }
@media (max-width:991px){
  .sg-menu-toggle{display:flex;margin-inline-start:auto}
  .sg-nav{flex-wrap:wrap;padding:8px 10px 8px 14px}
  .sg-header .sg-menu{display:none;flex-basis:100%}
  .sg-header.open .sg-menu{display:block}
  .sg-nav-links{display:none;flex-basis:100%;flex-wrap:wrap;gap:6px;order:5;padding:8px 0 4px;border-top:1px solid var(--line)}
  .sg-header.open .sg-nav-links{display:flex}
  .sg-brand{order:1}
  .sg-menu-toggle{order:2}
  .sg-header .sg-menu{order:4}
  .sg-header .sg-menu .rmm ul li a{text-align:right}
  .sg-header .sg-nav-link span{position:static;width:auto;height:auto;overflow:visible;clip:auto}
  .sg-header .sg-nav-link{padding:8px 12px;background:var(--tint)}
  .sg-header .sg-menu .rmm ul{flex-direction:column;gap:2px;padding:8px 0 4px!important}
  .sg-header .sg-menu .rmm ul li a{padding:11px 12px!important;font-size:15px!important}
  .sg-header .sg-menu .rmm ul ul{position:static;display:flex;box-shadow:none!important;border:0!important;padding:0 14px 0 0!important;min-width:0}
}
@media (max-width:767px){
  .sg-container{width:calc(100% - 32px)}
  .sg-header{padding:12px 0}
  .sg-header--overlay{top:12px;padding:0}
  .sg-brand img{height:34px}
  .sg-footer-grid{grid-template-columns:1fr;padding:48px 0 28px}
}

/* ===== header dropdowns from CMS menu (sg-chrome v5) =====
   rmm plugin always falls back to "mobile" mode here (.rmm max-width is none); sg-chrome.js strips rmm-mobile,
   and these rules neutralise whatever the plugin's CSS still applies. */
.sg-header .sg-menu .rmm .rmm-back{display:none!important}
.sg-header .sg-menu .rmm ul.rmm-menu>li{width:auto!important}
.sg-header .sg-menu .rmm li>a.rmm-dropdown{display:flex!important;align-items:center;gap:6px}
.sg-header .sg-menu .rmm li>a:not(:only-child)::after,.sg-header .sg-menu .rmm.style li>a:not(:only-child)::after{content:""!important;font-family:inherit!important;display:inline-block!important;position:static!important;float:none!important;width:6px;height:6px;margin:0 0 3px!important;border:solid currentColor;border-width:0 0 2px 2px;transform:rotate(-45deg)!important;font-size:0!important;opacity:.6;top:auto!important;right:auto!important}
.sg-header .sg-menu .rmm ul.rmm-menu ul.rmm-submenu{display:none!important;position:absolute!important;top:100%!important;right:0!important;left:auto!important;width:auto!important;min-width:240px;flex-direction:column;gap:2px;margin:0!important;padding:8px!important;background:#fff!important;border:1px solid var(--line)!important;border-radius:14px;box-shadow:var(--shadow)!important;z-index:60}
.sg-header .sg-menu .rmm ul.rmm-menu>li:hover>ul.rmm-submenu,.sg-header .sg-menu .rmm ul.rmm-menu>li:focus-within>ul.rmm-submenu{display:flex!important}
.sg-header .sg-menu .rmm ul.rmm-menu>li>ul.rmm-submenu::before{content:"";position:absolute;right:0;left:0;top:-10px;height:10px}
.sg-header .sg-menu .rmm ul.rmm-submenu li{width:auto!important;background:none!important;border:0!important}
.sg-header .sg-menu .rmm ul.rmm-submenu li a{padding:9px 12px!important;font-size:13.5px!important;white-space:nowrap!important;color:var(--ink)!important}
@media (max-width:991px){
  .sg-header .sg-menu .rmm ul.rmm-menu ul.rmm-submenu{display:flex!important;position:static!important;min-width:0;box-shadow:none!important;border:0!important;border-right:2px solid var(--line)!important;border-radius:0;margin:0 12px 6px 0!important;padding:0 8px 0 0!important;background:none!important}
  .sg-header .sg-menu .rmm ul.rmm-menu>li>ul.rmm-submenu::before{display:none}
  .sg-header .sg-menu .rmm ul.rmm-submenu li a{white-space:normal!important;font-size:14px!important}
  .sg-header .sg-menu .rmm li>a:not(:only-child)::after{display:none!important}
}
