body, .ui, .card, h1, h2, h3, h4, h5, h6, p, span, div, li, a, button, table, th, td {
    font-family: Tahoma, sans-serif !important;
  }

  #tablo-khani-guide { direction: rtl; }

  .card-power-edu {
    color: #0f172a !important;
    font-size: 1.08em;
    line-height: 2.05;
    font-weight: 600;
    border-right: 5px solid var(--primary) !important;
    box-shadow: 0 4px 18px rgba(26,82,118,.12) !important;
  }
  .card-power-edu h2 {
    font-size: 1.45em !important;
    font-weight: 800 !important;
    letter-spacing: -0.015em;
    color: #0b3a5c !important;
    border-bottom: 3px solid var(--primary) !important;
    padding-bottom: 10px !important;
    background: none !important;
    margin: 0 0 12px !important;
    padding: 0 0 10px !important;
    border-radius: 0 !important;
  }
  .card-power-edu h3 {
    font-size: 1.22em !important;
    font-weight: 800 !important;
    color: #0b3a5c !important;
    margin: 30px 0 8px;
    border-right: 4px solid var(--primary);
    padding-right: 12px;
    background: none !important;
  }
  .card-power-edu .power-kicker {
    font-size: 1em !important;
    font-weight: 800 !important;
    color: #0b3a5c !important;
  }
  .card-power-edu p,
  .card-power-edu li,
  .card-power-edu td,
  .card-power-edu div {
    color: #0f172a !important;
    font-size: 1.05em !important;
    font-weight: 600 !important;
    line-height: 2.05 !important;
  }
  .card-power-edu strong,
  .card-power-edu b {
    font-weight: 800 !important;
    color: #071a2e !important;
  }
  .card-power-edu table { font-size: 1.05em !important; width: 100%; border-collapse: collapse; }
  .card-power-edu th {
    font-weight: 800 !important;
    font-size: 1.05em !important;
    background: linear-gradient(135deg, #1a5276, #2980b9) !important;
    color: #fff !important;
    padding: 10px 12px;
    text-align: right;
  }
  .card-power-edu td {
    font-weight: 700 !important;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border, #d3dcea);
    vertical-align: top;
  }
  .card-power-edu ol,
  .card-power-edu ul { font-weight: 700 !important; padding-right: 22px; }
  .card-power-edu ol li,
  .card-power-edu ul li { margin-bottom: 6px; }

  [data-theme="dark"] .card-power-edu,
  body.dark-theme .card-power-edu,
  [data-theme="dark"] .card-power-edu p,
  body.dark-theme .card-power-edu p,
  [data-theme="dark"] .card-power-edu li,
  body.dark-theme .card-power-edu li,
  [data-theme="dark"] .card-power-edu td,
  body.dark-theme .card-power-edu td,
  [data-theme="dark"] .card-power-edu div,
  body.dark-theme .card-power-edu div,
  [data-theme="dark"] .card-power-edu span,
  body.dark-theme .card-power-edu span { color: #e8eef8 !important; }
  [data-theme="dark"] .card-power-edu h2,
  body.dark-theme .card-power-edu h2,
  [data-theme="dark"] .card-power-edu h3,
  body.dark-theme .card-power-edu h3,
  [data-theme="dark"] .card-power-edu .power-kicker,
  body.dark-theme .card-power-edu .power-kicker { color: #93c5fd !important; }
  [data-theme="dark"] .card-power-edu strong,
  body.dark-theme .card-power-edu strong,
  [data-theme="dark"] .card-power-edu b,
  body.dark-theme .card-power-edu b { color: #ffffff !important; }
  [data-theme="dark"] .card-power-edu th,
  body.dark-theme .card-power-edu th { color: #fff !important; }
  [data-theme="dark"] .an-badge,
  body.dark-theme .an-badge { color: #fbbf24 !important; border-color: #f59e0b; }
  [data-theme="dark"] .an-tbl,
  body.dark-theme .an-tbl { border-color: #334155; }
  [data-theme="dark"] .card-power-edu td,
  body.dark-theme .card-power-edu td { border-bottom-color: #334155; }

  body.power-page > .ui.container {
    width: auto !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  body.power-page .power-wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 24px 0 0 !important;
    padding: 0 !important;
  }
  @media (max-width: 767px) {
    body.power-page > .ui.container {
      padding-left: 4px !important;
      padding-right: 4px !important;
    }
    body.power-page .card-power-edu { padding: 16px 12px !important; }
  }

  .an-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 12px;
    border: 1px solid #f5b942;
    color: #b7791f !important;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 700 !important;
    text-align: center;
  }
  .an-tbl {
    overflow-x: auto;
    border: 1px solid var(--border, #d3dcea);
    border-radius: 8px;
    margin: 10px 0;
  }
  .card-power-edu .an-hero {
    background: #15233b !important;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 14px 0;
    direction: rtl;
    color: #fff !important;
    font-size: 1em !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
  }
  .card-power-edu .an-hero,
  .card-power-edu .an-hero * { color: #fff !important; }
  .card-power-edu .an-hero .t { font-weight: 700 !important; font-size: 1.05em !important; }
  .card-power-edu .an-hero .v {
    color: #cfe0f7 !important;
    font-size: 14px !important;
    margin: 2px 0 10px;
    font-weight: 500 !important;
  }
  .card-power-edu .an-pill {
    display: inline-block;
    border-radius: 20px;
    padding: 0 12px;
    margin: 2px 0 2px 6px;
    font-size: 13.5px !important;
    background: #1f3556 !important;
    border: 1px solid #3b5a8a;
    color: #fff !important;
    font-weight: 600 !important;
    line-height: 1.8 !important;
  }
  .card-power-edu .an-pill.s { background: #0e6b50 !important; border-color: #27c79a; }
  .card-power-edu .an-n {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f5b942 !important;
    color: #1b1b1b !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    margin-left: 4px;
    line-height: 1 !important;
  }
  .an-sc { color: #1fb589 !important; font-weight: 700 !important; }
  .an-sn { color: #ef4a4a !important; font-weight: 700 !important; }
  .card-power-edu .an-note {
    background: #fef9e7 !important;
    border-right: 4px solid #f39c12;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 12px 0;
  }
  .card-power-edu .an-note,
  .card-power-edu .an-note * { color: #1b1b1b !important; }
  [data-theme="dark"] .card-power-edu .an-note,
  body.dark-theme .card-power-edu .an-note { background: #3a2f14 !important; }
  [data-theme="dark"] .card-power-edu .an-note,
  body.dark-theme .card-power-edu .an-note,
  [data-theme="dark"] .card-power-edu .an-note *,
  body.dark-theme .card-power-edu .an-note * { color: #fde68a !important; }
  [data-theme="dark"] .card-power-edu .an-hero,
  body.dark-theme .card-power-edu .an-hero,
  [data-theme="dark"] .card-power-edu .an-hero *,
  body.dark-theme .card-power-edu .an-hero * { color: #fff !important; }
  [data-theme="dark"] .card-power-edu .an-hero .v,
  body.dark-theme .card-power-edu .an-hero .v { color: #cfe0f7 !important; }
  [data-theme="dark"] .card-power-edu .an-n,
  body.dark-theme .card-power-edu .an-n { color: #1b1b1b !important; }
  [data-theme="dark"] .an-sc,
  body.dark-theme .an-sc { color: #34d399 !important; }
  [data-theme="dark"] .an-sn,
  body.dark-theme .an-sn { color: #f87171 !important; }

  .ctt-main-image {
    display: block;
    width: 100%;
    max-width: 1100px;
    height: auto;
    margin: 18px auto 22px;
    border-radius: 12px;
    border: 1px solid var(--border, #d3dcea);
    box-shadow: 0 5px 22px rgba(0,0,0,.12);
  }
  .an-img-scroll {
    max-width: 1100px;
    max-height: 420px;
    margin: 18px auto 8px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 12px;
    border: 1px solid var(--border, #d3dcea);
    box-shadow: 0 5px 22px rgba(0,0,0,.12);
    background: var(--bg-soft, #f4f7fb);
  }
  .an-img-scroll .ctt-main-image {
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
  }
  .ctt-image-caption {
    text-align: center;
    font-size: .95em !important;
    color: #64748b !important;
    font-weight: 500 !important;
    margin: 8px auto 20px !important;
  }
  [data-theme="dark"] .ctt-image-caption,
  body.dark-theme .ctt-image-caption { color: #cbd5e1 !important; }
  [data-theme="dark"] .an-img-scroll,
  body.dark-theme .an-img-scroll { background: #0f172a; border-color: #334155; }
