.main-nav a::after,
.site-bg::after,
.site-bg::before {
  position: absolute;
  content: "";
}
.switch-track,
button {
  cursor: pointer;
}
.cert-card,
.logo-icon,
.page-hero,
.switch-track,
body.menu-open {
  overflow: hidden;
}
.logo-icon,
.menu-btn,
.scroll-top {
  place-items: center;
}
@font-face {
  font-family: MyFont;
  src: url("../fonts/Vazir.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0600-06FF;
}
:root {
  --bg: #07111f;
  --bg-2: #0b1320;
  --bg-3: #111c2e;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: #aeb8c5;
  --border: rgba(255, 255, 255, 0.12);
  --primary: #f6b800;
  --primary-2: #ff7a1a;
  --danger-stripe: repeating-linear-gradient(
    135deg,
    rgba(246, 184, 0, 0.95) 0 12px,
    rgba(7, 17, 31, 0.95) 12px 24px
  );
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1180px;
  --header-height: 84px;
  --transition: 250ms ease;
}
.main-nav a,
.menu-btn span,
.site-header,
.switch-track {
  transition: var(--transition);
}
body.light-theme {
  --bg: #f5f7fb;
  --bg-2: #ffffff;
  --bg-3: #edf2f7;
  --surface: rgba(7, 17, 31, 0.055);
  --surface-2: rgba(7, 17, 31, 0.08);
  --text: #07111f;
  --muted: #526071;
  --border: rgba(7, 17, 31, 0.13);
  --shadow: 0 24px 70px rgba(7, 17, 31, 0.13);
}
*,
::after,
::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  font-family: MyFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  transition:
    background var(--transition),
    color var(--transition);
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
::selection {
  background: var(--primary);
  color: #07111f;
}
.cert-card:hover .cert-content h3,
.main-nav a.active,
.main-nav a:hover,
.section-tag {
  color: var(--primary);
}
.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}
.site-bg::before {
  inset: 0;
  background-image: url("https://picsum.photos/seed/electric-power-lines/1920/1080.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.06;
  filter: blur(2px) saturate(0.5);
  transition: opacity 0.4s;
}
body.light-theme .site-bg::before {
  opacity: 0.045;
}
.site-bg::after {
  inset: 0;
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(246, 184, 0, 0.14),
      transparent 28%
    ),
    radial-gradient(
      circle at 10% 35%,
      rgba(255, 122, 26, 0.08),
      transparent 26%
    ),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  transition: background 0.4s;
}
.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  z-index: 1000;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.72);
  border-bottom: 1px solid var(--border);
}
body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.72);
}
.site-header.scrolled {
  height: 74px;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.18);
}
body.light-theme .site-header.scrolled {
  box-shadow: 0 14px 45px rgba(7, 17, 31, 0.1);
}
.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo,
.main-nav {
  align-items: center;
}
.logo {
  display: inline-flex;
  gap: 12px;
  min-width: max-content;
}
.logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  flex: 0 0 auto;
  padding: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow:
    0 14px 34px rgba(246, 184, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  isolation: isolate;
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: contrast(1.08) saturate(1.08);
}
.logo-text strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.2;
}
.logo-text small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  position: relative;
}
.main-nav a::after {
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s;
}
.main-nav a.active::after,
.main-nav a:hover::after {
  transform: scaleX(1);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.theme-switch {
  position: relative;
  width: 76px;
  height: 38px;
  display: inline-block;
  flex: 0 0 auto;
}
.cloud,
.moon,
.sun,
.switch-track {
  position: absolute;
}
.menu-btn,
.theme-switch input {
  display: none;
}
.switch-track {
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #78c8ff, #dff5ff);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.18);
}
.moon,
.sun {
  top: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transition: 420ms cubic-bezier(0.2, 0.85, 0.25, 1.25);
}
.cloud,
.star {
  transition: 420ms;
}
.sun {
  right: 7px;
  background: #ffd34e;
  box-shadow: 0 0 22px rgba(255, 211, 78, 0.9);
}
.moon {
  left: -32px;
  background: #f4f7ff;
  box-shadow: inset -7px -4px 0 #c9d2e6;
}
.cloud {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}
.cloud::after,
.cloud::before {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}
.page-hero::after,
.page-hero::before {
  background: var(--danger-stripe);
  position: absolute;
  content: "";
  pointer-events: none;
}
.cloud::before {
  right: 6px;
}
.cloud::after {
  right: 17px;
  width: 9px;
  height: 9px;
}
.cloud-1 {
  width: 34px;
  right: 29px;
  bottom: 7px;
}
.cloud-2 {
  width: 24px;
  right: 8px;
  bottom: 5px;
  opacity: 0.75;
}
.menu-btn.active span:nth-child(2),
.star {
  opacity: 0;
}
.star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-10px);
}
.star-1 {
  right: 16px;
  top: 10px;
}
.star-2 {
  right: 34px;
  top: 22px;
}
.star-3 {
  right: 54px;
  top: 12px;
}
.theme-switch input:checked + .switch-track {
  background: linear-gradient(180deg, #121826, #030712);
}
.theme-switch input:checked + .switch-track .sun {
  right: 84px;
}
.theme-switch input:checked + .switch-track .moon {
  left: 7px;
}
.theme-switch input:checked + .switch-track .cloud {
  transform: translateY(25px);
  opacity: 0;
}
.reveal.active,
.theme-switch input:checked + .switch-track .star {
  opacity: 1;
  transform: translateY(0);
}
.menu-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
}
.menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--text);
  display: block;
  margin: 3px 0;
  border-radius: 10px;
}
.menu-btn.active span:first-child {
  transform: translateY(8px) rotate(45deg);
}
.menu-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.page-hero {
  position: relative;
  padding: 100px 0 60px;
  min-height: 340px;
  display: flex;
  align-items: center;
}
.page-hero::before {
  width: 220px;
  height: 220px;
  left: -60px;
  top: 20%;
  opacity: 0.06;
  transform: rotate(12deg);
  border-radius: 40px;
}
.page-hero::after {
  width: 180px;
  height: 180px;
  right: -40px;
  bottom: 10%;
  opacity: 0.04;
  transform: rotate(-8deg);
  border-radius: 36px;
}
.page-hero-content {
  position: relative;
  z-index: 2;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 16px;
}
.section-tag svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.3;
  letter-spacing: -1.5px;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.45);
}
.page-hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
}
.page-hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 680px;
  margin-top: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.certificates-section {
  padding: 20px 0 110px;
  position: relative;
  z-index: 2;
}
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.cert-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 50%),
    rgba(13, 24, 41, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 350ms,
    border-color 350ms,
    box-shadow 350ms,
    background 350ms;
}
.cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(246, 184, 0, 0.75),
    rgba(255, 122, 26, 0.55),
    transparent
  );
  opacity: 0.45;
  transform: scaleX(0.45);
  transform-origin: center;
  transition:
    opacity 350ms,
    transform 350ms;
  z-index: 3;
}
.cert-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(
    120deg,
    transparent 18%,
    rgba(255, 255, 255, 0.06) 38%,
    transparent 58%
  );
  opacity: 0;
  transform: translateX(35%);
  transition:
    opacity 350ms,
    transform 0.5s;
}
.cert-card:hover {
  transform: translateY(-8px);
  border-color: rgba(246, 184, 0, 0.35);
  background:
    radial-gradient(
      500px circle at 85% 5%,
      rgba(246, 184, 0, 0.1),
      transparent 44%
    ),
    rgba(13, 24, 41, 0.82);
  box-shadow:
    0 28px 68px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(246, 184, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cert-card:hover::before {
  opacity: 0.9;
  transform: scaleX(1);
}
.cert-card:hover::after {
  opacity: 1;
  transform: translateX(-25%);
}
body.light-theme .cert-card {
  border-color: rgba(7, 17, 31, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(248, 250, 252, 0.9)
  );
  box-shadow:
    0 18px 42px rgba(7, 17, 31, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
body.light-theme .cert-card:nth-child(2n) {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(245, 247, 250, 0.9)
  );
}
body.light-theme .cert-card:hover {
  border-color: rgba(246, 184, 0, 0.45);
  background:
    radial-gradient(
      500px circle at 85% 5%,
      rgba(246, 184, 0, 0.12),
      transparent 44%
    ),
    linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: 0 28px 62px rgba(7, 17, 31, 0.12);
}
.cert-card.full-width {
  grid-column: 1/-1;
}
.cert-image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.cert-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(7, 17, 31, 0.04) 30%,
      rgba(7, 17, 31, 0.22) 72%,
      rgba(7, 17, 31, 0.6) 100%
    ),
    radial-gradient(circle at 82% 18%, rgba(246, 184, 0, 0.15), transparent 38%);
  transition: background 0.4s;
}
body.light-theme .cert-image-wrap::after {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 30%,
    rgba(255, 255, 255, 0.12) 72%,
    rgba(255, 255, 255, 0.35) 100%
  );
}
.cert-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.06);
  transition:
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.7s;
}
.cert-card:hover .cert-image-wrap img {
  transform: scale(1.06);
  filter: saturate(1.04) contrast(1.08);
}
.cert-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.7);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition: var(--transition);
}
body.light-theme .cert-badge {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(7, 17, 31, 0.1);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(7, 17, 31, 0.1);
}
.cert-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  flex: 0 0 auto;
}
.cert-image-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 350ms;
}
.cert-image-link span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #07111f;
  box-shadow:
    0 14px 36px rgba(246, 184, 0, 0.35),
    0 0 0 6px rgba(246, 184, 0, 0.1);
  transform: scale(0.7);
  transition: transform 350ms cubic-bezier(0.2, 0.85, 0.25, 1.25);
}
.cert-image-link span svg {
  width: 24px;
  height: 24px;
  stroke: #07111f;
  fill: none;
  stroke-width: 2.5;
  transform: scaleX(-1);
}
.cert-card:hover .cert-image-link {
  opacity: 1;
}
.cert-card:hover .cert-image-link span {
  transform: scale(1);
}
.cert-content {
  position: relative;
  z-index: 2;
  padding: 28px 28px 32px;
}
.cert-line {
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 18px rgba(246, 184, 0, 0.25);
  margin-bottom: 18px;
  transition: width 350ms;
}
.cert-card:hover .cert-line {
  width: 80px;
}
.cert-content h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.38rem);
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 6px;
  transition: color 350ms;
}
.cert-standard {
  display: inline-block;
  direction: ltr;
  unicode-bidi: plaintext;
  color: var(--primary);
  font-weight: 900;
  font-size: 0.92rem;
  margin-bottom: 14px;
  padding: 3px 12px;
  border-radius: 8px;
  background: rgba(246, 184, 0, 0.1);
  border: 1px solid rgba(246, 184, 0, 0.2);
  transition: var(--transition);
}
.cert-card:hover .cert-standard {
  background: rgba(246, 184, 0, 0.16);
}
.cert-content p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 2;
}
body.light-theme .cert-content p {
  color: rgba(71, 85, 105, 0.92);
}
.cert-details {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cert-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  transition: var(--transition);
}
.cert-detail-tag svg {
  width: 14px;
  height: 14px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  flex: 0 0 auto;
}
.cert-card:hover .cert-detail-tag {
  border-color: rgba(246, 184, 0, 0.25);
}
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: 0.7s;
}
.delay-1 {
  transition-delay: 120ms;
}
.delay-2 {
  transition-delay: 220ms;
}
.delay-3 {
  transition-delay: 320ms;
}
.delay-4 {
  transition-delay: 420ms;
}
.delay-5 {
  transition-delay: 520ms;
}
.delay-6 {
  transition-delay: 620ms;
}
.scroll-top {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--primary);
  color: #07111f;
  font-size: 1.4rem;
  font-weight: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
  display: grid;
}
.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(246, 184, 0, 0.35);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(246, 184, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 4px rgba(246, 184, 0, 0.15);
  }
}
@media (max-width: 1050px) {
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 860px) {
  .main-nav,
  .menu-btn {
    display: grid;
  }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    gap: 0;
    padding: 12px;
    border-radius: 24px;
    background: rgba(11, 19, 32, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  body.light-theme .main-nav {
    background: rgba(255, 255, 255, 0.94);
  }
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav a {
    padding: 14px;
    border-radius: 16px;
  }
  .main-nav a:hover {
    background: var(--surface);
  }
  .main-nav a::after {
    display: none;
  }
  .certificates-grid {
    grid-template-columns: 1fr;
  }
  .cert-card.full-width {
    grid-column: 1;
  }
}
@media (max-width: 640px) {
  :root {
    --header-height: 76px;
  }
  .container {
    width: min(calc(100% - 24px), var(--container));
  }
  .logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    padding: 5px;
  }
  .logo-text strong {
    font-size: 1rem;
  }
  .logo-text small {
    font-size: 0.72rem;
  }
  .theme-switch {
    width: 64px;
    height: 34px;
  }
  .moon,
  .sun {
    width: 23px;
    height: 23px;
    top: 5px;
  }
  .page-hero {
    padding: 70px 0 40px;
    min-height: auto;
  }
  .page-hero h1 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }
  .cert-image-wrap {
    height: 180px;
  }
  .cert-content {
    padding: 22px 20px 26px;
  }
  .cert-content h3 {
    font-size: 1.08rem;
  }
  .cert-content p {
    font-size: 0.88rem;
    line-height: 1.9;
  }
  .cert-details {
    gap: 8px;
  }
  .cert-detail-tag {
    font-size: 0.76rem;
    padding: 4px 11px;
  }
  .cert-badge {
    top: 12px;
    right: 12px;
    font-size: 0.72rem;
    padding: 5px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  ::after,
  ::before {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
.cert-image-link:focus-visible {
  opacity: 1;
  outline: 0;
}
.cert-image-link:focus-visible span {
  transform: scale(1);
  outline: rgba(246, 184, 0, 0.35) solid 3px;
  outline-offset: 5px;
}
@media (hover: none), (pointer: coarse) {
  .cert-card,
  .cert-card:hover,
  .cert-card:hover .cert-image-wrap img {
    transform: none;
  }
  .cert-card:hover::after {
    opacity: 0;
  }
  .cert-image-link {
    opacity: 1;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 14px;
    background: linear-gradient(
      180deg,
      transparent 45%,
      rgba(7, 17, 31, 0.72) 100%
    );
    touch-action: manipulation;
  }
  .cert-image-link span {
    width: auto;
    min-width: 48px;
    height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transform: scale(1);
    box-shadow:
      0 12px 30px rgba(246, 184, 0, 0.32),
      0 0 0 5px rgba(246, 184, 0, 0.1);
  }
  .cert-image-link span::after {
    content: "مشاهده تصویر";
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
  }
  .cert-image-link span svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
  }
  .cert-badge {
    max-width: calc(100% - 32px);
  }
}
@media (max-width: 420px) {
  .cert-image-link {
    padding: 12px;
  }
  .cert-image-link span {
    height: 42px;
    padding: 0 12px;
  }
  .cert-image-link span::after {
    font-size: 0.74rem;
  }
}
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-2);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
  border-left: 1px solid var(--border);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  border-radius: 999px;
  border: 2px solid var(--bg);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  transition:
    background var(--transition),
    border-color var(--transition);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  box-shadow: 0 0 14px rgba(246, 184, 0, 0.6);
}
::-webkit-scrollbar-corner {
  background: var(--bg);
}
body.light-theme ::-webkit-scrollbar-track {
  background: var(--bg-3);
  border-left-color: var(--border);
}
body.light-theme ::-webkit-scrollbar-thumb {
  border-color: var(--bg-3);
}
