/* Extracted page styles: learning mahck.html (block 1) */
    /* ============ پایه ============ */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      --primary: #1d4ed8;
      --primary-dark: #1e40af;
      --primary-soft: #e8effc;
      --ink: #0f172a;
      --muted: #5b6b83;
      --border: #e3e9f2;
      --hover-bg: #f1f5f9;
      --bg: #f7f9fd;
      --accent: #f59e0b;
    }

    body {
      font-family: 'Vazirmatn', sans-serif;
      background: var(--bg);
      color: var(--ink);
      line-height: 1.9;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    button {
      font-family: inherit;
    }

    /* ============ Hero ============ */
    .hero-new {
      text-align: center;
      padding: 3rem 1.5rem;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
      color: #fff;
    }

    .hero-new h1 {
      font-size: 2rem;
      margin-bottom: .75rem;
    }

    .hero-new p {
      opacity: .9;
      max-width: 700px;
      margin: 0 auto;
    }

    /* ============ Tabs ============ */
    .category-tabs-new {
      display: flex;
      gap: .5rem;
      flex-wrap: wrap;
      justify-content: center;
      padding: 1.5rem 1rem;
      background: #fff;
      border-bottom: 1px solid var(--border);
    }

    .cat-tab {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      padding: .6rem 1.1rem;
      background: var(--hover-bg);
      border: 1px solid var(--border);
      border-radius: 50px;
      font-weight: 600;
      font-size: .9rem;
      cursor: pointer;
      transition: .2s;
      color: var(--muted);
      font-family: inherit;
    }

    .cat-tab.active,
    .cat-tab:hover {
      background: var(--primary);
      color: #fff;
      border-color: var(--primary);
    }

    /* ============ Layout ============ */
    .main-layout {
      max-width: 1320px;
      margin: 2rem auto;
      padding: 0 1rem;
      display: grid;
      grid-template-columns: 340px 1fr;
      gap: 1.5rem;
    }

    /* ============ Sidebar ============ */
    .sidebar-new {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 1.25rem;
      max-height: calc(100vh - 100px);
      position: sticky;
      top: 90px;
      overflow-y: auto;
    }

    .sidebar-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
      padding-bottom: .75rem;
      border-bottom: 1px solid var(--border);
    }

    .sidebar-header h3 {
      font-size: 1rem;
    }

    .progress-badge {
      background: var(--primary);
      color: #fff;
      padding: .15rem .55rem;
      border-radius: 50px;
      font-size: .78rem;
      font-weight: 700;
    }

    .reset-btn-new {
      width: 100%;
      padding: .5rem;
      background: var(--hover-bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      margin-bottom: 1rem;
      cursor: pointer;
      color: var(--muted);
      font-weight: 600;
      font-size: .85rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: .4rem;
      font-family: inherit;
    }

    .reset-btn-new:hover {
      background: #e2e8f0;
      color: var(--ink);
    }

    .session-item {
      display: flex;
      align-items: center;
      gap: .7rem;
      padding: .7rem .6rem;
      border-radius: 10px;
      cursor: pointer;
      transition: .2s;
      border-bottom: 1px solid #f1f5f9;
    }

    .session-item:hover {
      background: var(--hover-bg);
    }

    .session-item.active {
      background: var(--primary-soft);
      border-right: 3px solid var(--primary);
    }

    .session-item.completed .session-num {
      background: #10b981;
      color: #fff;
    }

    .session-num {
      min-width: 32px;
      height: 32px;
      background: var(--hover-bg);
      color: var(--primary);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: .85rem;
      flex-shrink: 0;
    }

    .session-info {
      flex: 1;
      min-width: 0;
    }

    .session-title {
      font-weight: 600;
      font-size: .88rem;
      line-height: 1.4;
    }

    .session-desc {
      font-size: .75rem;
      color: var(--muted);
      margin-top: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .session-icon {
      color: var(--primary);
      font-size: 1.1rem;
      flex-shrink: 0;
    }

    .session-item.completed .session-icon {
      color: #10b981;
    }

    /* ============ Player ============ */
    .player-section-new {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
    }

    .player-header-new {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: .85rem 1.25rem;
      background: var(--ink);
      color: #fff;
    }

    .player-title-new {
      display: flex;
      align-items: center;
      gap: .5rem;
      font-weight: 700;
      font-size: .95rem;
    }

    .close-btn-new {
      background: rgba(255, 255, 255, .1);
      color: #fff;
      border: none;
      width: 34px;
      height: 34px;
      border-radius: 8px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .close-btn-new:hover {
      background: rgba(255, 255, 255, .2);
    }

    /* ⭐ اصلاح شده برای سازگاری با موبایل */
    .video-container-new {
      position: relative;
      width: 100%;
      padding-top: 56.25%;
      aspect-ratio: 16 / 9;
      background: #000;
      overflow: hidden;
    }

    .video-container-new iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100% !important;
      height: 100% !important;
      border: none;
    }

    .video-placeholder-new,
    .video-overlay-new {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #94a3b8;
      text-align: center;
    }

    .video-placeholder-new i {
      font-size: 3rem;
      margin-bottom: .5rem;
      color: var(--primary);
    }

    .video-overlay-new i {
      font-size: 3rem;
      color: #f59e0b;
      margin-bottom: .5rem;
    }

    .video-info-new {
      padding: 1.25rem;
    }

    .video-info-new h4 {
      font-size: 1.15rem;
      margin-bottom: .35rem;
    }

    .video-info-new p {
      color: var(--muted);
      font-size: .9rem;
      margin-bottom: 1rem;
    }

    .progress-bar-new {
      height: 6px;
      background: var(--hover-bg);
      border-radius: 50px;
      overflow: hidden;
    }

    .progress-fill-new {
      height: 100%;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      width: 0;
      transition: width .3s;
    }

    /* ============ Scroll Top ============ */
    .scroll-top-new {
      position: fixed;
      bottom: 30px;
      left: 30px;
      width: 48px;
      height: 48px;
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      opacity: 0;
      visibility: hidden;
      transition: .3s;
      box-shadow: 0 4px 12px rgba(29, 78, 216, .4);
      z-index: 999;
    }

    .scroll-top-new.visible {
      opacity: 1;
      visibility: visible;
    }

    .scroll-top-new:hover {
      background: var(--primary-dark);
      transform: translateY(-3px);
    }

    /* ============ ریسپانسیو ============ */
    @media (max-width: 900px) {
      .main-layout {
        grid-template-columns: 1fr;
      }

      .sidebar-new {
        position: static;
        max-height: none;
      }

      .hero-new h1 {
        font-size: 1.5rem;
      }

      .category-tabs-new {
        gap: .35rem;
      }

      .cat-tab {
        font-size: .8rem;
        padding: .5rem .8rem;
      }
    }
